From 85e04756fba1c00512c82e07434bb5d81a9cb165 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 18 Nov 2023 17:44:36 +0100 Subject: [PATCH 01/30] feat(tensor_unique): Added start of unique fn --- Scarb.toml | 1 + src/numbers/signed_integer/i64.cairo | 10 ++ src/operators/tensor/core.cairo | 131 ++++++++++++++++++++++++++- 3 files changed, 138 insertions(+), 4 deletions(-) diff --git a/Scarb.toml b/Scarb.toml index 502513ba4..39ac89158 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -6,6 +6,7 @@ homepage = "https://github.com/gizatechxyz/orion" [dependencies] alexandria_data_structures = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "f37d73d" } +alexandria_sorting = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "f37d73d" } cubit = { git = "https://github.com/raphaelDkhn/cubit.git" } [scripts] diff --git a/src/numbers/signed_integer/i64.cairo b/src/numbers/signed_integer/i64.cairo index 8bde7c0ee..fcccf2ea1 100644 --- a/src/numbers/signed_integer/i64.cairo +++ b/src/numbers/signed_integer/i64.cairo @@ -39,6 +39,16 @@ impl i64Impl of IntegerTrait { } } +// Implements the Into trait for u32 -> i64 +impl u32Intoi64 of Into { + fn into(self: u32) -> i64 { + i64 { + mag: self.into(), + sign: false + } + } +} + // Implements the Into trait for i64. impl i32Into of Into { fn into(self: i64) -> felt252 { diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index 8a3ae7e68..d02d5c879 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -2,10 +2,11 @@ use array::{ArrayTrait, SpanTrait}; use serde::Serde; use option::OptionTrait; -use alexandria_data_structures::array_ext::{SpanTraitExt}; +use alexandria_data_structures::array_ext::{ArrayTraitExt, SpanTraitExt}; +use alexandria_sorting::merge_sort::merge; use orion::operators::tensor::helpers::{len_from_shape, check_shape}; -use orion::numbers::{i8, i32, NumberTrait}; +use orion::numbers::{i8, i32, i64, NumberTrait}; #[derive(Copy, Drop)] struct Tensor { @@ -87,6 +88,7 @@ impl TensorSerde, impl TDrop: Drop> of Serde { /// # tensor.new /// @@ -3127,7 +3129,7 @@ trait TensorTrait { /// /// ## Example /// - /// ```rust + /// ```rust /// use array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; @@ -3211,7 +3213,51 @@ trait TensorTrait { /// [ 4, 0, 3, 0, 0]] /// ``` /// - fn scatter(self: @Tensor, updates: Tensor, indices: Tensor, axis: Option, reduction: Option) -> Tensor; + fn scatter( + self: @Tensor, + updates: Tensor, + indices: Tensor, + axis: Option, + reduction: Option + ) -> Tensor; + /// # tensor.unique + /// + /// ```rust + /// fn unique(self: @Tensor, axis: Option, sorted: Option) -> (Tensor, Tensor, Tensor, Tensor); + /// ``` + /// + /// Identifies the unique elements or subtensors of a tensor, with an optional axis parameter for subtensor slicing. + /// This function returns a tuple containing the tensor of unique elements or subtensors, and optionally, + /// tensors for indices, inverse indices, and counts of unique elements. + /// + /// ## Args + /// + /// * `self`(`@Tensor`) - The input tensor. + /// * `axis`(`Option`) - Specifies the dimension along which to find unique subtensors. A None value means the unique + /// elements of the tensor will be returned in a flattened form. A negative value indicates + /// dimension counting from the end. + /// * `sorted`(`Option`) - Determines if the unique elements should be returned in ascending order. Defaults to true. + /// + /// ## Returns + /// + /// A tuple containing: + /// * A Tensor with unique values or subtensors from self. + /// * A Tensor with the first occurrence indices of unique elements in self. If axis is given, it returns indices + /// along that axis; otherwise, it refers to the flattened tensor. + /// * A Tensor mapping each element of self to its index in the unique tensor. If axis is specified, it maps to + /// the subtensor index; otherwise, it maps to the unique flattened tensor. + /// * A Tensor for the counts of each unique element or subtensor in self. + /// + /// ## Panics + /// + /// TODO + /// + /// ## Examples + /// + /// TODO + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor); } /// Cf: TensorTrait::new docstring @@ -3753,3 +3799,80 @@ fn clip< fn identity(self: @Tensor) -> Tensor { Tensor:: { shape: *self.shape, data: *self.data } } + +/// Cf: TensorTrait::unique docstring +fn unique< + T, + impl TCopy: Copy, + impl TDrop: Drop, + impl TPartialOrd: PartialOrd, + impl TPartialEq: PartialEq +>( + self: @Tensor, axis: Option, sorted: Option +) -> (Tensor, Tensor, Tensor, Tensor) { + // 0. Instanciate the sorted flag + let sorted = match sorted { + Option::Some(sorted) => sorted, + Option::None => true, + }; + + // 1. Initiatialize the outputs as Arrays + let mut unique_elements: Array = ArrayTrait::new(); + let mut indices: Array = ArrayTrait::new(); + let mut inverse_indices: Array = ArrayTrait::new(); + + // 2. Compute unique elements for axis + let mut data_cpy = *self.data; + match axis { + Option::Some(axis) => { assert(1 == 0, 'not implemented yet'); }, + Option::None => { + let mut idx: usize = 0; + loop { + match data_cpy.pop_front() { + Option::Some(value) => { + match unique_elements.index_of(*value) { + Option::Some(found_idx) => { + inverse_indices.append(found_idx.into()); + }, + Option::None => { + unique_elements.append(*value); + indices.append(idx.into()); + inverse_indices.append(idx.into()); + } + } + }, + Option::None => { break; } + } + idx += 1; + }; + } + } + + // 3. Count the occurences of each unique elements in self + let mut count: Array = ArrayTrait::new(); + let mut unique_elements_cpy = unique_elements.span(); + loop { + match unique_elements_cpy.pop_front() { + Option::Some(element) => { count.append(self.data.occurrences_of(*element)); }, + Option::None => { break; } + } + }; + + // 4. Sort the unique elements if necessary + if (sorted) { + unique_elements = merge(unique_elements); + } + + // 5. Convert arrays to tensors + let unique_elements = Tensor::< + T + > { shape: array![unique_elements.len(), 1].span(), data: unique_elements.span() }; + let indices = Tensor:: { shape: array![indices.len(), 1].span(), data: indices.span() }; + let inverse_indices = Tensor::< + i64 + > { shape: array![inverse_indices.len(), 1].span(), data: inverse_indices.span() }; + let count = Tensor:: { shape: array![count.len(), 1].span(), data: count.span() }; + + // 6. Return the outputs as tensors + (unique_elements, indices, inverse_indices, count) +} From 6124f12d818968214376a6ceb1ffde6d0e804fdf Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 18 Nov 2023 18:13:19 +0100 Subject: [PATCH 02/30] feat(tensor_unique): Compiling --- src/operators/tensor/core.cairo | 9 ++++++--- .../tensor/implementations/tensor_fp16x16.cairo | 9 +++++++-- .../tensor/implementations/tensor_fp16x16wide.cairo | 8 +++++++- .../tensor/implementations/tensor_fp32x32.cairo | 8 +++++++- .../tensor/implementations/tensor_fp64x64.cairo | 7 ++++++- .../tensor/implementations/tensor_fp8x23.cairo | 8 +++++++- .../tensor/implementations/tensor_fp8x23wide.cairo | 7 ++++++- src/operators/tensor/implementations/tensor_i32.cairo | 8 +++++++- src/operators/tensor/implementations/tensor_i8.cairo | 8 +++++++- src/operators/tensor/implementations/tensor_u32.cairo | 10 ++++++++-- 10 files changed, 68 insertions(+), 14 deletions(-) diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index d02d5c879..d48097bc6 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -3223,7 +3223,7 @@ trait TensorTrait { /// # tensor.unique /// /// ```rust - /// fn unique(self: @Tensor, axis: Option, sorted: Option) -> (Tensor, Tensor, Tensor, Tensor); + /// fn unique(self: @Tensor, axis: Option, sorted: Option) -> (Tensor, Tensor, Tensor, Tensor); /// ``` /// /// Identifies the unique elements or subtensors of a tensor, with an optional axis parameter for subtensor slicing. @@ -3256,7 +3256,7 @@ trait TensorTrait { /// /// TODO fn unique( - self: @Tensor, axis: Option, sorted: Option + self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor); } @@ -3853,7 +3853,10 @@ fn unique< let mut unique_elements_cpy = unique_elements.span(); loop { match unique_elements_cpy.pop_front() { - Option::Some(element) => { count.append(self.data.occurrences_of(*element)); }, + Option::Some(element) => { + let occurences = (*self.data).occurrences_of(*element); + count.append(occurences.into()); + }, Option::None => { break; } } }; diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index 508134a2f..cd2a13291 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait, FP16x16}; +use orion::numbers::{i8, i32, i64, NumberTrait, FP16x16}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; impl FP16x16Tensor of TensorTrait { @@ -287,7 +287,12 @@ impl FP16x16Tensor of TensorTrait { -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } - + + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index d87f6dd9d..cddeec440 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait, FP16x16W}; +use orion::numbers::{i8, i32, i64, NumberTrait, FP16x16W}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; impl FP16x16WTensor of TensorTrait { @@ -286,6 +286,12 @@ impl FP16x16WTensor of TensorTrait { -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } + + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_fp32x32.cairo b/src/operators/tensor/implementations/tensor_fp32x32.cairo index 30b85b755..fd721ef57 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait, FP32x32, FP32x32Impl}; +use orion::numbers::{i8, i32, i64, NumberTrait, FP32x32, FP32x32Impl}; use orion::numbers::fixed_point::implementations::fp32x32::core::ONE; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -288,6 +288,12 @@ impl FP32x32Tensor of TensorTrait { -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } + + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index c86420354..c95abf425 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait, FP64x64, FP64x64Impl}; +use orion::numbers::{i8, i32, i64, NumberTrait, FP64x64, FP64x64Impl}; use orion::numbers::fixed_point::implementations::fp64x64::core::ONE; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -289,6 +289,11 @@ impl FP64x64Tensor of TensorTrait { math::scatter::scatter(self, updates, indices, axis, reduction) } + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index 3ddcf0369..5b4ac101c 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait, FP8x23}; +use orion::numbers::{i8, i32, i64, NumberTrait, FP8x23}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; impl FP8x23Tensor of TensorTrait { @@ -287,6 +287,12 @@ impl FP8x23Tensor of TensorTrait { -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } + + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo index 3c36ee737..8c7077d2f 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait, FP8x23W}; +use orion::numbers::{i8, i32, i64, NumberTrait, FP8x23W}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; impl FP8x23WTensor of TensorTrait { @@ -277,6 +277,11 @@ impl FP8x23WTensor of TensorTrait { math::scatter::scatter(self, updates, indices, axis, reduction) } + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_i32.cairo b/src/operators/tensor/implementations/tensor_i32.cairo index bf0592c41..a210ab803 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i32, i8, NumberTrait}; +use orion::numbers::{i32, i8, i64, NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_i8::I8Tensor}; @@ -287,6 +287,12 @@ impl I32Tensor of TensorTrait { -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } + + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index bfadc3be5..a89d6cd48 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait}; +use orion::numbers::{i8, i32, i64, NumberTrait}; use orion::operators::tensor::implementations::tensor_u32::U32Tensor; impl I8Tensor of TensorTrait { @@ -286,6 +286,12 @@ impl I8Tensor of TensorTrait { -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } + + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. diff --git a/src/operators/tensor/implementations/tensor_u32.cairo b/src/operators/tensor/implementations/tensor_u32.cairo index 2faf21b0b..3c6f0571b 100644 --- a/src/operators/tensor/implementations/tensor_u32.cairo +++ b/src/operators/tensor/implementations/tensor_u32.cairo @@ -5,10 +5,10 @@ use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::core::{ - new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, + new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor }; use orion::operators::tensor::{math, linalg, quantization, core}; -use orion::numbers::{i8, i32, NumberTrait}; +use orion::numbers::{i8, i32, i64, NumberTrait}; use orion::operators::tensor::implementations::tensor_i8::I8Tensor; impl U32Tensor of TensorTrait { @@ -268,6 +268,12 @@ impl U32Tensor of TensorTrait { -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } + + fn unique( + self: @Tensor, axis: Option, sorted: Option + ) -> (Tensor, Tensor, Tensor, Tensor) { + core::unique(self, axis, sorted) + } } /// Implements addition for `Tensor` using the `Add` trait. From e433d4089a89b4558f4312c7082101f99d13c1e7 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 25 Nov 2023 16:30:27 +0100 Subject: [PATCH 03/30] feat(tensor_unique): Updated nodegen for tuples outputs & generated docs --- docs/SUMMARY.md | 1 + docs/framework/compatibility.md | 5 +- .../operators/tensor/tensor.unique.md | 79 +++++++ nodegen/file_manager.py | 85 ++++---- nodegen/helpers.py | 32 ++- nodegen/node/unique.py | 198 ++++++++++++++++++ src/operators/tensor/core.cairo | 65 +++++- .../tensor/implementations/tensor_bool.cairo | 2 +- tests/nodes.cairo | 6 + .../unique_u32_with_axis_one_not_sorted.cairo | 31 +++ .../input_0.cairo | 40 ++++ .../output_0.cairo | 40 ++++ .../output_1.cairo | 15 ++ .../output_2.cairo | 15 ++ .../output_3.cairo | 15 ++ .../unique_u32_with_axis_one_sorted.cairo | 31 +++ .../input_0.cairo | 40 ++++ .../output_0.cairo | 40 ++++ .../output_1.cairo | 15 ++ .../output_2.cairo | 15 ++ .../output_3.cairo | 15 ++ ...unique_u32_with_axis_zero_not_sorted.cairo | 31 +++ .../input_0.cairo | 40 ++++ .../output_0.cairo | 40 ++++ .../output_1.cairo | 15 ++ .../output_2.cairo | 15 ++ .../output_3.cairo | 15 ++ .../unique_u32_with_axis_zero_sorted.cairo | 31 +++ .../input_0.cairo | 40 ++++ .../output_0.cairo | 40 ++++ .../output_1.cairo | 15 ++ .../output_2.cairo | 15 ++ .../output_3.cairo | 15 ++ .../unique_u32_without_axis_not_sorted.cairo | 31 +++ .../input_0.cairo | 40 ++++ .../output_0.cairo | 38 ++++ .../output_1.cairo | 18 ++ .../output_2.cairo | 39 ++++ .../output_3.cairo | 18 ++ .../unique_u32_without_axis_sorted.cairo | 31 +++ .../input_0.cairo | 40 ++++ .../output_0.cairo | 17 ++ .../output_1.cairo | 18 ++ .../output_2.cairo | 39 ++++ .../output_3.cairo | 18 ++ 45 files changed, 1391 insertions(+), 53 deletions(-) create mode 100644 docs/framework/operators/tensor/tensor.unique.md create mode 100644 nodegen/node/unique.py create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_sorted.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo create mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo create mode 100644 tests/nodes/unique_u32_without_axis_not_sorted.cairo create mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo create mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo create mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo create mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo create mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo create mode 100644 tests/nodes/unique_u32_without_axis_sorted.cairo create mode 100644 tests/nodes/unique_u32_without_axis_sorted/input_0.cairo create mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_0.cairo create mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_1.cairo create mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_2.cairo create mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_3.cairo diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 1ddffa843..d86123d82 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -100,6 +100,7 @@ * [tensor.reduce\_sum\_square](framework/operators/tensor/tensor.reduce\_sum\_square.md) * [tensor.reduce\_l2](framework/operators/tensor/tensor.reduce\_l2.md) * [tensor.reduce\_l1](framework/operators/tensor/tensor.reduce\_l1.md) + * [tensor.unique](framework/operators/tensor/tensor.unique.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) diff --git a/docs/framework/compatibility.md b/docs/framework/compatibility.md index ebc50ad77..d6d61d332 100644 --- a/docs/framework/compatibility.md +++ b/docs/framework/compatibility.md @@ -76,10 +76,11 @@ You can see below the list of current supported ONNX Operators: | [MaxInTensor](operators/tensor/tensor.max\_in\_tensor.md) | :white\_check\_mark: | | [Max](operators/tensor/tensor.max.md) | :white\_check\_mark: | | [ReduceSumSquare](operators/tensor/tensor.reduce\_sum\_square.md) | :white\_check\_mark: | -| [Trilu](operators/tensor/tensor.trilu.md) | :white\_check\_mark: | +| [Trilu](operators/tensor/tensor.trilu.md) | :white\_check\_mark: | | [Scatter](operators/tensor/scatter.max.md) | :white\_check\_mark: | -| [ConstantOfShape](operators/tensor/tensor.constant_of_shape.md) | :white\_check\_mark: | +| [ConstantOfShape](operators/tensor/tensor.constant_of_shape.md) | :white\_check\_mark: | | [ReduceL1](operators/tensor/tensor.reduce\_l1.md) | :white\_check\_mark: | | [ReduceL2](operators/tensor/tensor.reduce\_l2.md) | :white\_check\_mark: | +| [Unique](operators/tensor/tensor.unique.md) | :white\_check\_mark: | Current Operators support: **75/156 (48%)** diff --git a/docs/framework/operators/tensor/tensor.unique.md b/docs/framework/operators/tensor/tensor.unique.md new file mode 100644 index 000000000..d8de0944f --- /dev/null +++ b/docs/framework/operators/tensor/tensor.unique.md @@ -0,0 +1,79 @@ +# tensor.unique + +```rust + fn unique(self: @Tensor, axis: Option, sorted: Option) -> (Tensor, Tensor, Tensor, Tensor); +``` + +Identifies the unique elements or subtensors of a tensor, with an optional axis parameter for subtensor slicing. +This function returns a tuple containing the tensor of unique elements or subtensors, and optionally, +tensors for indices, inverse indices, and counts of unique elements. +* `axis`(`Option`) - Specifies the dimension along which to find unique subtensors. A None value means the unique + elements of the tensor will be returned in a flattened form. A negative value indicates + dimension counting from the end. +* `sorted`(`Option`) - Determines if the unique elements should be returned in ascending order. Defaults to true. + +## Returns + +A tuple containing: +* A Tensor with unique values or subtensors from self. +* A Tensor with the first occurrence indices of unique elements in self. If axis is given, it returns indices + along that axis; otherwise, it refers to the flattened tensor. +* A Tensor mapping each element of self to its index in the unique tensor. If axis is specified, it maps to + the subtensor index; otherwise, it maps to the unique flattened tensor. +* A Tensor for the counts of each unique element or subtensor in self. + + +## Example + +```rust +use array::{ArrayTrait, SpanTrait}; + +use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + +fn unique_flat_example() -> Tensor { + let tensor = TensorTrait::::new( + shape: array![1, 6].span(), + data: array![[2, 1, 1, 3, 4, 3]].span(), + ); + + return tensor.unique( + axis: Option::None(()) + sorted: Option::Some(false) + ); +} +>>> ( + [2, 1, 3, 4], + [0, 1, 3, 4], + [0, 1, 1, 2, 3, 2], + [1, 2, 2, 1] + ) +``` + +or + +```rust +use array::{ArrayTrait, SpanTrait}; + +use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + +fn unique_axis_example() -> Tensor { + let tensor = TensorTrait::::new( + shape: array![3, 3].span(), + data: array![[ 1, 0, 0], + [ 1, 0, 0], + [ 2, 3, 4]].span(), + ); + + return tensor.unique( + axis: Option::Some(0) + sorted: Option::Some(true) + ); +} +>>> ( + [[ 1, 0, 0], + [ 2, 3, 4]], + [0, 2], + [0, 0, 1], + [2, 1] + ) +``` diff --git a/nodegen/file_manager.py b/nodegen/file_manager.py index 215bacbcc..0b7177dbc 100644 --- a/nodegen/file_manager.py +++ b/nodegen/file_manager.py @@ -72,7 +72,9 @@ def __init__(self, file: str): super().__init__(os.path.join(BASE_PATH, file)) @classmethod - def template(cls, name: str, arg_cnt: int, refs: list[str], func_sig: str) -> list[str]: + def template( + cls, name: str, arg_cnt: int, refs: list[str], func_sig: str, out_cnt: int = 1 + ) -> list[str]: """ Create a template for a Cairo test function. @@ -81,6 +83,7 @@ def template(cls, name: str, arg_cnt: int, refs: list[str], func_sig: str) -> li arg_cnt (int): Number of arguments for the function. refs (list[str]): List of references (modules) to be used in the function. func_sig (str): The function signature. + out_cnt (int): Number of outputs for the function. Defaults to 1. Returns: list[str]: A list of strings that together form the template of a Cairo test function. @@ -90,21 +93,21 @@ def template(cls, name: str, arg_cnt: int, refs: list[str], func_sig: str) -> li """ return [ *[f"mod input_{i};" for i in range(arg_cnt)], - *[ "mod output_0;"], - *[ ""], - *[ ""], + *[f"mod output_{i};" for i in range(out_cnt)], + *[""], + *[""], *[f"use {ref};" for ref in refs], - *[ ""], - *[ "#[test]"], - *[ "#[available_gas(2000000000)]"], - *[f"fn test_{name}()"+" {"], + *[""], + *["#[test]"], + *["#[available_gas(2000000000)]"], + *[f"fn test_{name}()" + " {"], *[f" let input_{i} = input_{i}::input_{i}();" for i in range(arg_cnt)], - *[ " let z = output_0::output_0();"], - *[ ""], - *[f" let y = {func_sig};"], - *[ ""], - *[ " assert_eq(y, z);"], - *[ "}"], + *[f" let z_{i} = output_{i}::output_{i}();" for i in range(out_cnt)], + *[""], + *[f" let ({', '.join(f'y_{i}' for i in range(out_cnt))}) = {func_sig};"], + *[""], + *[f" assert_eq(y_{i}, z_{i});" for i in range(out_cnt)], + *["}"], ] @@ -113,7 +116,9 @@ def __init__(self, file: str): super().__init__(os.path.join(BASE_PATH, file)) @classmethod - def base_template(cls, func: str, dtype: str, refs: list[str], data: list[str], shape: tuple) -> list[str]: + def base_template( + cls, func: str, dtype: str, refs: list[str], data: list[str], shape: tuple + ) -> list[str]: """ Create a base template for data representation in Cairo. @@ -132,21 +137,28 @@ def base_template(cls, func: str, dtype: str, refs: list[str], data: list[str], """ template = [ *[f"use {ref};" for ref in refs], - *[ ""], - *[f"fn {func}() -> Tensor<{dtype}>"+" {"], - *[ " let mut shape = ArrayTrait::::new();"], + *[""], + *[f"fn {func}() -> Tensor<{dtype}>" + " {"], + *[" let mut shape = ArrayTrait::::new();"], *[f" shape.append({s});" for s in shape], - *[ ""], - *[ " let mut data = ArrayTrait::new();"], + *[""], + *[" let mut data = ArrayTrait::new();"], *[f" data.append({d});" for d in data], - *[ " TensorTrait::new(shape.span(), data.span())"], - *[ "}"], + *[" TensorTrait::new(shape.span(), data.span())"], + *["}"], ] return template @classmethod - def sequence_template(cls, func: str, dtype: str, refs: list[str], data: list[list[str]], shape: list[tuple]) -> list[str]: + def sequence_template( + cls, + func: str, + dtype: str, + refs: list[str], + data: list[list[str]], + shape: list[tuple], + ) -> list[str]: """ Create a template for handling tensor sequences in Cairo. @@ -163,31 +175,34 @@ def sequence_template(cls, func: str, dtype: str, refs: list[str], data: list[li This method generates a list of strings representing a function in Cairo for handling a sequence of tensors, each with its own data and shape. """ + def expand_sequence_init(s: list[tuple], d: list[list[str]]) -> list[str]: snippet = [] for i in range(len(s)): snippet += [ - *[ " let mut shape = ArrayTrait::::new();"], + *[" let mut shape = ArrayTrait::::new();"], *[f" shape.append({s});" for s in s[i]], - *[ ""], - *[ " let mut data = ArrayTrait::new();"], + *[""], + *[" let mut data = ArrayTrait::new();"], *[f" data.append({d});" for d in d[i]], - *[ ""], - *[ " sequence.append(TensorTrait::new(shape.span(), data.span()));"], - *[ ""], + *[""], + *[ + " sequence.append(TensorTrait::new(shape.span(), data.span()));" + ], + *[""], ] return snippet template = [ *[f"use {ref};" for ref in refs], - *[ ""], - *[f"fn {func}() -> Array>"+" {"], - *[ " let mut sequence = ArrayTrait::new();"], - *[ ""], + *[""], + *[f"fn {func}() -> Array>" + " {"], + *[" let mut sequence = ArrayTrait::new();"], + *[""], *expand_sequence_init(shape, data), - *[ " sequence"], - *[ "}"], + *[" sequence"], + *["}"], ] return template diff --git a/nodegen/helpers.py b/nodegen/helpers.py index d027a7ec5..cc9cf7210 100644 --- a/nodegen/helpers.py +++ b/nodegen/helpers.py @@ -64,7 +64,8 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s func=f"input_{i}", dtype=input[0].dtype.value, refs=get_data_refs(input[0].dtype), - data=get_data_statement_for_sequences(input, input[0].dtype), + data=get_data_statement_for_sequences( + input, input[0].dtype), shape=[x.shape for x in input], ) case Tensor(): @@ -78,9 +79,9 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s input_data.dump() - output_data = CairoData(os.path.join(name, "output_0.cairo")) match output: case list(): + output_data = CairoData(os.path.join(name, "output_0.cairo")) output_data.buffer = CairoData.sequence_template( func="output_0", dtype=output[0].dtype.value, @@ -88,7 +89,23 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s data=get_data_statement_for_sequences(output, output[0].dtype), shape=[x.shape for x in output], ) + output_data.dump() + + case tuple(): + for i, tensor in enumerate(output): + output_data = CairoData( + os.path.join(name, f"output_{i}.cairo")) + output_data.buffer = CairoData.base_template( + func=f"output_{i}", + dtype=tensor.dtype.value, + refs=get_data_refs(tensor.dtype), + data=get_data_statement(tensor.data, tensor.dtype), + shape=tensor.shape, + ) + output_data.dump() + case Tensor(): + output_data = CairoData(os.path.join(name, "output_0.cairo")) output_data.buffer = CairoData.base_template( func="output_0", dtype=output.dtype.value, @@ -96,14 +113,15 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s data=get_data_statement(output.data, output.dtype), shape=output.shape, ) - - output_data.dump() + output_data.dump() test_file = CairoTest(f"{name}.cairo") test_file.buffer = CairoTest.template( name=name, arg_cnt=len(inputs), - refs=get_all_test_refs(find_all_types([*inputs, output]), trait, isinstance(output, list)), + out_cnt=len(output) if isinstance(output, tuple) else 1, + refs=get_all_test_refs(find_all_types( + [*inputs, output]), trait, isinstance(output, list)), func_sig=func_sig, ) test_file.dump() @@ -152,7 +170,7 @@ def get_test_refs(dtype: Dtype, trait: Trait, is_sequence: bool) -> list[str]: *dtype_ref, *dtype_to_partial_eq[dtype], "orion::utils::{assert_eq, assert_seq_eq}", - ] + ] return refs @@ -160,7 +178,7 @@ def get_test_refs(dtype: Dtype, trait: Trait, is_sequence: bool) -> list[str]: def find_all_types(tensors: list[Tensor | Sequence]) -> list[Dtype]: dtypes = [] for tensor in tensors: - if isinstance(tensor, list): + if isinstance(tensor, list) or isinstance(tensor, tuple): dtypes += [x.dtype for x in tensor] else: dtypes.append(tensor.dtype) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py new file mode 100644 index 000000000..5dfaa489f --- /dev/null +++ b/nodegen/node/unique.py @@ -0,0 +1,198 @@ +import numpy as np +from nodegen.node import RunAll +from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl, Trait + + +def _unsort_outputs( + x: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray +) -> (np.ndarray, np.ndarray, np.ndarray): + """Unsort the result of np.unique(). + + This is done because numpy unique does not retain original order (it sorts + the output unique values). + # https://github.com/numpy/numpy/issues/8621 + """ + sorted_unique_values = x + unsorted_unique_values = sorted_unique_values[inverse_indices] + unsorted_indices = np.argsort(indices) + unsorted_inverse_indices = np.empty_like(inverse_indices) + unsorted_inverse_indices[unsorted_indices] = np.arange(len(indices)) + return unsorted_unique_values, unsorted_indices, unsorted_inverse_indices + + +class Unique(RunAll): + @staticmethod + def unique_u32(): + def without_axis_sorted(): + # random X with random shape + x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + axis = None + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_without_axis_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::None(()), Option::None(()))", + name, + ) + + def without_axis_not_sorted(): + x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + axis = None + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + + unique_values, indices, inverse_indices = _unsort_outputs( + unique_values, indices, inverse_indices + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_without_axis_not_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::None(()), Option::Some(false))", + name, + ) + + def with_axis_zero_sorted(): + x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + axis = 0 + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_with_axis_zero_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::Some(0), Option::Some(true))", + name, + ) + + def with_axis_zero_not_sorted(): + x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + axis = 0 + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + unique_values, indices, inverse_indices = _unsort_outputs( + unique_values, indices, inverse_indices + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_with_axis_zero_not_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::Some(0), Option::Some(false))", + name, + ) + + def with_axis_one_sorted(): + x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + axis = 1 + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_with_axis_one_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::Some(1), Option::Some(true))", + name, + ) + + def with_axis_one_not_sorted(): + x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + axis = 1 + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + unique_values, indices, inverse_indices = _unsort_outputs( + unique_values, indices, inverse_indices + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_with_axis_one_not_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::Some(1), Option::Some(false))", + name, + ) + + without_axis_sorted() + without_axis_not_sorted() + with_axis_zero_sorted() + with_axis_zero_not_sorted() + with_axis_one_sorted() + with_axis_one_not_sorted() diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index a6de7bcbb..3bb4abecf 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -3597,25 +3597,74 @@ trait TensorTrait { /// * `axis`(`Option`) - Specifies the dimension along which to find unique subtensors. A None value means the unique /// elements of the tensor will be returned in a flattened form. A negative value indicates /// dimension counting from the end. - /// * `sorted`(`Option`) - Determines if the unique elements should be returned in ascending order. Defaults to true. + /// * `sorted`(`Option`) - Determines if the unique elements should be returned in ascending order. Defaults to true. /// /// ## Returns /// /// A tuple containing: /// * A Tensor with unique values or subtensors from self. - /// * A Tensor with the first occurrence indices of unique elements in self. If axis is given, it returns indices + /// * A Tensor with the first occurrence indices of unique elements in self. If axis is given, it returns indices /// along that axis; otherwise, it refers to the flattened tensor. - /// * A Tensor mapping each element of self to its index in the unique tensor. If axis is specified, it maps to + /// * A Tensor mapping each element of self to its index in the unique tensor. If axis is specified, it maps to /// the subtensor index; otherwise, it maps to the unique flattened tensor. - /// * A Tensor for the counts of each unique element or subtensor in self. + /// * A Tensor for the counts of each unique element or subtensor in self. /// - /// ## Panics /// - /// TODO + /// ## Example /// - /// ## Examples + /// ```rust + /// use array::{ArrayTrait, SpanTrait}; + /// + /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + /// + /// fn unique_flat_example() -> Tensor { + /// let tensor = TensorTrait::::new( + /// shape: array![1, 6].span(), + /// data: array![[2, 1, 1, 3, 4, 3]].span(), + /// ); + /// + /// return tensor.unique( + /// axis: Option::None(()) + /// sorted: Option::Some(false) + /// ); + /// } + /// >>> ( + /// [2, 1, 3, 4], + /// [0, 1, 3, 4], + /// [0, 1, 1, 2, 3, 2], + /// [1, 2, 2, 1] + /// ) + /// ``` /// - /// TODO + /// or + /// + /// ```rust + /// use array::{ArrayTrait, SpanTrait}; + /// + /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + /// + /// fn unique_axis_example() -> Tensor { + /// let tensor = TensorTrait::::new( + /// shape: array![3, 3].span(), + /// data: array![[ 1, 0, 0], + /// [ 1, 0, 0], + /// [ 2, 3, 4]].span(), + /// ); + /// + /// return tensor.unique( + /// axis: Option::Some(0) + /// sorted: Option::Some(true) + /// ); + /// } + /// >>> ( + /// [[ 1, 0, 0], + /// [ 2, 3, 4]], + /// [0, 2], + /// [0, 0, 1], + /// [2, 1] + /// ) + /// ``` + /// fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor); diff --git a/src/operators/tensor/implementations/tensor_bool.cairo b/src/operators/tensor/implementations/tensor_bool.cairo index d729b1e85..3eae489f1 100644 --- a/src/operators/tensor/implementations/tensor_bool.cairo +++ b/src/operators/tensor/implementations/tensor_bool.cairo @@ -315,7 +315,7 @@ impl BoolTensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - panic(array!['not implemented yet!']) + panic(array!['not supported!']) } } diff --git a/tests/nodes.cairo b/tests/nodes.cairo index 23f5c9731..4f0055dab 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -654,3 +654,9 @@ mod reduce_l1_i8_export_negative_axes_keepdims; mod reduce_l1_u32_export_do_not_keepdims; mod reduce_l1_u32_export_keepdims; mod reduce_l1_u32_export_negative_axes_keepdims; +mod unique_u32_without_axis_sorted; +mod unique_u32_without_axis_not_sorted; +mod unique_u32_with_axis_zero_sorted; +mod unique_u32_with_axis_zero_not_sorted; +mod unique_u32_with_axis_one_sorted; +mod unique_u32_with_axis_one_not_sorted; diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo new file mode 100644 index 000000000..f04b25960 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_with_axis_one_not_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} 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 new file mode 100644 index 000000000..ee1e9ad73 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(2); + data.append(5); + data.append(2); + data.append(4); + data.append(1); + data.append(3); + data.append(2); + data.append(1); + data.append(1); + data.append(4); + data.append(0); + data.append(3); + data.append(4); + data.append(2); + data.append(5); + data.append(2); + data.append(1); + data.append(1); + data.append(3); + data.append(3); + data.append(3); + data.append(1); + data.append(1); + data.append(4); + data.append(0); + data.append(1); + data.append(4); + 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 new file mode 100644 index 000000000..317425d57 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(2); + data.append(1); + data.append(1); + data.append(4); + data.append(0); + data.append(3); + data.append(4); + data.append(2); + data.append(5); + data.append(0); + data.append(1); + data.append(4); + data.append(3); + data.append(3); + data.append(3); + data.append(1); + data.append(1); + data.append(4); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(5); + data.append(2); + data.append(4); + data.append(1); + data.append(3); + 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 new file mode 100644 index 000000000..d887c1a39 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_1() -> 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: 2, sign: false }); + data.append(i32 { mag: 0, sign: false }); + 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 new file mode 100644 index 000000000..5d6ba0796 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 0, sign: false }); + data.append(i32 { mag: 1, sign: false }); + 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 new file mode 100644 index 000000000..b7d1c3edb --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + 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 new file mode 100644 index 000000000..b434f6060 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_with_axis_one_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(true)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} 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 new file mode 100644 index 000000000..a21766f4c --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(2); + data.append(1); + data.append(4); + data.append(3); + data.append(0); + data.append(5); + data.append(2); + data.append(4); + data.append(1); + data.append(3); + data.append(1); + data.append(5); + data.append(1); + data.append(0); + data.append(5); + data.append(0); + data.append(0); + data.append(3); + data.append(0); + data.append(0); + data.append(2); + data.append(0); + data.append(4); + data.append(3); + data.append(5); + data.append(3); + data.append(5); + 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 new file mode 100644 index 000000000..862b9f832 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(2); + data.append(1); + data.append(4); + data.append(2); + data.append(4); + data.append(1); + data.append(3); + data.append(0); + data.append(5); + data.append(3); + data.append(1); + data.append(5); + data.append(0); + data.append(0); + data.append(3); + data.append(1); + data.append(0); + data.append(5); + data.append(0); + data.append(0); + data.append(2); + data.append(5); + data.append(3); + data.append(5); + data.append(0); + data.append(4); + data.append(3); + 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 new file mode 100644 index 000000000..f9baf790f --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 2, sign: false }); + data.append(i32 { mag: 1, sign: false }); + 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 new file mode 100644 index 000000000..445598f4c --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 2, sign: false }); + data.append(i32 { mag: 1, sign: false }); + 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 new file mode 100644 index 000000000..b7d1c3edb --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + 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 new file mode 100644 index 000000000..0ea66156c --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_with_axis_zero_not_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(false)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} 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 new file mode 100644 index 000000000..5e3e7c360 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(5); + data.append(1); + data.append(5); + data.append(1); + data.append(5); + data.append(4); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(5); + data.append(4); + data.append(3); + data.append(5); + data.append(5); + data.append(1); + data.append(2); + data.append(2); + data.append(3); + data.append(5); + data.append(3); + data.append(3); + data.append(1); + data.append(2); + data.append(4); + data.append(3); + 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 new file mode 100644 index 000000000..eeb98c13e --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(5); + data.append(1); + data.append(5); + data.append(1); + data.append(5); + data.append(4); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(5); + data.append(4); + data.append(3); + data.append(5); + data.append(5); + data.append(1); + data.append(2); + data.append(2); + data.append(3); + data.append(5); + data.append(3); + data.append(3); + data.append(1); + data.append(2); + data.append(4); + data.append(3); + 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 new file mode 100644 index 000000000..a916b8329 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 0, sign: false }); + data.append(i32 { mag: 1, sign: false }); + 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 new file mode 100644 index 000000000..717938c32 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_2() -> 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: 2, sign: false }); + data.append(i32 { mag: 0, sign: false }); + 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 new file mode 100644 index 000000000..b7d1c3edb --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + 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 new file mode 100644 index 000000000..da3649976 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_with_axis_zero_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(true)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} 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 new file mode 100644 index 000000000..ae97a792c --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(0); + data.append(3); + data.append(0); + data.append(0); + data.append(1); + data.append(4); + data.append(1); + data.append(2); + data.append(5); + data.append(5); + data.append(1); + data.append(1); + data.append(2); + data.append(5); + data.append(1); + data.append(2); + data.append(4); + data.append(2); + data.append(1); + data.append(4); + data.append(0); + data.append(5); + data.append(3); + data.append(4); + data.append(0); + data.append(3); + data.append(4); + 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 new file mode 100644 index 000000000..449312425 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(0); + data.append(3); + data.append(0); + data.append(0); + data.append(1); + data.append(4); + data.append(1); + data.append(2); + data.append(5); + data.append(1); + data.append(4); + data.append(0); + data.append(5); + data.append(3); + data.append(4); + data.append(0); + data.append(3); + data.append(4); + data.append(5); + data.append(1); + data.append(1); + data.append(2); + data.append(5); + data.append(1); + data.append(2); + data.append(4); + data.append(2); + 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 new file mode 100644 index 000000000..f9baf790f --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 2, sign: false }); + data.append(i32 { mag: 1, sign: false }); + 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 new file mode 100644 index 000000000..445598f4c --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 2, sign: false }); + data.append(i32 { mag: 1, sign: false }); + 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 new file mode 100644 index 000000000..b7d1c3edb --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + 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 new file mode 100644 index 000000000..be4848f1f --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_not_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_without_axis_not_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(false)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} 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 new file mode 100644 index 000000000..7b4dc62b6 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(0); + data.append(1); + data.append(4); + data.append(2); + data.append(1); + data.append(3); + data.append(5); + data.append(4); + data.append(5); + data.append(0); + data.append(2); + data.append(3); + data.append(2); + data.append(3); + data.append(1); + data.append(3); + data.append(1); + data.append(3); + data.append(2); + data.append(0); + data.append(2); + data.append(5); + data.append(2); + data.append(0); + data.append(5); + data.append(3); + data.append(3); + 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 new file mode 100644 index 000000000..0361ef972 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo @@ -0,0 +1,38 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(27); + + let mut data = ArrayTrait::new(); + data.append(0); + data.append(1); + data.append(4); + data.append(2); + data.append(1); + data.append(3); + data.append(5); + data.append(4); + data.append(5); + data.append(0); + data.append(2); + data.append(3); + data.append(2); + data.append(3); + data.append(1); + data.append(3); + data.append(1); + data.append(3); + data.append(2); + data.append(0); + data.append(2); + data.append(5); + data.append(2); + data.append(0); + data.append(5); + data.append(3); + data.append(3); + 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 new file mode 100644 index 000000000..abbe425c6 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo @@ -0,0 +1,18 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_1() -> 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: 4, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 5, sign: false }); + 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 new file mode 100644 index 000000000..f43c53cd7 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo @@ -0,0 +1,39 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 3, 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: 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: 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: 3, sign: false }); + data.append(i32 { mag: 3, 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: 5, sign: false }); + data.append(i32 { mag: 5, sign: false }); + 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 new file mode 100644 index 000000000..170daa659 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo @@ -0,0 +1,18 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_3() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(6); + + let mut data = ArrayTrait::new(); + data.append(i32 { mag: 4, 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(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 4, sign: false }); + 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 new file mode 100644 index 000000000..dc5a64e50 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_without_axis_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(true)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} diff --git a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo new file mode 100644 index 000000000..5e6c9a90d --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -0,0 +1,40 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(3); + data.append(3); + data.append(0); + data.append(2); + data.append(4); + data.append(4); + data.append(5); + data.append(5); + data.append(3); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(2); + data.append(3); + data.append(5); + data.append(3); + data.append(5); + data.append(1); + data.append(2); + data.append(2); + data.append(4); + data.append(4); + data.append(5); + data.append(3); + data.append(4); + 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 new file mode 100644 index 000000000..6021a205f --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -0,0 +1,17 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(6); + + let mut data = ArrayTrait::new(); + 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/unique_u32_without_axis_sorted/output_1.cairo b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo new file mode 100644 index 000000000..15bdd52c0 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -0,0 +1,18 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_1() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(6); + + let mut data = ArrayTrait::new(); + 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: 1, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 7, sign: false }); + 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 new file mode 100644 index 000000000..b3676bf74 --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -0,0 +1,39 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_2() -> 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: 3, 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: 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: 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: 2, sign: false }); + data.append(i32 { mag: 3, 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: 1, sign: false }); + data.append(i32 { mag: 2, sign: false }); + 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: 5, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); + 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 new file mode 100644 index 000000000..5d6523e0a --- /dev/null +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -0,0 +1,18 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_3() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(6); + + 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: 7, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 6, sign: false }); + TensorTrait::new(shape.span(), data.span()) +} From f6196798edd2e9c8c1252f854d9ef333b76c6755 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 25 Nov 2023 17:09:21 +0100 Subject: [PATCH 04/30] feat(tensor_unique): fixed nodegen unsort --- nodegen/helpers.py | 10 ++--- nodegen/node/unique.py | 27 ++++++------ .../unique_u32_with_axis_one_not_sorted.cairo | 6 +-- .../input_0.cairo | 38 ++++++++--------- .../output_0.cairo | 40 +++++++++--------- .../output_1.cairo | 28 ++++++++++++- .../unique_u32_with_axis_one_sorted.cairo | 6 +-- .../input_0.cairo | 40 +++++++++--------- .../output_0.cairo | 40 +++++++++--------- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +-- .../input_0.cairo | 42 +++++++++---------- .../output_0.cairo | 42 +++++++++---------- .../output_1.cairo | 28 ++++++++++++- .../output_2.cairo | 2 +- .../unique_u32_with_axis_zero_sorted.cairo | 6 +-- .../input_0.cairo | 38 ++++++++--------- .../output_0.cairo | 36 ++++++++-------- .../unique_u32_without_axis_not_sorted.cairo | 6 +-- .../input_0.cairo | 32 +++++++------- .../output_0.cairo | 29 ++++--------- .../output_1.cairo | 10 ++++- .../output_2.cairo | 36 ++++++++-------- .../output_3.cairo | 16 ++++--- .../unique_u32_without_axis_sorted.cairo | 8 ++-- .../input_0.cairo | 38 ++++++++--------- .../output_0.cairo | 9 +++- .../output_1.cairo | 17 +++++--- .../output_2.cairo | 38 ++++++++--------- .../output_3.cairo | 17 +++++--- 31 files changed, 380 insertions(+), 315 deletions(-) diff --git a/nodegen/helpers.py b/nodegen/helpers.py index cc9cf7210..475592e7c 100644 --- a/nodegen/helpers.py +++ b/nodegen/helpers.py @@ -92,15 +92,15 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s output_data.dump() case tuple(): - for i, tensor in enumerate(output): + for i, out in enumerate(output): output_data = CairoData( os.path.join(name, f"output_{i}.cairo")) output_data.buffer = CairoData.base_template( func=f"output_{i}", - dtype=tensor.dtype.value, - refs=get_data_refs(tensor.dtype), - data=get_data_statement(tensor.data, tensor.dtype), - shape=tensor.shape, + dtype=out.dtype.value, + refs=get_data_refs(out.dtype), + data=get_data_statement(out.data, out.dtype), + shape=out.shape, ) output_data.dump() diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index 5dfaa489f..1ff4eb286 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -4,7 +4,7 @@ def _unsort_outputs( - x: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray + y: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray ) -> (np.ndarray, np.ndarray, np.ndarray): """Unsort the result of np.unique(). @@ -12,20 +12,19 @@ def _unsort_outputs( the output unique values). # https://github.com/numpy/numpy/issues/8621 """ - sorted_unique_values = x - unsorted_unique_values = sorted_unique_values[inverse_indices] - unsorted_indices = np.argsort(indices) - unsorted_inverse_indices = np.empty_like(inverse_indices) - unsorted_inverse_indices[unsorted_indices] = np.arange(len(indices)) - return unsorted_unique_values, unsorted_indices, unsorted_inverse_indices + original_positions = np.arange(y.size) + unsorted_positions = original_positions[np.argsort(indices)] + y_unsorted = y[unsorted_positions] + inverse_indices_unsorted = unsorted_positions[inverse_indices] + indices_unsorted = np.arange(y.size) + return y_unsorted, indices_unsorted, inverse_indices_unsorted class Unique(RunAll): @staticmethod def unique_u32(): def without_axis_sorted(): - # random X with random shape - x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) axis = None unique_values, indices, inverse_indices, counts = np.unique( @@ -51,7 +50,7 @@ def without_axis_sorted(): ) def without_axis_not_sorted(): - x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) axis = None unique_values, indices, inverse_indices, counts = np.unique( @@ -81,7 +80,7 @@ def without_axis_not_sorted(): ) def with_axis_zero_sorted(): - x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) axis = 0 unique_values, indices, inverse_indices, counts = np.unique( @@ -107,7 +106,7 @@ def with_axis_zero_sorted(): ) def with_axis_zero_not_sorted(): - x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) axis = 0 unique_values, indices, inverse_indices, counts = np.unique( @@ -136,7 +135,7 @@ def with_axis_zero_not_sorted(): ) def with_axis_one_sorted(): - x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) axis = 1 unique_values, indices, inverse_indices, counts = np.unique( @@ -162,7 +161,7 @@ def with_axis_one_sorted(): ) def with_axis_one_not_sorted(): - x = np.random.randint(0, 6, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) axis = 1 unique_values, indices, inverse_indices, counts = np.unique( 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 f04b25960..7e65c0f08 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::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; #[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 ee1e9ad73..d8ed38c7f 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(5); - data.append(2); - data.append(4); - data.append(1); - data.append(3); - data.append(2); - data.append(1); - data.append(1); - data.append(4); data.append(0); + data.append(14); data.append(3); - data.append(4); - data.append(2); + data.append(13); + data.append(7); + data.append(6); + data.append(0); + data.append(13); data.append(5); + data.append(6); data.append(2); + data.append(13); + data.append(14); + data.append(14); + data.append(14); + data.append(11); + data.append(5); + data.append(12); data.append(1); - data.append(1); - data.append(3); + data.append(7); + data.append(13); data.append(3); + data.append(7); + data.append(5); data.append(3); - data.append(1); - data.append(1); - data.append(4); data.append(0); - data.append(1); - data.append(4); + data.append(6); 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 317425d57..c65df2e3a 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(11); + data.append(5); + data.append(12); + data.append(6); data.append(2); - data.append(1); - data.append(1); - data.append(4); - data.append(0); + data.append(13); + data.append(14); + data.append(14); + data.append(14); data.append(3); - data.append(4); - data.append(2); - data.append(5); data.append(0); + data.append(6); data.append(1); - data.append(4); - data.append(3); - data.append(3); + data.append(7); + data.append(13); data.append(3); - data.append(1); - data.append(1); - data.append(4); - data.append(2); - data.append(1); - data.append(1); - data.append(2); + data.append(7); data.append(5); - data.append(2); - data.append(4); - data.append(1); + data.append(0); + data.append(13); + data.append(5); + data.append(0); + data.append(14); data.append(3); + data.append(13); + data.append(7); + data.append(6); 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 d887c1a39..fc08192df 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 @@ -5,11 +5,35 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); + 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: 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: 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 }); 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 b434f6060..364e9cd3b 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::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; #[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 a21766f4c..dfda0d18c 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); data.append(1); - data.append(4); + data.append(14); + data.append(9); data.append(3); - data.append(0); - data.append(5); - data.append(2); - data.append(4); - data.append(1); + data.append(13); data.append(3); - data.append(1); + data.append(11); + data.append(10); data.append(5); + data.append(13); + data.append(13); + data.append(14); data.append(1); - data.append(0); - data.append(5); - data.append(0); - data.append(0); + data.append(11); data.append(3); - data.append(0); - data.append(0); - data.append(2); - data.append(0); + data.append(14); + data.append(6); + data.append(12); + data.append(11); data.append(4); - data.append(3); - data.append(5); - data.append(3); - data.append(5); + data.append(14); + data.append(10); + data.append(14); + data.append(14); + data.append(1); + data.append(12); + 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 862b9f832..debf66eb3 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(1); - data.append(4); - data.append(2); - data.append(4); data.append(1); + data.append(14); + data.append(9); data.append(3); - data.append(0); - data.append(5); + data.append(13); data.append(3); - data.append(1); + data.append(11); + data.append(10); data.append(5); - data.append(0); - data.append(0); - data.append(3); + data.append(13); + data.append(13); + data.append(14); data.append(1); - data.append(0); - data.append(5); - data.append(0); - data.append(0); - data.append(2); - data.append(5); + data.append(11); data.append(3); - data.append(5); - data.append(0); + data.append(14); + data.append(6); + data.append(12); + data.append(11); data.append(4); - data.append(3); + data.append(14); + data.append(10); + data.append(14); + data.append(14); + data.append(1); + data.append(12); + 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 f9baf790f..e3a48b20a 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 @@ -9,7 +9,7 @@ fn output_1() -> Tensor { 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(i32 { mag: 2, sign: false }); 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 445598f4c..7d3ab361b 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 @@ -9,7 +9,7 @@ fn output_2() -> Tensor { 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(i32 { mag: 2, sign: false }); 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 0ea66156c..10c8de335 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::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; #[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 5e3e7c360..af74bc6ad 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(5); + data.append(6); data.append(1); - data.append(5); - data.append(1); - data.append(5); - data.append(4); - data.append(2); - data.append(2); - data.append(2); - data.append(2); - data.append(5); - data.append(4); + data.append(14); + data.append(10); + data.append(9); data.append(3); - data.append(5); - data.append(5); - data.append(1); + data.append(9); + data.append(0); + data.append(10); + data.append(4); + data.append(12); + data.append(12); data.append(2); + data.append(6); + data.append(10); + data.append(6); + data.append(11); + data.append(9); + data.append(10); + data.append(14); + data.append(12); data.append(2); + data.append(14); + data.append(13); data.append(3); - data.append(5); - data.append(3); - data.append(3); - data.append(1); - data.append(2); + data.append(7); data.append(4); - data.append(3); 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 eeb98c13e..b6b57dd79 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(5); + data.append(6); data.append(1); - data.append(5); - data.append(1); - data.append(5); - data.append(4); - data.append(2); - data.append(2); - data.append(2); - data.append(2); - data.append(5); - data.append(4); + data.append(14); + data.append(10); + data.append(9); data.append(3); - data.append(5); - data.append(5); - data.append(1); + data.append(9); + data.append(0); + data.append(10); + data.append(4); + data.append(12); + data.append(12); data.append(2); + data.append(6); + data.append(10); + data.append(6); + data.append(11); + data.append(9); + data.append(10); + data.append(14); + data.append(12); data.append(2); + data.append(14); + data.append(13); data.append(3); - data.append(5); - data.append(3); - data.append(3); - data.append(1); - data.append(2); + data.append(7); data.append(4); - data.append(3); 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 a916b8329..fc08192df 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 @@ -5,11 +5,35 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); + 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: 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 }); 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 717938c32..7d3ab361b 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 @@ -8,8 +8,8 @@ fn output_2() -> 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: 0, sign: false }); 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 da3649976..834772482 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::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; #[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 ae97a792c..9bf2bee01 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(3); - data.append(0); - data.append(0); - data.append(1); - data.append(4); + data.append(8); + data.append(11); data.append(1); + data.append(11); + data.append(6); + data.append(11); data.append(2); - data.append(5); - data.append(5); - data.append(1); + data.append(14); data.append(1); - data.append(2); - data.append(5); + data.append(14); data.append(1); + data.append(9); + data.append(11); + data.append(12); data.append(2); - data.append(4); - data.append(2); + data.append(3); + data.append(12); + data.append(10); + data.append(14); data.append(1); - data.append(4); - data.append(0); - data.append(5); + data.append(7); data.append(3); - data.append(4); - data.append(0); data.append(3); - data.append(4); + data.append(1); + data.append(5); + data.append(10); + data.append(14); 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 449312425..20ed7c200 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(3); - data.append(0); - data.append(0); - data.append(1); - data.append(4); + data.append(8); + data.append(11); data.append(1); + data.append(11); + data.append(6); + data.append(11); data.append(2); - data.append(5); + data.append(14); data.append(1); - data.append(4); - data.append(0); - data.append(5); + data.append(14); + data.append(1); + data.append(7); data.append(3); - data.append(4); - data.append(0); data.append(3); - data.append(4); - data.append(5); - data.append(1); data.append(1); - data.append(2); data.append(5); + data.append(10); + data.append(14); + data.append(14); data.append(1); + data.append(9); + data.append(11); + data.append(12); data.append(2); - data.append(4); - data.append(2); + data.append(3); + data.append(12); + data.append(10); 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 be4848f1f..460b97624 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::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; #[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 7b4dc62b6..7b7e75fe8 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); + data.append(8); data.append(1); data.append(4); - data.append(2); - data.append(1); + data.append(6); data.append(3); + data.append(11); + data.append(10); + data.append(0); + data.append(11); + data.append(10); + data.append(2); + data.append(9); data.append(5); - data.append(4); + data.append(11); data.append(5); + data.append(10); + data.append(14); + data.append(4); data.append(0); - data.append(2); - data.append(3); - data.append(2); - data.append(3); data.append(1); - data.append(3); + data.append(0); + data.append(2); data.append(1); data.append(3); - data.append(2); + data.append(6); data.append(0); data.append(2); - data.append(5); - data.append(2); - data.append(0); - data.append(5); - data.append(3); - data.append(3); 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 0361ef972..73a8b203a 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 @@ -4,35 +4,20 @@ use orion::operators::tensor::U32Tensor; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(27); + shape.append(12); let mut data = ArrayTrait::new(); - data.append(0); + data.append(8); data.append(1); data.append(4); - data.append(2); - data.append(1); + data.append(6); data.append(3); - data.append(5); - data.append(4); - data.append(5); - data.append(0); - data.append(2); - data.append(3); - data.append(2); - data.append(3); - data.append(1); - data.append(3); - data.append(1); - data.append(3); - data.append(2); + data.append(11); + data.append(10); data.append(0); data.append(2); + data.append(9); data.append(5); - data.append(2); - data.append(0); - data.append(5); - data.append(3); - data.append(3); + data.append(14); 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 abbe425c6..452715838 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 @@ -5,14 +5,20 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(6); + shape.append(12); let mut data = ArrayTrait::new(); 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: 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 }); 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 f43c53cd7..ff0c22153 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 @@ -11,29 +11,29 @@ fn output_2() -> Tensor { 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: 9, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 8, sign: false }); data.append(i32 { mag: 4, sign: false }); data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 10, sign: false }); data.append(i32 { mag: 5, 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: 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: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 11, sign: false }); data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 9, sign: false }); + data.append(i32 { mag: 7, 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: 5, sign: false }); 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 170daa659..3640c9ecd 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 @@ -5,14 +5,20 @@ use orion::numbers::{IntegerTrait, i32}; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(6); + shape.append(12); let mut data = ArrayTrait::new(); data.append(i32 { mag: 4, 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(i32 { mag: 3, 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: 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: 3, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 1, sign: false }); 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 dc5a64e50..7b07a83ac 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::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -22,7 +22,7 @@ fn test_unique_u32_without_axis_sorted() { let z_2 = output_2::output_2(); let z_3 = output_3::output_3(); - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(true)); + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::None(())); assert_eq(y_0, z_0); assert_eq(y_1, z_1); 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 5e6c9a90d..e324e478f 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(3); - data.append(3); - data.append(0); - data.append(2); - data.append(4); data.append(4); - data.append(5); - data.append(5); - data.append(3); - data.append(4); - data.append(5); + data.append(6); + data.append(9); data.append(4); - data.append(3); + data.append(7); + data.append(7); + data.append(10); + data.append(6); + data.append(9); + data.append(6); + data.append(7); + data.append(2); + data.append(11); data.append(2); - data.append(3); data.append(5); data.append(3); + data.append(6); + data.append(0); + data.append(8); data.append(5); - data.append(1); - data.append(2); + data.append(11); data.append(2); - data.append(4); - data.append(4); - data.append(5); + data.append(6); + data.append(10); data.append(3); - data.append(4); + data.append(14); + data.append(1); 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 6021a205f..2beb3af27 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -4,7 +4,7 @@ use orion::operators::tensor::U32Tensor; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(6); + shape.append(13); let mut data = ArrayTrait::new(); data.append(0); @@ -13,5 +13,12 @@ fn output_0() -> Tensor { 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(14); TensorTrait::new(shape.span(), data.span()) } 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 15bdd52c0..086bcf996 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -5,14 +5,21 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(6); + shape.append(13); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 17, sign: false }); + data.append(i32 { mag: 26, sign: false }); + data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 15, sign: false }); data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 14, sign: false }); data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 18, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 12, sign: false }); + data.append(i32 { mag: 25, sign: false }); 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 b3676bf74..fb347902c 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -8,32 +8,32 @@ fn output_2() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - 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: 2, 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: 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: 9, sign: false }); data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 9, 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: 11, 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: 3, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 0, sign: false }); + data.append(i32 { mag: 8, 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: 11, sign: false }); 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: 5, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 10, sign: false }); data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 12, sign: false }); + data.append(i32 { mag: 1, sign: false }); 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 5d6523e0a..189476d89 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -5,14 +5,21 @@ use orion::numbers::{IntegerTrait, i32}; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(6); + shape.append(13); let mut data = ArrayTrait::new(); 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: 2, 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: 3, 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: 4, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 1, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 2643fe482c1fa926a5686b31d455f233a7c97795 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 25 Nov 2023 17:41:54 +0100 Subject: [PATCH 05/30] feat(tensor_unique): nodegen: inverted counts --- nodegen/node/unique.py | 19 ++++----- src/operators/tensor/core.cairo | 17 +++++--- .../unique_u32_with_axis_one_not_sorted.cairo | 6 +-- .../input_0.cairo | 34 ++++++++-------- .../output_0.cairo | 36 ++++++++--------- .../unique_u32_with_axis_one_sorted.cairo | 6 +-- .../input_0.cairo | 32 +++++++-------- .../output_0.cairo | 32 +++++++-------- .../output_1.cairo | 4 +- .../output_2.cairo | 4 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +-- .../input_0.cairo | 34 ++++++++-------- .../output_0.cairo | 34 ++++++++-------- .../unique_u32_with_axis_zero_sorted.cairo | 6 +-- .../input_0.cairo | 38 +++++++++--------- .../output_0.cairo | 40 +++++++++---------- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- .../unique_u32_without_axis_not_sorted.cairo | 6 +-- .../input_0.cairo | 34 ++++++++-------- .../output_0.cairo | 18 +++++---- .../output_1.cairo | 4 +- .../output_2.cairo | 34 ++++++++-------- .../output_3.cairo | 12 +++--- .../unique_u32_without_axis_sorted.cairo | 6 +-- .../input_0.cairo | 34 ++++++++-------- .../output_0.cairo | 5 +-- .../output_1.cairo | 19 +++++---- .../output_2.cairo | 34 ++++++++-------- .../output_3.cairo | 17 ++++---- 30 files changed, 292 insertions(+), 283 deletions(-) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index 1ff4eb286..8801b857c 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -4,8 +4,8 @@ def _unsort_outputs( - y: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray -) -> (np.ndarray, np.ndarray, np.ndarray): + y: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray, counts: np.ndarray +) -> (np.ndarray, np.ndarray, np.ndarray, np.ndarray): """Unsort the result of np.unique(). This is done because numpy unique does not retain original order (it sorts @@ -17,7 +17,8 @@ def _unsort_outputs( y_unsorted = y[unsorted_positions] inverse_indices_unsorted = unsorted_positions[inverse_indices] indices_unsorted = np.arange(y.size) - return y_unsorted, indices_unsorted, inverse_indices_unsorted + counts_unsorted = counts[unsorted_positions] + return y_unsorted, indices_unsorted, inverse_indices_unsorted, counts_unsorted class Unique(RunAll): @@ -57,8 +58,8 @@ def without_axis_not_sorted(): x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices = _unsort_outputs( - unique_values, indices, inverse_indices + unique_values, indices, inverse_indices, counts = _unsort_outputs( + unique_values, indices, inverse_indices, counts ) x = Tensor(Dtype.U32, x.shape, x.flatten()) @@ -112,8 +113,8 @@ def with_axis_zero_not_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices = _unsort_outputs( - unique_values, indices, inverse_indices + unique_values, indices, inverse_indices, counts = _unsort_outputs( + unique_values, indices, inverse_indices, counts ) x = Tensor(Dtype.U32, x.shape, x.flatten()) @@ -167,8 +168,8 @@ def with_axis_one_not_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices = _unsort_outputs( - unique_values, indices, inverse_indices + unique_values, indices, inverse_indices, counts = _unsort_outputs( + unique_values, indices, inverse_indices, counts ) x = Tensor(Dtype.U32, x.shape, x.flatten()) diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index 3bb4abecf..6f873d7bd 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -4298,14 +4298,19 @@ fn unique< } // 5. Convert arrays to tensors + let mut unique_elements_shape: Array = array![]; + if axis.is_none() { + unique_elements_shape.append(unique_elements.len()); + } else { + assert(1 == 0, 'not implemented yet'); + } + let unique_elements = Tensor::< T - > { shape: array![unique_elements.len(), 1].span(), data: unique_elements.span() }; - let indices = Tensor:: { shape: array![indices.len(), 1].span(), data: indices.span() }; - let inverse_indices = Tensor::< - i32 - > { shape: array![inverse_indices.len(), 1].span(), data: inverse_indices.span() }; - let count = Tensor:: { shape: array![count.len(), 1].span(), data: count.span() }; + > { shape: unique_elements_shape.span(), data: unique_elements.span() }; + let indices: Tensor = TensorTrait::new(shape: array![indices.len()].span(), data: indices.span()); + let inverse_indices: Tensor = TensorTrait::new(shape: array![inverse_indices.len()].span(), data: inverse_indices.span()); + let count: Tensor = TensorTrait::new(shape: array![count.len()].span(), data: count.span()); // 6. Return the outputs as tensors (unique_elements, indices, inverse_indices, count) 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 7e65c0f08..86c5b34b7 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::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; #[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 d8ed38c7f..adc3f7f6b 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(14); - data.append(3); + data.append(10); + data.append(8); + data.append(1); data.append(13); - data.append(7); - data.append(6); - data.append(0); data.append(13); + data.append(4); data.append(5); - data.append(6); - data.append(2); + data.append(1); data.append(13); data.append(14); - data.append(14); - data.append(14); - data.append(11); - data.append(5); + data.append(0); data.append(12); - data.append(1); - data.append(7); + data.append(13); + data.append(8); + data.append(10); data.append(13); data.append(3); + data.append(1); data.append(7); + data.append(13); data.append(5); - data.append(3); - data.append(0); - data.append(6); + data.append(12); + data.append(4); + data.append(5); + data.append(14); + data.append(2); + data.append(14); 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 c65df2e3a..57e9aaf66 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(11); - data.append(5); - data.append(12); - data.append(6); - data.append(2); data.append(13); + data.append(3); + data.append(1); data.append(14); + data.append(0); + data.append(12); + data.append(13); + data.append(8); + data.append(10); data.append(14); + data.append(2); data.append(14); - data.append(3); - data.append(0); - data.append(6); - data.append(1); data.append(7); data.append(13); - data.append(3); - data.append(7); data.append(5); - data.append(0); - data.append(13); + data.append(12); + data.append(4); data.append(5); - data.append(0); - data.append(14); - data.append(3); + data.append(5); + data.append(1); data.append(13); - data.append(7); - data.append(6); + data.append(10); + data.append(8); + data.append(1); + data.append(13); + data.append(13); + data.append(4); 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 364e9cd3b..5ec8d7697 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::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; #[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 dfda0d18c..81983dcc3 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); + data.append(7); data.append(14); - data.append(9); + data.append(5); data.append(3); - data.append(13); data.append(3); - data.append(11); - data.append(10); + data.append(2); + data.append(1); + data.append(3); data.append(5); - data.append(13); - data.append(13); - data.append(14); + data.append(4); + data.append(4); data.append(1); + data.append(12); data.append(11); - data.append(3); - data.append(14); data.append(6); data.append(12); - data.append(11); + data.append(5); data.append(4); - data.append(14); - data.append(10); - data.append(14); - data.append(14); - data.append(1); data.append(12); data.append(1); + data.append(13); + data.append(0); + data.append(6); + data.append(10); + data.append(1); + data.append(10); + data.append(13); 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 debf66eb3..944f3e10a 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 @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(14); - data.append(9); - data.append(3); - data.append(13); data.append(3); - data.append(11); - data.append(10); data.append(5); - data.append(13); - data.append(13); - data.append(14); - data.append(1); - data.append(11); data.append(3); + data.append(3); + data.append(2); + data.append(7); data.append(14); - data.append(6); + data.append(5); + data.append(12); + data.append(5); + data.append(4); data.append(12); data.append(11); + data.append(6); data.append(4); - data.append(14); - data.append(10); - data.append(14); - data.append(14); + data.append(4); + data.append(1); data.append(1); + data.append(10); + data.append(13); + data.append(0); + data.append(6); + data.append(10); data.append(12); data.append(1); + data.append(13); 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 e3a48b20a..7937e0b00 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 @@ -8,8 +8,8 @@ fn output_1() -> 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: 1, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 7d3ab361b..1939e2b93 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 @@ -8,8 +8,8 @@ fn output_2() -> 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: 1, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 10c8de335..831bd4f91 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::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; #[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 af74bc6ad..b53c50ad5 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); + data.append(11); + data.append(4); data.append(6); - data.append(1); - data.append(14); + data.append(11); + data.append(7); data.append(10); data.append(9); + data.append(7); + data.append(4); + data.append(4); data.append(3); data.append(9); - data.append(0); - data.append(10); data.append(4); - data.append(12); - data.append(12); - data.append(2); - data.append(6); - data.append(10); - data.append(6); - data.append(11); + data.append(0); data.append(9); - data.append(10); - data.append(14); - data.append(12); + data.append(6); data.append(2); - data.append(14); - data.append(13); - data.append(3); data.append(7); + data.append(8); + data.append(1); data.append(4); + data.append(3); + data.append(11); + data.append(12); + data.append(12); + data.append(3); 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 b6b57dd79..47e799d67 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); + data.append(11); + data.append(4); data.append(6); - data.append(1); - data.append(14); + data.append(11); + data.append(7); data.append(10); data.append(9); + data.append(7); + data.append(4); + data.append(4); data.append(3); data.append(9); - data.append(0); - data.append(10); data.append(4); - data.append(12); - data.append(12); - data.append(2); - data.append(6); - data.append(10); - data.append(6); - data.append(11); + data.append(0); data.append(9); - data.append(10); - data.append(14); - data.append(12); + data.append(6); data.append(2); - data.append(14); - data.append(13); - data.append(3); data.append(7); + data.append(8); + data.append(1); data.append(4); + data.append(3); + data.append(11); + data.append(12); + data.append(12); + data.append(3); 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 834772482..9bbff31d4 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::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; #[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 9bf2bee01..9a117a748 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(8); - data.append(11); - data.append(1); - data.append(11); - data.append(6); data.append(11); - data.append(2); - data.append(14); - data.append(1); - data.append(14); - data.append(1); + data.append(3); + data.append(3); + data.append(8); + data.append(8); data.append(9); + data.append(7); + data.append(4); + data.append(6); data.append(11); + data.append(0); + data.append(6); + data.append(0); + data.append(6); + data.append(6); data.append(12); + data.append(6); + data.append(13); + data.append(4); data.append(2); data.append(3); - data.append(12); - data.append(10); - data.append(14); - data.append(1); - data.append(7); - data.append(3); - data.append(3); - data.append(1); + data.append(0); + data.append(6); data.append(5); data.append(10); - data.append(14); + data.append(3); + data.append(11); 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 20ed7c200..63dfc6f2b 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(8); - data.append(11); - data.append(1); - data.append(11); - data.append(6); - data.append(11); + data.append(4); data.append(2); - data.append(14); - data.append(1); - data.append(14); - data.append(1); - data.append(7); - data.append(3); data.append(3); - data.append(1); + data.append(0); + data.append(6); data.append(5); data.append(10); - data.append(14); - data.append(14); - data.append(1); - data.append(9); + data.append(3); data.append(11); + data.append(11); + data.append(0); + data.append(6); + data.append(0); + data.append(6); + data.append(6); data.append(12); - data.append(2); + data.append(6); + data.append(13); + data.append(11); data.append(3); - data.append(12); - data.append(10); + data.append(3); + data.append(8); + data.append(8); + data.append(9); + data.append(7); + data.append(4); + data.append(6); 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 f9baf790f..7937e0b00 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 @@ -8,8 +8,8 @@ fn output_1() -> Tensor { 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: 1, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 445598f4c..1939e2b93 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 @@ -8,8 +8,8 @@ fn output_2() -> Tensor { 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: 1, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 460b97624..f983e6020 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::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; #[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 7b7e75fe8..50ecae651 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(8); + data.append(14); data.append(1); - data.append(4); - data.append(6); data.append(3); + data.append(12); + data.append(12); data.append(11); - data.append(10); - data.append(0); + data.append(5); data.append(11); - data.append(10); + data.append(14); + data.append(7); + data.append(2); data.append(2); data.append(9); - data.append(5); - data.append(11); - data.append(5); - data.append(10); + data.append(9); + data.append(4); data.append(14); + data.append(8); + data.append(2); + data.append(10); + data.append(4); data.append(4); data.append(0); - data.append(1); data.append(0); - data.append(2); - data.append(1); - data.append(3); - data.append(6); - data.append(0); - data.append(2); + data.append(7); + data.append(5); + data.append(13); + data.append(10); 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 73a8b203a..b91108379 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 @@ -4,20 +4,22 @@ use orion::operators::tensor::U32Tensor; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(12); + shape.append(14); let mut data = ArrayTrait::new(); - data.append(8); + data.append(14); data.append(1); - data.append(4); - data.append(6); data.append(3); + data.append(12); data.append(11); - data.append(10); - data.append(0); + data.append(5); + data.append(7); data.append(2); data.append(9); - data.append(5); - data.append(14); + data.append(4); + data.append(8); + data.append(10); + data.append(0); + data.append(13); 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 452715838..b0adda17b 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 @@ -5,7 +5,7 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(12); + shape.append(14); let mut data = ArrayTrait::new(); data.append(i32 { mag: 0, sign: false }); @@ -20,5 +20,7 @@ fn output_1() -> Tensor { 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 }); 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 ff0c22153..1be08b3a7 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 @@ -8,32 +8,32 @@ fn output_2() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(i32 { mag: 12, sign: false }); data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 9, sign: false }); data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 8, sign: false }); data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 12, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 3, sign: false }); data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 10, sign: false }); data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 12, sign: false }); + data.append(i32 { mag: 2, sign: false }); data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 13, sign: false }); + data.append(i32 { mag: 13, sign: false }); data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 0, sign: false }); data.append(i32 { mag: 4, sign: false }); 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 3640c9ecd..55a6e1077 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 @@ -5,20 +5,22 @@ use orion::numbers::{IntegerTrait, i32}; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(12); + shape.append(14); let mut data = ArrayTrait::new(); - 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: 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: 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: 2, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 1, sign: false }); 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 7b07a83ac..217b5dfdb 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::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; #[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 e324e478f..e8e123767 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(3); + data.append(12); + data.append(7); + data.append(0); data.append(4); - data.append(6); - data.append(9); - data.append(4); data.append(7); + data.append(14); + data.append(7); + data.append(1); data.append(7); - data.append(10); data.append(6); + data.append(1); + data.append(1); + data.append(0); data.append(9); - data.append(6); data.append(7); data.append(2); - data.append(11); - data.append(2); - data.append(5); data.append(3); - data.append(6); data.append(0); - data.append(8); - data.append(5); - data.append(11); - data.append(2); - data.append(6); + data.append(12); + data.append(12); + data.append(7); data.append(10); - data.append(3); - data.append(14); - data.append(1); + data.append(7); + data.append(7); + data.append(2); + data.append(11); 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 2beb3af27..ad14b6ecd 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -4,7 +4,7 @@ use orion::operators::tensor::U32Tensor; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(13); + shape.append(12); let mut data = ArrayTrait::new(); data.append(0); @@ -12,13 +12,12 @@ fn output_0() -> Tensor { 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(14); TensorTrait::new(shape.span(), data.span()) } 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 086bcf996..78aadbab8 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -5,21 +5,20 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(13); + shape.append(12); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 15, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 16, sign: false }); data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 1, sign: false }); data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 18, sign: false }); + data.append(i32 { mag: 10, sign: false }); data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 14, sign: false }); + data.append(i32 { mag: 22, sign: false }); + data.append(i32 { mag: 26, sign: false }); + data.append(i32 { mag: 1, sign: false }); data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 25, sign: false }); 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 fb347902c..0e9043501 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -8,32 +8,32 @@ fn output_2() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 10, 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: 4, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 10, sign: false }); data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 9, sign: false }); + data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 1, sign: false }); data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 5, 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: 7, sign: false }); + data.append(i32 { mag: 6, sign: false }); data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 11, 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: 6, sign: false }); data.append(i32 { mag: 0, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 6, sign: false }); data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 2, sign: false }); data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 9, sign: false }); 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 189476d89..fab5365db 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -5,21 +5,20 @@ use orion::numbers::{IntegerTrait, i32}; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(13); + shape.append(12); let mut data = ArrayTrait::new(); - 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: 2, 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: 3, 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: 8, 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: 3, sign: false }); + data.append(i32 { mag: 1, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 84059b012aeb9c8280de8f9ef815a6e5bb9a00e1 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 25 Nov 2023 22:54:49 +0100 Subject: [PATCH 06/30] feat(tensor_unique): test passing --- nodegen/node/unique.py | 46 +++++++------ src/operators/tensor/core.cairo | 65 +++++++++++-------- .../unique_u32_with_axis_one_not_sorted.cairo | 6 +- .../input_0.cairo | 40 ++++++------ .../output_0.cairo | 38 +++++------ .../output_1.cairo | 26 +------- .../output_2.cairo | 2 +- .../unique_u32_with_axis_one_sorted.cairo | 6 +- .../input_0.cairo | 38 +++++------ .../output_0.cairo | 38 +++++------ .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +- .../input_0.cairo | 36 +++++----- .../output_0.cairo | 36 +++++----- .../output_1.cairo | 26 +------- .../unique_u32_with_axis_zero_sorted.cairo | 6 +- .../input_0.cairo | 36 +++++----- .../output_0.cairo | 38 +++++------ .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- .../unique_u32_without_axis_not_sorted.cairo | 6 +- .../input_0.cairo | 40 ++++++------ .../output_0.cairo | 17 ++--- .../output_1.cairo | 11 +--- .../output_2.cairo | 40 ++++++------ .../output_3.cairo | 21 ++---- .../unique_u32_without_axis_sorted.cairo | 6 +- .../input_0.cairo | 38 +++++------ .../output_0.cairo | 9 +-- .../output_1.cairo | 13 +--- .../output_2.cairo | 38 +++++------ .../output_3.cairo | 15 ++--- 33 files changed, 338 insertions(+), 413 deletions(-) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index 8801b857c..ccd24f97b 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -1,35 +1,43 @@ import numpy as np from nodegen.node import RunAll from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl, Trait +from typing import Optional def _unsort_outputs( - y: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray, counts: np.ndarray + x: np.ndarray, axis: Optional[int], unique_values: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray, counts: np.ndarray ) -> (np.ndarray, np.ndarray, np.ndarray, np.ndarray): """Unsort the result of np.unique(). This is done because numpy unique does not retain original order (it sorts the output unique values). - # https://github.com/numpy/numpy/issues/8621 + (see: https://github.com/numpy/numpy/issues/8621) + + Code taken from onnx: + https://github.com/onnx/onnx/blob/main/onnx/backend/test/case/node/unique.py """ - original_positions = np.arange(y.size) - unsorted_positions = original_positions[np.argsort(indices)] - y_unsorted = y[unsorted_positions] - inverse_indices_unsorted = unsorted_positions[inverse_indices] - indices_unsorted = np.arange(y.size) - counts_unsorted = counts[unsorted_positions] - return y_unsorted, indices_unsorted, inverse_indices_unsorted, counts_unsorted + argsorted_indices = np.argsort(indices) + inverse_indices_map = dict( + zip(argsorted_indices, np.arange(len(argsorted_indices))) + ) + indices = indices[argsorted_indices] + unique_values = np.take(x, indices, axis=axis) + inverse_indices = np.asarray( + [inverse_indices_map[i] for i in inverse_indices], dtype=np.int32 + ) + counts = counts[argsorted_indices] + return (unique_values, indices, inverse_indices, counts) class Unique(RunAll): @staticmethod def unique_u32(): def without_axis_sorted(): - x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) axis = None unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True + x, return_index=True, return_inverse=True, return_counts=True ) x = Tensor(Dtype.U32, x.shape, x.flatten()) @@ -51,7 +59,7 @@ def without_axis_sorted(): ) def without_axis_not_sorted(): - x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) axis = None unique_values, indices, inverse_indices, counts = np.unique( @@ -59,7 +67,7 @@ def without_axis_not_sorted(): ) unique_values, indices, inverse_indices, counts = _unsort_outputs( - unique_values, indices, inverse_indices, counts + x, axis, unique_values, indices, inverse_indices, counts ) x = Tensor(Dtype.U32, x.shape, x.flatten()) @@ -81,7 +89,7 @@ def without_axis_not_sorted(): ) def with_axis_zero_sorted(): - x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) axis = 0 unique_values, indices, inverse_indices, counts = np.unique( @@ -107,14 +115,14 @@ def with_axis_zero_sorted(): ) def with_axis_zero_not_sorted(): - x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) axis = 0 unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) unique_values, indices, inverse_indices, counts = _unsort_outputs( - unique_values, indices, inverse_indices, counts + x, axis, unique_values, indices, inverse_indices, counts ) x = Tensor(Dtype.U32, x.shape, x.flatten()) @@ -136,7 +144,7 @@ def with_axis_zero_not_sorted(): ) def with_axis_one_sorted(): - x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) axis = 1 unique_values, indices, inverse_indices, counts = np.unique( @@ -162,14 +170,14 @@ def with_axis_one_sorted(): ) def with_axis_one_not_sorted(): - x = np.random.randint(0, 15, (3, 3, 3)).astype(np.uint32) + x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) axis = 1 unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) unique_values, indices, inverse_indices, counts = _unsort_outputs( - unique_values, indices, inverse_indices, counts + x, axis, unique_values, indices, inverse_indices, counts ) x = Tensor(Dtype.U32, x.shape, x.flatten()) diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index 6f873d7bd..a36ca6d25 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -2,7 +2,7 @@ use array::{ArrayTrait, SpanTrait}; use serde::Serde; use option::OptionTrait; -use alexandria_data_structures::array_ext::{ArrayTraitExt, SpanTraitExt}; +use alexandria_data_structures::array_ext::{SpanTraitExt}; use alexandria_sorting::merge_sort::merge; use orion::operators::tensor::helpers::{len_from_shape, check_shape}; @@ -4249,53 +4249,64 @@ fn unique< // 1. Initiatialize the outputs as Arrays let mut unique_elements: Array = ArrayTrait::new(); - let mut indices: Array = ArrayTrait::new(); - let mut inverse_indices: Array = ArrayTrait::new(); // 2. Compute unique elements for axis let mut data_cpy = *self.data; match axis { - Option::Some(axis) => { assert(1 == 0, 'not implemented yet'); }, + Option::Some(axis) => { + let shape_cpy = *self.shape; + let rank = shape_cpy.len(); + assert(axis <= rank, 'axis out of dimensions'); + + let axis_len: usize = *shape_cpy.at(axis); + assert(1 == 0, 'not implemented yet'); + }, Option::None => { - let mut idx: usize = 0; loop { match data_cpy.pop_front() { Option::Some(value) => { - match unique_elements.index_of(*value) { - Option::Some(found_idx) => { - inverse_indices.append(found_idx.into()); - }, - Option::None => { - unique_elements.append(*value); - indices.append(idx.into()); - inverse_indices.append(idx.into()); - } + if !unique_elements.span().contains(*value) { + unique_elements.append(*value); } }, Option::None => { break; } } - idx += 1; }; } } - // 3. Count the occurences of each unique elements in self + // 3. Sort the unique elements if necessary + if (sorted) { + unique_elements = merge(unique_elements); + } + + // 4. Build occurences, indices & inverse_indices arrays + let mut indices: Array = ArrayTrait::new(); + let mut inverse_indices: Array = ArrayTrait::new(); let mut count: Array = ArrayTrait::new(); let mut unique_elements_cpy = unique_elements.span(); loop { match unique_elements_cpy.pop_front() { - Option::Some(element) => { - let occurences = (*self.data).occurrences_of(*element); + Option::Some(value) => { + let occurences = (*self.data).occurrences_of(*value); count.append(occurences.into()); + let idx_in_data = (*self.data).index_of(*value).unwrap(); + indices.append(idx_in_data.into()); + }, + Option::None => { break; } + } + }; + let mut data_cpy = *self.data; + let mut unique_elements_cpy = unique_elements.span(); + loop { + match data_cpy.pop_front() { + Option::Some(value) => { + let idx_in_uniques = unique_elements_cpy.index_of(*value).unwrap(); + inverse_indices.append(idx_in_uniques.into()); }, Option::None => { break; } } }; - - // 4. Sort the unique elements if necessary - if (sorted) { - unique_elements = merge(unique_elements); - } // 5. Convert arrays to tensors let mut unique_elements_shape: Array = array![]; @@ -4308,9 +4319,11 @@ fn unique< let unique_elements = Tensor::< T > { shape: unique_elements_shape.span(), data: unique_elements.span() }; - let indices: Tensor = TensorTrait::new(shape: array![indices.len()].span(), data: indices.span()); - let inverse_indices: Tensor = TensorTrait::new(shape: array![inverse_indices.len()].span(), data: inverse_indices.span()); - let count: Tensor = TensorTrait::new(shape: array![count.len()].span(), data: count.span()); + let indices = Tensor:: { shape: array![indices.len()].span(), data: indices.span() }; + let inverse_indices = Tensor::< + i32 + > { shape: array![inverse_indices.len()].span(), data: inverse_indices.span() }; + let count = Tensor:: { shape: array![count.len()].span(), data: count.span() }; // 6. Return the outputs as tensors (unique_elements, indices, inverse_indices, count) 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 86c5b34b7..f22b8970b 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo @@ -5,12 +5,12 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 adc3f7f6b..03cbb6661 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(10); - data.append(8); + data.append(2); + data.append(3); data.append(1); - data.append(13); - data.append(13); + data.append(0); + data.append(0); data.append(4); - data.append(5); - data.append(1); - data.append(13); - data.append(14); data.append(0); - data.append(12); - data.append(13); - data.append(8); - data.append(10); - data.append(13); + data.append(2); + data.append(4); + data.append(1); data.append(3); + data.append(4); + data.append(4); data.append(1); - data.append(7); - data.append(13); - data.append(5); - data.append(12); + data.append(2); + data.append(0); + data.append(0); + data.append(3); + data.append(3); + data.append(0); + data.append(2); data.append(4); - data.append(5); - data.append(14); data.append(2); - data.append(14); + data.append(0); + data.append(3); + data.append(4); + 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 57e9aaf66..57a69f601 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(13); + data.append(2); data.append(3); data.append(1); - data.append(14); data.append(0); - data.append(12); - data.append(13); - data.append(8); - data.append(10); - data.append(14); + data.append(0); + data.append(4); + data.append(0); data.append(2); - data.append(14); - data.append(7); - data.append(13); - data.append(5); - data.append(12); data.append(4); - data.append(5); - data.append(5); data.append(1); - data.append(13); - data.append(10); - data.append(8); + data.append(3); + data.append(4); + data.append(4); data.append(1); - data.append(13); - data.append(13); + data.append(2); + data.append(0); + data.append(0); + data.append(3); + data.append(3); + data.append(0); + data.append(2); data.append(4); + data.append(2); + data.append(0); + data.append(3); + data.append(4); + 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 fc08192df..e3a48b20a 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 @@ -5,35 +5,11 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(27); + 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 }); 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 5d6ba0796..7d3ab361b 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 @@ -8,8 +8,8 @@ fn output_2() -> 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: 2, sign: false }); 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 5ec8d7697..ec8088130 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted.cairo @@ -5,12 +5,12 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 81983dcc3..7d08bcfb4 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(7); - data.append(14); - data.append(5); - data.append(3); - data.append(3); - data.append(2); + data.append(0); data.append(1); - data.append(3); - data.append(5); + data.append(4); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(0); data.append(4); data.append(4); data.append(1); - data.append(12); - data.append(11); - data.append(6); - data.append(12); - data.append(5); data.append(4); - data.append(12); data.append(1); - data.append(13); + data.append(1); + data.append(4); data.append(0); - data.append(6); - data.append(10); + data.append(3); + data.append(1); + data.append(3); data.append(1); - data.append(10); - data.append(13); + data.append(3); + data.append(0); + data.append(3); + data.append(3); + data.append(1); + data.append(3); + data.append(0); 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 944f3e10a..c7f495dc2 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); data.append(1); - data.append(3); - data.append(5); - data.append(3); - data.append(3); + data.append(4); data.append(2); - data.append(7); - data.append(14); - data.append(5); - data.append(12); - data.append(5); + data.append(0); data.append(4); - data.append(12); - data.append(11); - data.append(6); + data.append(2); + data.append(2); + data.append(2); data.append(4); + data.append(1); data.append(4); + data.append(0); + data.append(3); data.append(1); data.append(1); - data.append(10); - data.append(13); - data.append(0); - data.append(6); - data.append(10); - data.append(12); data.append(1); - data.append(13); + data.append(4); + data.append(3); + data.append(1); + data.append(3); + data.append(1); + data.append(3); + data.append(0); + data.append(0); + data.append(3); + data.append(3); 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 7937e0b00..f9baf790f 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 @@ -8,8 +8,8 @@ fn output_1() -> Tensor { 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: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); 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 1939e2b93..445598f4c 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 @@ -8,8 +8,8 @@ fn output_2() -> Tensor { 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: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); 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 831bd4f91..69b0c5ae2 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo @@ -5,12 +5,12 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 b53c50ad5..b60dd17fc 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(11); + data.append(3); data.append(4); - data.append(6); - data.append(11); - data.append(7); - data.append(10); - data.append(9); - data.append(7); + data.append(3); data.append(4); + data.append(1); + data.append(3); + data.append(1); + data.append(1); + data.append(0); + data.append(3); + data.append(0); + data.append(2); + data.append(2); + data.append(4); + data.append(0); data.append(4); + data.append(1); data.append(3); - data.append(9); + data.append(0); data.append(4); data.append(0); - data.append(9); - data.append(6); data.append(2); - data.append(7); - data.append(8); + data.append(1); data.append(1); data.append(4); - data.append(3); - data.append(11); - data.append(12); - data.append(12); - data.append(3); + 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_0.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo index 47e799d67..7ff0c5436 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(11); + data.append(3); data.append(4); - data.append(6); - data.append(11); - data.append(7); - data.append(10); - data.append(9); - data.append(7); + data.append(3); data.append(4); + data.append(1); + data.append(3); + data.append(1); + data.append(1); + data.append(0); + data.append(3); + data.append(0); + data.append(2); + data.append(2); + data.append(4); + data.append(0); data.append(4); + data.append(1); data.append(3); - data.append(9); + data.append(0); data.append(4); data.append(0); - data.append(9); - data.append(6); data.append(2); - data.append(7); - data.append(8); + data.append(1); data.append(1); data.append(4); - data.append(3); - data.append(11); - data.append(12); - data.append(12); - data.append(3); + 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_1.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo index fc08192df..e3a48b20a 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 @@ -5,35 +5,11 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(27); + 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 }); 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 9bbff31d4..58da700b7 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted.cairo @@ -5,12 +5,12 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 9a117a748..b1a4954a1 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(11); + data.append(1); + data.append(1); + data.append(4); + data.append(3); data.append(3); + data.append(4); data.append(3); - data.append(8); - data.append(8); - data.append(9); - data.append(7); + data.append(2); + data.append(4); data.append(4); - data.append(6); - data.append(11); data.append(0); - data.append(6); + data.append(1); data.append(0); - data.append(6); - data.append(6); - data.append(12); - data.append(6); - data.append(13); - data.append(4); + data.append(3); data.append(2); + data.append(4); data.append(3); + data.append(1); + data.append(1); + data.append(4); data.append(0); - data.append(6); - data.append(5); - data.append(10); + data.append(2); + data.append(1); + data.append(4); data.append(3); - data.append(11); + data.append(4); + data.append(4); 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 63dfc6f2b..8bce16f2b 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(1); + data.append(4); + data.append(3); + data.append(3); data.append(4); - data.append(2); data.append(3); + data.append(2); + data.append(4); + data.append(1); + data.append(4); data.append(0); - data.append(6); - data.append(5); - data.append(10); + data.append(2); + data.append(1); + data.append(4); data.append(3); - data.append(11); - data.append(11); + data.append(4); + data.append(4); + data.append(4); data.append(0); - data.append(6); + data.append(1); data.append(0); - data.append(6); - data.append(6); - data.append(12); - data.append(6); - data.append(13); - data.append(11); data.append(3); - data.append(3); - data.append(8); - data.append(8); - data.append(9); - data.append(7); + data.append(2); data.append(4); - data.append(6); + data.append(3); + 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 7937e0b00..f9baf790f 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 @@ -8,8 +8,8 @@ fn output_1() -> Tensor { 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: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); 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 1939e2b93..445598f4c 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 @@ -8,8 +8,8 @@ fn output_2() -> Tensor { 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: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); 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 f983e6020..a6bbb8cc9 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted.cairo @@ -5,12 +5,12 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 50ecae651..94172411b 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(14); - data.append(1); - data.append(3); - data.append(12); - data.append(12); - data.append(11); - data.append(5); - data.append(11); - data.append(14); - data.append(7); data.append(2); + data.append(0); + data.append(3); + data.append(3); data.append(2); - data.append(9); - data.append(9); + data.append(3); + data.append(1); + data.append(0); + data.append(0); + data.append(3); data.append(4); - data.append(14); - data.append(8); data.append(2); - data.append(10); + data.append(3); + data.append(3); + data.append(1); + data.append(0); + data.append(3); data.append(4); data.append(4); + data.append(1); + data.append(3); + data.append(2); + data.append(4); + data.append(1); data.append(0); - data.append(0); - data.append(7); - data.append(5); - data.append(13); - data.append(10); + data.append(1); + data.append(4); 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 b91108379..5f3625f33 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 @@ -4,22 +4,13 @@ use orion::operators::tensor::U32Tensor; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(14); + shape.append(5); let mut data = ArrayTrait::new(); - data.append(14); - data.append(1); - data.append(3); - data.append(12); - data.append(11); - data.append(5); - data.append(7); data.append(2); - data.append(9); - data.append(4); - data.append(8); - data.append(10); data.append(0); - data.append(13); + data.append(3); + data.append(1); + data.append(4); 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 b0adda17b..1b2ea1383 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 @@ -5,22 +5,13 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(14); + 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: 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 }); 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 1be08b3a7..d15842111 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 @@ -8,32 +8,32 @@ fn output_2() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 12, sign: false }); + data.append(i32 { mag: 0, sign: false }); data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 6, 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: 2, sign: false }); data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 12, 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: 4, sign: false }); + 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: 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: 10, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 6, 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: 0, 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: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); 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 55a6e1077..902cfc1fb 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 @@ -5,22 +5,13 @@ use orion::numbers::{IntegerTrait, i32}; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(14); + shape.append(5); let mut data = ArrayTrait::new(); - 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: 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: 3, 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: 4, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 5, sign: false }); 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 217b5dfdb..2735457f6 100644 --- a/tests/nodes/unique_u32_without_axis_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted.cairo @@ -5,12 +5,12 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 e8e123767..cf2fd2568 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(12); - data.append(7); + data.append(2); + data.append(4); + data.append(3); data.append(0); + data.append(3); data.append(4); - data.append(7); - data.append(14); - data.append(7); - data.append(1); - data.append(7); - data.append(6); - data.append(1); - data.append(1); + data.append(3); + data.append(3); + data.append(3); + data.append(4); + data.append(4); + data.append(4); + data.append(4); + data.append(2); + data.append(0); data.append(0); - data.append(9); - data.append(7); + data.append(2); + data.append(4); + data.append(0); + data.append(4); data.append(2); data.append(3); + data.append(2); data.append(0); - data.append(12); - data.append(12); - data.append(7); - data.append(10); - data.append(7); - data.append(7); data.append(2); - data.append(11); + data.append(1); 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 ad14b6ecd..dff01c104 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -4,7 +4,7 @@ use orion::operators::tensor::U32Tensor; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(12); + shape.append(5); let mut data = ArrayTrait::new(); data.append(0); @@ -12,12 +12,5 @@ fn output_0() -> Tensor { data.append(2); data.append(3); data.append(4); - data.append(6); - data.append(7); - data.append(9); - data.append(10); - data.append(11); - data.append(12); - data.append(14); TensorTrait::new(shape.span(), data.span()) } 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 78aadbab8..2a4d0d67c 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -5,20 +5,13 @@ use orion::numbers::{IntegerTrait, i32}; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(12); + shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 0, sign: false }); data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 22, sign: false }); data.append(i32 { mag: 26, sign: false }); data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 0, sign: false }); + data.append(i32 { mag: 2, sign: false }); 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 0e9043501..d5cb1f9e5 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -9,31 +9,31 @@ fn output_2() -> Tensor { let mut data = ArrayTrait::new(); data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 6, 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: 0, sign: false }); + data.append(i32 { mag: 3, sign: false }); data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 5, 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: 3, 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: 4, 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: 0, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 6, 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: 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: 0, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 6, sign: false }); data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 9, sign: false }); + data.append(i32 { mag: 1, sign: false }); 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 fab5365db..5f7cc270d 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -5,20 +5,13 @@ use orion::numbers::{IntegerTrait, i32}; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(12); + shape.append(5); let mut data = ArrayTrait::new(); - 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: 1, sign: false }); + data.append(i32 { mag: 5, sign: false }); data.append(i32 { mag: 1, 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: 1, 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 }); TensorTrait::new(shape.span(), data.span()) } From f610a6bbe8609616def67df2be4b45c121e9178a Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 01:19:21 +0100 Subject: [PATCH 07/30] feat(tensor_unique): progress: slice each sub tensor --- src/numbers/signed_integer/i32.cairo | 10 ++++ src/numbers/signed_integer/i8.cairo | 9 ++++ src/operators/tensor/core.cairo | 51 ++++++++++++++++++- .../unique_u32_with_axis_one_not_sorted.cairo | 8 +-- .../input_0.cairo | 26 +++++----- .../output_0.cairo | 26 +++++----- .../unique_u32_with_axis_one_sorted.cairo | 8 +-- .../input_0.cairo | 26 +++++----- .../output_0.cairo | 22 ++++---- .../output_1.cairo | 4 +- .../output_2.cairo | 2 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 8 +-- .../input_0.cairo | 28 +++++----- .../output_0.cairo | 28 +++++----- .../unique_u32_with_axis_zero_sorted.cairo | 8 +-- .../input_0.cairo | 26 +++++----- .../output_0.cairo | 24 ++++----- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- .../unique_u32_without_axis_not_sorted.cairo | 8 +-- .../input_0.cairo | 20 ++++---- .../output_0.cairo | 4 +- .../output_1.cairo | 4 +- .../output_2.cairo | 18 +++---- .../output_3.cairo | 8 +-- .../unique_u32_without_axis_sorted.cairo | 8 +-- .../input_0.cairo | 30 +++++------ .../output_1.cairo | 8 +-- .../output_2.cairo | 30 +++++------ .../output_3.cairo | 8 +-- 30 files changed, 265 insertions(+), 199 deletions(-) diff --git a/src/numbers/signed_integer/i32.cairo b/src/numbers/signed_integer/i32.cairo index 222d85681..286068efb 100644 --- a/src/numbers/signed_integer/i32.cairo +++ b/src/numbers/signed_integer/i32.cairo @@ -1,6 +1,7 @@ use core::option::OptionTrait; use core::traits::TryInto; use traits::Into; +use debug::PrintTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i8::i8; @@ -175,12 +176,21 @@ impl i32Neg of Neg { } } +// Implements the TryInto i8 trait for i32 impl I32TryIntoI8 of TryInto { fn try_into(self: i32) -> Option { i8_try_from_i32(self) } } +// Implements the PrintTrait for i32 +impl I32PrintTrait of PrintTrait { + fn print(self: i32) { + let intermediate: felt252 = self.into(); + intermediate.print(); + } +} + // Checks if the given i32 integer is zero and has the correct sign. // # Arguments // * `x` - The i32 integer to check. diff --git a/src/numbers/signed_integer/i8.cairo b/src/numbers/signed_integer/i8.cairo index 72e92e911..c1fea5181 100644 --- a/src/numbers/signed_integer/i8.cairo +++ b/src/numbers/signed_integer/i8.cairo @@ -1,4 +1,5 @@ use traits::Into; +use debug::PrintTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i32::i32; @@ -203,6 +204,14 @@ impl I8IntoFP32x32 of Into { } } +// Implements the PrintTrait for i8 +impl I8PrintTrait of PrintTrait { + fn print(self: i8) { + let intermediate: felt252 = self.into(); + intermediate.print(); + } +} + // Checks if the given i8 integer is zero and has the correct sign. // # Arguments // * `x` - The i8 integer to check. diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index a36ca6d25..06d18c98f 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -4231,13 +4231,17 @@ fn identity(self: @Tensor) -> Tensor { Tensor:: { shape: *self.shape, data: *self.data } } +use debug::PrintTrait; + /// Cf: TensorTrait::unique docstring fn unique< T, + impl TTensor: TensorTrait, impl TCopy: Copy, impl TDrop: Drop, impl TPartialOrd: PartialOrd, - impl TPartialEq: PartialEq + impl TPartialEq: PartialEq, + impl TPrint: PrintTrait >( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { @@ -4257,8 +4261,51 @@ fn unique< let shape_cpy = *self.shape; let rank = shape_cpy.len(); assert(axis <= rank, 'axis out of dimensions'); - let axis_len: usize = *shape_cpy.at(axis); + + let mut idx: usize = 0; + loop { + if idx >= axis_len { + break; + } + + let mut starts: Array = array![]; + let mut ends: Array = array![]; + let mut axes: Array = array![]; + let mut i: usize = 0; + loop { + if i >= rank { + break; + } + starts.append(if i == axis { idx } else { 0 }); + ends.append(if i == axis { idx + 1 } else { *shape_cpy.at(i) }); + axes.append(i); + i += 1; + }; + + let sub_tensor: Tensor = self.slice( + starts: starts.span(), + ends: ends.span(), + axes: Option::Some(axes.span()), + steps: Option::None(()) + ); + + let mut tmp = sub_tensor.data; + loop { + match tmp.pop_front() { + Option::Some(x) => { + (*x).print(); + }, + Option::None => { + break; + } + } + }; + '--------------------'.print(); + + idx += 1; + }; + assert(1 == 0, 'not implemented yet'); }, Option::None => { 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 f22b8970b..a20168b83 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::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 03cbb6661..980ecb16a 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(3); - data.append(1); - data.append(0); - data.append(0); - data.append(4); - data.append(0); - data.append(2); - data.append(4); data.append(1); data.append(3); data.append(4); - data.append(4); + data.append(0); data.append(1); data.append(2); - data.append(0); - data.append(0); data.append(3); data.append(3); + data.append(1); data.append(0); data.append(2); + data.append(3); data.append(4); data.append(2); - data.append(0); + data.append(2); data.append(3); + data.append(1); + data.append(1); data.append(4); data.append(1); + data.append(1); + data.append(0); + data.append(4); + data.append(1); + data.append(4); + data.append(4); + data.append(4); 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 57a69f601..4a6f8a441 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(3); - data.append(1); - data.append(0); - data.append(0); - data.append(4); - data.append(0); - data.append(2); - data.append(4); data.append(1); data.append(3); data.append(4); - data.append(4); + data.append(0); data.append(1); data.append(2); - data.append(0); - data.append(0); data.append(3); data.append(3); + data.append(1); data.append(0); data.append(2); + data.append(3); data.append(4); data.append(2); - data.append(0); + data.append(2); data.append(3); + data.append(1); + data.append(1); data.append(4); data.append(1); + data.append(1); + data.append(0); + data.append(4); + data.append(1); + data.append(4); + data.append(4); + data.append(4); 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 ec8088130..c5cf66d73 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::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 7d08bcfb4..4807167af 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); data.append(4); - data.append(2); - data.append(2); - data.append(2); - data.append(2); + data.append(3); + data.append(3); data.append(0); - data.append(4); - data.append(4); + data.append(2); data.append(1); - data.append(4); + data.append(3); data.append(1); + data.append(0); + data.append(2); data.append(1); + data.append(2); data.append(4); - data.append(0); - data.append(3); data.append(1); data.append(3); + data.append(0); + data.append(1); + data.append(2); data.append(1); data.append(3); - data.append(0); data.append(3); + data.append(0); + data.append(4); data.append(3); - data.append(1); data.append(3); data.append(0); + data.append(0); 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 c7f495dc2..7ba20a2f2 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 @@ -10,30 +10,30 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(1); - data.append(4); data.append(2); + data.append(1); + data.append(3); + data.append(1); data.append(0); data.append(4); - data.append(2); - data.append(2); - data.append(2); + data.append(3); + data.append(3); data.append(4); data.append(1); - data.append(4); - data.append(0); data.append(3); + 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(4); data.append(3); - data.append(1); - data.append(3); - data.append(1); data.append(3); data.append(0); data.append(0); + data.append(1); data.append(3); data.append(3); 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 f9baf790f..d887c1a39 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 @@ -8,8 +8,8 @@ fn output_1() -> Tensor { 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: 1, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 445598f4c..5d6ba0796 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 @@ -8,8 +8,8 @@ fn output_2() -> Tensor { 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: 0, sign: false }); data.append(i32 { mag: 1, sign: false }); 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 69b0c5ae2..383a8cd0d 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::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 b60dd17fc..275a5aa06 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 @@ -9,31 +9,31 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(4); - data.append(3); - data.append(4); - data.append(1); - data.append(3); - data.append(1); data.append(1); - data.append(0); - data.append(3); - data.append(0); data.append(2); + data.append(0); data.append(2); data.append(4); + data.append(1); data.append(0); - data.append(4); data.append(1); + data.append(4); + data.append(3); + data.append(2); + data.append(3); + data.append(2); data.append(3); data.append(0); + data.append(1); + data.append(2); + data.append(2); + data.append(2); data.append(4); - data.append(0); data.append(2); - data.append(1); - data.append(1); + data.append(3); + data.append(4); data.append(4); + data.append(3); 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_0.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo index 7ff0c5436..4b64b72c5 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 @@ -9,31 +9,31 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(4); - data.append(3); - data.append(4); - data.append(1); - data.append(3); - data.append(1); data.append(1); - data.append(0); - data.append(3); - data.append(0); data.append(2); + data.append(0); data.append(2); data.append(4); + data.append(1); data.append(0); - data.append(4); data.append(1); + data.append(4); + data.append(3); + data.append(2); + data.append(3); + data.append(2); data.append(3); data.append(0); + data.append(1); + data.append(2); + data.append(2); + data.append(2); data.append(4); - data.append(0); data.append(2); - data.append(1); - data.append(1); + data.append(3); + data.append(4); data.append(4); + data.append(3); data.append(1); data.append(2); 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 58da700b7..25e15d63f 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::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 b1a4954a1..3bed6a729 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); data.append(4); data.append(3); - data.append(3); data.append(4); - data.append(3); - data.append(2); data.append(4); data.append(4); - data.append(0); + data.append(4); + data.append(1); + data.append(1); data.append(1); - data.append(0); data.append(3); + data.append(1); + data.append(3); + data.append(0); + data.append(0); + data.append(0); + data.append(2); data.append(2); data.append(4); + data.append(2); + data.append(3); data.append(3); - data.append(1); data.append(1); data.append(4); - data.append(0); data.append(2); - data.append(1); - data.append(4); data.append(3); - data.append(4); - data.append(4); + data.append(1); + data.append(2); 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 8bce16f2b..12832fcf9 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(4); + data.append(2); data.append(3); data.append(3); + data.append(1); data.append(4); + data.append(2); data.append(3); + data.append(1); data.append(2); - data.append(4); + data.append(3); data.append(1); - data.append(4); + data.append(3); + data.append(0); + data.append(0); data.append(0); data.append(2); - data.append(1); + data.append(2); + data.append(4); data.append(4); data.append(3); data.append(4); data.append(4); data.append(4); - data.append(0); - data.append(1); - data.append(0); - data.append(3); - data.append(2); data.append(4); - data.append(3); + 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/output_1.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo index f9baf790f..7937e0b00 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 @@ -8,8 +8,8 @@ fn output_1() -> Tensor { 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: 1, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 445598f4c..1939e2b93 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 @@ -8,8 +8,8 @@ fn output_2() -> Tensor { 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: 1, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 a6bbb8cc9..77d716ddd 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::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 94172411b..08057ceb2 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); data.append(0); - data.append(3); - data.append(3); data.append(2); + data.append(4); + data.append(4); data.append(3); - data.append(1); - data.append(0); - data.append(0); data.append(3); + data.append(2); data.append(4); data.append(2); data.append(3); data.append(3); data.append(1); data.append(0); - data.append(3); data.append(4); data.append(4); - data.append(1); - data.append(3); - data.append(2); data.append(4); data.append(1); + data.append(2); data.append(0); data.append(1); data.append(4); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(3); + data.append(2); 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 5f3625f33..9d634be6d 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 @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(2); data.append(0); + data.append(2); + data.append(4); data.append(3); data.append(1); - data.append(4); 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 1b2ea1383..5f01324be 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 @@ -11,7 +11,7 @@ fn output_1() -> Tensor { 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: 10, sign: false }); + data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 11, sign: false }); 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 d15842111..c06c56805 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 @@ -12,28 +12,28 @@ fn output_2() -> Tensor { 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: 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: 2, 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: 4, sign: false }); 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: 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: 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: 2, 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: 1, 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: 3, sign: false }); + data.append(i32 { mag: 1, sign: false }); 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 902cfc1fb..beafe0cd3 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 @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 6, sign: false }); 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 2735457f6..93c6b3a48 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::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 cf2fd2568..f075f3c2e 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); data.append(2); data.append(4); - data.append(3); - data.append(0); - data.append(3); - data.append(4); - data.append(3); - data.append(3); - data.append(3); - data.append(4); - data.append(4); - data.append(4); - data.append(4); data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(3); data.append(0); data.append(0); + data.append(1); data.append(2); - data.append(4); + data.append(1); data.append(0); - data.append(4); data.append(2); + data.append(0); + data.append(1); data.append(3); + data.append(1); data.append(2); - data.append(0); + data.append(1); data.append(2); data.append(1); + data.append(2); + data.append(1); + data.append(4); + data.append(3); TensorTrait::new(shape.span(), data.span()) } 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 2a4d0d67c..9b24b44d0 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -8,10 +8,10 @@ fn output_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 6, sign: false }); data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 1, sign: false }); 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 d5cb1f9e5..dc5e15f1f 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -8,32 +8,32 @@ fn output_2() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - 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: 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: 3, 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: 4, sign: false }); - data.append(i32 { mag: 4, 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: 3, 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: 4, 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: 2, 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: 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: 1, 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 }); 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 5f7cc270d..21b09fe4e 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 4, sign: false }); data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 2, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 762396f0ec46cc6c3073141cf9d9f1c9326deb14 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 14:24:03 +0100 Subject: [PATCH 08/30] feat(tensor_unique): new module --- nodegen/node/unique.py | 63 +- src/operators/tensor.cairo | 1 + src/operators/tensor/core.cairo | 148 +--- .../implementations/tensor_fp16x16.cairo | 4 +- .../implementations/tensor_fp16x16wide.cairo | 4 +- .../implementations/tensor_fp32x32.cairo | 4 +- .../implementations/tensor_fp64x64.cairo | 4 +- .../implementations/tensor_fp8x23.cairo | 4 +- .../implementations/tensor_fp8x23wide.cairo | 4 +- .../tensor/implementations/tensor_i32.cairo | 4 +- .../tensor/implementations/tensor_i8.cairo | 4 +- .../tensor/implementations/tensor_u32.cairo | 4 +- src/operators/tensor/manipulation.cairo | 1 + .../tensor/manipulation/unique.cairo | 163 ++++ tests/nodes.cairo | 703 ++---------------- tests/nodes/unique_u32_example.cairo | 31 + tests/nodes/unique_u32_example/input_0.cairo | 17 + tests/nodes/unique_u32_example/output_0.cairo | 15 + tests/nodes/unique_u32_example/output_1.cairo | 16 + tests/nodes/unique_u32_example/output_2.cairo | 18 + tests/nodes/unique_u32_example/output_3.cairo | 16 + tests/nodes/unique_u32_example_two.cairo | 31 + .../unique_u32_example_two/input_0.cairo | 21 + .../unique_u32_example_two/output_0.cairo | 18 + .../unique_u32_example_two/output_1.cairo | 14 + .../unique_u32_example_two/output_2.cairo | 15 + .../unique_u32_example_two/output_3.cairo | 14 + .../unique_u32_with_axis_one_not_sorted.cairo | 6 +- .../input_0.cairo | 24 +- .../output_0.cairo | 24 +- .../unique_u32_with_axis_one_sorted.cairo | 6 +- .../input_0.cairo | 24 +- .../output_0.cairo | 24 +- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +- .../input_0.cairo | 24 +- .../output_0.cairo | 24 +- .../unique_u32_with_axis_zero_sorted.cairo | 6 +- .../input_0.cairo | 28 +- .../output_0.cairo | 26 +- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- .../unique_u32_without_axis_not_sorted.cairo | 6 +- .../input_0.cairo | 22 +- .../output_0.cairo | 6 +- .../output_1.cairo | 4 +- .../output_2.cairo | 30 +- .../output_3.cairo | 10 +- .../unique_u32_without_axis_sorted.cairo | 6 +- .../input_0.cairo | 28 +- .../output_1.cairo | 6 +- .../output_2.cairo | 28 +- .../output_3.cairo | 8 +- 54 files changed, 710 insertions(+), 1015 deletions(-) create mode 100644 src/operators/tensor/manipulation.cairo create mode 100644 src/operators/tensor/manipulation/unique.cairo create mode 100644 tests/nodes/unique_u32_example.cairo create mode 100644 tests/nodes/unique_u32_example/input_0.cairo create mode 100644 tests/nodes/unique_u32_example/output_0.cairo create mode 100644 tests/nodes/unique_u32_example/output_1.cairo create mode 100644 tests/nodes/unique_u32_example/output_2.cairo create mode 100644 tests/nodes/unique_u32_example/output_3.cairo create mode 100644 tests/nodes/unique_u32_example_two.cairo create mode 100644 tests/nodes/unique_u32_example_two/input_0.cairo create mode 100644 tests/nodes/unique_u32_example_two/output_0.cairo create mode 100644 tests/nodes/unique_u32_example_two/output_1.cairo create mode 100644 tests/nodes/unique_u32_example_two/output_2.cairo create mode 100644 tests/nodes/unique_u32_example_two/output_3.cairo diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index ccd24f97b..53564dad0 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -5,7 +5,8 @@ def _unsort_outputs( - x: np.ndarray, axis: Optional[int], unique_values: np.ndarray, indices: np.ndarray, inverse_indices: np.ndarray, counts: np.ndarray + x: np.ndarray, axis: Optional[int], unique_values: np.ndarray, + indices: np.ndarray, inverse_indices: np.ndarray, counts: np.ndarray ) -> (np.ndarray, np.ndarray, np.ndarray, np.ndarray): """Unsort the result of np.unique(). @@ -32,12 +33,68 @@ def _unsort_outputs( class Unique(RunAll): @staticmethod def unique_u32(): + def example(): + x = np.array([2, 1, 1, 3, 4, 3]).astype(np.uint32) + axis = None + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_example" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::None(()), Option::None(()))", + name, + ) + + def example_2(): + x = np.array( + [[1, 0, 0], + [1, 0, 0], + [2, 3, 4]] + ).astype(np.uint32) + axis = 0 + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_example_two" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::Some(0), Option::None(()))", + name, + ) + def without_axis_sorted(): x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) axis = None unique_values, indices, inverse_indices, counts = np.unique( - x, return_index=True, return_inverse=True, return_counts=True + x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) x = Tensor(Dtype.U32, x.shape, x.flatten()) @@ -198,6 +255,8 @@ def with_axis_one_not_sorted(): name, ) + example() + example_2() without_axis_sorted() without_axis_not_sorted() with_axis_zero_sorted() diff --git a/src/operators/tensor.cairo b/src/operators/tensor.cairo index b413696e2..b2f46fcbe 100644 --- a/src/operators/tensor.cairo +++ b/src/operators/tensor.cairo @@ -3,6 +3,7 @@ mod helpers; mod math; mod linalg; mod quantization; +mod manipulation; mod implementations; use orion::operators::tensor::core::{Tensor, TensorSerde, TensorTrait}; diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index 06d18c98f..7ca4a3a59 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -2,8 +2,7 @@ use array::{ArrayTrait, SpanTrait}; use serde::Serde; use option::OptionTrait; -use alexandria_data_structures::array_ext::{SpanTraitExt}; -use alexandria_sorting::merge_sort::merge; +use alexandria_data_structures::array_ext::SpanTraitExt; use orion::operators::tensor::helpers::{len_from_shape, check_shape}; use orion::numbers::{i8, i32, NumberTrait}; @@ -4230,148 +4229,3 @@ fn clip< fn identity(self: @Tensor) -> Tensor { Tensor:: { shape: *self.shape, data: *self.data } } - -use debug::PrintTrait; - -/// Cf: TensorTrait::unique docstring -fn unique< - T, - impl TTensor: TensorTrait, - impl TCopy: Copy, - impl TDrop: Drop, - impl TPartialOrd: PartialOrd, - impl TPartialEq: PartialEq, - impl TPrint: PrintTrait ->( - self: @Tensor, axis: Option, sorted: Option -) -> (Tensor, Tensor, Tensor, Tensor) { - // 0. Instanciate the sorted flag - let sorted = match sorted { - Option::Some(sorted) => sorted, - Option::None => true, - }; - - // 1. Initiatialize the outputs as Arrays - let mut unique_elements: Array = ArrayTrait::new(); - - // 2. Compute unique elements for axis - let mut data_cpy = *self.data; - match axis { - Option::Some(axis) => { - let shape_cpy = *self.shape; - let rank = shape_cpy.len(); - assert(axis <= rank, 'axis out of dimensions'); - let axis_len: usize = *shape_cpy.at(axis); - - let mut idx: usize = 0; - loop { - if idx >= axis_len { - break; - } - - let mut starts: Array = array![]; - let mut ends: Array = array![]; - let mut axes: Array = array![]; - let mut i: usize = 0; - loop { - if i >= rank { - break; - } - starts.append(if i == axis { idx } else { 0 }); - ends.append(if i == axis { idx + 1 } else { *shape_cpy.at(i) }); - axes.append(i); - i += 1; - }; - - let sub_tensor: Tensor = self.slice( - starts: starts.span(), - ends: ends.span(), - axes: Option::Some(axes.span()), - steps: Option::None(()) - ); - - let mut tmp = sub_tensor.data; - loop { - match tmp.pop_front() { - Option::Some(x) => { - (*x).print(); - }, - Option::None => { - break; - } - } - }; - '--------------------'.print(); - - idx += 1; - }; - - assert(1 == 0, 'not implemented yet'); - }, - Option::None => { - loop { - match data_cpy.pop_front() { - Option::Some(value) => { - if !unique_elements.span().contains(*value) { - unique_elements.append(*value); - } - }, - Option::None => { break; } - } - }; - } - } - - // 3. Sort the unique elements if necessary - if (sorted) { - unique_elements = merge(unique_elements); - } - - // 4. Build occurences, indices & inverse_indices arrays - let mut indices: Array = ArrayTrait::new(); - let mut inverse_indices: Array = ArrayTrait::new(); - let mut count: Array = ArrayTrait::new(); - let mut unique_elements_cpy = unique_elements.span(); - loop { - match unique_elements_cpy.pop_front() { - Option::Some(value) => { - let occurences = (*self.data).occurrences_of(*value); - count.append(occurences.into()); - let idx_in_data = (*self.data).index_of(*value).unwrap(); - indices.append(idx_in_data.into()); - }, - Option::None => { break; } - } - }; - let mut data_cpy = *self.data; - let mut unique_elements_cpy = unique_elements.span(); - loop { - match data_cpy.pop_front() { - Option::Some(value) => { - let idx_in_uniques = unique_elements_cpy.index_of(*value).unwrap(); - inverse_indices.append(idx_in_uniques.into()); - }, - Option::None => { break; } - } - }; - - // 5. Convert arrays to tensors - let mut unique_elements_shape: Array = array![]; - if axis.is_none() { - unique_elements_shape.append(unique_elements.len()); - } else { - assert(1 == 0, 'not implemented yet'); - } - - let unique_elements = Tensor::< - T - > { shape: unique_elements_shape.span(), data: unique_elements.span() }; - let indices = Tensor:: { shape: array![indices.len()].span(), data: indices.span() }; - let inverse_indices = Tensor::< - i32 - > { shape: array![inverse_indices.len()].span(), data: inverse_indices.span() }; - let count = Tensor:: { shape: array![count.len()].span(), data: count.span() }; - - // 6. Return the outputs as tensors - (unique_elements, indices, inverse_indices, count) -} diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index 5902f8319..faf57c79e 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait, FP16x16}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -344,7 +344,7 @@ impl FP16x16Tensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index d929b91db..e01a64875 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait, FP16x16W}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -332,7 +332,7 @@ impl FP16x16WTensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_fp32x32.cairo b/src/operators/tensor/implementations/tensor_fp32x32.cairo index eb4886543..24f196b9b 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait, FP32x32, FP32x32Impl}; use orion::numbers::fixed_point::implementations::fp32x32::core::ONE; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -345,7 +345,7 @@ impl FP32x32Tensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index bc1a38e09..21c57dd31 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait, FP64x64, FP64x64Impl}; use orion::numbers::fixed_point::implementations::fp64x64::core::ONE; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -345,7 +345,7 @@ impl FP64x64Tensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index 45058273f..79ececb80 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, core, manipulation}; use orion::numbers::{i8, i32, NumberTrait, FP8x23}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -344,7 +344,7 @@ impl FP8x23Tensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo index dfed38d7c..6f35f46f8 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait, FP8x23W}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor}; @@ -322,7 +322,7 @@ impl FP8x23WTensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_i32.cairo b/src/operators/tensor/implementations/tensor_i32.cairo index 4155f5786..8296647f5 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i32, i8, NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_i8::I8Tensor}; @@ -344,7 +344,7 @@ impl I32Tensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index f2ec4c2a5..5cb5a64dd 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::tensor_u32::U32Tensor; @@ -343,7 +343,7 @@ impl I8Tensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/implementations/tensor_u32.cairo b/src/operators/tensor/implementations/tensor_u32.cairo index ab54dfc78..699104807 100644 --- a/src/operators/tensor/implementations/tensor_u32.cairo +++ b/src/operators/tensor/implementations/tensor_u32.cairo @@ -8,7 +8,7 @@ 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}; +use orion::operators::tensor::{math, linalg, quantization, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::tensor_i8::I8Tensor; @@ -314,7 +314,7 @@ impl U32Tensor of TensorTrait { fn unique( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { - core::unique(self, axis, sorted) + manipulation::unique::unique(self, axis, sorted) } } diff --git a/src/operators/tensor/manipulation.cairo b/src/operators/tensor/manipulation.cairo new file mode 100644 index 000000000..ed79ecaf6 --- /dev/null +++ b/src/operators/tensor/manipulation.cairo @@ -0,0 +1 @@ +mod unique; \ No newline at end of file diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo new file mode 100644 index 000000000..b42001597 --- /dev/null +++ b/src/operators/tensor/manipulation/unique.cairo @@ -0,0 +1,163 @@ +use option::OptionTrait; +use array::{SpanTrait, ArrayTrait}; + +use debug::PrintTrait; + +use alexandria_data_structures::array_ext::SpanTraitExt; +use alexandria_sorting::merge_sort::merge; + +use orion::numbers::{i32, NumberTrait}; +use orion::operators::tensor::core::{Tensor, TensorTrait}; + + +/// Cf: TensorTrait::unique docstring +fn unique< + T, + impl TCopy: Copy, + impl TDrop: Drop, + impl TTensor: TensorTrait, + impl TPartialOrd: PartialOrd, + impl TPartialEq: PartialEq, + impl TPartialEqTensor: PartialEq> +>( + self: @Tensor, axis: Option, sorted: Option +) -> (Tensor, Tensor, Tensor, Tensor) { + let sorted = match sorted { + Option::Some(sorted) => sorted, + Option::None => true, + }; + + let mut unique_elements: Array = array![]; + let mut new_shape: Array = array![]; + let mut indices: Array = array![]; + let mut inverse_indices: Array = array![]; + let mut count: Array = array![]; + + let mut data_cpy = *self.data; + match axis { + Option::Some(axis) => { + let rank = (*self).shape.len(); + assert(axis <= rank, 'axis out of dimensions'); + let unique_tensors: Array> = get_unique_subtensors(self, axis, rank); + }, + Option::None => { + loop { + match data_cpy.pop_front() { + Option::Some(value) => { + if !unique_elements.span().contains(*value) { + unique_elements.append(*value); + } + }, + Option::None => { break; } + } + }; + if (sorted) { + unique_elements = merge(unique_elements); + } + new_shape.append(unique_elements.len()); + } + } + + if axis.is_none() { + let mut unique_elements_span = unique_elements.span(); + loop { + match unique_elements_span.pop_front() { + Option::Some(value) => { + let occurences = (*self.data).occurrences_of(*value); + count.append(occurences.into()); + let idx_in_data = (*self.data).index_of(*value).unwrap(); + indices.append(idx_in_data.into()); + }, + Option::None => { break; } + } + }; + unique_elements_span = unique_elements.span(); + data_cpy = *self.data; + loop { + match data_cpy.pop_front() { + Option::Some(value) => { + let idx_in_uniques = unique_elements_span.index_of(*value).unwrap(); + inverse_indices.append(idx_in_uniques.into()); + }, + Option::None => { break; } + } + }; + } + + let unique_elements = Tensor:: { shape: new_shape.span(), data: unique_elements.span() }; + let indices = Tensor:: { shape: array![indices.len()].span(), data: indices.span() }; + let inverse_indices = Tensor::< + i32 + > { shape: array![inverse_indices.len()].span(), data: inverse_indices.span() }; + let count = Tensor:: { shape: array![count.len()].span(), data: count.span() }; + + (unique_elements, indices, inverse_indices, count) +} + + +/// Returns in an array all the unique subtensors of the passed tensor. +fn get_unique_subtensors< + T, + impl TCopy: Copy, + impl TDrop: Drop, + impl TTensor: TensorTrait, + impl TPartialOrd: PartialOrd, + impl TPartialEq: PartialEq, + impl TPartialEqTensor: PartialEq> +>( + tensor: @Tensor, axis: usize, rank: usize +) -> Array> { + let shape = *tensor.shape; + let mut unique_tensors: Array> = array![]; + + let mut axes: Array = array![]; + let mut idx: usize = 0; + loop { + if idx >= rank { + break; + } + axes.append(idx); + idx += 1; + }; + + idx = 0; + let axis_len: usize = *shape.at(axis); + loop { + if idx >= axis_len { + break; + } + let mut starts: Array = array![]; + let mut ends: Array = array![]; + let mut i: usize = 0; + loop { + if i >= rank { + break; + } + starts.append(if i == axis { + idx + } else { + 0 + }); + ends.append(if i == axis { + idx + 1 + } else { + *shape.at(i) + }); + i += 1; + }; + + let sub_tensor: Tensor = tensor + .slice( + starts: starts.span(), + ends: ends.span(), + axes: Option::Some(axes.span()), + steps: Option::None(()) + ); + + if !unique_tensors.span().contains(sub_tensor) { + unique_tensors.append(sub_tensor); + } + idx += 1; + }; + unique_tensors +} diff --git a/tests/nodes.cairo b/tests/nodes.cairo index 4f0055dab..755760ecc 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -1,659 +1,50 @@ -mod abs_fp16x16; -mod abs_fp8x23; -mod abs_i32; -mod abs_i8; -mod acos_fp16x16; -mod acos_fp8x23; -mod acosh_fp16x16; -mod acosh_fp8x23; -mod add_fp16x16; -mod add_fp16x16_broadcast; -mod add_fp8x23; -mod add_fp8x23_broadcast; -mod add_i32; -mod add_i32_broadcast; -mod add_i8; -mod add_i8_broadcast; -mod add_u32; -mod add_u32_broadcast; -mod argmax_fp16x16_1D_default; -mod argmax_fp16x16_1D_keepdims_false; -mod argmax_fp16x16_1D_last_index; -mod argmax_fp16x16_2D_default; -mod argmax_fp16x16_2D_keepdims_false; -mod argmax_fp16x16_2D_last_index; -mod argmax_fp16x16_3D_default; -mod argmax_fp16x16_3D_keepdims_false; -mod argmax_fp16x16_3D_last_index; -mod argmax_fp8x23_1D_default; -mod argmax_fp8x23_1D_keepdims_false; -mod argmax_fp8x23_1D_last_index; -mod argmax_fp8x23_2D_default; -mod argmax_fp8x23_2D_keepdims_false; -mod argmax_fp8x23_2D_last_index; -mod argmax_fp8x23_3D_default; -mod argmax_fp8x23_3D_keepdims_false; -mod argmax_fp8x23_3D_last_index; -mod argmax_i32_1D_default; -mod argmax_i32_1D_keepdims_false; -mod argmax_i32_1D_last_index; -mod argmax_i32_2D_default; -mod argmax_i32_2D_keepdims_false; -mod argmax_i32_2D_last_index; -mod argmax_i32_3D_default; -mod argmax_i32_3D_keepdims_false; -mod argmax_i32_3D_last_index; -mod argmax_i8_1D_default; -mod argmax_i8_1D_keepdims_false; -mod argmax_i8_1D_last_index; -mod argmax_i8_2D_default; -mod argmax_i8_2D_keepdims_false; -mod argmax_i8_2D_last_index; -mod argmax_i8_3D_default; -mod argmax_i8_3D_keepdims_false; -mod argmax_i8_3D_last_index; -mod argmax_u32_1D_default; -mod argmax_u32_1D_keepdims_false; -mod argmax_u32_1D_last_index; -mod argmax_u32_2D_default; -mod argmax_u32_2D_keepdims_false; -mod argmax_u32_2D_last_index; -mod argmax_u32_3D_default; -mod argmax_u32_3D_keepdims_false; -mod argmax_u32_3D_last_index; -mod argmin_fp16x16_1D_default; -mod argmin_fp16x16_1D_keepdims_false; -mod argmin_fp16x16_1D_last_index; -mod argmin_fp16x16_2D_default; -mod argmin_fp16x16_2D_keepdims_false; -mod argmin_fp16x16_2D_last_index; -mod argmin_fp16x16_3D_default; -mod argmin_fp16x16_3D_keepdims_false; -mod argmin_fp16x16_3D_last_index; -mod argmin_fp8x23_1D_default; -mod argmin_fp8x23_1D_keepdims_false; -mod argmin_fp8x23_1D_last_index; -mod argmin_fp8x23_2D_default; -mod argmin_fp8x23_2D_keepdims_false; -mod argmin_fp8x23_2D_last_index; -mod argmin_fp8x23_3D_default; -mod argmin_fp8x23_3D_keepdims_false; -mod argmin_fp8x23_3D_last_index; -mod argmin_i32_1D_default; -mod argmin_i32_1D_keepdims_false; -mod argmin_i32_1D_last_index; -mod argmin_i32_2D_default; -mod argmin_i32_2D_keepdims_false; -mod argmin_i32_2D_last_index; -mod argmin_i32_3D_default; -mod argmin_i32_3D_keepdims_false; -mod argmin_i32_3D_last_index; -mod argmin_i8_1D_default; -mod argmin_i8_1D_keepdims_false; -mod argmin_i8_1D_last_index; -mod argmin_i8_2D_default; -mod argmin_i8_2D_keepdims_false; -mod argmin_i8_2D_last_index; -mod argmin_i8_3D_default; -mod argmin_i8_3D_keepdims_false; -mod argmin_i8_3D_last_index; -mod argmin_u32_1D_default; -mod argmin_u32_1D_keepdims_false; -mod argmin_u32_1D_last_index; -mod argmin_u32_2D_default; -mod argmin_u32_2D_keepdims_false; -mod argmin_u32_2D_last_index; -mod argmin_u32_3D_default; -mod argmin_u32_3D_keepdims_false; -mod argmin_u32_3D_last_index; -mod asin_fp16x16; -mod asin_fp8x23; -mod asinh_fp16x16; -mod asinh_fp8x23; -mod atan_fp16x16; -mod atan_fp8x23; -mod ceil_fp16x16; -mod ceil_fp8x23; -mod concat_fp16x16_1d; -mod concat_fp16x16_2d; -mod concat_fp16x16_3d_default; -mod concat_fp16x16_3d_axis_1; -mod concat_fp16x16_3d_axis_2; -mod concat_fp16x16_3d_three_tensors_axis_1; -mod concat_fp16x16_3d_three_tensors_axis_2; -mod concat_fp8x23_1d; -mod concat_fp8x23_2d; -mod concat_fp8x23_3d_default; -mod concat_fp8x23_3d_axis_1; -mod concat_fp8x23_3d_axis_2; -mod concat_fp8x23_3d_three_tensors_axis_1; -mod concat_fp8x23_3d_three_tensors_axis_2; -mod concat_i32_1d; -mod concat_i32_2d; -mod concat_i32_3d_default; -mod concat_i32_3d_axis_1; -mod concat_i32_3d_axis_2; -mod concat_i32_3d_three_tensors_axis_1; -mod concat_i32_3d_three_tensors_axis_2; -mod concat_i8_1d; -mod concat_i8_2d; -mod concat_i8_3d_default; -mod concat_i8_3d_axis_1; -mod concat_i8_3d_axis_2; -mod concat_i8_3d_three_tensors_axis_1; -mod concat_i8_3d_three_tensors_axis_2; -mod concat_u32_1d; -mod concat_u32_2d; -mod concat_u32_3d_default; -mod concat_u32_3d_axis_1; -mod concat_u32_3d_axis_2; -mod concat_u32_3d_three_tensors_axis_1; -mod concat_u32_3d_three_tensors_axis_2; -mod cos_fp16x16; -mod cos_fp8x23; -mod cosh_fp16x16; -mod cosh_fp8x23; -mod cumsum_fp16x16_1d_default; -mod cumsum_fp16x16_1d_exclusive; -mod cumsum_fp16x16_1d_reverse; -mod cumsum_fp16x16_1d_reverse_exclusive; -mod cumsum_fp16x16_2d_axis_0; -mod cumsum_fp16x16_2d_axis_1; -mod cumsum_fp8x23_1d_default; -mod cumsum_fp8x23_1d_exclusive; -mod cumsum_fp8x23_1d_reverse; -mod cumsum_fp8x23_1d_reverse_exclusive; -mod cumsum_fp8x23_2d_axis_0; -mod cumsum_fp8x23_2d_axis_1; -mod cumsum_i32_1d_default; -mod cumsum_i32_1d_exclusive; -mod cumsum_i32_1d_reverse; -mod cumsum_i32_1d_reverse_exclusive; -mod cumsum_i32_2d_axis_0; -mod cumsum_i32_2d_axis_1; -mod cumsum_i8_1d_default; -mod cumsum_i8_1d_exclusive; -mod cumsum_i8_1d_reverse; -mod cumsum_i8_1d_reverse_exclusive; -mod cumsum_i8_2d_axis_0; -mod cumsum_i8_2d_axis_1; -mod cumsum_u32_1d_default; -mod cumsum_u32_1d_exclusive; -mod cumsum_u32_1d_reverse; -mod cumsum_u32_1d_reverse_exclusive; -mod cumsum_u32_2d_axis_0; -mod cumsum_u32_2d_axis_1; -mod div_fp16x16; -mod div_fp16x16_broadcast; -mod div_fp8x23; -mod div_fp8x23_broadcast; -mod div_i32; -mod div_i32_broadcast; -mod div_i8; -mod div_i8_broadcast; -mod div_u32; -mod div_u32_broadcast; -mod equal_fp16x16; -mod equal_fp16x16_broadcast; -mod equal_fp8x23; -mod equal_fp8x23_broadcast; -mod equal_i32; -mod equal_i32_broadcast; -mod equal_i8; -mod equal_i8_broadcast; -mod equal_u32; -mod equal_u32_broadcast; -mod exp_fp16x16; -mod exp_fp8x23; -mod less_equal_fp16x16; -mod less_equal_fp16x16_broadcast; -mod less_equal_fp8x23; -mod less_equal_fp8x23_broadcast; -mod less_equal_i32; -mod less_equal_i32_broadcast; -mod less_equal_i8; -mod less_equal_i8_broadcast; -mod less_equal_u32; -mod less_equal_u32_broadcast; -mod greater_fp16x16; -mod greater_fp16x16_broadcast; -mod greater_fp8x23; -mod greater_fp8x23_broadcast; -mod greater_i32; -mod greater_i32_broadcast; -mod greater_i8; -mod greater_i8_broadcast; -mod greater_u32; -mod greater_u32_broadcast; -mod leaky_relu_fp16x16; -mod leaky_relu_fp8x23; -mod linear_fp16x16; -mod linear_fp8x23; -mod linear_i32; -mod linear_i8; -mod linear_u32; -mod log_fp16x16; -mod log_fp8x23; -mod logsoftmax_fp16x16_axis_0; -mod logsoftmax_fp16x16_axis_1; -mod logsoftmax_fp8x23_axis_0; -mod logsoftmax_fp8x23_axis_1; -mod matmul_fp16x16_1d; -mod matmul_fp16x16_2x2; -mod matmul_fp16x16_2x1; -mod matmul_fp16x16_1x2; -mod matmul_fp8x23_1d; -mod matmul_fp8x23_2x2; -mod matmul_fp8x23_2x1; -mod matmul_fp8x23_1x2; -mod matmul_i32_1d; -mod matmul_i32_2x2; -mod matmul_i32_2x1; -mod matmul_i32_1x2; -mod matmul_i8_1d; -mod matmul_i8_2x2; -mod matmul_i8_2x1; -mod matmul_i8_1x2; -mod matmul_u32_1d; -mod matmul_u32_2x2; -mod matmul_u32_2x1; -mod matmul_u32_1x2; -mod mul_fp16x16; -mod mul_fp16x16_broadcast; -mod mul_fp8x23; -mod mul_fp8x23_broadcast; -mod mul_i32; -mod mul_i32_broadcast; -mod mul_i8; -mod mul_i8_broadcast; -mod mul_u32; -mod mul_u32_broadcast; -mod or_fp16x16; -mod or_fp16x16_broadcast; -mod or_fp8x23; -mod or_fp8x23_broadcast; -mod or_i32; -mod or_i32_broadcast; -mod or_i8; -mod or_i8_broadcast; -mod or_u32; -mod or_u32_broadcast; -mod reduce_sum_fp16x16_1D; -mod reduce_sum_fp16x16_2D_default; -mod reduce_sum_fp16x16_2D_keepdims; -mod reduce_sum_fp16x16_2D_axis_1; -mod reduce_sum_fp8x23_1D; -mod reduce_sum_fp8x23_2D_default; -mod reduce_sum_fp8x23_2D_keepdims; -mod reduce_sum_fp8x23_2D_axis_1; -mod reduce_sum_i32_1D; -mod reduce_sum_i32_2D_default; -mod reduce_sum_i32_2D_keepdims; -mod reduce_sum_i32_2D_axis_1; -mod reduce_sum_i8_1D; -mod reduce_sum_i8_2D_default; -mod reduce_sum_i8_2D_keepdims; -mod reduce_sum_i8_2D_axis_1; -mod reduce_sum_u32_1D; -mod reduce_sum_u32_2D_default; -mod reduce_sum_u32_2D_keepdims; -mod reduce_sum_u32_2D_axis_1; -mod relu_fp16x16; -mod relu_fp8x23; -mod relu_i32; -mod relu_i8; -mod sigmoid_fp16x16; -mod sigmoid_fp8x23; -mod sin_fp16x16; -mod sin_fp8x23; -mod sinh_fp16x16; -mod sinh_fp8x23; -mod softmax_fp16x16; -mod softmax_fp8x23; -mod softplus_fp8x23; -mod softplus_fp16x16; -mod softsign_fp8x23; -mod softsign_fp16x16; -mod sqrt_fp16x16; -mod sqrt_fp8x23; -mod sub_fp16x16; -mod sub_fp16x16_broadcast; -mod sub_fp8x23; -mod sub_fp8x23_broadcast; -mod sub_i32; -mod sub_i32_broadcast; -mod sub_i8; -mod sub_i8_broadcast; -mod sub_u32; -mod sub_u32_broadcast; -mod tanh_fp16x16; -mod tanh_fp8x23; -mod transpose_fp16x16_2d; -mod transpose_fp16x16_3d; -mod transpose_fp8x23_2d; -mod transpose_fp8x23_3d; -mod transpose_i32_2d; -mod transpose_i32_3d; -mod transpose_i8_2d; -mod transpose_i8_3d; -mod transpose_u32_2d; -mod transpose_u32_3d; -mod xor_fp16x16; -mod xor_fp16x16_broadcast; -mod xor_fp8x23; -mod xor_fp8x23_broadcast; -mod xor_i32; -mod xor_i32_broadcast; -mod xor_i8; -mod xor_i8_broadcast; -mod xor_u32; -mod xor_u32_broadcast; -mod less_fp16x16; -mod less_fp16x16_broadcast; -mod less_fp8x23; -mod less_fp8x23_broadcast; -mod less_i32; -mod less_i32_broadcast; -mod less_i8; -mod less_i8_broadcast; -mod less_u32; -mod less_u32_broadcast; -mod greater_equal_fp16x16; -mod greater_equal_fp16x16_broadcast; -mod greater_equal_fp8x23; -mod greater_equal_fp8x23_broadcast; -mod greater_equal_i32; -mod greater_equal_i32_broadcast; -mod greater_equal_i8; -mod greater_equal_i8_broadcast; -mod greater_equal_u32; -mod greater_equal_u32_broadcast; -mod slice_fp16x16_2d; -mod slice_fp16x16_3d; -mod slice_fp8x23_2d; -mod slice_fp8x23_3d; -mod slice_i32_2d; -mod slice_i32_3d; -mod slice_i8_2d; -mod slice_i8_3d; -mod slice_u32_2d; -mod slice_u32_3d; -mod gather_fp8x23_3d_default; -mod gather_fp8x23_3d_axis1; -mod gather_fp8x23_3d_axis2; -mod gather_fp16x16_3d_default; -mod gather_fp16x16_3d_axis1; -mod gather_fp16x16_3d_axis2; -mod gather_i8_3d_default; -mod gather_i8_3d_axis1; -mod gather_i8_3d_axis2; -mod gather_i32_3d_default; -mod gather_i32_3d_axis1; -mod gather_i32_3d_axis2; -mod gather_u32_3d_default; -mod gather_u32_3d_axis1; -mod gather_u32_3d_axis2; -mod nonzero_fp16x16_2d; -mod nonzero_fp16x16_3d; -mod nonzero_fp8x23_2d; -mod nonzero_fp8x23_3d; -mod nonzero_i32_2d; -mod nonzero_i32_3d; -mod nonzero_i8_2d; -mod nonzero_i8_3d; -mod nonzero_u32_2d; -mod nonzero_u32_3d; -mod squeeze_fP16x16; -mod squeeze_fP8x23; -mod squeeze_i32; -mod squeeze_i8; -mod squeeze_u32; -mod unsqueeze_fp16x16_2d; -mod unsqueeze_fp16x16_3d; -mod unsqueeze_fp8x23_2d; -mod unsqueeze_fp8x23_3d; -mod unsqueeze_i32_2d; -mod unsqueeze_i32_3d; -mod unsqueeze_i8_2d; -mod unsqueeze_i8_3d; -mod unsqueeze_u32_2d; -mod unsqueeze_u32_3d; -mod sign_fP16x16; -mod sign_fP8x23; -mod sign_fail; -mod sign_i32; -mod sign_i8; -mod clip_fp16x16_2d; -mod clip_fp16x16_3d; -mod clip_fp8x23_2d; -mod clip_fp8x23_3d; -mod clip_i32_2d; -mod clip_i32_3d; -mod clip_i8_2d; -mod clip_i8_3d; -mod clip_u32_2d; -mod clip_u32_3d; -mod and_fp16x16; -mod and_fp16x16_broadcast; -mod and_fp8x23; -mod and_fp8x23_broadcast; -mod and_i32; -mod and_i32_broadcast; -mod and_i8; -mod and_i8_broadcast; -mod and_u32; -mod and_u32_broadcast; -mod identity_fP16x16; -mod identity_fP8x23; -mod identity_i32; -mod identity_i8; -mod identity_u32; -mod thresholded_relu_fp16x16; -mod thresholded_relu_fp8x23; -mod hard_sigmoid_fp8x23; -mod hard_sigmoid_fp16x16; -mod neg_fp16x16; -mod neg_fp8x23; -mod neg_i32; -mod neg_i8; -mod gemm_all_attributes; -mod gemm_alpha; -mod gemm_beta; -mod gemm_default_matrix_bias; -mod gemm_default_vector_bias; -mod gemm_default_no_bias; -mod gemm_transposeA; -mod gemm_transposeB; -mod min_fp16x16_three_tensors; -mod min_fp16x16_broadcast_three_tensors; -mod min_fp16x16_two_tensors; -mod min_fp16x16_broadcast_two_tensors; -mod min_fp8x23_three_tensors; -mod min_fp8x23_broadcast_three_tensors; -mod min_fp8x23_two_tensors; -mod min_fp8x23_broadcast_two_tensors; -mod min_i32_three_tensors; -mod min_i32_broadcast_three_tensors; -mod min_i32_two_tensors; -mod min_i32_broadcast_two_tensors; -mod min_i8_three_tensors; -mod min_i8_broadcast_three_tensors; -mod min_i8_two_tensors; -mod min_i8_broadcast_two_tensors; -mod min_u32_three_tensors; -mod min_u32_broadcast_three_tensors; -mod min_u32_two_tensors; -mod min_u32_broadcast_two_tensors; -mod where_fp16x16; -mod where_fp16x16_broadcast; -mod where_fp8x23; -mod where_fp8x23_broadcast; -mod where_i32; -mod where_i32_broadcast; -mod where_i8; -mod where_i8_broadcast; -mod where_u32; -mod where_u32_broadcast; -mod round_fp16x16; -mod round_fp8x23; -mod max_fp16x16_three_tensors; -mod max_fp16x16_broadcast_three_tensors; -mod max_fp16x16_two_tensors; -mod max_fp16x16_broadcast_two_tensors; -mod max_fp8x23_three_tensors; -mod max_fp8x23_broadcast_three_tensors; -mod max_fp8x23_two_tensors; -mod max_fp8x23_broadcast_two_tensors; -mod max_i32_three_tensors; -mod max_i32_broadcast_three_tensors; -mod max_i32_two_tensors; -mod max_i32_broadcast_two_tensors; -mod max_i8_three_tensors; -mod max_i8_broadcast_three_tensors; -mod max_i8_two_tensors; -mod max_i8_broadcast_two_tensors; -mod max_u32_three_tensors; -mod max_u32_broadcast_three_tensors; -mod max_u32_two_tensors; -mod max_u32_broadcast_two_tensors; -mod tril_fp16x16; -mod tril_fp16x16_neg; -mod tril_fp16x16_one_row; -mod tril_fp16x16_out_neg; -mod tril_fp16x16_out_pos; -mod tril_fp16x16_pos; -mod tril_fp16x16_square; -mod tril_fp16x16_square_neg; -mod tril_fp16x16_zero; -mod triu_fp16x16; -mod triu_fp16x16_neg; -mod triu_fp16x16_one_row; -mod triu_fp16x16_out_neg; -mod triu_fp16x16_out_pos; -mod triu_fp16x16_pos; -mod triu_fp16x16_square; -mod triu_fp16x16_square_neg; -mod triu_fp16x16_zero; -mod tril_fp8x23; -mod tril_fp8x23_neg; -mod tril_fp8x23_one_row; -mod tril_fp8x23_out_neg; -mod tril_fp8x23_out_pos; -mod tril_fp8x23_pos; -mod tril_fp8x23_square; -mod tril_fp8x23_square_neg; -mod tril_fp8x23_zero; -mod triu_fp8x23; -mod triu_fp8x23_neg; -mod triu_fp8x23_one_row; -mod triu_fp8x23_out_neg; -mod triu_fp8x23_out_pos; -mod triu_fp8x23_pos; -mod triu_fp8x23_square; -mod triu_fp8x23_square_neg; -mod triu_fp8x23_zero; -mod tril_i32; -mod tril_neg_i32; -mod tril_i32_one_row; -mod tril_i32_out_neg; -mod tril_i32_out_pos; -mod tril_i32_pos; -mod tril_i32_square; -mod tril_i32_square_neg; -mod tril_i32_zero; -mod triu_i32; -mod triu_i32_neg; -mod triu_i32_one_row; -mod triu_i32_out_neg; -mod triu_i32_out_pos; -mod triu_i32_pos; -mod triu_i32_square; -mod triu_i32_square_neg; -mod triu_i32_zero; -mod tril_i8; -mod tril_i8_neg; -mod tril_i8_one_row; -mod tril_i8_out_neg; -mod tril_i8_out_pos; -mod tril_i8_pos; -mod tril_i8_square; -mod tril_i8_square_neg; -mod tril_i8_zero; -mod triu_i8; -mod triu_i8_neg; -mod triu_i8_one_row; -mod triu_i8_out_neg; -mod triu_i8_out_pos; -mod triu_i8_pos; -mod triu_i8_square; -mod triu_i8_square_neg; -mod triu_i8_zero; -mod tril_u32; -mod tril_u32_neg; -mod tril_u32_one_row; -mod tril_u32_out_neg; -mod tril_u32_out_pos; -mod tril_u32_pos; -mod tril_u32_square; -mod tril_u32_square_neg; -mod tril_u32_zero; -mod triu_u32; -mod triu_u32_neg; -mod triu_u32_one_row; -mod triu_u32_out_neg; -mod triu_u32_out_pos; -mod triu_u32_pos; -mod triu_u32_square; -mod triu_u32_square_neg; -mod triu_u32_zero; -mod scatter_fp16x16_3d_default; -mod scatter_fp16x16_3d_axis1; -mod scatter_fp16x16_3d_axis1_add; -mod scatter_fp8x23_default; -mod scatter_fp8x23_axis1; -mod scatter_fp8x23_mul; -mod scatter_i8_default; -mod scatter_i8_axis1; -mod scatter_i8_axis1_max; -mod scatter_u32_default; -mod scatter_u32_axis1; -mod scatter_u32_add; -mod reduce_sum_square_fp16x16_export_do_not_keepdims; -mod reduce_sum_square_fp16x16_export_keepdims; -mod reduce_sum_square_fp16x16_export_negative_axes_keepdims; -mod reduce_sum_square_fp8x23_export_do_not_keepdims; -mod reduce_sum_square_fp8x23_export_keepdims; -mod reduce_sum_square_fp8x23_export_negative_axes_keepdims; -mod reduce_sum_square_i32_export_do_not_keepdims; -mod reduce_sum_square_i32_export_keepdims; -mod reduce_sum_square_i32_export_negative_axes_keepdims; -mod reduce_sum_square_i8_export_do_not_keepdims; -mod reduce_sum_square_i8_export_keepdims; -mod reduce_sum_square_i8_export_negative_axes_keepdims; -mod reduce_sum_square_u32_export_do_not_keepdims; -mod reduce_sum_square_u32_export_keepdims; -mod reduce_sum_square_u32_export_negative_axes_keepdims; -mod reduce_l2_fp16x16_export_do_not_keepdims; -mod reduce_l2_fp16x16_export_keepdims; -mod reduce_l2_fp16x16_export_negative_axes_keepdims; -mod reduce_l2_fp8x23_export_do_not_keepdims; -mod reduce_l2_fp8x23_export_keepdims; -mod reduce_l2_fp8x23_export_negative_axes_keepdims; -mod reduce_l1_fp16x16_export_do_not_keepdims; -mod reduce_l1_fp16x16_export_keepdims; -mod reduce_l1_fp16x16_export_negative_axes_keepdims; -mod reduce_l1_fp8x23_export_do_not_keepdims; -mod reduce_l1_fp8x23_export_keepdims; -mod reduce_l1_fp8x23_export_negative_axes_keepdims; -mod reduce_l1_i32_export_do_not_keepdims; -mod reduce_l1_i32_export_keepdims; -mod reduce_l1_i32_export_negative_axes_keepdims; -mod reduce_l1_i8_export_do_not_keepdims; -mod reduce_l1_i8_export_keepdims; -mod reduce_l1_i8_export_negative_axes_keepdims; -mod reduce_l1_u32_export_do_not_keepdims; -mod reduce_l1_u32_export_keepdims; -mod reduce_l1_u32_export_negative_axes_keepdims; +// mod sign_i32; +// mod sign_i8; +// mod clip_fp16x16_2d; +// mod clip_fp16x16_3d; +// mod clip_fp8x23_2d; +// mod clip_fp8x23_3d; +// mod clip_i32_2d; +// mod clip_i32_3d; +// mod clip_i8_2d; +// mod clip_i8_3d; +// mod clip_u32_2d; +// mod clip_u32_3d; +// mod and_fp16x16; +// mod and_fp16x16_broadcast; +// mod and_fp8x23; +// mod and_fp8x23_broadcast; +// mod and_i32; +// mod and_i32_broadcast; +// mod and_i8; +// mod and_i8_broadcast; +// mod and_u32; +// mod and_u32_broadcast; +// mod identity_fP16x16; +// mod identity_fP8x23; +// mod identity_i32; +// mod identity_i8; +// mod identity_u32; +// mod thresholded_relu_fp16x16; +// mod thresholded_relu_fp8x23; +// mod hard_sigmoid_fp8x23; +// mod hard_sigmoid_fp16x16; +// mod neg_fp16x16; +// mod neg_fp8x23; +// mod neg_i32; +// mod neg_i8; +// mod gemm_all_attributes; +// mod gemm_alpha; +// mod gemm_beta; +// mod gemm_default_matrix_bias; +// mod gemm_default_vector_bias; +// mod gemm_default_no_bias; +// mod gemm_transposeA; +// mod gemm_transposeB; +// mod min_fp16x16_three_tensors; +// mod min_fp16x16_broadcast_three_tensors; +mod unique_u32_example; +mod unique_u32_example_two; mod unique_u32_without_axis_sorted; mod unique_u32_without_axis_not_sorted; mod unique_u32_with_axis_zero_sorted; diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo new file mode 100644 index 000000000..7908d1c3a --- /dev/null +++ b/tests/nodes/unique_u32_example.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_example() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::None(())); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} diff --git a/tests/nodes/unique_u32_example/input_0.cairo b/tests/nodes/unique_u32_example/input_0.cairo new file mode 100644 index 000000000..0263ebc30 --- /dev/null +++ b/tests/nodes/unique_u32_example/input_0.cairo @@ -0,0 +1,17 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(6); + + let mut data = ArrayTrait::new(); + data.append(2); + data.append(1); + data.append(1); + data.append(3); + data.append(4); + data.append(3); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example/output_0.cairo b/tests/nodes/unique_u32_example/output_0.cairo new file mode 100644 index 000000000..1ede61a4e --- /dev/null +++ b/tests/nodes/unique_u32_example/output_0.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(4); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example/output_1.cairo b/tests/nodes/unique_u32_example/output_1.cairo new file mode 100644 index 000000000..265eb461c --- /dev/null +++ b/tests/nodes/unique_u32_example/output_1.cairo @@ -0,0 +1,16 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_1() -> 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: 0, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example/output_2.cairo b/tests/nodes/unique_u32_example/output_2.cairo new file mode 100644 index 000000000..1b2efecbe --- /dev/null +++ b/tests/nodes/unique_u32_example/output_2.cairo @@ -0,0 +1,18 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_2() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(6); + + let mut data = ArrayTrait::new(); + 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: 3, sign: false }); + data.append(i32 { mag: 2, sign: false }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example/output_3.cairo b/tests/nodes/unique_u32_example/output_3.cairo new file mode 100644 index 000000000..d9dc64a2d --- /dev/null +++ b/tests/nodes/unique_u32_example/output_3.cairo @@ -0,0 +1,16 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_3() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(4); + + let mut data = ArrayTrait::new(); + 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 }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo new file mode 100644 index 000000000..4d2965213 --- /dev/null +++ b/tests/nodes/unique_u32_example_two.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_example_two() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::None(())); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} diff --git a/tests/nodes/unique_u32_example_two/input_0.cairo b/tests/nodes/unique_u32_example_two/input_0.cairo new file mode 100644 index 000000000..d935e864d --- /dev/null +++ b/tests/nodes/unique_u32_example_two/input_0.cairo @@ -0,0 +1,21 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + 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(2); + data.append(3); + data.append(4); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example_two/output_0.cairo b/tests/nodes/unique_u32_example_two/output_0.cairo new file mode 100644 index 000000000..87ceb3170 --- /dev/null +++ b/tests/nodes/unique_u32_example_two/output_0.cairo @@ -0,0 +1,18 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(0); + data.append(0); + data.append(2); + data.append(3); + data.append(4); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example_two/output_1.cairo b/tests/nodes/unique_u32_example_two/output_1.cairo new file mode 100644 index 000000000..a5e3c133d --- /dev/null +++ b/tests/nodes/unique_u32_example_two/output_1.cairo @@ -0,0 +1,14 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_1() -> 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: 2, sign: false }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example_two/output_2.cairo b/tests/nodes/unique_u32_example_two/output_2.cairo new file mode 100644 index 000000000..f0bcebcef --- /dev/null +++ b/tests/nodes/unique_u32_example_two/output_2.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 0, sign: false }); + data.append(i32 { mag: 1, sign: false }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example_two/output_3.cairo b/tests/nodes/unique_u32_example_two/output_3.cairo new file mode 100644 index 000000000..a41b6bce7 --- /dev/null +++ b/tests/nodes/unique_u32_example_two/output_3.cairo @@ -0,0 +1,14 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_3() -> 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 }); + 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 a20168b83..ee252986d 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use 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 980ecb16a..faf8d1701 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(3); data.append(4); - data.append(0); - data.append(1); - data.append(2); - data.append(3); data.append(3); - data.append(1); + data.append(0); data.append(0); data.append(2); + data.append(0); + data.append(4); data.append(3); + data.append(2); + data.append(2); data.append(4); data.append(2); + data.append(0); + data.append(4); data.append(2); - data.append(3); data.append(1); data.append(1); data.append(4); - data.append(1); - data.append(1); data.append(0); + data.append(2); + data.append(3); data.append(4); - data.append(1); - data.append(4); + data.append(0); data.append(4); + data.append(1); data.append(4); + data.append(3); 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 4a6f8a441..560b97cc1 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(3); data.append(4); - data.append(0); - data.append(1); - data.append(2); - data.append(3); data.append(3); - data.append(1); + data.append(0); data.append(0); data.append(2); + data.append(0); + data.append(4); data.append(3); + data.append(2); + data.append(2); data.append(4); data.append(2); + data.append(0); + data.append(4); data.append(2); - data.append(3); data.append(1); data.append(1); data.append(4); - data.append(1); - data.append(1); data.append(0); + data.append(2); + data.append(3); data.append(4); - data.append(1); - data.append(4); + data.append(0); data.append(4); + data.append(1); data.append(4); + data.append(3); 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 c5cf66d73..920d4b72a 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use 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 4807167af..78757fde9 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); - data.append(3); - data.append(0); - data.append(2); data.append(1); data.append(3); - data.append(1); data.append(0); - data.append(2); data.append(1); + data.append(3); data.append(2); - data.append(4); data.append(1); + data.append(0); + data.append(3); data.append(3); data.append(0); data.append(1); - data.append(2); - data.append(1); data.append(3); data.append(3); - data.append(0); - data.append(4); data.append(3); + data.append(0); + data.append(0); + data.append(1); + data.append(0); data.append(3); data.append(0); + data.append(1); + data.append(2); + data.append(4); data.append(0); + data.append(4); + data.append(4); 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 7ba20a2f2..6c9b9ee56 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); - data.append(1); - data.append(3); data.append(1); data.append(0); - data.append(4); - data.append(3); data.append(3); - data.append(4); data.append(1); data.append(3); data.append(0); data.append(1); + data.append(3); data.append(2); - data.append(2); + data.append(0); + data.append(0); data.append(1); - data.append(2); + data.append(3); data.append(0); - data.append(4); + data.append(1); data.append(3); data.append(3); + data.append(3); + data.append(0); + data.append(4); + data.append(4); data.append(0); + data.append(3); data.append(0); data.append(1); - data.append(3); - data.append(3); + data.append(2); + data.append(4); 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 d887c1a39..a916b8329 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 @@ -8,8 +8,8 @@ fn output_1() -> 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: 0, sign: false }); + data.append(i32 { mag: 1, sign: false }); 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 5d6ba0796..717938c32 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 @@ -8,8 +8,8 @@ fn output_2() -> 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: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); 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 383a8cd0d..0d323524a 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use 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 275a5aa06..6cf246672 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 @@ -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(2); data.append(0); + data.append(3); + data.append(1); data.append(2); data.append(4); + data.append(4); + data.append(4); data.append(1); - data.append(0); + data.append(2); data.append(1); - data.append(4); - data.append(3); + data.append(0); data.append(2); data.append(3); - data.append(2); data.append(3); - data.append(0); - data.append(1); - data.append(2); - data.append(2); - data.append(2); - data.append(4); data.append(2); data.append(3); data.append(4); + data.append(2); + data.append(0); data.append(4); - data.append(3); data.append(1); + data.append(4); data.append(2); + data.append(4); 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 4b64b72c5..3f5703af8 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); + data.append(2); data.append(2); data.append(0); + data.append(3); + data.append(1); data.append(2); data.append(4); + data.append(4); + data.append(4); data.append(1); - data.append(0); + data.append(2); data.append(1); - data.append(4); - data.append(3); + data.append(0); data.append(2); data.append(3); - data.append(2); data.append(3); - data.append(0); - data.append(1); - data.append(2); - data.append(2); - data.append(2); - data.append(4); data.append(2); data.append(3); data.append(4); + data.append(2); + data.append(0); data.append(4); - data.append(3); data.append(1); + data.append(4); data.append(2); + data.append(4); 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 25e15d63f..c36fd0336 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use 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 3bed6a729..08f0a2cee 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); - data.append(4); - data.append(4); - data.append(4); - data.append(4); - data.append(1); - data.append(1); + data.append(0); data.append(1); - data.append(3); data.append(1); - data.append(3); data.append(0); data.append(0); - data.append(0); - data.append(2); data.append(2); - data.append(4); + data.append(3); + data.append(0); + data.append(3); data.append(2); data.append(3); data.append(3); data.append(1); data.append(4); - data.append(2); data.append(3); + data.append(0); + data.append(3); + data.append(1); data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(2); data.append(2); + data.append(1); + data.append(3); + 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 12832fcf9..82f820ce7 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 @@ -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(2); data.append(3); + data.append(0); data.append(3); data.append(1); - data.append(4); + data.append(0); + data.append(1); + data.append(1); data.append(2); + data.append(2); + data.append(1); data.append(3); data.append(1); data.append(2); data.append(3); + data.append(3); data.append(1); + data.append(4); data.append(3); data.append(0); - data.append(0); - data.append(0); - data.append(2); - data.append(2); - data.append(4); - data.append(4); data.append(3); - data.append(4); - data.append(4); - data.append(4); - data.append(4); - 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/output_1.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo index 7937e0b00..f9baf790f 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 @@ -8,8 +8,8 @@ fn output_1() -> Tensor { 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: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); 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 1939e2b93..445598f4c 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 @@ -8,8 +8,8 @@ fn output_2() -> Tensor { 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: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); 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 77d716ddd..e137c923f 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use 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 08057ceb2..1b9d0650e 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); - data.append(4); + data.append(3); data.append(4); data.append(3); data.append(3); - data.append(2); + data.append(3); data.append(4); data.append(2); + data.append(0); data.append(3); data.append(3); - data.append(1); - data.append(0); data.append(4); + data.append(1); data.append(4); data.append(4); - data.append(1); data.append(2); data.append(0); - data.append(1); data.append(4); + data.append(4); + data.append(3); data.append(1); + data.append(4); + data.append(0); + data.append(0); data.append(2); - data.append(1); - data.append(1); - data.append(3); data.append(2); + data.append(3); + data.append(3); 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 9d634be6d..0b45d7da7 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 @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); - data.append(4); data.append(3); + data.append(4); + data.append(2); + data.append(0); data.append(1); 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 5f01324be..c67d7995b 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 @@ -10,8 +10,8 @@ fn output_1() -> Tensor { 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: 4, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 11, sign: false }); 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 c06c56805..00990c8d2 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 @@ -10,30 +10,30 @@ fn output_2() -> Tensor { 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: 3, 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: 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: 3, 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: 2, sign: false }); - data.append(i32 { mag: 2, 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: 0, 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: 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: 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: 1, 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 }); 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 beafe0cd3..646f59877 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 @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 9, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 2, sign: false }); 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 93c6b3a48..8d2fef0b7 100644 --- a/tests/nodes/unique_u32_without_axis_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use 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 f075f3c2e..ea7f06d0b 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(4); - data.append(2); - 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(1); - data.append(2); data.append(1); - data.append(0); - data.append(2); - data.append(0); + data.append(4); data.append(1); data.append(3); + data.append(4); data.append(1); + data.append(4); data.append(2); + data.append(3); data.append(1); data.append(2); + data.append(3); + data.append(3); + data.append(4); + data.append(3); data.append(1); - data.append(2); data.append(1); data.append(4); data.append(3); + data.append(3); + data.append(4); + data.append(3); + data.append(0); + data.append(3); TensorTrait::new(shape.span(), data.span()) } 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 9b24b44d0..216a14ed7 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -8,10 +8,10 @@ fn output_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 6, sign: false }); 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: 10, sign: false }); data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 4, sign: false }); 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 dc5e15f1f..b1b3f2f25 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -8,32 +8,32 @@ fn output_2() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - 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: 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: 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: 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: 0, 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: 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: 3, 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: 3, 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: 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: 3, 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: 3, sign: false }); 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 21b09fe4e..76c669698 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 3, sign: false }); data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 6, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 7641ef376b3e4ab18017791330bce2120c03ca64 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 15:46:16 +0100 Subject: [PATCH 09/30] feat(tensor_unique): Checkpoint --- nodegen/node/unique.py | 4 +- .../tensor/manipulation/unique.cairo | 237 +++++++++++++----- 2 files changed, 178 insertions(+), 63 deletions(-) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index 53564dad0..668329227 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -59,7 +59,7 @@ def example(): name, ) - def example_2(): + def example_two(): x = np.array( [[1, 0, 0], [1, 0, 0], @@ -256,7 +256,7 @@ def with_axis_one_not_sorted(): ) example() - example_2() + example_two() without_axis_sorted() without_axis_not_sorted() with_axis_zero_sorted() diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index b42001597..d2a151e11 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -1,3 +1,5 @@ +use core::traits::Into; +use core::traits::IndexView; use option::OptionTrait; use array::{SpanTrait, ArrayTrait}; @@ -27,76 +29,164 @@ fn unique< Option::None => true, }; + let (unique_elements, new_shape, indices, inverse_indices, count) = if axis.is_none() { + unique_flatten(self, sorted) + } else { + unique_axis(self, axis.unwrap(), sorted) + }; + + let unique_elements = Tensor:: { shape: new_shape.span(), data: unique_elements.span() }; + let indices = Tensor:: { shape: array![indices.len()].span(), data: indices.span() }; + let inverse_indices = Tensor::< + i32 + > { shape: array![inverse_indices.len()].span(), data: inverse_indices.span() }; + let count = Tensor:: { shape: array![count.len()].span(), data: count.span() }; + + (unique_elements, indices, inverse_indices, count) +} + +/// Subfunction unique for flatten tensors (no axis). +fn unique_flatten< + T, + impl TCopy: Copy, + impl TDrop: Drop, + impl TPartialOrd: PartialOrd, + impl TPartialEq: PartialEq, +>( + t: @Tensor, sorted: bool +) -> (Array, Array, Array, Array, Array) { let mut unique_elements: Array = array![]; let mut new_shape: Array = array![]; let mut indices: Array = array![]; let mut inverse_indices: Array = array![]; let mut count: Array = array![]; - let mut data_cpy = *self.data; - match axis { - Option::Some(axis) => { - let rank = (*self).shape.len(); - assert(axis <= rank, 'axis out of dimensions'); - let unique_tensors: Array> = get_unique_subtensors(self, axis, rank); - }, - Option::None => { - loop { - match data_cpy.pop_front() { - Option::Some(value) => { - if !unique_elements.span().contains(*value) { - unique_elements.append(*value); - } - }, - Option::None => { break; } + let mut data_cpy = *t.data; + loop { + match data_cpy.pop_front() { + Option::Some(value) => { + if !unique_elements.span().contains(*value) { + unique_elements.append(*value); } - }; - if (sorted) { - unique_elements = merge(unique_elements); - } - new_shape.append(unique_elements.len()); + }, + Option::None => { break; } } - } + }; + new_shape.append(unique_elements.len()); - if axis.is_none() { - let mut unique_elements_span = unique_elements.span(); - loop { - match unique_elements_span.pop_front() { - Option::Some(value) => { - let occurences = (*self.data).occurrences_of(*value); - count.append(occurences.into()); - let idx_in_data = (*self.data).index_of(*value).unwrap(); - indices.append(idx_in_data.into()); - }, - Option::None => { break; } - } - }; - unique_elements_span = unique_elements.span(); - data_cpy = *self.data; - loop { - match data_cpy.pop_front() { - Option::Some(value) => { - let idx_in_uniques = unique_elements_span.index_of(*value).unwrap(); - inverse_indices.append(idx_in_uniques.into()); - }, - Option::None => { break; } - } - }; + if (sorted) { + unique_elements = merge(unique_elements); } + let mut unique_elements_span = unique_elements.span(); + loop { + match unique_elements_span.pop_front() { + Option::Some(value) => { + let occurences = (*t.data).occurrences_of(*value); + count.append(occurences.into()); + let idx_in_data = (*t.data).index_of(*value).unwrap(); + indices.append(idx_in_data.into()); + }, + Option::None => { break; } + } + }; + unique_elements_span = unique_elements.span(); + data_cpy = *t.data; + loop { + match data_cpy.pop_front() { + Option::Some(value) => { + let idx_in_uniques = unique_elements_span.index_of(*value).unwrap(); + inverse_indices.append(idx_in_uniques.into()); + }, + Option::None => { break; } + } + }; - let unique_elements = Tensor:: { shape: new_shape.span(), data: unique_elements.span() }; - let indices = Tensor:: { shape: array![indices.len()].span(), data: indices.span() }; - let inverse_indices = Tensor::< - i32 - > { shape: array![inverse_indices.len()].span(), data: inverse_indices.span() }; - let count = Tensor:: { shape: array![count.len()].span(), data: count.span() }; - - (unique_elements, indices, inverse_indices, count) + return (unique_elements, new_shape, indices, inverse_indices, count); } +/// Subfunction unique for tensors (wth axis). +fn unique_axis< + T, + impl TCopy: Copy, + impl TDrop: Drop, + impl TTensor: TensorTrait, + impl TPartialOrd: PartialOrd, + impl TPartialEq: PartialEq, + impl TPartialEqTensor: PartialEq> +>( + t: @Tensor, axis: usize, sorted: bool +) -> (Array, Array, Array, Array, Array) { + let mut unique_elements: Array = array![]; + let mut unique_tensors: Array> = array![]; + let mut new_shape: Array = array![]; + let mut indices: Array = array![]; + let mut inverse_indices: Array = array![]; + let mut count: Array = array![]; + + let rank = (*t).shape.len(); + assert(axis <= rank, 'axis out of dimensions'); + + let all_tensors = as_tensors_array(t, axis, rank); + let mut unique_tensors = get_unique_tensors(all_tensors.span()); + let mut unique_tensors_len = unique_tensors.len(); + + let mut i = 0; + loop { + if (i >= rank) { + break; + } + new_shape.append(if axis == i { + unique_tensors_len + } else { + *(*t).shape.at(i) + }); + i += 1; + }; + 'TODO: sort the tensor'.print(); + let mut unique_tensors_span = unique_tensors.span(); + let mut all_tensors_span = all_tensors.span(); + loop { + match unique_tensors_span.pop_front() { + Option::Some(t) => { + let occurences = all_tensors_span.occurrences_of(*t); + count.append(occurences.into()); + let idx_in_all = all_tensors_span.index_of(*t).unwrap(); + indices.append(idx_in_all.into()); + }, + Option::None => { break; } + } + }; + unique_tensors_span = unique_tensors.span(); + loop { + match all_tensors_span.pop_front() { + Option::Some(t) => { + let idx_in_uniques = unique_tensors_span.index_of(*t).unwrap(); + inverse_indices.append(idx_in_uniques.into()); + }, + Option::None => { break; } + } + }; -/// Returns in an array all the unique subtensors of the passed tensor. -fn get_unique_subtensors< + // Flatten unique tensors into unique elements + loop { + match unique_tensors.pop_front() { + Option::Some(mut t) => { + loop { + match t.data.pop_front() { + Option::Some(v) => { unique_elements.append(*v); }, + Option::None => { break; } + } + }; + }, + Option::None => { break; }, + } + }; + + return (unique_elements, new_shape, indices, inverse_indices, count); +} + +/// Returns a Tensor as an array of tensors +fn as_tensors_array< T, impl TCopy: Copy, impl TDrop: Drop, @@ -108,7 +198,7 @@ fn get_unique_subtensors< tensor: @Tensor, axis: usize, rank: usize ) -> Array> { let shape = *tensor.shape; - let mut unique_tensors: Array> = array![]; + let mut as_tensors: Array> = array![]; let mut axes: Array = array![]; let mut idx: usize = 0; @@ -154,10 +244,35 @@ fn get_unique_subtensors< steps: Option::None(()) ); - if !unique_tensors.span().contains(sub_tensor) { - unique_tensors.append(sub_tensor); - } + as_tensors.append(sub_tensor); + idx += 1; }; - unique_tensors + as_tensors +} + +fn get_unique_tensors< + T, + impl TCopy: Copy, + impl TDrop: Drop, + impl TTensor: TensorTrait, + impl TPartialOrd: PartialOrd, + impl TPartialEq: PartialEq, + impl TPartialEqTensor: PartialEq> +>( + mut arr: Span> +) -> Array> { + let mut uniques_tensors: Array> = array![]; + + loop { + match arr.pop_front() { + Option::Some(t) => { + if !uniques_tensors.span().contains(*t) { + uniques_tensors.append(*t); + } + }, + Option::None => { break; }, + } + }; + return uniques_tensors; } From 221e8ee06e88b6dba156174261126ed93306b440 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 18:24:53 +0100 Subject: [PATCH 10/30] feat(tensor_unique): Checkpoint --- nodegen/node/unique.py | 12 ++- src/numbers/signed_integer/i32.cairo | 5 +- src/operators/tensor/manipulation.cairo | 2 +- .../tensor/manipulation/unique.cairo | 77 +++++++++++++------ tests/nodes/unique_u32_example.cairo | 6 +- tests/nodes/unique_u32_example/output_0.cairo | 2 +- tests/nodes/unique_u32_example/output_1.cairo | 2 +- tests/nodes/unique_u32_example/output_2.cairo | 4 +- tests/nodes/unique_u32_example/output_3.cairo | 2 +- tests/nodes/unique_u32_example_two.cairo | 6 +- .../unique_u32_with_axis_one_not_sorted.cairo | 38 +++++++-- .../input_0.cairo | 30 ++++---- .../output_0.cairo | 30 ++++---- .../unique_u32_with_axis_one_sorted.cairo | 6 +- .../input_0.cairo | 24 +++--- .../output_0.cairo | 24 +++--- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +- .../input_0.cairo | 24 +++--- .../output_0.cairo | 24 +++--- .../unique_u32_with_axis_zero_sorted.cairo | 6 +- .../input_0.cairo | 22 +++--- .../output_0.cairo | 28 +++---- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- .../unique_u32_without_axis_not_sorted.cairo | 6 +- .../input_0.cairo | 24 +++--- .../output_0.cairo | 2 +- .../output_1.cairo | 6 +- .../output_2.cairo | 22 +++--- .../output_3.cairo | 10 +-- .../unique_u32_without_axis_sorted.cairo | 6 +- .../input_0.cairo | 22 +++--- .../output_0.cairo | 4 +- .../output_1.cairo | 6 +- .../output_2.cairo | 28 +++---- .../output_3.cairo | 8 +- 36 files changed, 297 insertions(+), 231 deletions(-) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index 668329227..f7a4b4b72 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -40,6 +40,9 @@ def example(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -70,6 +73,9 @@ def example_two(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -96,7 +102,10 @@ def without_axis_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) + x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( Dtype.U32, unique_values.shape, unique_values.flatten() @@ -122,7 +131,6 @@ def without_axis_not_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( x, axis, unique_values, indices, inverse_indices, counts ) diff --git a/src/numbers/signed_integer/i32.cairo b/src/numbers/signed_integer/i32.cairo index 286068efb..b6a77427e 100644 --- a/src/numbers/signed_integer/i32.cairo +++ b/src/numbers/signed_integer/i32.cairo @@ -46,10 +46,7 @@ impl i32Impl of IntegerTrait { // Implements the Into trait for u32 -> i32 impl u32Intoi32 of Into { fn into(self: u32) -> i32 { - i32 { - mag: self.into(), - sign: false - } + i32 { mag: self.into(), sign: false } } } diff --git a/src/operators/tensor/manipulation.cairo b/src/operators/tensor/manipulation.cairo index ed79ecaf6..b517c624e 100644 --- a/src/operators/tensor/manipulation.cairo +++ b/src/operators/tensor/manipulation.cairo @@ -1 +1 @@ -mod unique; \ No newline at end of file +mod unique; diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index d2a151e11..aae3a6031 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -9,7 +9,7 @@ use alexandria_data_structures::array_ext::SpanTraitExt; use alexandria_sorting::merge_sort::merge; use orion::numbers::{i32, NumberTrait}; -use orion::operators::tensor::core::{Tensor, TensorTrait}; +use orion::operators::tensor::core::{Tensor, TensorTrait, stride}; /// Cf: TensorTrait::unique docstring @@ -32,7 +32,7 @@ fn unique< let (unique_elements, new_shape, indices, inverse_indices, count) = if axis.is_none() { unique_flatten(self, sorted) } else { - unique_axis(self, axis.unwrap(), sorted) + unique_along_axis(self, axis.unwrap(), sorted) }; let unique_elements = Tensor:: { shape: new_shape.span(), data: unique_elements.span() }; @@ -74,23 +74,28 @@ fn unique_flatten< }; new_shape.append(unique_elements.len()); + // TODO: investigate why calling merge before the next 2 loops + // cause the program to crash with error: + // #73054: One of the arguments does not satisfy the requirements of the libfunc. if (sorted) { - unique_elements = merge(unique_elements); + // unique_elements = merge(unique_elements); + unique_elements = unique_elements; } + let mut unique_elements_span = unique_elements.span(); + let mut data_cpy = *(t.data); loop { match unique_elements_span.pop_front() { Option::Some(value) => { - let occurences = (*t.data).occurrences_of(*value); + let occurences = data_cpy.occurrences_of(*value); count.append(occurences.into()); - let idx_in_data = (*t.data).index_of(*value).unwrap(); + let idx_in_data = data_cpy.index_of(*value).unwrap(); indices.append(idx_in_data.into()); }, Option::None => { break; } } }; unique_elements_span = unique_elements.span(); - data_cpy = *t.data; loop { match data_cpy.pop_front() { Option::Some(value) => { @@ -105,7 +110,7 @@ fn unique_flatten< } /// Subfunction unique for tensors (wth axis). -fn unique_axis< +fn unique_along_axis< T, impl TCopy: Copy, impl TDrop: Drop, @@ -116,7 +121,6 @@ fn unique_axis< >( t: @Tensor, axis: usize, sorted: bool ) -> (Array, Array, Array, Array, Array) { - let mut unique_elements: Array = array![]; let mut unique_tensors: Array> = array![]; let mut new_shape: Array = array![]; let mut indices: Array = array![]; @@ -142,7 +146,12 @@ fn unique_axis< }); i += 1; }; - 'TODO: sort the tensor'.print(); + // TODO: need to implement PartialOrd for Tensor in order to sort the tensors + // using merge from Alexandria. (is this the right solution?) + if (sorted) { + // unique_tensors = merge(unique_tensors); + unique_tensors = unique_tensors; + } let mut unique_tensors_span = unique_tensors.span(); let mut all_tensors_span = all_tensors.span(); loop { @@ -167,20 +176,7 @@ fn unique_axis< } }; - // Flatten unique tensors into unique elements - loop { - match unique_tensors.pop_front() { - Option::Some(mut t) => { - loop { - match t.data.pop_front() { - Option::Some(v) => { unique_elements.append(*v); }, - Option::None => { break; } - } - }; - }, - Option::None => { break; }, - } - }; + let unique_elements = flatten_array_of_tensors(unique_tensors, axis, new_shape.span()); return (unique_elements, new_shape, indices, inverse_indices, count); } @@ -251,6 +247,7 @@ fn as_tensors_array< as_tensors } +/// TODO fn get_unique_tensors< T, impl TCopy: Copy, @@ -276,3 +273,37 @@ fn get_unique_tensors< }; return uniques_tensors; } + +/// TODO +fn flatten_array_of_tensors< + T, + impl TCopy: Copy, + impl TDrop: Drop, + impl TTensor: TensorTrait, + impl TPartialOrd: PartialOrd, + impl TPartialEq: PartialEq, + impl TPartialEqTensor: PartialEq> +>( + tensors: Array>, axis: usize, new_shape: Span +) -> Array { + let num_sub_tensors = tensors.len(); // Number of sub-tensors in the array + let mut new_stride = stride(new_shape); + + let mut tensors_span = tensors.span(); + let mut flattened: Array = array![]; + loop { + match tensors_span.pop_front() { + Option::Some(mut t) => { + let mut data = *t.data; + loop { + match data.pop_front() { + Option::Some(v) => { flattened.append(*v); }, + Option::None => { break; } + } + }; + }, + Option::None => { break; }, + } + }; + flattened +} diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo index 7908d1c3a..664874518 100644 --- a/tests/nodes/unique_u32_example.cairo +++ b/tests/nodes/unique_u32_example.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_example/output_0.cairo b/tests/nodes/unique_u32_example/output_0.cairo index 1ede61a4e..775ae2c22 100644 --- a/tests/nodes/unique_u32_example/output_0.cairo +++ b/tests/nodes/unique_u32_example/output_0.cairo @@ -7,8 +7,8 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(1); data.append(2); + data.append(1); data.append(3); data.append(4); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/unique_u32_example/output_1.cairo b/tests/nodes/unique_u32_example/output_1.cairo index 265eb461c..43ab94da8 100644 --- a/tests/nodes/unique_u32_example/output_1.cairo +++ b/tests/nodes/unique_u32_example/output_1.cairo @@ -8,8 +8,8 @@ fn output_1() -> Tensor { shape.append(4); 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: 3, sign: false }); data.append(i32 { mag: 4, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/unique_u32_example/output_2.cairo b/tests/nodes/unique_u32_example/output_2.cairo index 1b2efecbe..1301f355f 100644 --- a/tests/nodes/unique_u32_example/output_2.cairo +++ b/tests/nodes/unique_u32_example/output_2.cairo @@ -8,9 +8,9 @@ fn output_2() -> Tensor { shape.append(6); let mut data = ArrayTrait::new(); - 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: 1, sign: false }); data.append(i32 { mag: 2, sign: false }); data.append(i32 { mag: 3, sign: false }); data.append(i32 { mag: 2, sign: false }); diff --git a/tests/nodes/unique_u32_example/output_3.cairo b/tests/nodes/unique_u32_example/output_3.cairo index d9dc64a2d..1fb61830f 100644 --- a/tests/nodes/unique_u32_example/output_3.cairo +++ b/tests/nodes/unique_u32_example/output_3.cairo @@ -8,9 +8,9 @@ fn output_3() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - 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 }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo index 4d2965213..553c0d26c 100644 --- a/tests/nodes/unique_u32_example_two.cairo +++ b/tests/nodes/unique_u32_example_two.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] 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 ee252986d..45257a99f 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,15 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; + +use debug::PrintTrait; #[test] #[available_gas(2000000000)] @@ -23,9 +25,33 @@ fn test_unique_u32_with_axis_one_not_sorted() { let z_3 = output_3::output_3(); let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); - - assert_eq(y_0, z_0); + + let mut x = y_0.data; + let mut i = 0; + loop { + match x.pop_front() { + Option::Some(v) => { + let m: felt252 = (*v).into(); + if i == 9 { + '------'.print(); + i = 0; + } + m.print(); + }, + Option::None => { + break; + }, + } + i += 1; + }; + + 'a'.print(); + assert_eq(y_3, z_3); + 'b'.print(); assert_eq(y_1, z_1); + 'c'.print(); assert_eq(y_2, z_2); - assert_eq(y_3, z_3); + 'd'.print(); + assert_eq(y_0, z_0); + 'e'.print(); } 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 faf8d1701..d8dd4ee71 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 @@ -9,32 +9,34 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); - data.append(0); data.append(0); + data.append(1); data.append(2); - data.append(0); - data.append(4); data.append(3); + data.append(3); + data.append(3); + data.append(1); + data.append(0); + data.append(0); + data.append(2); data.append(2); + data.append(1); + data.append(3); data.append(4); - data.append(2); - data.append(0); + data.append(3); data.append(4); - data.append(2); - data.append(1); data.append(1); data.append(4); + data.append(0); - data.append(2); - data.append(3); - data.append(4); + data.append(1); data.append(0); + data.append(2); data.append(4); - data.append(1); data.append(4); - data.append(3); + data.append(2); + data.append(0); + data.append(2); 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 560b97cc1..64febc2e3 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 @@ -9,32 +9,34 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); - data.append(0); data.append(0); + data.append(1); data.append(2); - data.append(0); - data.append(4); data.append(3); + data.append(3); + data.append(3); + data.append(1); + data.append(0); + data.append(0); + data.append(2); data.append(2); + data.append(1); + data.append(3); data.append(4); - data.append(2); - data.append(0); + data.append(3); data.append(4); - data.append(2); - data.append(1); data.append(1); data.append(4); + data.append(0); - data.append(2); - data.append(3); - data.append(4); + data.append(1); data.append(0); + data.append(2); data.append(4); - data.append(1); data.append(4); - data.append(3); + data.append(2); + data.append(0); + data.append(2); 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 920d4b72a..ef470d750 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::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[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 78757fde9..a11e7d69c 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(3); + data.append(4); + data.append(4); + data.append(4); + data.append(4); data.append(0); - data.append(1); - data.append(3); - data.append(2); - data.append(1); data.append(0); data.append(3); - data.append(3); data.append(0); - data.append(1); - data.append(3); data.append(3); data.append(3); + data.append(4); data.append(0); data.append(0); + data.append(3); data.append(1); data.append(0); - data.append(3); data.append(0); data.append(1); - data.append(2); data.append(4); data.append(0); - data.append(4); - data.append(4); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(3); + data.append(0); 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 6c9b9ee56..1d63ff383 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(3); - data.append(1); - data.append(3); data.append(0); data.append(1); - data.append(3); - data.append(2); - data.append(0); + data.append(4); + data.append(4); + data.append(4); + data.append(4); data.append(0); data.append(1); - data.append(3); data.append(0); - data.append(1); - data.append(3); + data.append(0); data.append(3); data.append(3); - data.append(0); - data.append(4); data.append(4); data.append(0); + data.append(0); + data.append(3); + data.append(0); data.append(3); data.append(0); data.append(1); - data.append(2); data.append(4); + data.append(0); + 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 0d323524a..e5bf68abc 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::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[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 6cf246672..0dc4a0681 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); + data.append(4); data.append(2); - data.append(0); - data.append(3); data.append(1); - data.append(2); - data.append(4); - data.append(4); data.append(4); data.append(1); data.append(2); - data.append(1); data.append(0); - data.append(2); - data.append(3); + data.append(1); data.append(3); data.append(2); + data.append(0); data.append(3); - data.append(4); data.append(2); - data.append(0); + data.append(2); data.append(4); + data.append(2); data.append(1); + data.append(0); + data.append(3); + data.append(0); + data.append(3); + data.append(3); data.append(4); + data.append(3); data.append(2); data.append(4); + data.append(0); 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 3f5703af8..5a971fb95 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); + data.append(4); data.append(2); - data.append(0); - data.append(3); data.append(1); - data.append(2); - data.append(4); - data.append(4); data.append(4); data.append(1); data.append(2); - data.append(1); data.append(0); - data.append(2); - data.append(3); + data.append(1); data.append(3); data.append(2); + data.append(0); data.append(3); - data.append(4); data.append(2); - data.append(0); + data.append(2); data.append(4); + data.append(2); data.append(1); + data.append(0); + data.append(3); + data.append(0); + data.append(3); + data.append(3); data.append(4); + data.append(3); data.append(2); data.append(4); + data.append(0); 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 c36fd0336..847c6b892 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::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[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 08f0a2cee..1b1999b46 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(1); - data.append(1); - data.append(0); - data.append(0); data.append(2); - data.append(3); data.append(0); + data.append(2); data.append(3); + data.append(4); + data.append(2); + data.append(1); data.append(2); + data.append(1); data.append(3); data.append(3); - data.append(1); - data.append(4); data.append(3); + data.append(2); data.append(0); data.append(3); - data.append(1); - data.append(1); - data.append(0); - data.append(1); + data.append(4); + data.append(2); + data.append(2); data.append(1); data.append(2); data.append(2); 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/unique_u32_with_axis_zero_sorted/output_0.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo index 82f820ce7..74df53a7c 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 @@ -10,31 +10,31 @@ 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(2); - data.append(3); - data.append(0); - data.append(3); - data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(2); data.append(2); - data.append(1); data.append(3); + data.append(4); + data.append(2); data.append(1); data.append(2); + data.append(1); data.append(3); data.append(3); - data.append(1); - data.append(4); data.append(3); + data.append(2); data.append(0); data.append(3); + data.append(4); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + 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/unique_u32_with_axis_zero_sorted/output_1.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo index f9baf790f..e3a48b20a 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 @@ -9,7 +9,7 @@ fn output_1() -> Tensor { 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(i32 { mag: 2, sign: false }); 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 445598f4c..7d3ab361b 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 @@ -9,7 +9,7 @@ fn output_2() -> Tensor { 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(i32 { mag: 2, sign: false }); 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 e137c923f..223812792 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::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[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 1b9d0650e..f4a961a8f 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(4); - data.append(3); - data.append(3); - data.append(3); - data.append(4); data.append(2); data.append(0); - data.append(3); - data.append(3); data.append(4); data.append(1); data.append(4); - data.append(4); - data.append(2); + data.append(1); + data.append(3); data.append(0); + data.append(3); data.append(4); - data.append(4); data.append(3); + data.append(0); + data.append(0); + data.append(0); + 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(1); data.append(2); data.append(2); data.append(3); - data.append(3); + 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 0b45d7da7..bb28bb58f 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 @@ -8,9 +8,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(4); data.append(2); data.append(0); + data.append(4); data.append(1); 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 c67d7995b..ee4041436 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 @@ -10,8 +10,8 @@ fn output_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(i32 { mag: 0, sign: false }); data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); 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 00990c8d2..d83f1ae28 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 @@ -10,30 +10,30 @@ fn output_2() -> Tensor { 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: 3, 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: 3, 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: 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: 4, 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: 3, sign: false }); + data.append(i32 { mag: 4, 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: 4, 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: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); 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 646f59877..b2157149f 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 @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 8, 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: 7, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 5, sign: false }); 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 8d2fef0b7..aa4894215 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::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[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 ea7f06d0b..9629f42c5 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); + data.append(4); + data.append(4); + data.append(3); data.append(3); - data.append(1); - data.append(1); data.append(4); + data.append(0); data.append(1); data.append(3); + data.append(0); data.append(4); data.append(1); - data.append(4); + data.append(0); data.append(2); - data.append(3); - data.append(1); + data.append(0); data.append(2); data.append(3); + data.append(0); data.append(3); data.append(4); - data.append(3); - data.append(1); data.append(1); - data.append(4); data.append(3); data.append(3); - data.append(4); data.append(3); data.append(0); - data.append(3); + data.append(0); + data.append(0); + data.append(1); 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 dff01c104..6bfca090e 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(4); + data.append(3); data.append(0); data.append(1); data.append(2); - data.append(3); - data.append(4); TensorTrait::new(shape.span(), data.span()) } 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 216a14ed7..693758852 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -10,8 +10,8 @@ fn output_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(i32 { mag: 0, sign: false }); data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, 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: 6, sign: false }); + data.append(i32 { mag: 12, sign: false }); 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 b1b3f2f25..e598498fc 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -9,31 +9,31 @@ fn output_2() -> Tensor { let mut data = ArrayTrait::new(); 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: 4, 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: 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(i32 { mag: 2, 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: 2, 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: 1, 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: 3, 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: 3, 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: 3, sign: false }); 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 76c669698..7c757a597 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 4, sign: false }); data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 6, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 17e1147fe23b671beb00d04b460b0526c6f08335 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 18:44:59 +0100 Subject: [PATCH 11/30] feat(tensor_unique): OK tests --- nodegen/node/unique.py | 8 +- .../tensor/manipulation/unique.cairo | 46 ++++++---- tests/nodes.cairo | 90 +++++++++---------- tests/nodes/unique_u32_example.cairo | 6 +- tests/nodes/unique_u32_example_two.cairo | 6 +- .../unique_u32_with_axis_one_not_sorted.cairo | 38 ++------ .../input_0.cairo | 26 +++--- .../output_0.cairo | 26 +++--- .../unique_u32_with_axis_one_sorted.cairo | 6 +- .../input_0.cairo | 24 ++--- .../output_0.cairo | 28 +++--- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +- .../input_0.cairo | 24 ++--- .../output_0.cairo | 24 ++--- .../unique_u32_with_axis_zero_sorted.cairo | 6 +- .../input_0.cairo | 26 +++--- .../output_0.cairo | 26 +++--- .../unique_u32_without_axis_not_sorted.cairo | 6 +- .../input_0.cairo | 22 ++--- .../output_0.cairo | 4 +- .../output_1.cairo | 4 +- .../output_2.cairo | 22 ++--- .../output_3.cairo | 2 +- .../unique_u32_without_axis_sorted.cairo | 6 +- .../input_0.cairo | 22 ++--- .../output_0.cairo | 6 +- .../output_1.cairo | 6 +- .../output_2.cairo | 18 ++-- .../output_3.cairo | 8 +- 31 files changed, 268 insertions(+), 278 deletions(-) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index f7a4b4b72..e85d9f9d5 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -105,7 +105,7 @@ def without_axis_sorted(): unique_values, indices, inverse_indices, counts = _unsort_outputs( x, axis, unique_values, indices, inverse_indices, counts ) - + x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( Dtype.U32, unique_values.shape, unique_values.flatten() @@ -160,6 +160,9 @@ def with_axis_zero_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -215,6 +218,9 @@ def with_axis_one_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index aae3a6031..09897e2b5 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -20,7 +20,8 @@ fn unique< impl TTensor: TensorTrait, impl TPartialOrd: PartialOrd, impl TPartialEq: PartialEq, - impl TPartialEqTensor: PartialEq> + impl TPartialEqTensor: PartialEq>, + impl TInto: Into // delete this >( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { @@ -117,7 +118,7 @@ fn unique_along_axis< impl TTensor: TensorTrait, impl TPartialOrd: PartialOrd, impl TPartialEq: PartialEq, - impl TPartialEqTensor: PartialEq> + impl TPartialEqTensor: PartialEq>, >( t: @Tensor, axis: usize, sorted: bool ) -> (Array, Array, Array, Array, Array) { @@ -282,28 +283,41 @@ fn flatten_array_of_tensors< impl TTensor: TensorTrait, impl TPartialOrd: PartialOrd, impl TPartialEq: PartialEq, - impl TPartialEqTensor: PartialEq> + impl TPartialEqTensor: PartialEq>, >( tensors: Array>, axis: usize, new_shape: Span ) -> Array { - let num_sub_tensors = tensors.len(); // Number of sub-tensors in the array let mut new_stride = stride(new_shape); - let mut tensors_span = tensors.span(); let mut flattened: Array = array![]; + + let stride_lim: usize = *new_stride.at(axis); + + let max_row = (*(*tensors.at(0).shape).at(0)); + let mut row = 0; loop { - match tensors_span.pop_front() { - Option::Some(mut t) => { - let mut data = *t.data; - loop { - match data.pop_front() { - Option::Some(v) => { flattened.append(*v); }, - Option::None => { break; } - } - }; - }, - Option::None => { break; }, + if row >= max_row { + break; } + let mut tensors_span = tensors.span(); + loop { + let mut i = 0; + match tensors_span.pop_front() { + Option::Some(mut t) => { + let mut data = *t.data; + loop { + if i >= stride_lim { + break; + } + let idx = i + (row * stride_lim); + flattened.append(*data.at(idx)); + i += 1; + } + }, + Option::None => { break; }, + } + }; + row += 1; }; flattened } diff --git a/tests/nodes.cairo b/tests/nodes.cairo index 755760ecc..5de479ca1 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -1,48 +1,48 @@ -// mod sign_i32; -// mod sign_i8; -// mod clip_fp16x16_2d; -// mod clip_fp16x16_3d; -// mod clip_fp8x23_2d; -// mod clip_fp8x23_3d; -// mod clip_i32_2d; -// mod clip_i32_3d; -// mod clip_i8_2d; -// mod clip_i8_3d; -// mod clip_u32_2d; -// mod clip_u32_3d; -// mod and_fp16x16; -// mod and_fp16x16_broadcast; -// mod and_fp8x23; -// mod and_fp8x23_broadcast; -// mod and_i32; -// mod and_i32_broadcast; -// mod and_i8; -// mod and_i8_broadcast; -// mod and_u32; -// mod and_u32_broadcast; -// mod identity_fP16x16; -// mod identity_fP8x23; -// mod identity_i32; -// mod identity_i8; -// mod identity_u32; -// mod thresholded_relu_fp16x16; -// mod thresholded_relu_fp8x23; -// mod hard_sigmoid_fp8x23; -// mod hard_sigmoid_fp16x16; -// mod neg_fp16x16; -// mod neg_fp8x23; -// mod neg_i32; -// mod neg_i8; -// mod gemm_all_attributes; -// mod gemm_alpha; -// mod gemm_beta; -// mod gemm_default_matrix_bias; -// mod gemm_default_vector_bias; -// mod gemm_default_no_bias; -// mod gemm_transposeA; -// mod gemm_transposeB; -// mod min_fp16x16_three_tensors; -// mod min_fp16x16_broadcast_three_tensors; +mod sign_i32; +mod sign_i8; +mod clip_fp16x16_2d; +mod clip_fp16x16_3d; +mod clip_fp8x23_2d; +mod clip_fp8x23_3d; +mod clip_i32_2d; +mod clip_i32_3d; +mod clip_i8_2d; +mod clip_i8_3d; +mod clip_u32_2d; +mod clip_u32_3d; +mod and_fp16x16; +mod and_fp16x16_broadcast; +mod and_fp8x23; +mod and_fp8x23_broadcast; +mod and_i32; +mod and_i32_broadcast; +mod and_i8; +mod and_i8_broadcast; +mod and_u32; +mod and_u32_broadcast; +mod identity_fP16x16; +mod identity_fP8x23; +mod identity_i32; +mod identity_i8; +mod identity_u32; +mod thresholded_relu_fp16x16; +mod thresholded_relu_fp8x23; +mod hard_sigmoid_fp8x23; +mod hard_sigmoid_fp16x16; +mod neg_fp16x16; +mod neg_fp8x23; +mod neg_i32; +mod neg_i8; +mod gemm_all_attributes; +mod gemm_alpha; +mod gemm_beta; +mod gemm_default_matrix_bias; +mod gemm_default_vector_bias; +mod gemm_default_no_bias; +mod gemm_transposeA; +mod gemm_transposeB; +mod min_fp16x16_three_tensors; +mod min_fp16x16_broadcast_three_tensors; mod unique_u32_example; mod unique_u32_example_two; mod unique_u32_without_axis_sorted; diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo index 664874518..3b50ac1ba 100644 --- a/tests/nodes/unique_u32_example.cairo +++ b/tests/nodes/unique_u32_example.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo index 553c0d26c..4df57aecb 100644 --- a/tests/nodes/unique_u32_example_two.cairo +++ b/tests/nodes/unique_u32_example_two.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] 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 45257a99f..701331bf2 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo @@ -6,14 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; - -use debug::PrintTrait; #[test] #[available_gas(2000000000)] @@ -25,33 +23,9 @@ fn test_unique_u32_with_axis_one_not_sorted() { let z_3 = output_3::output_3(); let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); - - let mut x = y_0.data; - let mut i = 0; - loop { - match x.pop_front() { - Option::Some(v) => { - let m: felt252 = (*v).into(); - if i == 9 { - '------'.print(); - i = 0; - } - m.print(); - }, - Option::None => { - break; - }, - } - i += 1; - }; - - 'a'.print(); - assert_eq(y_3, z_3); - 'b'.print(); + + assert_eq(y_0, z_0); assert_eq(y_1, z_1); - 'c'.print(); assert_eq(y_2, z_2); - 'd'.print(); - assert_eq(y_0, z_0); - 'e'.print(); + assert_eq(y_3, z_3); } 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 d8dd4ee71..f260e5911 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 @@ -9,34 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(2); - data.append(3); data.append(3); data.append(3); - data.append(1); + data.append(2); + data.append(2); data.append(0); data.append(0); - - data.append(2); + data.append(1); data.append(2); + data.append(4); data.append(1); data.append(3); - data.append(4); data.append(3); data.append(4); - data.append(1); data.append(4); - - data.append(0); + data.append(3); data.append(1); + data.append(2); data.append(0); data.append(2); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(3); data.append(4); data.append(4); - data.append(2); - data.append(0); - data.append(2); 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 64febc2e3..561fb3047 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 @@ -9,34 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(2); - data.append(3); data.append(3); data.append(3); - data.append(1); + data.append(2); + data.append(2); data.append(0); data.append(0); - - data.append(2); + data.append(1); data.append(2); + data.append(4); data.append(1); data.append(3); - data.append(4); data.append(3); data.append(4); - data.append(1); data.append(4); - - data.append(0); + data.append(3); data.append(1); + data.append(2); data.append(0); data.append(2); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(3); data.append(4); data.append(4); - data.append(2); - data.append(0); - data.append(2); 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 ef470d750..6e0dc4e79 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 a11e7d69c..06a813a1e 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 @@ -11,30 +11,30 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(4); - data.append(4); - data.append(4); - data.append(4); data.append(0); data.append(0); + data.append(1); data.append(3); data.append(0); + data.append(1); data.append(3); - data.append(3); + data.append(2); data.append(4); - data.append(0); - data.append(0); + data.append(2); + data.append(2); data.append(3); - data.append(1); - data.append(0); - data.append(0); - data.append(1); data.append(4); - data.append(0); - data.append(1); data.append(1); data.append(1); + data.append(3); + data.append(2); data.append(0); data.append(3); + data.append(3); + data.append(1); + data.append(2); data.append(0); + data.append(3); + data.append(2); 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 1d63ff383..7ab0409c5 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(3); - data.append(0); data.append(1); data.append(4); - data.append(4); - data.append(4); - data.append(4); data.append(0); - data.append(1); data.append(0); + data.append(1); + data.append(3); data.append(0); + data.append(1); data.append(3); + data.append(2); + data.append(4); + data.append(2); + data.append(2); data.append(3); data.append(4); - 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(0); + data.append(3); data.append(1); - data.append(4); + data.append(2); data.append(0); - data.append(1); - data.append(1); - data.append(1); + data.append(3); + data.append(2); 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 a916b8329..e3a48b20a 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 @@ -8,8 +8,8 @@ fn output_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: 2, sign: false }); 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 717938c32..7d3ab361b 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 @@ -8,8 +8,8 @@ fn output_2() -> 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: 0, sign: false }); 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 e5bf68abc..386f25c70 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 0dc4a0681..ec7a2c815 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(2); + data.append(1); data.append(1); data.append(4); + data.append(0); data.append(1); - data.append(2); + data.append(4); data.append(0); + data.append(4); data.append(1); - data.append(3); - data.append(2); data.append(0); data.append(3); data.append(2); - data.append(2); data.append(4); - data.append(2); data.append(1); - data.append(0); + data.append(1); + data.append(1); + data.append(4); + data.append(2); data.append(3); + data.append(1); + data.append(4); data.append(0); - data.append(3); - data.append(3); + data.append(2); data.append(4); data.append(3); + data.append(3); data.append(2); - data.append(4); - data.append(0); 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 5a971fb95..b9ba3dd9e 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(2); + data.append(1); data.append(1); data.append(4); + data.append(0); data.append(1); - data.append(2); + data.append(4); data.append(0); + data.append(4); data.append(1); - data.append(3); - data.append(2); data.append(0); data.append(3); data.append(2); - data.append(2); data.append(4); - data.append(2); data.append(1); - data.append(0); + data.append(1); + data.append(1); + data.append(4); + data.append(2); data.append(3); + data.append(1); + data.append(4); data.append(0); - data.append(3); - data.append(3); + data.append(2); data.append(4); data.append(3); + data.append(3); data.append(2); - data.append(4); - data.append(0); 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 847c6b892..8c9ad61ad 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 1b1999b46..620dfb913 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 @@ -9,31 +9,31 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); - data.append(0); - data.append(2); data.append(3); data.append(4); - data.append(2); + data.append(3); data.append(1); + data.append(4); + data.append(1); + data.append(4); + data.append(2); data.append(2); + data.append(0); + data.append(4); + data.append(4); data.append(1); + data.append(1); + data.append(2); + data.append(2); data.append(3); data.append(3); data.append(3); - data.append(2); - data.append(0); + data.append(4); data.append(3); data.append(4); data.append(2); data.append(2); - data.append(1); - data.append(2); - data.append(2); - data.append(1); - data.append(3); - 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_sorted/output_0.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo index 74df53a7c..ec823ad3a 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 @@ -9,31 +9,31 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); - data.append(0); - data.append(2); data.append(3); data.append(4); - data.append(2); + data.append(3); data.append(1); + data.append(4); + data.append(1); + data.append(4); + data.append(2); data.append(2); + data.append(0); + data.append(4); + data.append(4); data.append(1); + data.append(1); + data.append(2); + data.append(2); data.append(3); data.append(3); data.append(3); - data.append(2); - data.append(0); + data.append(4); data.append(3); data.append(4); data.append(2); data.append(2); - data.append(1); - data.append(2); - data.append(2); - data.append(1); - data.append(3); - 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_without_axis_not_sorted.cairo b/tests/nodes/unique_u32_without_axis_not_sorted.cairo index 223812792..0e19ab6a6 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 f4a961a8f..4f4083d20 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); + data.append(0); + data.append(3); data.append(2); data.append(0); - data.append(4); data.append(1); - data.append(4); data.append(1); - data.append(3); + data.append(1); data.append(0); + data.append(1); data.append(3); data.append(4); + data.append(1); + data.append(2); + data.append(4); data.append(3); data.append(0); - data.append(0); - data.append(0); - data.append(3); + data.append(2); data.append(3); 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(3); + data.append(3); + data.append(4); + data.append(0); 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 bb28bb58f..025a7f7aa 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 @@ -8,9 +8,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(2); data.append(0); - data.append(4); + data.append(2); data.append(1); + data.append(4); 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 ee4041436..b7f27d0e6 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 @@ -10,8 +10,8 @@ fn output_1() -> Tensor { 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: 11, sign: false }); 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 d83f1ae28..fdeee7876 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 @@ -10,30 +10,30 @@ fn output_2() -> Tensor { let mut data = ArrayTrait::new(); 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: 2, 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: 3, 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: 2, sign: false }); data.append(i32 { mag: 4, 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: 3, sign: false }); - 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: 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: 4, 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: 4, 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: 4, sign: false }); + data.append(i32 { mag: 3, sign: false }); 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 b2157149f..982911e2f 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 @@ -10,8 +10,8 @@ fn output_3() -> Tensor { let mut data = ArrayTrait::new(); data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 5, sign: false }); data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); 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 aa4894215..5595f1526 100644 --- a/tests/nodes/unique_u32_without_axis_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; #[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 9629f42c5..a722b257e 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(4); + data.append(0); + data.append(2); + data.append(0); + data.append(2); + data.append(0); data.append(3); data.append(3); - data.append(4); data.append(0); - data.append(1); - data.append(3); data.append(0); - data.append(4); data.append(1); - data.append(0); + data.append(4); data.append(2); data.append(0); - data.append(2); - data.append(3); data.append(0); data.append(3); - data.append(4); data.append(1); + data.append(2); + data.append(2); data.append(3); data.append(3); data.append(3); data.append(0); + data.append(1); data.append(0); data.append(0); - data.append(1); + data.append(3); + 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 6bfca090e..5ec030ca3 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); data.append(0); - data.append(1); data.append(2); + data.append(3); + data.append(1); + data.append(4); TensorTrait::new(shape.span(), data.span()) } 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 693758852..7c47b3888 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -9,9 +9,9 @@ fn output_1() -> Tensor { 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(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 12, sign: false }); + data.append(i32 { mag: 9, sign: false }); + data.append(i32 { mag: 10, sign: false }); 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 e598498fc..6bba65ac2 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -9,31 +9,31 @@ fn output_2() -> Tensor { 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: 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: 1, 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: 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: 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: 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: 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: 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: 0, sign: false }); 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 7c757a597..204544ae3 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(i32 { mag: 11, sign: false }); data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 1, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 922a2cac48cbae30d99dcf4669d0caa9119eb53d Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 20:00:00 +0100 Subject: [PATCH 12/30] feat(tensor_unique): refacto test --- nodegen/node/unique.py | 102 ++++++++++++++++++ .../tensor/manipulation/unique.cairo | 41 ++++--- tests/nodes.cairo | 3 + ...unique_fp16x16_with_axis_zero_sorted.cairo | 31 ++++++ .../input_0.cairo | 41 +++++++ .../output_0.cairo | 41 +++++++ .../output_1.cairo | 15 +++ .../output_2.cairo | 15 +++ .../output_3.cairo | 15 +++ .../unique_fp16x16_without_axis_sorted.cairo | 31 ++++++ .../input_0.cairo | 41 +++++++ .../output_0.cairo | 39 +++++++ .../output_1.cairo | 39 +++++++ .../output_2.cairo | 39 +++++++ .../output_3.cairo | 39 +++++++ tests/nodes/unique_u32_example.cairo | 6 +- tests/nodes/unique_u32_example_two.cairo | 6 +- tests/nodes/unique_u32_ff.cairo | 31 ++++++ .../unique_u32_with_axis_one_not_sorted.cairo | 6 +- .../input_0.cairo | 24 ++--- .../output_0.cairo | 24 ++--- ..._u32_with_axis_one_not_sorted_custom.cairo | 31 ++++++ .../input_0.cairo | 26 +++++ .../output_0.cairo | 22 ++++ .../output_1.cairo | 17 +++ .../output_2.cairo | 19 ++++ .../output_3.cairo | 17 +++ .../unique_u32_with_axis_one_sorted.cairo | 6 +- .../input_0.cairo | 22 ++-- .../output_0.cairo | 22 ++-- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +- .../input_0.cairo | 28 ++--- .../output_0.cairo | 28 ++--- .../unique_u32_with_axis_zero_sorted.cairo | 6 +- .../input_0.cairo | 28 ++--- .../output_0.cairo | 28 ++--- .../unique_u32_without_axis_not_sorted.cairo | 6 +- .../input_0.cairo | 26 ++--- .../output_0.cairo | 4 +- .../output_1.cairo | 4 +- .../output_2.cairo | 20 ++-- .../output_3.cairo | 6 +- .../unique_u32_without_axis_sorted.cairo | 6 +- .../input_0.cairo | 26 ++--- .../output_0.cairo | 2 +- .../output_1.cairo | 6 +- .../output_2.cairo | 24 ++--- .../output_3.cairo | 6 +- 48 files changed, 867 insertions(+), 204 deletions(-) create mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo create mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo create mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo create mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo create mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo create mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo create mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted.cairo create mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo create mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo create mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo create mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo create mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo create mode 100644 tests/nodes/unique_u32_ff.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo create mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index e85d9f9d5..e2ae5a4b2 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -269,6 +269,38 @@ def with_axis_one_not_sorted(): name, ) + def with_axis_one_not_sorted_custom(): + x = np.array( + [[1, 0, 0, 2, 2, 4, 2], + [1, 0, 0, 1, 2, 3, 1]] + ).astype(np.uint32) + axis = 1 + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) + + x = Tensor(Dtype.U32, x.shape, x.flatten()) + unique_values = Tensor( + Dtype.U32, unique_values.shape, unique_values.flatten() + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_u32_with_axis_one_not_sorted_custom" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::Some(1), Option::Some(false))", + name, + ) + example() example_two() without_axis_sorted() @@ -277,3 +309,73 @@ def with_axis_one_not_sorted(): with_axis_zero_not_sorted() with_axis_one_sorted() with_axis_one_not_sorted() + with_axis_one_not_sorted_custom() + + @staticmethod + def unique_fp16x16(): + def without_axis_sorted(): + x = np.random.uniform(0, 3, (3, 3, 3)).astype(np.float64) + axis = None + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) + unique_values = unique_values.astype(np.float16) + + x = Tensor(Dtype.FP16x16, x.shape, to_fp( + x.flatten(), FixedImpl.FP16x16)) + unique_values = Tensor( + Dtype.FP16x16, unique_values.shape, to_fp( + unique_values.flatten(), FixedImpl.FP16x16) + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_fp16x16_without_axis_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::None(()), Option::Some(true))", + name, + ) + + def with_axis_zero_sorted(): + x = np.random.uniform(-3, 3, (3, 3, 3)).astype(np.float64) + axis = 0 + + unique_values, indices, inverse_indices, counts = np.unique( + x, axis=axis, return_index=True, return_inverse=True, return_counts=True + ) + unique_values, indices, inverse_indices, counts = _unsort_outputs( + x, axis, unique_values, indices, inverse_indices, counts + ) + unique_values = unique_values.astype(np.float16) + + x = Tensor(Dtype.FP16x16, x.shape, to_fp( + x.flatten(), FixedImpl.FP16x16)) + unique_values = Tensor( + Dtype.FP16x16, unique_values.shape, to_fp( + unique_values.flatten(), FixedImpl.FP16x16) + ) + indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) + inverse_indices = Tensor( + Dtype.I32, inverse_indices.shape, inverse_indices.flatten() + ) + counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) + + name = "unique_fp16x16_with_axis_zero_sorted" + make_test( + [x], + (unique_values, indices, inverse_indices, counts), + "input_0.unique(Option::Some(0), Option::Some(true))", + name, + ) + + without_axis_sorted() + with_axis_zero_sorted() diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index 09897e2b5..e7f7f9236 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -21,7 +21,6 @@ fn unique< impl TPartialOrd: PartialOrd, impl TPartialEq: PartialEq, impl TPartialEqTensor: PartialEq>, - impl TInto: Into // delete this >( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { @@ -36,12 +35,12 @@ fn unique< unique_along_axis(self, axis.unwrap(), sorted) }; - let unique_elements = Tensor:: { shape: new_shape.span(), data: unique_elements.span() }; - let indices = Tensor:: { shape: array![indices.len()].span(), data: indices.span() }; + let unique_elements = Tensor:: { shape: new_shape, data: unique_elements }; + let indices = Tensor:: { shape: array![indices.len()].span(), data: indices }; let inverse_indices = Tensor::< i32 - > { shape: array![inverse_indices.len()].span(), data: inverse_indices.span() }; - let count = Tensor:: { shape: array![count.len()].span(), data: count.span() }; + > { shape: array![inverse_indices.len()].span(), data: inverse_indices }; + let count = Tensor:: { shape: array![count.len()].span(), data: count }; (unique_elements, indices, inverse_indices, count) } @@ -55,7 +54,7 @@ fn unique_flatten< impl TPartialEq: PartialEq, >( t: @Tensor, sorted: bool -) -> (Array, Array, Array, Array, Array) { +) -> (Span, Span, Span, Span, Span) { let mut unique_elements: Array = array![]; let mut new_shape: Array = array![]; let mut indices: Array = array![]; @@ -107,7 +106,13 @@ fn unique_flatten< } }; - return (unique_elements, new_shape, indices, inverse_indices, count); + return ( + unique_elements.span(), + new_shape.span(), + indices.span(), + inverse_indices.span(), + count.span() + ); } /// Subfunction unique for tensors (wth axis). @@ -121,7 +126,7 @@ fn unique_along_axis< impl TPartialEqTensor: PartialEq>, >( t: @Tensor, axis: usize, sorted: bool -) -> (Array, Array, Array, Array, Array) { +) -> (Span, Span, Span, Span, Span) { let mut unique_tensors: Array> = array![]; let mut new_shape: Array = array![]; let mut indices: Array = array![]; @@ -129,7 +134,7 @@ fn unique_along_axis< let mut count: Array = array![]; let rank = (*t).shape.len(); - assert(axis <= rank, 'axis out of dimensions'); + assert(axis < rank, 'axis out of dimensions'); let all_tensors = as_tensors_array(t, axis, rank); let mut unique_tensors = get_unique_tensors(all_tensors.span()); @@ -177,9 +182,14 @@ fn unique_along_axis< } }; - let unique_elements = flatten_array_of_tensors(unique_tensors, axis, new_shape.span()); + let new_shape_span = new_shape.span(); + let unique_elements = if (*t).shape == new_shape_span { + *t.data + } else { + flatten_array_of_tensors(unique_tensors, axis, new_shape_span) + }; - return (unique_elements, new_shape, indices, inverse_indices, count); + return (unique_elements, new_shape_span, indices.span(), inverse_indices.span(), count.span()); } /// Returns a Tensor as an array of tensors @@ -248,7 +258,7 @@ fn as_tensors_array< as_tensors } -/// TODO +/// Returns from an array of tensors all the uniques tensors. fn get_unique_tensors< T, impl TCopy: Copy, @@ -275,7 +285,7 @@ fn get_unique_tensors< return uniques_tensors; } -/// TODO +/// Flatten a given array of tensors into an Array. fn flatten_array_of_tensors< T, impl TCopy: Copy, @@ -286,13 +296,12 @@ fn flatten_array_of_tensors< impl TPartialEqTensor: PartialEq>, >( tensors: Array>, axis: usize, new_shape: Span -) -> Array { +) -> Span { let mut new_stride = stride(new_shape); let mut flattened: Array = array![]; let stride_lim: usize = *new_stride.at(axis); - let max_row = (*(*tensors.at(0).shape).at(0)); let mut row = 0; loop { @@ -319,5 +328,5 @@ fn flatten_array_of_tensors< }; row += 1; }; - flattened + flattened.span() } diff --git a/tests/nodes.cairo b/tests/nodes.cairo index 5de479ca1..a361cf495 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -51,3 +51,6 @@ mod unique_u32_with_axis_zero_sorted; mod unique_u32_with_axis_zero_not_sorted; mod unique_u32_with_axis_one_sorted; mod unique_u32_with_axis_one_not_sorted; +mod unique_u32_with_axis_one_not_sorted_custom; +mod unique_fp16x16_without_axis_sorted; +mod unique_fp16x16_with_axis_zero_sorted; diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo new file mode 100644 index 000000000..f28863af6 --- /dev/null +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::FP16x16Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; + +#[test] +#[available_gas(2000000000)] +fn test_unique_fp16x16_with_axis_zero_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(true)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} 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 new file mode 100644 index 000000000..cb893ca48 --- /dev/null +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo @@ -0,0 +1,41 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16Tensor; +use orion::numbers::{FixedTrait, FP16x16}; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 87962, sign: true }); + data.append(FP16x16 { mag: 9323, sign: false }); + data.append(FP16x16 { mag: 66240, sign: true }); + data.append(FP16x16 { mag: 156291, sign: false }); + data.append(FP16x16 { mag: 78003, sign: false }); + data.append(FP16x16 { mag: 184061, sign: false }); + data.append(FP16x16 { mag: 28971, sign: false }); + data.append(FP16x16 { mag: 47164, sign: true }); + data.append(FP16x16 { mag: 143808, sign: false }); + data.append(FP16x16 { mag: 17239, sign: false }); + data.append(FP16x16 { mag: 168224, sign: false }); + data.append(FP16x16 { mag: 140637, sign: false }); + data.append(FP16x16 { mag: 196341, sign: false }); + data.append(FP16x16 { mag: 126336, sign: false }); + data.append(FP16x16 { mag: 190457, sign: true }); + data.append(FP16x16 { mag: 196122, sign: false }); + data.append(FP16x16 { mag: 129902, sign: true }); + data.append(FP16x16 { mag: 47503, sign: true }); + data.append(FP16x16 { mag: 173883, sign: true }); + data.append(FP16x16 { mag: 179343, sign: false }); + data.append(FP16x16 { mag: 151895, sign: true }); + data.append(FP16x16 { mag: 195200, sign: false }); + data.append(FP16x16 { mag: 71299, sign: false }); + data.append(FP16x16 { mag: 71498, sign: false }); + data.append(FP16x16 { mag: 98908, sign: false }); + data.append(FP16x16 { mag: 18762, sign: true }); + data.append(FP16x16 { mag: 194071, sign: true }); + 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 new file mode 100644 index 000000000..c1edf0ed7 --- /dev/null +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo @@ -0,0 +1,41 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16Tensor; +use orion::numbers::{FixedTrait, FP16x16}; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 87936, sign: true }); + data.append(FP16x16 { mag: 9320, sign: false }); + data.append(FP16x16 { mag: 66240, sign: true }); + data.append(FP16x16 { mag: 156288, sign: false }); + data.append(FP16x16 { mag: 78016, sign: false }); + data.append(FP16x16 { mag: 184064, sign: false }); + data.append(FP16x16 { mag: 28976, sign: false }); + data.append(FP16x16 { mag: 47168, sign: true }); + data.append(FP16x16 { mag: 143872, sign: false }); + data.append(FP16x16 { mag: 17232, sign: false }); + data.append(FP16x16 { mag: 168192, sign: false }); + data.append(FP16x16 { mag: 140672, sign: false }); + data.append(FP16x16 { mag: 196352, sign: false }); + data.append(FP16x16 { mag: 126336, sign: false }); + data.append(FP16x16 { mag: 190464, sign: true }); + data.append(FP16x16 { mag: 196096, sign: false }); + data.append(FP16x16 { mag: 129920, sign: true }); + data.append(FP16x16 { mag: 47488, sign: true }); + data.append(FP16x16 { mag: 173824, sign: true }); + data.append(FP16x16 { mag: 179328, sign: false }); + data.append(FP16x16 { mag: 151936, sign: true }); + data.append(FP16x16 { mag: 195200, sign: false }); + data.append(FP16x16 { mag: 71296, sign: false }); + data.append(FP16x16 { mag: 71488, sign: false }); + data.append(FP16x16 { mag: 98880, sign: false }); + data.append(FP16x16 { mag: 18768, sign: true }); + data.append(FP16x16 { mag: 194048, sign: true }); + 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 new file mode 100644 index 000000000..e3a48b20a --- /dev/null +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + 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 new file mode 100644 index 000000000..7d3ab361b --- /dev/null +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + 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 new file mode 100644 index 000000000..b7d1c3edb --- /dev/null +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo @@ -0,0 +1,15 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + 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 new file mode 100644 index 000000000..a57914b84 --- /dev/null +++ b/tests/nodes/unique_fp16x16_without_axis_sorted.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::FP16x16Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; + +#[test] +#[available_gas(2000000000)] +fn test_unique_fp16x16_without_axis_sorted() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(true)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo new file mode 100644 index 000000000..8223e4157 --- /dev/null +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo @@ -0,0 +1,41 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16Tensor; +use orion::numbers::{FixedTrait, FP16x16}; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 112048, sign: false }); + data.append(FP16x16 { mag: 56267, sign: false }); + data.append(FP16x16 { mag: 32529, sign: false }); + data.append(FP16x16 { mag: 22674, sign: false }); + data.append(FP16x16 { mag: 16747, sign: false }); + data.append(FP16x16 { mag: 71161, sign: false }); + data.append(FP16x16 { mag: 152698, sign: false }); + data.append(FP16x16 { mag: 148378, sign: false }); + data.append(FP16x16 { mag: 41538, sign: false }); + data.append(FP16x16 { mag: 42265, sign: false }); + data.append(FP16x16 { mag: 106081, sign: false }); + data.append(FP16x16 { mag: 173882, sign: false }); + data.append(FP16x16 { mag: 6105, sign: false }); + data.append(FP16x16 { mag: 92183, sign: false }); + data.append(FP16x16 { mag: 24661, sign: false }); + data.append(FP16x16 { mag: 131239, sign: false }); + data.append(FP16x16 { mag: 36055, sign: false }); + data.append(FP16x16 { mag: 80890, sign: false }); + data.append(FP16x16 { mag: 51247, sign: false }); + data.append(FP16x16 { mag: 5694, sign: false }); + data.append(FP16x16 { mag: 58318, sign: false }); + data.append(FP16x16 { mag: 64811, sign: false }); + data.append(FP16x16 { mag: 192104, sign: false }); + data.append(FP16x16 { mag: 97136, sign: false }); + data.append(FP16x16 { mag: 94797, sign: false }); + data.append(FP16x16 { mag: 173197, sign: false }); + data.append(FP16x16 { mag: 137788, 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 new file mode 100644 index 000000000..a4b4abb81 --- /dev/null +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo @@ -0,0 +1,39 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16Tensor; +use orion::numbers::{FixedTrait, FP16x16}; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(27); + + let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 112064, sign: false }); + data.append(FP16x16 { mag: 56256, sign: false }); + data.append(FP16x16 { mag: 32528, sign: false }); + data.append(FP16x16 { mag: 22672, sign: false }); + data.append(FP16x16 { mag: 16752, sign: false }); + data.append(FP16x16 { mag: 71168, sign: false }); + data.append(FP16x16 { mag: 152704, sign: false }); + data.append(FP16x16 { mag: 148352, sign: false }); + data.append(FP16x16 { mag: 41536, sign: false }); + data.append(FP16x16 { mag: 42272, sign: false }); + data.append(FP16x16 { mag: 106112, sign: false }); + data.append(FP16x16 { mag: 173824, sign: false }); + data.append(FP16x16 { mag: 6104, sign: false }); + data.append(FP16x16 { mag: 92160, sign: false }); + data.append(FP16x16 { mag: 24656, sign: false }); + data.append(FP16x16 { mag: 131200, sign: false }); + data.append(FP16x16 { mag: 36064, sign: false }); + data.append(FP16x16 { mag: 80896, sign: false }); + data.append(FP16x16 { mag: 51232, sign: false }); + data.append(FP16x16 { mag: 5696, sign: false }); + data.append(FP16x16 { mag: 58304, sign: false }); + data.append(FP16x16 { mag: 64800, sign: false }); + data.append(FP16x16 { mag: 192128, sign: false }); + data.append(FP16x16 { mag: 97152, sign: false }); + data.append(FP16x16 { mag: 94784, sign: false }); + data.append(FP16x16 { mag: 173184, sign: false }); + data.append(FP16x16 { mag: 137728, 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 new file mode 100644 index 000000000..fc08192df --- /dev/null +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo @@ -0,0 +1,39 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_1() -> 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: 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 }); + 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 new file mode 100644 index 000000000..0973441b5 --- /dev/null +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo @@ -0,0 +1,39 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 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 }); + 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 new file mode 100644 index 000000000..890ef6660 --- /dev/null +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo @@ -0,0 +1,39 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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 }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo index 3b50ac1ba..afef11a90 100644 --- a/tests/nodes/unique_u32_example.cairo +++ b/tests/nodes/unique_u32_example.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo index 4df57aecb..585a8ed43 100644 --- a/tests/nodes/unique_u32_example_two.cairo +++ b/tests/nodes/unique_u32_example_two.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_ff.cairo b/tests/nodes/unique_u32_ff.cairo new file mode 100644 index 000000000..656fdf982 --- /dev/null +++ b/tests/nodes/unique_u32_ff.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_ff() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} 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 701331bf2..4c5428a28 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::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[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 f260e5911..862adc29c 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(3); - data.append(2); - data.append(2); + data.append(1); data.append(0); data.append(0); - data.append(1); + data.append(4); + data.append(4); data.append(2); + data.append(3); data.append(4); data.append(1); + data.append(1); data.append(3); - data.append(3); - data.append(4); data.append(4); - data.append(3); data.append(1); data.append(2); - data.append(0); data.append(2); - data.append(1); - data.append(1); + data.append(3); data.append(0); data.append(1); - data.append(1); - data.append(3); + data.append(2); data.append(4); data.append(4); + data.append(1); + data.append(1); + data.append(0); + data.append(2); + data.append(0); 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 561fb3047..28653a0c5 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 @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(3); - data.append(2); - data.append(2); + data.append(1); data.append(0); data.append(0); - data.append(1); + data.append(4); + data.append(4); data.append(2); + data.append(3); data.append(4); data.append(1); + data.append(1); data.append(3); - data.append(3); - data.append(4); data.append(4); - data.append(3); data.append(1); data.append(2); - data.append(0); data.append(2); - data.append(1); - data.append(1); + data.append(3); data.append(0); data.append(1); - data.append(1); - data.append(3); + data.append(2); data.append(4); data.append(4); + data.append(1); + data.append(1); + data.append(0); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo new file mode 100644 index 000000000..e741deb4d --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo @@ -0,0 +1,31 @@ +mod input_0; +mod output_0; +mod output_1; +mod output_2; +mod output_3; + + +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32Tensor; + +#[test] +#[available_gas(2000000000)] +fn test_unique_u32_with_axis_one_not_sorted_custom() { + let input_0 = input_0::input_0(); + let z_0 = output_0::output_0(); + let z_1 = output_1::output_1(); + let z_2 = output_2::output_2(); + let z_3 = output_3::output_3(); + + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); + + assert_eq(y_0, z_0); + assert_eq(y_1, z_1); + assert_eq(y_2, z_2); + assert_eq(y_3, z_3); +} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo new file mode 100644 index 000000000..be880dbba --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo @@ -0,0 +1,26 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(7); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(0); + data.append(0); + data.append(2); + data.append(2); + data.append(4); + data.append(2); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(1); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo new file mode 100644 index 000000000..1fa65c6ed --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo @@ -0,0 +1,22 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32Tensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(5); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(0); + data.append(2); + data.append(2); + data.append(4); + data.append(1); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo new file mode 100644 index 000000000..8f1d46d8b --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo @@ -0,0 +1,17 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +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: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 5, sign: false }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo new file mode 100644 index 000000000..874db8760 --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo @@ -0,0 +1,19 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_2() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(7); + + 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: 2, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 2, sign: false }); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo new file mode 100644 index 000000000..e813e73ab --- /dev/null +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo @@ -0,0 +1,17 @@ +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::numbers::{IntegerTrait, i32}; + +fn output_3() -> 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: 2, sign: false }); + data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 1, sign: false }); + 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 6e0dc4e79..502af65b2 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::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[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 06a813a1e..ce569b122 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(3); + data.append(4); data.append(1); + data.append(3); data.append(4); + data.append(3); data.append(0); data.append(0); - data.append(1); - data.append(3); data.append(0); - data.append(1); - data.append(3); - data.append(2); - data.append(4); data.append(2); + data.append(1); data.append(2); + data.append(0); + data.append(0); data.append(3); data.append(4); - data.append(1); - data.append(1); - data.append(3); data.append(2); data.append(0); data.append(3); data.append(3); - data.append(1); data.append(2); data.append(0); - data.append(3); data.append(2); + data.append(4); + data.append(3); + data.append(0); + data.append(0); 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 7ab0409c5..26bf09590 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(3); + data.append(4); data.append(1); + data.append(3); data.append(4); + data.append(3); data.append(0); data.append(0); - data.append(1); - data.append(3); data.append(0); - data.append(1); - data.append(3); - data.append(2); - data.append(4); data.append(2); + data.append(1); data.append(2); + data.append(0); + data.append(0); data.append(3); data.append(4); - data.append(1); - data.append(1); - data.append(3); data.append(2); data.append(0); data.append(3); data.append(3); - data.append(1); data.append(2); data.append(0); - data.append(3); data.append(2); + data.append(4); + data.append(3); + data.append(0); + data.append(0); 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 386f25c70..4056ff9ee 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::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[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 ec7a2c815..924b49ef8 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); + data.append(3); data.append(4); + data.append(2); data.append(0); - data.append(1); - data.append(4); + data.append(3); data.append(0); + data.append(2); + data.append(2); + data.append(2); data.append(4); - data.append(1); - data.append(0); data.append(3); - data.append(2); data.append(4); - data.append(1); - data.append(1); - data.append(1); + data.append(2); data.append(4); data.append(2); - data.append(3); - data.append(1); + data.append(2); + data.append(4); data.append(4); data.append(0); - data.append(2); + data.append(3); data.append(4); data.append(3); + data.append(0); + data.append(1); data.append(3); - data.append(2); + data.append(4); + data.append(4); 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 b9ba3dd9e..7841c8b80 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); + data.append(3); data.append(4); + data.append(2); data.append(0); - data.append(1); - data.append(4); + data.append(3); data.append(0); + data.append(2); + data.append(2); + data.append(2); data.append(4); - data.append(1); - data.append(0); data.append(3); - data.append(2); data.append(4); - data.append(1); - data.append(1); - data.append(1); + data.append(2); data.append(4); data.append(2); - data.append(3); - data.append(1); + data.append(2); + data.append(4); data.append(4); data.append(0); - data.append(2); + data.append(3); data.append(4); data.append(3); + data.append(0); + data.append(1); data.append(3); - data.append(2); + data.append(4); + data.append(4); 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 8c9ad61ad..a07303451 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::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[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 620dfb913..84dd24456 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(4); - data.append(3); data.append(1); - data.append(4); - data.append(1); - data.append(4); - data.append(2); data.append(2); data.append(0); data.append(4); - data.append(4); - data.append(1); - data.append(1); data.append(2); + data.append(1); + data.append(4); + data.append(3); data.append(2); data.append(3); data.append(3); data.append(3); + data.append(1); + data.append(0); + data.append(0); + data.append(3); + data.append(2); + data.append(0); data.append(4); data.append(3); data.append(4); - data.append(2); - data.append(2); + data.append(1); + data.append(0); data.append(4); - data.append(2); - data.append(2); + data.append(1); + data.append(0); + data.append(0); 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 ec823ad3a..6ac156644 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 @@ -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(1); - data.append(4); - data.append(1); - data.append(4); - data.append(2); data.append(2); data.append(0); data.append(4); - data.append(4); - data.append(1); - data.append(1); data.append(2); + data.append(1); + data.append(4); + data.append(3); data.append(2); data.append(3); data.append(3); data.append(3); + data.append(1); + data.append(0); + data.append(0); + data.append(3); + data.append(2); + data.append(0); data.append(4); data.append(3); data.append(4); - data.append(2); - data.append(2); + data.append(1); + data.append(0); data.append(4); - data.append(2); - data.append(2); + data.append(1); + data.append(0); + data.append(0); 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 0e19ab6a6..c395b3251 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::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[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 4f4083d20..5caf758b3 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(4); data.append(3); + data.append(4); + data.append(1); + data.append(4); + data.append(4); + data.append(1); data.append(0); - data.append(3); + data.append(4); data.append(2); - data.append(0); - data.append(1); data.append(1); data.append(1); data.append(0); + data.append(0); data.append(1); - data.append(3); - data.append(4); - data.append(1); - data.append(2); - data.append(4); - data.append(3); data.append(0); data.append(2); + data.append(1); data.append(3); - data.append(2); + data.append(1); + data.append(1); + data.append(1); data.append(1); data.append(2); + data.append(0); data.append(3); - data.append(3); - data.append(4); data.append(0); - 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 025a7f7aa..f4c9bc4ab 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 @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(4); data.append(3); + data.append(1); data.append(0); data.append(2); - data.append(1); - data.append(4); 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 b7f27d0e6..d867a45db 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 @@ -11,7 +11,7 @@ fn output_1() -> Tensor { 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: 5, sign: false }); - data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 9, sign: false }); 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 fdeee7876..a8d90f012 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 @@ -12,27 +12,27 @@ fn output_2() -> Tensor { 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: 1, 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: 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: 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: 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: 3, 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: 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: 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: 4, sign: false }); + data.append(i32 { mag: 3, sign: false }); data.append(i32 { mag: 1, sign: false }); data.append(i32 { mag: 3, sign: false }); 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 982911e2f..2ada8c00b 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 @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 10, sign: false }); + data.append(i32 { mag: 6, sign: false }); data.append(i32 { mag: 3, sign: false }); 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 5595f1526..af212111e 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::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; #[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 a722b257e..4070487c3 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(2); - data.append(0); - data.append(2); data.append(0); data.append(3); + data.append(1); + data.append(4); data.append(3); - data.append(0); - data.append(0); data.append(1); + data.append(3); data.append(4); data.append(2); + data.append(3); + data.append(2); data.append(0); + data.append(4); data.append(0); - data.append(3); data.append(1); - data.append(2); - data.append(2); - data.append(3); data.append(3); - data.append(3); - data.append(0); + data.append(2); + data.append(4); + data.append(4); + data.append(4); + data.append(4); + data.append(1); data.append(1); - data.append(0); data.append(0); data.append(3); - data.append(0); + data.append(2); 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 5ec030ca3..9efc3466f 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -8,9 +8,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(2); data.append(3); data.append(1); data.append(4); + data.append(2); TensorTrait::new(shape.span(), data.span()) } 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 7c47b3888..8816d8254 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -9,9 +9,9 @@ fn output_1() -> Tensor { let mut data = ArrayTrait::new(); 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: 2, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); 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 6bba65ac2..9e48bb2f1 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -9,31 +9,31 @@ fn output_2() -> Tensor { let mut data = ArrayTrait::new(); 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: 2, 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: 0, 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: 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: 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: 2, 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: 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: 0, 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: 4, sign: false }); 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 204544ae3..5bf675494 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 6, sign: false }); data.append(i32 { mag: 5, sign: false }); data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(i32 { mag: 4, sign: false }); TensorTrait::new(shape.span(), data.span()) } From f2a6c6e63be516e51939ce504f16701eb5975e4d Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 21:12:39 +0100 Subject: [PATCH 13/30] feat(tensor_unique): Revert delete tests --- tests/nodes.cairo | 614 +++++++++++++++++- ...unique_fp16x16_with_axis_zero_sorted.cairo | 8 +- .../input_0.cairo | 54 +- .../output_0.cairo | 54 +- .../unique_fp16x16_without_axis_sorted.cairo | 8 +- .../input_0.cairo | 54 +- .../output_0.cairo | 54 +- tests/nodes/unique_u32_example.cairo | 8 +- tests/nodes/unique_u32_example_two.cairo | 8 +- .../unique_u32_with_axis_one_not_sorted.cairo | 8 +- .../input_0.cairo | 22 +- .../output_0.cairo | 22 +- ..._u32_with_axis_one_not_sorted_custom.cairo | 8 +- .../unique_u32_with_axis_one_sorted.cairo | 8 +- .../input_0.cairo | 22 +- .../output_0.cairo | 22 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 8 +- .../input_0.cairo | 24 +- .../output_0.cairo | 24 +- .../unique_u32_with_axis_zero_sorted.cairo | 8 +- .../input_0.cairo | 22 +- .../output_0.cairo | 22 +- .../unique_u32_without_axis_not_sorted.cairo | 8 +- .../input_0.cairo | 22 +- .../output_0.cairo | 6 +- .../output_1.cairo | 4 +- .../output_2.cairo | 20 +- .../output_3.cairo | 6 +- .../unique_u32_without_axis_sorted.cairo | 8 +- .../input_0.cairo | 24 +- .../output_0.cairo | 4 +- .../output_1.cairo | 6 +- .../output_2.cairo | 24 +- .../output_3.cairo | 4 +- 34 files changed, 914 insertions(+), 304 deletions(-) diff --git a/tests/nodes.cairo b/tests/nodes.cairo index a361cf495..128272ded 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -1,3 +1,426 @@ +mod abs_fp16x16; +mod abs_fp8x23; +mod abs_i32; +mod abs_i8; +mod acos_fp16x16; +mod acos_fp8x23; +mod acosh_fp16x16; +mod acosh_fp8x23; +mod add_fp16x16; +mod add_fp16x16_broadcast; +mod add_fp8x23; +mod add_fp8x23_broadcast; +mod add_i32; +mod add_i32_broadcast; +mod add_i8; +mod add_i8_broadcast; +mod add_u32; +mod add_u32_broadcast; +mod argmax_fp16x16_1D_default; +mod argmax_fp16x16_1D_keepdims_false; +mod argmax_fp16x16_1D_last_index; +mod argmax_fp16x16_2D_default; +mod argmax_fp16x16_2D_keepdims_false; +mod argmax_fp16x16_2D_last_index; +mod argmax_fp16x16_3D_default; +mod argmax_fp16x16_3D_keepdims_false; +mod argmax_fp16x16_3D_last_index; +mod argmax_fp8x23_1D_default; +mod argmax_fp8x23_1D_keepdims_false; +mod argmax_fp8x23_1D_last_index; +mod argmax_fp8x23_2D_default; +mod argmax_fp8x23_2D_keepdims_false; +mod argmax_fp8x23_2D_last_index; +mod argmax_fp8x23_3D_default; +mod argmax_fp8x23_3D_keepdims_false; +mod argmax_fp8x23_3D_last_index; +mod argmax_i32_1D_default; +mod argmax_i32_1D_keepdims_false; +mod argmax_i32_1D_last_index; +mod argmax_i32_2D_default; +mod argmax_i32_2D_keepdims_false; +mod argmax_i32_2D_last_index; +mod argmax_i32_3D_default; +mod argmax_i32_3D_keepdims_false; +mod argmax_i32_3D_last_index; +mod argmax_i8_1D_default; +mod argmax_i8_1D_keepdims_false; +mod argmax_i8_1D_last_index; +mod argmax_i8_2D_default; +mod argmax_i8_2D_keepdims_false; +mod argmax_i8_2D_last_index; +mod argmax_i8_3D_default; +mod argmax_i8_3D_keepdims_false; +mod argmax_i8_3D_last_index; +mod argmax_u32_1D_default; +mod argmax_u32_1D_keepdims_false; +mod argmax_u32_1D_last_index; +mod argmax_u32_2D_default; +mod argmax_u32_2D_keepdims_false; +mod argmax_u32_2D_last_index; +mod argmax_u32_3D_default; +mod argmax_u32_3D_keepdims_false; +mod argmax_u32_3D_last_index; +mod argmin_fp16x16_1D_default; +mod argmin_fp16x16_1D_keepdims_false; +mod argmin_fp16x16_1D_last_index; +mod argmin_fp16x16_2D_default; +mod argmin_fp16x16_2D_keepdims_false; +mod argmin_fp16x16_2D_last_index; +mod argmin_fp16x16_3D_default; +mod argmin_fp16x16_3D_keepdims_false; +mod argmin_fp16x16_3D_last_index; +mod argmin_fp8x23_1D_default; +mod argmin_fp8x23_1D_keepdims_false; +mod argmin_fp8x23_1D_last_index; +mod argmin_fp8x23_2D_default; +mod argmin_fp8x23_2D_keepdims_false; +mod argmin_fp8x23_2D_last_index; +mod argmin_fp8x23_3D_default; +mod argmin_fp8x23_3D_keepdims_false; +mod argmin_fp8x23_3D_last_index; +mod argmin_i32_1D_default; +mod argmin_i32_1D_keepdims_false; +mod argmin_i32_1D_last_index; +mod argmin_i32_2D_default; +mod argmin_i32_2D_keepdims_false; +mod argmin_i32_2D_last_index; +mod argmin_i32_3D_default; +mod argmin_i32_3D_keepdims_false; +mod argmin_i32_3D_last_index; +mod argmin_i8_1D_default; +mod argmin_i8_1D_keepdims_false; +mod argmin_i8_1D_last_index; +mod argmin_i8_2D_default; +mod argmin_i8_2D_keepdims_false; +mod argmin_i8_2D_last_index; +mod argmin_i8_3D_default; +mod argmin_i8_3D_keepdims_false; +mod argmin_i8_3D_last_index; +mod argmin_u32_1D_default; +mod argmin_u32_1D_keepdims_false; +mod argmin_u32_1D_last_index; +mod argmin_u32_2D_default; +mod argmin_u32_2D_keepdims_false; +mod argmin_u32_2D_last_index; +mod argmin_u32_3D_default; +mod argmin_u32_3D_keepdims_false; +mod argmin_u32_3D_last_index; +mod asin_fp16x16; +mod asin_fp8x23; +mod asinh_fp16x16; +mod asinh_fp8x23; +mod atan_fp16x16; +mod atan_fp8x23; +mod ceil_fp16x16; +mod ceil_fp8x23; +mod concat_fp16x16_1d; +mod concat_fp16x16_2d; +mod concat_fp16x16_3d_default; +mod concat_fp16x16_3d_axis_1; +mod concat_fp16x16_3d_axis_2; +mod concat_fp16x16_3d_three_tensors_axis_1; +mod concat_fp16x16_3d_three_tensors_axis_2; +mod concat_fp8x23_1d; +mod concat_fp8x23_2d; +mod concat_fp8x23_3d_default; +mod concat_fp8x23_3d_axis_1; +mod concat_fp8x23_3d_axis_2; +mod concat_fp8x23_3d_three_tensors_axis_1; +mod concat_fp8x23_3d_three_tensors_axis_2; +mod concat_i32_1d; +mod concat_i32_2d; +mod concat_i32_3d_default; +mod concat_i32_3d_axis_1; +mod concat_i32_3d_axis_2; +mod concat_i32_3d_three_tensors_axis_1; +mod concat_i32_3d_three_tensors_axis_2; +mod concat_i8_1d; +mod concat_i8_2d; +mod concat_i8_3d_default; +mod concat_i8_3d_axis_1; +mod concat_i8_3d_axis_2; +mod concat_i8_3d_three_tensors_axis_1; +mod concat_i8_3d_three_tensors_axis_2; +mod concat_u32_1d; +mod concat_u32_2d; +mod concat_u32_3d_default; +mod concat_u32_3d_axis_1; +mod concat_u32_3d_axis_2; +mod concat_u32_3d_three_tensors_axis_1; +mod concat_u32_3d_three_tensors_axis_2; +mod cos_fp16x16; +mod cos_fp8x23; +mod cosh_fp16x16; +mod cosh_fp8x23; +mod cumsum_fp16x16_1d_default; +mod cumsum_fp16x16_1d_exclusive; +mod cumsum_fp16x16_1d_reverse; +mod cumsum_fp16x16_1d_reverse_exclusive; +mod cumsum_fp16x16_2d_axis_0; +mod cumsum_fp16x16_2d_axis_1; +mod cumsum_fp8x23_1d_default; +mod cumsum_fp8x23_1d_exclusive; +mod cumsum_fp8x23_1d_reverse; +mod cumsum_fp8x23_1d_reverse_exclusive; +mod cumsum_fp8x23_2d_axis_0; +mod cumsum_fp8x23_2d_axis_1; +mod cumsum_i32_1d_default; +mod cumsum_i32_1d_exclusive; +mod cumsum_i32_1d_reverse; +mod cumsum_i32_1d_reverse_exclusive; +mod cumsum_i32_2d_axis_0; +mod cumsum_i32_2d_axis_1; +mod cumsum_i8_1d_default; +mod cumsum_i8_1d_exclusive; +mod cumsum_i8_1d_reverse; +mod cumsum_i8_1d_reverse_exclusive; +mod cumsum_i8_2d_axis_0; +mod cumsum_i8_2d_axis_1; +mod cumsum_u32_1d_default; +mod cumsum_u32_1d_exclusive; +mod cumsum_u32_1d_reverse; +mod cumsum_u32_1d_reverse_exclusive; +mod cumsum_u32_2d_axis_0; +mod cumsum_u32_2d_axis_1; +mod div_fp16x16; +mod div_fp16x16_broadcast; +mod div_fp8x23; +mod div_fp8x23_broadcast; +mod div_i32; +mod div_i32_broadcast; +mod div_i8; +mod div_i8_broadcast; +mod div_u32; +mod div_u32_broadcast; +mod equal_fp16x16; +mod equal_fp16x16_broadcast; +mod equal_fp8x23; +mod equal_fp8x23_broadcast; +mod equal_i32; +mod equal_i32_broadcast; +mod equal_i8; +mod equal_i8_broadcast; +mod equal_u32; +mod equal_u32_broadcast; +mod exp_fp16x16; +mod exp_fp8x23; +mod less_equal_fp16x16; +mod less_equal_fp16x16_broadcast; +mod less_equal_fp8x23; +mod less_equal_fp8x23_broadcast; +mod less_equal_i32; +mod less_equal_i32_broadcast; +mod less_equal_i8; +mod less_equal_i8_broadcast; +mod less_equal_u32; +mod less_equal_u32_broadcast; +mod greater_fp16x16; +mod greater_fp16x16_broadcast; +mod greater_fp8x23; +mod greater_fp8x23_broadcast; +mod greater_i32; +mod greater_i32_broadcast; +mod greater_i8; +mod greater_i8_broadcast; +mod greater_u32; +mod greater_u32_broadcast; +mod leaky_relu_fp16x16; +mod leaky_relu_fp8x23; +mod linear_fp16x16; +mod linear_fp8x23; +mod linear_i32; +mod linear_i8; +mod linear_u32; +mod log_fp16x16; +mod log_fp8x23; +mod logsoftmax_fp16x16_axis_0; +mod logsoftmax_fp16x16_axis_1; +mod logsoftmax_fp8x23_axis_0; +mod logsoftmax_fp8x23_axis_1; +mod matmul_fp16x16_1d; +mod matmul_fp16x16_2x2; +mod matmul_fp16x16_2x1; +mod matmul_fp16x16_1x2; +mod matmul_fp8x23_1d; +mod matmul_fp8x23_2x2; +mod matmul_fp8x23_2x1; +mod matmul_fp8x23_1x2; +mod matmul_i32_1d; +mod matmul_i32_2x2; +mod matmul_i32_2x1; +mod matmul_i32_1x2; +mod matmul_i8_1d; +mod matmul_i8_2x2; +mod matmul_i8_2x1; +mod matmul_i8_1x2; +mod matmul_u32_1d; +mod matmul_u32_2x2; +mod matmul_u32_2x1; +mod matmul_u32_1x2; +mod mul_fp16x16; +mod mul_fp16x16_broadcast; +mod mul_fp8x23; +mod mul_fp8x23_broadcast; +mod mul_i32; +mod mul_i32_broadcast; +mod mul_i8; +mod mul_i8_broadcast; +mod mul_u32; +mod mul_u32_broadcast; +mod or_fp16x16; +mod or_fp16x16_broadcast; +mod or_fp8x23; +mod or_fp8x23_broadcast; +mod or_i32; +mod or_i32_broadcast; +mod or_i8; +mod or_i8_broadcast; +mod or_u32; +mod or_u32_broadcast; +mod reduce_sum_fp16x16_1D; +mod reduce_sum_fp16x16_2D_default; +mod reduce_sum_fp16x16_2D_keepdims; +mod reduce_sum_fp16x16_2D_axis_1; +mod reduce_sum_fp8x23_1D; +mod reduce_sum_fp8x23_2D_default; +mod reduce_sum_fp8x23_2D_keepdims; +mod reduce_sum_fp8x23_2D_axis_1; +mod reduce_sum_i32_1D; +mod reduce_sum_i32_2D_default; +mod reduce_sum_i32_2D_keepdims; +mod reduce_sum_i32_2D_axis_1; +mod reduce_sum_i8_1D; +mod reduce_sum_i8_2D_default; +mod reduce_sum_i8_2D_keepdims; +mod reduce_sum_i8_2D_axis_1; +mod reduce_sum_u32_1D; +mod reduce_sum_u32_2D_default; +mod reduce_sum_u32_2D_keepdims; +mod reduce_sum_u32_2D_axis_1; +mod relu_fp16x16; +mod relu_fp8x23; +mod relu_i32; +mod relu_i8; +mod sigmoid_fp16x16; +mod sigmoid_fp8x23; +mod sin_fp16x16; +mod sin_fp8x23; +mod sinh_fp16x16; +mod sinh_fp8x23; +mod softmax_fp16x16; +mod softmax_fp8x23; +mod softplus_fp8x23; +mod softplus_fp16x16; +mod softsign_fp8x23; +mod softsign_fp16x16; +mod sqrt_fp16x16; +mod sqrt_fp8x23; +mod sub_fp16x16; +mod sub_fp16x16_broadcast; +mod sub_fp8x23; +mod sub_fp8x23_broadcast; +mod sub_i32; +mod sub_i32_broadcast; +mod sub_i8; +mod sub_i8_broadcast; +mod sub_u32; +mod sub_u32_broadcast; +mod tanh_fp16x16; +mod tanh_fp8x23; +mod transpose_fp16x16_2d; +mod transpose_fp16x16_3d; +mod transpose_fp8x23_2d; +mod transpose_fp8x23_3d; +mod transpose_i32_2d; +mod transpose_i32_3d; +mod transpose_i8_2d; +mod transpose_i8_3d; +mod transpose_u32_2d; +mod transpose_u32_3d; +mod xor_fp16x16; +mod xor_fp16x16_broadcast; +mod xor_fp8x23; +mod xor_fp8x23_broadcast; +mod xor_i32; +mod xor_i32_broadcast; +mod xor_i8; +mod xor_i8_broadcast; +mod xor_u32; +mod xor_u32_broadcast; +mod less_fp16x16; +mod less_fp16x16_broadcast; +mod less_fp8x23; +mod less_fp8x23_broadcast; +mod less_i32; +mod less_i32_broadcast; +mod less_i8; +mod less_i8_broadcast; +mod less_u32; +mod less_u32_broadcast; +mod greater_equal_fp16x16; +mod greater_equal_fp16x16_broadcast; +mod greater_equal_fp8x23; +mod greater_equal_fp8x23_broadcast; +mod greater_equal_i32; +mod greater_equal_i32_broadcast; +mod greater_equal_i8; +mod greater_equal_i8_broadcast; +mod greater_equal_u32; +mod greater_equal_u32_broadcast; +mod slice_fp16x16_2d; +mod slice_fp16x16_3d; +mod slice_fp8x23_2d; +mod slice_fp8x23_3d; +mod slice_i32_2d; +mod slice_i32_3d; +mod slice_i8_2d; +mod slice_i8_3d; +mod slice_u32_2d; +mod slice_u32_3d; +mod gather_fp8x23_3d_default; +mod gather_fp8x23_3d_axis1; +mod gather_fp8x23_3d_axis2; +mod gather_fp16x16_3d_default; +mod gather_fp16x16_3d_axis1; +mod gather_fp16x16_3d_axis2; +mod gather_i8_3d_default; +mod gather_i8_3d_axis1; +mod gather_i8_3d_axis2; +mod gather_i32_3d_default; +mod gather_i32_3d_axis1; +mod gather_i32_3d_axis2; +mod gather_u32_3d_default; +mod gather_u32_3d_axis1; +mod gather_u32_3d_axis2; +mod nonzero_fp16x16_2d; +mod nonzero_fp16x16_3d; +mod nonzero_fp8x23_2d; +mod nonzero_fp8x23_3d; +mod nonzero_i32_2d; +mod nonzero_i32_3d; +mod nonzero_i8_2d; +mod nonzero_i8_3d; +mod nonzero_u32_2d; +mod nonzero_u32_3d; +mod squeeze_fP16x16; +mod squeeze_fP8x23; +mod squeeze_i32; +mod squeeze_i8; +mod squeeze_u32; +mod unsqueeze_fp16x16_2d; +mod unsqueeze_fp16x16_3d; +mod unsqueeze_fp8x23_2d; +mod unsqueeze_fp8x23_3d; +mod unsqueeze_i32_2d; +mod unsqueeze_i32_3d; +mod unsqueeze_i8_2d; +mod unsqueeze_i8_3d; +mod unsqueeze_u32_2d; +mod unsqueeze_u32_3d; +mod sign_fP16x16; +mod sign_fP8x23; +mod sign_fail; mod sign_i32; mod sign_i8; mod clip_fp16x16_2d; @@ -43,6 +466,195 @@ mod gemm_transposeA; mod gemm_transposeB; mod min_fp16x16_three_tensors; mod min_fp16x16_broadcast_three_tensors; +mod min_fp16x16_two_tensors; +mod min_fp16x16_broadcast_two_tensors; +mod min_fp8x23_three_tensors; +mod min_fp8x23_broadcast_three_tensors; +mod min_fp8x23_two_tensors; +mod min_fp8x23_broadcast_two_tensors; +mod min_i32_three_tensors; +mod min_i32_broadcast_three_tensors; +mod min_i32_two_tensors; +mod min_i32_broadcast_two_tensors; +mod min_i8_three_tensors; +mod min_i8_broadcast_three_tensors; +mod min_i8_two_tensors; +mod min_i8_broadcast_two_tensors; +mod min_u32_three_tensors; +mod min_u32_broadcast_three_tensors; +mod min_u32_two_tensors; +mod min_u32_broadcast_two_tensors; +mod where_fp16x16; +mod where_fp16x16_broadcast; +mod where_fp8x23; +mod where_fp8x23_broadcast; +mod where_i32; +mod where_i32_broadcast; +mod where_i8; +mod where_i8_broadcast; +mod where_u32; +mod where_u32_broadcast; +mod round_fp16x16; +mod round_fp8x23; +mod max_fp16x16_three_tensors; +mod max_fp16x16_broadcast_three_tensors; +mod max_fp16x16_two_tensors; +mod max_fp16x16_broadcast_two_tensors; +mod max_fp8x23_three_tensors; +mod max_fp8x23_broadcast_three_tensors; +mod max_fp8x23_two_tensors; +mod max_fp8x23_broadcast_two_tensors; +mod max_i32_three_tensors; +mod max_i32_broadcast_three_tensors; +mod max_i32_two_tensors; +mod max_i32_broadcast_two_tensors; +mod max_i8_three_tensors; +mod max_i8_broadcast_three_tensors; +mod max_i8_two_tensors; +mod max_i8_broadcast_two_tensors; +mod max_u32_three_tensors; +mod max_u32_broadcast_three_tensors; +mod max_u32_two_tensors; +mod max_u32_broadcast_two_tensors; +mod tril_fp16x16; +mod tril_fp16x16_neg; +mod tril_fp16x16_one_row; +mod tril_fp16x16_out_neg; +mod tril_fp16x16_out_pos; +mod tril_fp16x16_pos; +mod tril_fp16x16_square; +mod tril_fp16x16_square_neg; +mod tril_fp16x16_zero; +mod triu_fp16x16; +mod triu_fp16x16_neg; +mod triu_fp16x16_one_row; +mod triu_fp16x16_out_neg; +mod triu_fp16x16_out_pos; +mod triu_fp16x16_pos; +mod triu_fp16x16_square; +mod triu_fp16x16_square_neg; +mod triu_fp16x16_zero; +mod tril_fp8x23; +mod tril_fp8x23_neg; +mod tril_fp8x23_one_row; +mod tril_fp8x23_out_neg; +mod tril_fp8x23_out_pos; +mod tril_fp8x23_pos; +mod tril_fp8x23_square; +mod tril_fp8x23_square_neg; +mod tril_fp8x23_zero; +mod triu_fp8x23; +mod triu_fp8x23_neg; +mod triu_fp8x23_one_row; +mod triu_fp8x23_out_neg; +mod triu_fp8x23_out_pos; +mod triu_fp8x23_pos; +mod triu_fp8x23_square; +mod triu_fp8x23_square_neg; +mod triu_fp8x23_zero; +mod tril_i32; +mod tril_neg_i32; +mod tril_i32_one_row; +mod tril_i32_out_neg; +mod tril_i32_out_pos; +mod tril_i32_pos; +mod tril_i32_square; +mod tril_i32_square_neg; +mod tril_i32_zero; +mod triu_i32; +mod triu_i32_neg; +mod triu_i32_one_row; +mod triu_i32_out_neg; +mod triu_i32_out_pos; +mod triu_i32_pos; +mod triu_i32_square; +mod triu_i32_square_neg; +mod triu_i32_zero; +mod tril_i8; +mod tril_i8_neg; +mod tril_i8_one_row; +mod tril_i8_out_neg; +mod tril_i8_out_pos; +mod tril_i8_pos; +mod tril_i8_square; +mod tril_i8_square_neg; +mod tril_i8_zero; +mod triu_i8; +mod triu_i8_neg; +mod triu_i8_one_row; +mod triu_i8_out_neg; +mod triu_i8_out_pos; +mod triu_i8_pos; +mod triu_i8_square; +mod triu_i8_square_neg; +mod triu_i8_zero; +mod tril_u32; +mod tril_u32_neg; +mod tril_u32_one_row; +mod tril_u32_out_neg; +mod tril_u32_out_pos; +mod tril_u32_pos; +mod tril_u32_square; +mod tril_u32_square_neg; +mod tril_u32_zero; +mod triu_u32; +mod triu_u32_neg; +mod triu_u32_one_row; +mod triu_u32_out_neg; +mod triu_u32_out_pos; +mod triu_u32_pos; +mod triu_u32_square; +mod triu_u32_square_neg; +mod triu_u32_zero; +mod scatter_fp16x16_3d_default; +mod scatter_fp16x16_3d_axis1; +mod scatter_fp16x16_3d_axis1_add; +mod scatter_fp8x23_default; +mod scatter_fp8x23_axis1; +mod scatter_fp8x23_mul; +mod scatter_i8_default; +mod scatter_i8_axis1; +mod scatter_i8_axis1_max; +mod scatter_u32_default; +mod scatter_u32_axis1; +mod scatter_u32_add; +mod reduce_sum_square_fp16x16_export_do_not_keepdims; +mod reduce_sum_square_fp16x16_export_keepdims; +mod reduce_sum_square_fp16x16_export_negative_axes_keepdims; +mod reduce_sum_square_fp8x23_export_do_not_keepdims; +mod reduce_sum_square_fp8x23_export_keepdims; +mod reduce_sum_square_fp8x23_export_negative_axes_keepdims; +mod reduce_sum_square_i32_export_do_not_keepdims; +mod reduce_sum_square_i32_export_keepdims; +mod reduce_sum_square_i32_export_negative_axes_keepdims; +mod reduce_sum_square_i8_export_do_not_keepdims; +mod reduce_sum_square_i8_export_keepdims; +mod reduce_sum_square_i8_export_negative_axes_keepdims; +mod reduce_sum_square_u32_export_do_not_keepdims; +mod reduce_sum_square_u32_export_keepdims; +mod reduce_sum_square_u32_export_negative_axes_keepdims; +mod reduce_l2_fp16x16_export_do_not_keepdims; +mod reduce_l2_fp16x16_export_keepdims; +mod reduce_l2_fp16x16_export_negative_axes_keepdims; +mod reduce_l2_fp8x23_export_do_not_keepdims; +mod reduce_l2_fp8x23_export_keepdims; +mod reduce_l2_fp8x23_export_negative_axes_keepdims; +mod reduce_l1_fp16x16_export_do_not_keepdims; +mod reduce_l1_fp16x16_export_keepdims; +mod reduce_l1_fp16x16_export_negative_axes_keepdims; +mod reduce_l1_fp8x23_export_do_not_keepdims; +mod reduce_l1_fp8x23_export_keepdims; +mod reduce_l1_fp8x23_export_negative_axes_keepdims; +mod reduce_l1_i32_export_do_not_keepdims; +mod reduce_l1_i32_export_keepdims; +mod reduce_l1_i32_export_negative_axes_keepdims; +mod reduce_l1_i8_export_do_not_keepdims; +mod reduce_l1_i8_export_keepdims; +mod reduce_l1_i8_export_negative_axes_keepdims; +mod reduce_l1_u32_export_do_not_keepdims; +mod reduce_l1_u32_export_keepdims; +mod reduce_l1_u32_export_negative_axes_keepdims;mod unique_fp16x16_without_axis_sorted; +mod unique_fp16x16_with_axis_zero_sorted; mod unique_u32_example; mod unique_u32_example_two; mod unique_u32_without_axis_sorted; @@ -52,5 +664,3 @@ mod unique_u32_with_axis_zero_not_sorted; mod unique_u32_with_axis_one_sorted; mod unique_u32_with_axis_one_not_sorted; mod unique_u32_with_axis_one_not_sorted_custom; -mod unique_fp16x16_without_axis_sorted; -mod unique_fp16x16_with_axis_zero_sorted; diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo index f28863af6..bed67c482 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::I32Tensor; -use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16TensorPartialEq; 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16Tensor; #[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 cb893ca48..699fe285d 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 @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 87962, sign: true }); - data.append(FP16x16 { mag: 9323, sign: false }); - data.append(FP16x16 { mag: 66240, sign: true }); - data.append(FP16x16 { mag: 156291, sign: false }); - data.append(FP16x16 { mag: 78003, sign: false }); - data.append(FP16x16 { mag: 184061, sign: false }); - data.append(FP16x16 { mag: 28971, sign: false }); - data.append(FP16x16 { mag: 47164, sign: true }); - data.append(FP16x16 { mag: 143808, sign: false }); - data.append(FP16x16 { mag: 17239, sign: false }); - data.append(FP16x16 { mag: 168224, sign: false }); - data.append(FP16x16 { mag: 140637, sign: false }); - data.append(FP16x16 { mag: 196341, sign: false }); - data.append(FP16x16 { mag: 126336, sign: false }); - data.append(FP16x16 { mag: 190457, sign: true }); - data.append(FP16x16 { mag: 196122, sign: false }); - data.append(FP16x16 { mag: 129902, sign: true }); - data.append(FP16x16 { mag: 47503, sign: true }); - data.append(FP16x16 { mag: 173883, sign: true }); - data.append(FP16x16 { mag: 179343, sign: false }); - data.append(FP16x16 { mag: 151895, sign: true }); - data.append(FP16x16 { mag: 195200, sign: false }); - data.append(FP16x16 { mag: 71299, sign: false }); - data.append(FP16x16 { mag: 71498, sign: false }); - data.append(FP16x16 { mag: 98908, sign: false }); - data.append(FP16x16 { mag: 18762, sign: true }); - data.append(FP16x16 { mag: 194071, sign: true }); + data.append(FP16x16 { mag: 132575, sign: false }); + data.append(FP16x16 { mag: 9190, sign: true }); + data.append(FP16x16 { mag: 76177, sign: false }); + data.append(FP16x16 { mag: 59707, sign: true }); + data.append(FP16x16 { mag: 56266, sign: true }); + data.append(FP16x16 { mag: 161016, sign: false }); + data.append(FP16x16 { mag: 24216, sign: true }); + data.append(FP16x16 { mag: 9276, sign: false }); + data.append(FP16x16 { mag: 38345, sign: true }); + data.append(FP16x16 { mag: 73795, sign: true }); + data.append(FP16x16 { mag: 23884, sign: true }); + data.append(FP16x16 { mag: 25152, sign: false }); + data.append(FP16x16 { mag: 63762, sign: true }); + data.append(FP16x16 { mag: 163887, sign: true }); + data.append(FP16x16 { mag: 4688, sign: true }); + data.append(FP16x16 { mag: 151787, sign: true }); + data.append(FP16x16 { mag: 151718, sign: false }); + data.append(FP16x16 { mag: 44692, sign: false }); + data.append(FP16x16 { mag: 190155, sign: false }); + data.append(FP16x16 { mag: 144034, sign: true }); + data.append(FP16x16 { mag: 89483, sign: true }); + data.append(FP16x16 { mag: 47530, sign: true }); + data.append(FP16x16 { mag: 143886, sign: true }); + data.append(FP16x16 { mag: 11671, sign: false }); + data.append(FP16x16 { mag: 163828, sign: true }); + data.append(FP16x16 { mag: 4602, sign: false }); + data.append(FP16x16 { mag: 173634, sign: true }); 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 c1edf0ed7..7a3e1276f 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 @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 87936, sign: true }); - data.append(FP16x16 { mag: 9320, sign: false }); - data.append(FP16x16 { mag: 66240, sign: true }); - data.append(FP16x16 { mag: 156288, sign: false }); - data.append(FP16x16 { mag: 78016, sign: false }); - data.append(FP16x16 { mag: 184064, sign: false }); - data.append(FP16x16 { mag: 28976, sign: false }); - data.append(FP16x16 { mag: 47168, sign: true }); - data.append(FP16x16 { mag: 143872, sign: false }); - data.append(FP16x16 { mag: 17232, sign: false }); - data.append(FP16x16 { mag: 168192, sign: false }); - data.append(FP16x16 { mag: 140672, sign: false }); - data.append(FP16x16 { mag: 196352, sign: false }); - data.append(FP16x16 { mag: 126336, sign: false }); - data.append(FP16x16 { mag: 190464, sign: true }); - data.append(FP16x16 { mag: 196096, sign: false }); - data.append(FP16x16 { mag: 129920, sign: true }); - data.append(FP16x16 { mag: 47488, sign: true }); - data.append(FP16x16 { mag: 173824, sign: true }); - data.append(FP16x16 { mag: 179328, sign: false }); - data.append(FP16x16 { mag: 151936, sign: true }); - data.append(FP16x16 { mag: 195200, sign: false }); - data.append(FP16x16 { mag: 71296, sign: false }); - data.append(FP16x16 { mag: 71488, sign: false }); - data.append(FP16x16 { mag: 98880, sign: false }); - data.append(FP16x16 { mag: 18768, sign: true }); - data.append(FP16x16 { mag: 194048, sign: true }); + data.append(FP16x16 { mag: 132608, sign: false }); + data.append(FP16x16 { mag: 9192, sign: true }); + data.append(FP16x16 { mag: 76160, sign: false }); + data.append(FP16x16 { mag: 59712, sign: true }); + data.append(FP16x16 { mag: 56256, sign: true }); + data.append(FP16x16 { mag: 161024, sign: false }); + data.append(FP16x16 { mag: 24224, sign: true }); + data.append(FP16x16 { mag: 9280, sign: false }); + data.append(FP16x16 { mag: 38336, sign: true }); + data.append(FP16x16 { mag: 73792, sign: true }); + data.append(FP16x16 { mag: 23888, sign: true }); + data.append(FP16x16 { mag: 25152, sign: false }); + data.append(FP16x16 { mag: 63776, sign: true }); + data.append(FP16x16 { mag: 163840, sign: true }); + data.append(FP16x16 { mag: 4688, sign: true }); + data.append(FP16x16 { mag: 151808, sign: true }); + data.append(FP16x16 { mag: 151680, sign: false }); + data.append(FP16x16 { mag: 44704, sign: false }); + data.append(FP16x16 { mag: 190208, sign: false }); + data.append(FP16x16 { mag: 144000, sign: true }); + data.append(FP16x16 { mag: 89472, sign: true }); + data.append(FP16x16 { mag: 47520, sign: true }); + data.append(FP16x16 { mag: 143872, sign: true }); + data.append(FP16x16 { mag: 11672, sign: false }); + data.append(FP16x16 { mag: 163840, sign: true }); + data.append(FP16x16 { mag: 4604, sign: false }); + data.append(FP16x16 { mag: 173696, sign: true }); 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 a57914b84..aa7750fed 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::I32Tensor; -use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16TensorPartialEq; 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16Tensor; #[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 8223e4157..df88a65e8 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 112048, sign: false }); - data.append(FP16x16 { mag: 56267, sign: false }); - data.append(FP16x16 { mag: 32529, sign: false }); - data.append(FP16x16 { mag: 22674, sign: false }); - data.append(FP16x16 { mag: 16747, sign: false }); - data.append(FP16x16 { mag: 71161, sign: false }); - data.append(FP16x16 { mag: 152698, sign: false }); - data.append(FP16x16 { mag: 148378, sign: false }); - data.append(FP16x16 { mag: 41538, sign: false }); - data.append(FP16x16 { mag: 42265, sign: false }); - data.append(FP16x16 { mag: 106081, sign: false }); - data.append(FP16x16 { mag: 173882, sign: false }); - data.append(FP16x16 { mag: 6105, sign: false }); - data.append(FP16x16 { mag: 92183, sign: false }); - data.append(FP16x16 { mag: 24661, sign: false }); - data.append(FP16x16 { mag: 131239, sign: false }); - data.append(FP16x16 { mag: 36055, sign: false }); - data.append(FP16x16 { mag: 80890, sign: false }); - data.append(FP16x16 { mag: 51247, sign: false }); - data.append(FP16x16 { mag: 5694, sign: false }); - data.append(FP16x16 { mag: 58318, sign: false }); - data.append(FP16x16 { mag: 64811, sign: false }); - data.append(FP16x16 { mag: 192104, sign: false }); - data.append(FP16x16 { mag: 97136, sign: false }); - data.append(FP16x16 { mag: 94797, sign: false }); - data.append(FP16x16 { mag: 173197, sign: false }); - data.append(FP16x16 { mag: 137788, sign: false }); + data.append(FP16x16 { mag: 167983, sign: false }); + data.append(FP16x16 { mag: 103145, sign: false }); + data.append(FP16x16 { mag: 73690, sign: false }); + data.append(FP16x16 { mag: 187012, sign: false }); + data.append(FP16x16 { mag: 81311, sign: false }); + data.append(FP16x16 { mag: 7340, sign: false }); + data.append(FP16x16 { mag: 83755, sign: false }); + data.append(FP16x16 { mag: 97056, sign: false }); + data.append(FP16x16 { mag: 96142, sign: false }); + data.append(FP16x16 { mag: 80995, sign: false }); + data.append(FP16x16 { mag: 10897, sign: false }); + data.append(FP16x16 { mag: 56112, sign: false }); + data.append(FP16x16 { mag: 85459, sign: false }); + data.append(FP16x16 { mag: 82620, sign: false }); + data.append(FP16x16 { mag: 93533, sign: false }); + data.append(FP16x16 { mag: 146364, sign: false }); + data.append(FP16x16 { mag: 23371, sign: false }); + data.append(FP16x16 { mag: 175749, sign: false }); + data.append(FP16x16 { mag: 122942, sign: false }); + data.append(FP16x16 { mag: 58181, sign: false }); + data.append(FP16x16 { mag: 65506, sign: false }); + data.append(FP16x16 { mag: 167127, sign: false }); + data.append(FP16x16 { mag: 189422, sign: false }); + data.append(FP16x16 { mag: 52812, sign: false }); + data.append(FP16x16 { mag: 14410, sign: false }); + data.append(FP16x16 { mag: 70276, sign: false }); + data.append(FP16x16 { mag: 62764, 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 a4b4abb81..3af61c6ba 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo @@ -8,32 +8,32 @@ fn output_0() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 112064, sign: false }); - data.append(FP16x16 { mag: 56256, sign: false }); - data.append(FP16x16 { mag: 32528, sign: false }); - data.append(FP16x16 { mag: 22672, sign: false }); - data.append(FP16x16 { mag: 16752, sign: false }); - data.append(FP16x16 { mag: 71168, sign: false }); - data.append(FP16x16 { mag: 152704, sign: false }); - data.append(FP16x16 { mag: 148352, sign: false }); - data.append(FP16x16 { mag: 41536, sign: false }); - data.append(FP16x16 { mag: 42272, sign: false }); - data.append(FP16x16 { mag: 106112, sign: false }); - data.append(FP16x16 { mag: 173824, sign: false }); - data.append(FP16x16 { mag: 6104, sign: false }); - data.append(FP16x16 { mag: 92160, sign: false }); - data.append(FP16x16 { mag: 24656, sign: false }); - data.append(FP16x16 { mag: 131200, sign: false }); - data.append(FP16x16 { mag: 36064, sign: false }); - data.append(FP16x16 { mag: 80896, sign: false }); - data.append(FP16x16 { mag: 51232, sign: false }); - data.append(FP16x16 { mag: 5696, sign: false }); - data.append(FP16x16 { mag: 58304, sign: false }); - data.append(FP16x16 { mag: 64800, sign: false }); - data.append(FP16x16 { mag: 192128, sign: false }); - data.append(FP16x16 { mag: 97152, sign: false }); - data.append(FP16x16 { mag: 94784, sign: false }); - data.append(FP16x16 { mag: 173184, sign: false }); - data.append(FP16x16 { mag: 137728, sign: false }); + data.append(FP16x16 { mag: 167936, sign: false }); + data.append(FP16x16 { mag: 103168, sign: false }); + data.append(FP16x16 { mag: 73664, sign: false }); + data.append(FP16x16 { mag: 187008, sign: false }); + data.append(FP16x16 { mag: 81280, sign: false }); + data.append(FP16x16 { mag: 7340, sign: false }); + data.append(FP16x16 { mag: 83776, sign: false }); + data.append(FP16x16 { mag: 97088, sign: false }); + data.append(FP16x16 { mag: 96128, sign: false }); + data.append(FP16x16 { mag: 81024, sign: false }); + data.append(FP16x16 { mag: 10896, sign: false }); + data.append(FP16x16 { mag: 56128, sign: false }); + data.append(FP16x16 { mag: 85440, sign: false }); + data.append(FP16x16 { mag: 82624, sign: false }); + data.append(FP16x16 { mag: 93504, sign: false }); + data.append(FP16x16 { mag: 146304, sign: false }); + data.append(FP16x16 { mag: 23376, sign: false }); + data.append(FP16x16 { mag: 175744, sign: false }); + data.append(FP16x16 { mag: 122944, sign: false }); + data.append(FP16x16 { mag: 58176, sign: false }); + data.append(FP16x16 { mag: 65504, sign: false }); + data.append(FP16x16 { mag: 167168, sign: false }); + data.append(FP16x16 { mag: 189440, sign: false }); + data.append(FP16x16 { mag: 52800, sign: false }); + data.append(FP16x16 { mag: 14408, sign: false }); + data.append(FP16x16 { mag: 70272, sign: false }); + data.append(FP16x16 { mag: 62752, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo index afef11a90..606066967 100644 --- a/tests/nodes/unique_u32_example.cairo +++ b/tests/nodes/unique_u32_example.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo index 585a8ed43..2efe587ce 100644 --- a/tests/nodes/unique_u32_example_two.cairo +++ b/tests/nodes/unique_u32_example_two.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 4c5428a28..814570781 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::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[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 862adc29c..0f3076946 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(1); + data.append(4); + data.append(4); data.append(0); data.append(0); data.append(4); - data.append(4); + data.append(2); data.append(2); data.append(3); - data.append(4); - data.append(1); - data.append(1); data.append(3); data.append(4); - data.append(1); data.append(2); + data.append(0); + data.append(0); + data.append(4); data.append(2); data.append(3); - data.append(0); data.append(1); + data.append(3); + data.append(4); + data.append(4); data.append(2); + data.append(3); data.append(4); + data.append(3); data.append(4); data.append(1); - data.append(1); - data.append(0); data.append(2); - data.append(0); 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 28653a0c5..d28151eae 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(1); + data.append(4); + data.append(4); data.append(0); data.append(0); data.append(4); - data.append(4); + data.append(2); data.append(2); data.append(3); - data.append(4); - data.append(1); - data.append(1); data.append(3); data.append(4); - data.append(1); data.append(2); + data.append(0); + data.append(0); + data.append(4); data.append(2); data.append(3); - data.append(0); data.append(1); + data.append(3); + data.append(4); + data.append(4); data.append(2); + data.append(3); data.append(4); + data.append(3); data.append(4); data.append(1); - data.append(1); - data.append(0); data.append(2); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo index e741deb4d..6b349399b 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_with_axis_one_sorted.cairo b/tests/nodes/unique_u32_with_axis_one_sorted.cairo index 502af65b2..4fb0c11b0 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::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[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 ce569b122..d5cd0f9fb 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(4); data.append(1); - data.append(3); - data.append(4); - data.append(3); + data.append(2); data.append(0); data.append(0); + data.append(4); data.append(0); + data.append(1); + data.append(3); + data.append(3); + data.append(1); data.append(2); + data.append(0); data.append(1); data.append(2); data.append(0); data.append(0); - data.append(3); - data.append(4); data.append(2); data.append(0); data.append(3); - data.append(3); - data.append(2); data.append(0); + data.append(3); data.append(2); - data.append(4); + data.append(1); data.append(3); - data.append(0); + data.append(4); + data.append(1); data.append(0); 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 26bf09590..ea9a4dcb4 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(4); data.append(1); - data.append(3); - data.append(4); - data.append(3); + data.append(2); data.append(0); data.append(0); + data.append(4); data.append(0); + data.append(1); + data.append(3); + data.append(3); + data.append(1); data.append(2); + data.append(0); data.append(1); data.append(2); data.append(0); data.append(0); - data.append(3); - data.append(4); data.append(2); data.append(0); data.append(3); - data.append(3); - data.append(2); data.append(0); + data.append(3); data.append(2); - data.append(4); + data.append(1); data.append(3); - data.append(0); + data.append(4); + data.append(1); data.append(0); 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 4056ff9ee..a8d571c99 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::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[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 924b49ef8..e2f1bcff4 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { 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(0); + data.append(2); + data.append(1); data.append(3); data.append(0); + data.append(1); data.append(2); + data.append(4); data.append(2); + data.append(1); data.append(2); - data.append(4); + data.append(0); data.append(3); - data.append(4); data.append(2); - data.append(4); + data.append(1); + data.append(3); data.append(2); + data.append(1); data.append(2); - data.append(4); - data.append(4); data.append(0); - data.append(3); data.append(4); - data.append(3); data.append(0); - data.append(1); - data.append(3); - data.append(4); - data.append(4); 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 7841c8b80..149b4c231 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 @@ -10,31 +10,31 @@ fn output_0() -> Tensor { 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(0); + data.append(2); + data.append(1); data.append(3); data.append(0); + data.append(1); data.append(2); + data.append(4); data.append(2); + data.append(1); data.append(2); - data.append(4); + data.append(0); data.append(3); - data.append(4); data.append(2); - data.append(4); + data.append(1); + data.append(3); data.append(2); + data.append(1); data.append(2); - data.append(4); - data.append(4); data.append(0); - data.append(3); data.append(4); - data.append(3); data.append(0); - data.append(1); - data.append(3); - data.append(4); - data.append(4); 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 a07303451..1d5e6ffe8 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::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[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 84dd24456..418e22fd8 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); data.append(2); - data.append(0); + data.append(3); + data.append(3); data.append(4); - data.append(2); + data.append(3); + data.append(1); + data.append(0); data.append(1); - data.append(4); data.append(3); + data.append(1); data.append(2); data.append(3); data.append(3); data.append(3); - data.append(1); + data.append(2); + data.append(3); data.append(0); data.append(0); data.append(3); - data.append(2); - data.append(0); - data.append(4); data.append(3); - data.append(4); - data.append(1); data.append(0); data.append(4); + data.append(2); + data.append(2); data.append(1); - data.append(0); + data.append(3); data.append(0); 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 6ac156644..6f720a3b7 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); data.append(2); - data.append(0); + data.append(3); + data.append(3); data.append(4); - data.append(2); + data.append(3); + data.append(1); + data.append(0); data.append(1); - data.append(4); data.append(3); + data.append(1); data.append(2); data.append(3); data.append(3); data.append(3); - data.append(1); + data.append(2); + data.append(3); data.append(0); data.append(0); data.append(3); - data.append(2); - data.append(0); - data.append(4); data.append(3); - data.append(4); - data.append(1); data.append(0); data.append(4); + data.append(2); + data.append(2); data.append(1); - data.append(0); + data.append(3); data.append(0); 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 c395b3251..a066f233a 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::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[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 5caf758b3..d9b7f1f5e 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 @@ -9,32 +9,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(3); - data.append(4); data.append(1); - data.append(4); + data.append(3); + data.append(0); + data.append(2); data.append(4); data.append(1); + data.append(4); data.append(0); data.append(4); data.append(2); - data.append(1); - data.append(1); data.append(0); data.append(0); data.append(1); - data.append(0); data.append(2); - data.append(1); data.append(3); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(2); - data.append(0); + data.append(2); data.append(3); data.append(0); + data.append(3); + data.append(4); + data.append(3); 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 f4c9bc4ab..5cd1a0634 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 @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); data.append(1); - data.append(0); data.append(2); + data.append(0); + data.append(4); + data.append(3); 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 d867a45db..ee4041436 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 @@ -10,8 +10,8 @@ fn output_1() -> Tensor { 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: 7, sign: false }); - data.append(i32 { mag: 9, sign: false }); + data.append(i32 { mag: 4, sign: false }); 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 a8d90f012..c1d84e03b 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 @@ -10,30 +10,30 @@ fn output_2() -> Tensor { let mut data = ArrayTrait::new(); 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: 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: 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: 2, 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: 0, 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: 4, 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: 0, 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: 1, 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: 4, sign: false }); 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 2ada8c00b..d0807dd27 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 @@ -8,10 +8,10 @@ fn output_3() -> Tensor { 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: 6, sign: false }); data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 10, sign: false }); data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 3, sign: false }); 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 af212111e..17f16a414 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::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use array::{ArrayTrait, SpanTrait}; #[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 4070487c3..f7611d5fc 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -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(3); - data.append(1); - data.append(4); - data.append(3); data.append(1); data.append(3); - data.append(4); data.append(2); - data.append(3); data.append(2); - data.append(0); - data.append(4); - data.append(0); - data.append(1); data.append(3); data.append(2); data.append(4); + data.append(1); data.append(4); data.append(4); + data.append(0); + data.append(3); + data.append(2); data.append(4); + data.append(3); + data.append(1); + data.append(2); + data.append(2); data.append(1); data.append(1); - data.append(0); data.append(3); - data.append(2); + data.append(3); 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 9efc3466f..a0b957b48 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(1); data.append(0); + data.append(2); data.append(3); - data.append(1); data.append(4); - data.append(2); TensorTrait::new(shape.span(), data.span()) } 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 8816d8254..684f04a64 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -9,9 +9,9 @@ fn output_1() -> Tensor { 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: 9, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 11, sign: false }); 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 9e48bb2f1..e04ef7bc2 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -9,31 +9,31 @@ fn output_2() -> Tensor { 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: 2, 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: 1, 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: 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: 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: 1, 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: 4, 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: 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: 4, sign: false }); + data.append(i32 { mag: 0, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 3, sign: false }); 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 5bf675494..83ff692d9 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { 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: 5, sign: false }); + data.append(i32 { mag: 4, sign: false }); data.append(i32 { mag: 7, sign: false }); + data.append(i32 { mag: 6, sign: false }); data.append(i32 { mag: 4, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 894c8209badd84872ce8e85004c6350180ce94e8 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 21:14:08 +0100 Subject: [PATCH 14/30] feat(tensor_unique): fix line --- tests/nodes.cairo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/nodes.cairo b/tests/nodes.cairo index 128272ded..a8db84c23 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -653,7 +653,8 @@ mod reduce_l1_i8_export_keepdims; mod reduce_l1_i8_export_negative_axes_keepdims; mod reduce_l1_u32_export_do_not_keepdims; mod reduce_l1_u32_export_keepdims; -mod reduce_l1_u32_export_negative_axes_keepdims;mod unique_fp16x16_without_axis_sorted; +mod reduce_l1_u32_export_negative_axes_keepdims; +mod unique_fp16x16_without_axis_sorted; mod unique_fp16x16_with_axis_zero_sorted; mod unique_u32_example; mod unique_u32_example_two; From c721548080115eef2018f1b969519ca2836d6b09 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 26 Nov 2023 22:58:52 +0100 Subject: [PATCH 15/30] feat(tensor_unique): quick refacot --- .../tensor/manipulation/unique.cairo | 39 +++---------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index e7f7f9236..913dd8b8e 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -55,24 +55,13 @@ fn unique_flatten< >( t: @Tensor, sorted: bool ) -> (Span, Span, Span, Span, Span) { - let mut unique_elements: Array = array![]; - let mut new_shape: Array = array![]; let mut indices: Array = array![]; let mut inverse_indices: Array = array![]; let mut count: Array = array![]; let mut data_cpy = *t.data; - loop { - match data_cpy.pop_front() { - Option::Some(value) => { - if !unique_elements.span().contains(*value) { - unique_elements.append(*value); - } - }, - Option::None => { break; } - } - }; - new_shape.append(unique_elements.len()); + let mut unique_elements = data_cpy.unique(); + let mut new_shape: Array = array![unique_elements.len()]; // TODO: investigate why calling merge before the next 2 loops // cause the program to crash with error: @@ -120,9 +109,9 @@ fn unique_along_axis< T, impl TCopy: Copy, impl TDrop: Drop, - impl TTensor: TensorTrait, impl TPartialOrd: PartialOrd, impl TPartialEq: PartialEq, + impl TTensor: TensorTrait, impl TPartialEqTensor: PartialEq>, >( t: @Tensor, axis: usize, sorted: bool @@ -193,15 +182,7 @@ fn unique_along_axis< } /// Returns a Tensor as an array of tensors -fn as_tensors_array< - T, - impl TCopy: Copy, - impl TDrop: Drop, - impl TTensor: TensorTrait, - impl TPartialOrd: PartialOrd, - impl TPartialEq: PartialEq, - impl TPartialEqTensor: PartialEq> ->( +fn as_tensors_array, impl TDrop: Drop, impl TTensor: TensorTrait,>( tensor: @Tensor, axis: usize, rank: usize ) -> Array> { let shape = *tensor.shape; @@ -263,8 +244,6 @@ fn get_unique_tensors< T, impl TCopy: Copy, impl TDrop: Drop, - impl TTensor: TensorTrait, - impl TPartialOrd: PartialOrd, impl TPartialEq: PartialEq, impl TPartialEqTensor: PartialEq> >( @@ -286,15 +265,7 @@ fn get_unique_tensors< } /// Flatten a given array of tensors into an Array. -fn flatten_array_of_tensors< - T, - impl TCopy: Copy, - impl TDrop: Drop, - impl TTensor: TensorTrait, - impl TPartialOrd: PartialOrd, - impl TPartialEq: PartialEq, - impl TPartialEqTensor: PartialEq>, ->( +fn flatten_array_of_tensors, impl TDrop: Drop,>( tensors: Array>, axis: usize, new_shape: Span ) -> Span { let mut new_stride = stride(new_shape); From b7217e6a21ffab376c47dcf9ec04874c5b285cc2 Mon Sep 17 00:00:00 2001 From: akhercha Date: Tue, 28 Nov 2023 20:08:40 +0100 Subject: [PATCH 16/30] feat(tensor_unique): Quick refactoring --- nodegen/node/unique.py | 39 +++++++------- .../tensor/manipulation/unique.cairo | 6 +-- ...unique_fp16x16_with_axis_zero_sorted.cairo | 8 +-- .../input_0.cairo | 54 +++++++++---------- .../output_0.cairo | 54 +++++++++---------- .../unique_fp16x16_without_axis_sorted.cairo | 8 +-- .../input_0.cairo | 54 +++++++++---------- .../output_0.cairo | 54 +++++++++---------- tests/nodes/unique_u32_example.cairo | 6 +-- tests/nodes/unique_u32_example_two.cairo | 6 +-- .../unique_u32_example_two/input_0.cairo | 5 +- .../unique_u32_example_two/output_2.cairo | 3 +- .../unique_u32_example_two/output_3.cairo | 2 +- .../unique_u32_with_axis_one_not_sorted.cairo | 6 +-- .../input_0.cairo | 30 +++++------ .../output_0.cairo | 30 +++++------ ..._u32_with_axis_one_not_sorted_custom.cairo | 6 +-- .../unique_u32_with_axis_one_sorted.cairo | 6 +-- .../input_0.cairo | 24 ++++----- .../output_0.cairo | 24 ++++----- ...unique_u32_with_axis_zero_not_sorted.cairo | 6 +-- .../input_0.cairo | 20 +++---- .../output_0.cairo | 20 +++---- .../unique_u32_with_axis_zero_sorted.cairo | 6 +-- .../input_0.cairo | 26 ++++----- .../output_0.cairo | 26 ++++----- .../unique_u32_without_axis_not_sorted.cairo | 6 +-- .../input_0.cairo | 22 ++++---- .../output_0.cairo | 4 +- .../output_1.cairo | 2 +- .../output_2.cairo | 24 ++++----- .../output_3.cairo | 8 +-- .../unique_u32_without_axis_sorted.cairo | 6 +-- .../input_0.cairo | 24 ++++----- .../output_0.cairo | 2 +- .../output_1.cairo | 6 +-- .../output_2.cairo | 22 ++++---- .../output_3.cairo | 8 +-- 38 files changed, 332 insertions(+), 331 deletions(-) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index e2ae5a4b2..a29b8f61f 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -1,12 +1,16 @@ import numpy as np from nodegen.node import RunAll -from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl, Trait +from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl from typing import Optional def _unsort_outputs( - x: np.ndarray, axis: Optional[int], unique_values: np.ndarray, - indices: np.ndarray, inverse_indices: np.ndarray, counts: np.ndarray + x: np.ndarray, + axis: Optional[int], + unique_values: np.ndarray, + indices: np.ndarray, + inverse_indices: np.ndarray, + counts: np.ndarray, ) -> (np.ndarray, np.ndarray, np.ndarray, np.ndarray): """Unsort the result of np.unique(). @@ -63,11 +67,7 @@ def example(): ) def example_two(): - x = np.array( - [[1, 0, 0], - [1, 0, 0], - [2, 3, 4]] - ).astype(np.uint32) + x = np.array([[1, 0, 0], [1, 0, 0], [2, 3, 4], [1, 0, 0]]).astype(np.uint32) axis = 0 unique_values, indices, inverse_indices, counts = np.unique( @@ -270,10 +270,9 @@ def with_axis_one_not_sorted(): ) def with_axis_one_not_sorted_custom(): - x = np.array( - [[1, 0, 0, 2, 2, 4, 2], - [1, 0, 0, 1, 2, 3, 1]] - ).astype(np.uint32) + x = np.array([[1, 0, 0, 2, 2, 4, 2], [1, 0, 0, 1, 2, 3, 1]]).astype( + np.uint32 + ) axis = 1 unique_values, indices, inverse_indices, counts = np.unique( @@ -325,11 +324,11 @@ def without_axis_sorted(): ) unique_values = unique_values.astype(np.float16) - x = Tensor(Dtype.FP16x16, x.shape, to_fp( - x.flatten(), FixedImpl.FP16x16)) + x = Tensor(Dtype.FP16x16, x.shape, to_fp(x.flatten(), FixedImpl.FP16x16)) unique_values = Tensor( - Dtype.FP16x16, unique_values.shape, to_fp( - unique_values.flatten(), FixedImpl.FP16x16) + Dtype.FP16x16, + unique_values.shape, + to_fp(unique_values.flatten(), FixedImpl.FP16x16), ) indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) inverse_indices = Tensor( @@ -357,11 +356,11 @@ def with_axis_zero_sorted(): ) unique_values = unique_values.astype(np.float16) - x = Tensor(Dtype.FP16x16, x.shape, to_fp( - x.flatten(), FixedImpl.FP16x16)) + x = Tensor(Dtype.FP16x16, x.shape, to_fp(x.flatten(), FixedImpl.FP16x16)) unique_values = Tensor( - Dtype.FP16x16, unique_values.shape, to_fp( - unique_values.flatten(), FixedImpl.FP16x16) + Dtype.FP16x16, + unique_values.shape, + to_fp(unique_values.flatten(), FixedImpl.FP16x16), ) indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) inverse_indices = Tensor( diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index 913dd8b8e..0bdc203ae 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -59,8 +59,7 @@ fn unique_flatten< let mut inverse_indices: Array = array![]; let mut count: Array = array![]; - let mut data_cpy = *t.data; - let mut unique_elements = data_cpy.unique(); + let mut unique_elements = (*t.data).unique(); let mut new_shape: Array = array![unique_elements.len()]; // TODO: investigate why calling merge before the next 2 loops @@ -116,7 +115,6 @@ fn unique_along_axis< >( t: @Tensor, axis: usize, sorted: bool ) -> (Span, Span, Span, Span, Span) { - let mut unique_tensors: Array> = array![]; let mut new_shape: Array = array![]; let mut indices: Array = array![]; let mut inverse_indices: Array = array![]; @@ -147,8 +145,8 @@ fn unique_along_axis< // unique_tensors = merge(unique_tensors); unique_tensors = unique_tensors; } - let mut unique_tensors_span = unique_tensors.span(); let mut all_tensors_span = all_tensors.span(); + let mut unique_tensors_span = unique_tensors.span(); loop { match unique_tensors_span.pop_front() { Option::Some(t) => { diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo index bed67c482..fda07a0f7 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::FP16x16TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::FP16x16Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[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 699fe285d..b51181d6a 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 @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 132575, sign: false }); - data.append(FP16x16 { mag: 9190, sign: true }); - data.append(FP16x16 { mag: 76177, sign: false }); - data.append(FP16x16 { mag: 59707, sign: true }); - data.append(FP16x16 { mag: 56266, sign: true }); - data.append(FP16x16 { mag: 161016, sign: false }); - data.append(FP16x16 { mag: 24216, sign: true }); - data.append(FP16x16 { mag: 9276, sign: false }); - data.append(FP16x16 { mag: 38345, sign: true }); - data.append(FP16x16 { mag: 73795, sign: true }); - data.append(FP16x16 { mag: 23884, sign: true }); - data.append(FP16x16 { mag: 25152, sign: false }); - data.append(FP16x16 { mag: 63762, sign: true }); - data.append(FP16x16 { mag: 163887, sign: true }); - data.append(FP16x16 { mag: 4688, sign: true }); - data.append(FP16x16 { mag: 151787, sign: true }); - data.append(FP16x16 { mag: 151718, sign: false }); - data.append(FP16x16 { mag: 44692, sign: false }); - data.append(FP16x16 { mag: 190155, sign: false }); - data.append(FP16x16 { mag: 144034, sign: true }); - data.append(FP16x16 { mag: 89483, sign: true }); - data.append(FP16x16 { mag: 47530, sign: true }); - data.append(FP16x16 { mag: 143886, sign: true }); - data.append(FP16x16 { mag: 11671, sign: false }); - data.append(FP16x16 { mag: 163828, sign: true }); - data.append(FP16x16 { mag: 4602, sign: false }); - data.append(FP16x16 { mag: 173634, sign: true }); + data.append(FP16x16 { mag: 157414, sign: true }); + data.append(FP16x16 { mag: 1771, sign: true }); + data.append(FP16x16 { mag: 104423, sign: false }); + data.append(FP16x16 { mag: 2093, sign: true }); + data.append(FP16x16 { mag: 63936, sign: false }); + data.append(FP16x16 { mag: 120461, sign: false }); + data.append(FP16x16 { mag: 72730, sign: false }); + data.append(FP16x16 { mag: 15555, sign: true }); + data.append(FP16x16 { mag: 44984, sign: false }); + data.append(FP16x16 { mag: 94211, sign: false }); + data.append(FP16x16 { mag: 93317, sign: true }); + data.append(FP16x16 { mag: 29023, sign: true }); + data.append(FP16x16 { mag: 52455, sign: true }); + data.append(FP16x16 { mag: 176026, sign: true }); + data.append(FP16x16 { mag: 98593, sign: true }); + data.append(FP16x16 { mag: 164495, sign: true }); + data.append(FP16x16 { mag: 140493, sign: true }); + data.append(FP16x16 { mag: 125737, sign: true }); + data.append(FP16x16 { mag: 64810, sign: false }); + data.append(FP16x16 { mag: 89675, sign: true }); + data.append(FP16x16 { mag: 125404, sign: false }); + data.append(FP16x16 { mag: 89381, sign: true }); + data.append(FP16x16 { mag: 93376, sign: false }); + data.append(FP16x16 { mag: 26320, sign: true }); + data.append(FP16x16 { mag: 2108, sign: true }); + data.append(FP16x16 { mag: 132017, sign: false }); + data.append(FP16x16 { mag: 69573, sign: true }); 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 7a3e1276f..05d6dd5f8 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 @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 132608, sign: false }); - data.append(FP16x16 { mag: 9192, sign: true }); - data.append(FP16x16 { mag: 76160, sign: false }); - data.append(FP16x16 { mag: 59712, sign: true }); - data.append(FP16x16 { mag: 56256, sign: true }); - data.append(FP16x16 { mag: 161024, sign: false }); - data.append(FP16x16 { mag: 24224, sign: true }); - data.append(FP16x16 { mag: 9280, sign: false }); - data.append(FP16x16 { mag: 38336, sign: true }); - data.append(FP16x16 { mag: 73792, sign: true }); - data.append(FP16x16 { mag: 23888, sign: true }); - data.append(FP16x16 { mag: 25152, sign: false }); - data.append(FP16x16 { mag: 63776, sign: true }); - data.append(FP16x16 { mag: 163840, sign: true }); - data.append(FP16x16 { mag: 4688, sign: true }); - data.append(FP16x16 { mag: 151808, sign: true }); - data.append(FP16x16 { mag: 151680, sign: false }); - data.append(FP16x16 { mag: 44704, sign: false }); - data.append(FP16x16 { mag: 190208, sign: false }); - data.append(FP16x16 { mag: 144000, sign: true }); - data.append(FP16x16 { mag: 89472, sign: true }); - data.append(FP16x16 { mag: 47520, sign: true }); - data.append(FP16x16 { mag: 143872, sign: true }); - data.append(FP16x16 { mag: 11672, sign: false }); - data.append(FP16x16 { mag: 163840, sign: true }); - data.append(FP16x16 { mag: 4604, sign: false }); - data.append(FP16x16 { mag: 173696, sign: true }); + data.append(FP16x16 { mag: 157440, sign: true }); + data.append(FP16x16 { mag: 1772, sign: true }); + data.append(FP16x16 { mag: 104448, sign: false }); + data.append(FP16x16 { mag: 2094, sign: true }); + data.append(FP16x16 { mag: 63936, sign: false }); + data.append(FP16x16 { mag: 120448, sign: false }); + data.append(FP16x16 { mag: 72704, sign: false }); + data.append(FP16x16 { mag: 15552, sign: true }); + data.append(FP16x16 { mag: 44992, sign: false }); + data.append(FP16x16 { mag: 94208, sign: false }); + data.append(FP16x16 { mag: 93312, sign: true }); + data.append(FP16x16 { mag: 29024, sign: true }); + data.append(FP16x16 { mag: 52448, sign: true }); + data.append(FP16x16 { mag: 176000, sign: true }); + data.append(FP16x16 { mag: 98624, sign: true }); + data.append(FP16x16 { mag: 164480, sign: true }); + data.append(FP16x16 { mag: 140544, sign: true }); + data.append(FP16x16 { mag: 125760, sign: true }); + data.append(FP16x16 { mag: 64800, sign: false }); + data.append(FP16x16 { mag: 89664, sign: true }); + data.append(FP16x16 { mag: 125376, sign: false }); + data.append(FP16x16 { mag: 89408, sign: true }); + data.append(FP16x16 { mag: 93376, sign: false }); + data.append(FP16x16 { mag: 26320, sign: true }); + data.append(FP16x16 { mag: 2108, sign: true }); + data.append(FP16x16 { mag: 131968, sign: false }); + data.append(FP16x16 { mag: 69568, sign: true }); 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 aa7750fed..25fb84316 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::FP16x16TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::FP16x16Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[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 df88a65e8..01527607c 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 167983, sign: false }); - data.append(FP16x16 { mag: 103145, sign: false }); - data.append(FP16x16 { mag: 73690, sign: false }); - data.append(FP16x16 { mag: 187012, sign: false }); - data.append(FP16x16 { mag: 81311, sign: false }); - data.append(FP16x16 { mag: 7340, sign: false }); - data.append(FP16x16 { mag: 83755, sign: false }); - data.append(FP16x16 { mag: 97056, sign: false }); - data.append(FP16x16 { mag: 96142, sign: false }); - data.append(FP16x16 { mag: 80995, sign: false }); - data.append(FP16x16 { mag: 10897, sign: false }); - data.append(FP16x16 { mag: 56112, sign: false }); - data.append(FP16x16 { mag: 85459, sign: false }); - data.append(FP16x16 { mag: 82620, sign: false }); - data.append(FP16x16 { mag: 93533, sign: false }); - data.append(FP16x16 { mag: 146364, sign: false }); - data.append(FP16x16 { mag: 23371, sign: false }); - data.append(FP16x16 { mag: 175749, sign: false }); - data.append(FP16x16 { mag: 122942, sign: false }); - data.append(FP16x16 { mag: 58181, sign: false }); - data.append(FP16x16 { mag: 65506, sign: false }); - data.append(FP16x16 { mag: 167127, sign: false }); - data.append(FP16x16 { mag: 189422, sign: false }); - data.append(FP16x16 { mag: 52812, sign: false }); - data.append(FP16x16 { mag: 14410, sign: false }); - data.append(FP16x16 { mag: 70276, sign: false }); - data.append(FP16x16 { mag: 62764, sign: false }); + data.append(FP16x16 { mag: 32314, sign: false }); + data.append(FP16x16 { mag: 116332, sign: false }); + data.append(FP16x16 { mag: 162730, sign: false }); + data.append(FP16x16 { mag: 153570, sign: false }); + data.append(FP16x16 { mag: 77465, sign: false }); + data.append(FP16x16 { mag: 51947, sign: false }); + data.append(FP16x16 { mag: 2997, sign: false }); + data.append(FP16x16 { mag: 59590, sign: false }); + data.append(FP16x16 { mag: 168764, sign: false }); + data.append(FP16x16 { mag: 188449, sign: false }); + data.append(FP16x16 { mag: 185811, sign: false }); + data.append(FP16x16 { mag: 148882, sign: false }); + data.append(FP16x16 { mag: 139498, sign: false }); + data.append(FP16x16 { mag: 73709, sign: false }); + data.append(FP16x16 { mag: 184393, sign: false }); + data.append(FP16x16 { mag: 70132, sign: false }); + data.append(FP16x16 { mag: 23780, sign: false }); + data.append(FP16x16 { mag: 119286, sign: false }); + data.append(FP16x16 { mag: 63510, sign: false }); + data.append(FP16x16 { mag: 11925, sign: false }); + data.append(FP16x16 { mag: 80588, sign: false }); + data.append(FP16x16 { mag: 161148, sign: false }); + data.append(FP16x16 { mag: 47213, sign: false }); + data.append(FP16x16 { mag: 45615, sign: false }); + data.append(FP16x16 { mag: 160150, sign: false }); + data.append(FP16x16 { mag: 91119, sign: false }); + data.append(FP16x16 { mag: 75209, 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 3af61c6ba..d933a1a3e 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo @@ -8,32 +8,32 @@ fn output_0() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 167936, sign: false }); - data.append(FP16x16 { mag: 103168, sign: false }); - data.append(FP16x16 { mag: 73664, sign: false }); - data.append(FP16x16 { mag: 187008, sign: false }); - data.append(FP16x16 { mag: 81280, sign: false }); - data.append(FP16x16 { mag: 7340, sign: false }); - data.append(FP16x16 { mag: 83776, sign: false }); - data.append(FP16x16 { mag: 97088, sign: false }); - data.append(FP16x16 { mag: 96128, sign: false }); - data.append(FP16x16 { mag: 81024, sign: false }); - data.append(FP16x16 { mag: 10896, sign: false }); - data.append(FP16x16 { mag: 56128, sign: false }); - data.append(FP16x16 { mag: 85440, sign: false }); - data.append(FP16x16 { mag: 82624, sign: false }); - data.append(FP16x16 { mag: 93504, sign: false }); - data.append(FP16x16 { mag: 146304, sign: false }); - data.append(FP16x16 { mag: 23376, sign: false }); - data.append(FP16x16 { mag: 175744, sign: false }); - data.append(FP16x16 { mag: 122944, sign: false }); - data.append(FP16x16 { mag: 58176, sign: false }); - data.append(FP16x16 { mag: 65504, sign: false }); - data.append(FP16x16 { mag: 167168, sign: false }); - data.append(FP16x16 { mag: 189440, sign: false }); - data.append(FP16x16 { mag: 52800, sign: false }); - data.append(FP16x16 { mag: 14408, sign: false }); - data.append(FP16x16 { mag: 70272, sign: false }); - data.append(FP16x16 { mag: 62752, sign: false }); + data.append(FP16x16 { mag: 32320, sign: false }); + data.append(FP16x16 { mag: 116352, sign: false }); + data.append(FP16x16 { mag: 162688, sign: false }); + data.append(FP16x16 { mag: 153600, sign: false }); + data.append(FP16x16 { mag: 77440, sign: false }); + data.append(FP16x16 { mag: 51936, sign: false }); + data.append(FP16x16 { mag: 2998, sign: false }); + data.append(FP16x16 { mag: 59584, sign: false }); + data.append(FP16x16 { mag: 168704, sign: false }); + data.append(FP16x16 { mag: 188416, sign: false }); + data.append(FP16x16 { mag: 185856, sign: false }); + data.append(FP16x16 { mag: 148864, sign: false }); + data.append(FP16x16 { mag: 139520, sign: false }); + data.append(FP16x16 { mag: 73728, sign: false }); + data.append(FP16x16 { mag: 184448, sign: false }); + data.append(FP16x16 { mag: 70144, sign: false }); + data.append(FP16x16 { mag: 23776, sign: false }); + data.append(FP16x16 { mag: 119296, sign: false }); + data.append(FP16x16 { mag: 63520, sign: false }); + data.append(FP16x16 { mag: 11928, sign: false }); + data.append(FP16x16 { mag: 80576, sign: false }); + data.append(FP16x16 { mag: 161152, sign: false }); + data.append(FP16x16 { mag: 47200, sign: false }); + data.append(FP16x16 { mag: 45600, sign: false }); + data.append(FP16x16 { mag: 160128, sign: false }); + data.append(FP16x16 { mag: 91136, sign: false }); + data.append(FP16x16 { mag: 75200, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo index 606066967..2fbfb3e62 100644 --- a/tests/nodes/unique_u32_example.cairo +++ b/tests/nodes/unique_u32_example.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo index 2efe587ce..bfd43dc87 100644 --- a/tests/nodes/unique_u32_example_two.cairo +++ b/tests/nodes/unique_u32_example_two.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_example_two/input_0.cairo b/tests/nodes/unique_u32_example_two/input_0.cairo index d935e864d..4a31b98ab 100644 --- a/tests/nodes/unique_u32_example_two/input_0.cairo +++ b/tests/nodes/unique_u32_example_two/input_0.cairo @@ -4,7 +4,7 @@ use orion::operators::tensor::U32Tensor; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(4); shape.append(3); let mut data = ArrayTrait::new(); @@ -17,5 +17,8 @@ fn input_0() -> Tensor { data.append(2); data.append(3); data.append(4); + data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_example_two/output_2.cairo b/tests/nodes/unique_u32_example_two/output_2.cairo index f0bcebcef..cdaaea59e 100644 --- a/tests/nodes/unique_u32_example_two/output_2.cairo +++ b/tests/nodes/unique_u32_example_two/output_2.cairo @@ -5,11 +5,12 @@ use orion::numbers::{IntegerTrait, i32}; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); + 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 }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_example_two/output_3.cairo b/tests/nodes/unique_u32_example_two/output_3.cairo index a41b6bce7..489273977 100644 --- a/tests/nodes/unique_u32_example_two/output_3.cairo +++ b/tests/nodes/unique_u32_example_two/output_3.cairo @@ -8,7 +8,7 @@ fn output_3() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 3, sign: false }); data.append(i32 { mag: 1, sign: false }); 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 814570781..1298df4ce 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use 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 0f3076946..ad06900a5 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 @@ -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(0); data.append(4); - data.append(2); - data.append(2); - data.append(3); - data.append(3); data.append(4); + data.append(3); data.append(2); + data.append(1); + data.append(1); data.append(0); - data.append(0); - data.append(4); - data.append(2); data.append(3); - data.append(1); data.append(3); - data.append(4); - data.append(4); - data.append(2); + data.append(1); + data.append(1); data.append(3); - data.append(4); + data.append(1); data.append(3); - data.append(4); + data.append(1); + data.append(1); + data.append(1); data.append(1); data.append(2); + data.append(1); + data.append(3); + data.append(1); + data.append(1); + data.append(3); 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 d28151eae..391d824d3 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(2); data.append(4); data.append(4); - data.append(0); - data.append(0); data.append(4); - data.append(2); - data.append(2); - data.append(3); - data.append(3); data.append(4); + data.append(3); data.append(2); + data.append(1); + data.append(1); data.append(0); - data.append(0); - data.append(4); - data.append(2); data.append(3); - data.append(1); data.append(3); - data.append(4); - data.append(4); - data.append(2); + data.append(1); + data.append(1); data.append(3); - data.append(4); + data.append(1); data.append(3); - data.append(4); + data.append(1); + data.append(1); + data.append(1); data.append(1); data.append(2); + data.append(1); + data.append(3); + data.append(1); + data.append(1); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo index 6b349399b..14c513fb1 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_with_axis_one_sorted.cairo b/tests/nodes/unique_u32_with_axis_one_sorted.cairo index 4fb0c11b0..dfcdd026b 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use 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 d5cd0f9fb..f6e3dbe88 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); + data.append(1); data.append(2); - data.append(0); - data.append(0); + data.append(3); data.append(4); - data.append(0); + data.append(1); + data.append(2); + data.append(4); + data.append(1); data.append(1); data.append(3); + data.append(1); data.append(3); + data.append(4); data.append(1); data.append(2); - data.append(0); data.append(1); - data.append(2); - data.append(0); data.append(0); - data.append(2); data.append(0); - data.append(3); + data.append(4); data.append(0); - data.append(3); data.append(2); - data.append(1); data.append(3); + data.append(2); data.append(4); - data.append(1); - data.append(0); + data.append(4); + data.append(3); 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 ea9a4dcb4..35c722fac 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 @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); + data.append(1); data.append(2); - data.append(0); - data.append(0); + data.append(3); data.append(4); - data.append(0); + data.append(1); + data.append(2); + data.append(4); + data.append(1); data.append(1); data.append(3); + data.append(1); data.append(3); + data.append(4); data.append(1); data.append(2); - data.append(0); data.append(1); - data.append(2); - data.append(0); data.append(0); - data.append(2); data.append(0); - data.append(3); + data.append(4); data.append(0); - data.append(3); data.append(2); - data.append(1); data.append(3); + data.append(2); data.append(4); - data.append(1); - data.append(0); + data.append(4); + data.append(3); 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 a8d571c99..b0a247dfd 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use 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 e2f1bcff4..bcc066bd3 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(4); + data.append(2); data.append(3); + data.append(4); + data.append(3); + data.append(2); data.append(0); + data.append(4); data.append(2); data.append(1); data.append(4); data.append(0); + data.append(4); data.append(2); - data.append(1); - data.append(3); - data.append(0); - data.append(1); data.append(2); - data.append(4); data.append(2); + data.append(3); data.append(1); + data.append(3); data.append(2); data.append(0); - data.append(3); data.append(2); - data.append(1); data.append(3); data.append(2); data.append(1); data.append(2); - data.append(0); - data.append(4); - data.append(0); + data.append(1); 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 149b4c231..ce6a31ee4 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(4); + data.append(2); data.append(3); + data.append(4); + data.append(3); + data.append(2); data.append(0); + data.append(4); data.append(2); data.append(1); data.append(4); data.append(0); + data.append(4); data.append(2); - data.append(1); - data.append(3); - data.append(0); - data.append(1); data.append(2); - data.append(4); data.append(2); + data.append(3); data.append(1); + data.append(3); data.append(2); data.append(0); - data.append(3); data.append(2); - data.append(1); data.append(3); data.append(2); data.append(1); data.append(2); - data.append(0); - data.append(4); - data.append(0); + 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 1d5e6ffe8..9eccee7a9 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use 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 418e22fd8..248ac1f9f 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(3); + data.append(0); + data.append(4); + data.append(4); + data.append(0); data.append(3); + data.append(0); + data.append(2); data.append(4); + data.append(2); data.append(3); data.append(1); + data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(1); - data.append(3); + data.append(4); + data.append(1); data.append(1); data.append(2); - data.append(3); - data.append(3); - data.append(3); data.append(2); + data.append(4); data.append(3); - data.append(0); - data.append(0); data.append(3); data.append(3); - data.append(0); - data.append(4); data.append(2); data.append(2); - data.append(1); - data.append(3); - data.append(0); 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 6f720a3b7..79c610013 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(3); + data.append(0); + data.append(4); + data.append(4); + data.append(0); data.append(3); + data.append(0); + data.append(2); data.append(4); + data.append(2); data.append(3); data.append(1); + data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(1); - data.append(3); + data.append(4); + data.append(1); data.append(1); data.append(2); - data.append(3); - data.append(3); - data.append(3); data.append(2); + data.append(4); data.append(3); - data.append(0); - data.append(0); data.append(3); data.append(3); - data.append(0); - data.append(4); data.append(2); data.append(2); - data.append(1); - data.append(3); - data.append(0); 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 a066f233a..9aa6e158a 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use 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 d9b7f1f5e..ddea6256c 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); data.append(0); + data.append(0); + data.append(2); + data.append(1); data.append(4); + data.append(2); data.append(3); data.append(1); data.append(3); - data.append(0); data.append(2); - data.append(4); - data.append(1); - data.append(4); data.append(0); - data.append(4); data.append(2); data.append(0); + data.append(3); + data.append(2); data.append(0); data.append(1); data.append(2); data.append(3); data.append(2); + data.append(4); + data.append(1); + data.append(1); + data.append(0); data.append(2); - data.append(3); data.append(0); - data.append(3); - data.append(4); - data.append(3); + data.append(0); 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 5cd1a0634..0f237bc38 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 @@ -7,9 +7,9 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); data.append(0); + data.append(2); + data.append(1); data.append(4); data.append(3); 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 ee4041436..d3d7bc082 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 @@ -9,9 +9,9 @@ fn output_1() -> Tensor { 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: 6, sign: false }); 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 c1d84e03b..6d85a75ad 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 @@ -9,31 +9,31 @@ fn output_2() -> Tensor { 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: 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: 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: 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: 2, 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: 2, 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: 1, 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: 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: 4, 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: 0, sign: false }); + data.append(i32 { mag: 0, sign: false }); 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 d0807dd27..1ddbbcd44 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 @@ -8,10 +8,10 @@ fn output_3() -> Tensor { 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: 6, sign: false }); + data.append(i32 { mag: 8, sign: false }); + data.append(i32 { mag: 8, sign: false }); data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 4, sign: false }); 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 17f16a414..409edd7f9 100644 --- a/tests/nodes/unique_u32_without_axis_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted.cairo @@ -6,12 +6,12 @@ mod output_3; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32Tensor; use 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 f7611d5fc..c860fca3e 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -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(1); data.append(3); - data.append(2); - data.append(2); - data.append(3); - data.append(2); data.append(4); - data.append(1); + data.append(0); + data.append(4); + data.append(3); + data.append(3); + data.append(3); + data.append(0); data.append(4); data.append(4); + data.append(3); data.append(0); data.append(3); - data.append(2); - data.append(4); data.append(3); - data.append(1); - data.append(2); + data.append(0); data.append(2); + data.append(3); + data.append(0); data.append(1); - data.append(1); + data.append(4); data.append(3); + data.append(2); data.append(3); 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 a0b957b48..75ab79961 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -7,9 +7,9 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(2); + data.append(1); data.append(3); data.append(4); TensorTrait::new(shape.span(), data.span()) 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 684f04a64..8f1d46d8b 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -10,8 +10,8 @@ fn output_1() -> Tensor { 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: 11, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 4, sign: false }); + data.append(i32 { mag: 5, sign: false }); 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 e04ef7bc2..1feae6729 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -10,30 +10,30 @@ fn output_2() -> Tensor { 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: 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: 3, 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: 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: 2, 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: 4, 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: 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: 0, 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: 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: 3, sign: false }); 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 83ff692d9..8664eee03 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - 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: 6, 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: 10, sign: false }); + data.append(i32 { mag: 5, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 7bb457820c838fc1e1ead284ace37f3bb5aad61d Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 2 Dec 2023 07:35:54 +0100 Subject: [PATCH 17/30] proof --- nodegen/node/unique.py | 55 ++------------- src/operators/tensor/helpers.cairo | 58 ++++++++++++++++ .../implementations/tensor_fp16x16.cairo | 23 +++++++ .../implementations/tensor_fp16x16wide.cairo | 23 +++++++ .../implementations/tensor_fp32x32.cairo | 23 +++++++ .../implementations/tensor_fp64x64.cairo | 23 +++++++ .../implementations/tensor_fp8x23.cairo | 27 +++++++- .../implementations/tensor_fp8x23wide.cairo | 24 +++++++ .../tensor/implementations/tensor_i32.cairo | 24 +++++++ .../tensor/implementations/tensor_i8.cairo | 24 +++++++ .../tensor/implementations/tensor_u32.cairo | 24 +++++++ .../tensor/manipulation/unique.cairo | 68 ++++++++----------- 12 files changed, 303 insertions(+), 93 deletions(-) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py index a29b8f61f..b19c2d6c8 100644 --- a/nodegen/node/unique.py +++ b/nodegen/node/unique.py @@ -37,16 +37,13 @@ def _unsort_outputs( class Unique(RunAll): @staticmethod def unique_u32(): - def example(): + def example(): # TODO: remove after impls x = np.array([2, 1, 1, 3, 4, 3]).astype(np.uint32) axis = None unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -66,16 +63,13 @@ def example(): name, ) - def example_two(): + def example_two(): # TODO: remove after impls x = np.array([[1, 0, 0], [1, 0, 0], [2, 3, 4], [1, 0, 0]]).astype(np.uint32) axis = 0 unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -91,7 +85,7 @@ def example_two(): make_test( [x], (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(0), Option::None(()))", + "input_0.unique(Option::Some(0), Option::Some(true))", name, ) @@ -102,9 +96,6 @@ def without_axis_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -120,7 +111,7 @@ def without_axis_sorted(): make_test( [x], (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::None(()), Option::None(()))", + "input_0.unique(Option::None(()), Option::Some(true))", name, ) @@ -160,9 +151,6 @@ def with_axis_zero_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -218,9 +206,6 @@ def with_axis_one_sorted(): unique_values, indices, inverse_indices, counts = np.unique( x, axis=axis, return_index=True, return_inverse=True, return_counts=True ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) x = Tensor(Dtype.U32, x.shape, x.flatten()) unique_values = Tensor( @@ -269,37 +254,6 @@ def with_axis_one_not_sorted(): name, ) - def with_axis_one_not_sorted_custom(): - x = np.array([[1, 0, 0, 2, 2, 4, 2], [1, 0, 0, 1, 2, 3, 1]]).astype( - np.uint32 - ) - axis = 1 - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_with_axis_one_not_sorted_custom" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(1), Option::Some(false))", - name, - ) - example() example_two() without_axis_sorted() @@ -308,7 +262,6 @@ def with_axis_one_not_sorted_custom(): with_axis_zero_not_sorted() with_axis_one_sorted() with_axis_one_not_sorted() - with_axis_one_not_sorted_custom() @staticmethod def unique_fp16x16(): diff --git a/src/operators/tensor/helpers.cairo b/src/operators/tensor/helpers.cairo index 0aad721d7..025cbb813 100644 --- a/src/operators/tensor/helpers.cairo +++ b/src/operators/tensor/helpers.cairo @@ -317,3 +317,61 @@ fn replace_index(mut shape: Span, index: usize, value: usize) -> Span, +Copy, +PartialEq, +PartialOrd>( + lhs: Span, rhs: Span +) -> i8 { + let mut rhs = rhs; + let mut lhs = lhs; + let mut ret: i8 = 0; + loop { + match lhs.pop_front() { + Option::Some(l) => { + match rhs.pop_front() { + Option::Some(r) => { if l != r { + ret = if *l > *r { + 1 + } else { + -1 + }; + break; + } }, + Option::None => { + ret = 1; + break; + }, + } + }, + Option::None => { + ret = -1; + break; + } + }; + }; + ret +} + +/// Implements PartiaLOrd for two spans of generic type T. +impl SpanPartialOrd, +Copy, +PartialEq, +PartialOrd> of PartialOrd> { + fn ge(lhs: Span, rhs: Span) -> bool { + span_cmp(lhs, rhs) >= 0 + } + + fn gt(lhs: Span, rhs: Span) -> bool { + span_cmp(lhs, rhs) > 0 + } + + fn le(lhs: Span, rhs: Span) -> bool { + span_cmp(lhs, rhs) <= 0 + } + + fn lt(lhs: Span, rhs: Span) -> bool { + span_cmp(lhs, rhs) < 0 + } +} diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index faf57c79e..5486b484f 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -425,6 +426,28 @@ impl TensorI8IntoTensorFP16x16 of Into, Tensor> { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} // Internals const PRECISION: u32 = 589; // 0.009 diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index e01a64875..de37059ee 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -413,6 +414,28 @@ impl U32TryIntoU32 of TryInto { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} // Internals const PRECISION: u64 = 589; // 0.009 diff --git a/src/operators/tensor/implementations/tensor_fp32x32.cairo b/src/operators/tensor/implementations/tensor_fp32x32.cairo index 24f196b9b..547e561b7 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -438,6 +439,28 @@ impl TensorI8IntoTensorFP32x32 of Into, Tensor> { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} // Internals diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index 21c57dd31..9cf89036a 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -438,6 +439,28 @@ impl TensorI8IntoTensorFP64x64 of Into, Tensor> { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} // Internals diff --git a/src/operators/tensor/implementations/tensor_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index 79ececb80..27b98aaf0 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -1,9 +1,10 @@ -use array::ArrayTrait; -use array::SpanTrait; +use array::{ArrayTrait}; +use array::{SpanTrait, SpanPartialEq}; use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -449,6 +450,28 @@ impl TensorI8IntoTensorFP8x23 of Into, Tensor> { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} // Internals diff --git a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo index 6f35f46f8..fc9af96ee 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -427,6 +428,29 @@ impl U32TryIntoU32 of TryInto { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} + // Internals const PRECISION: u64 = 75497; // 0.009 diff --git a/src/operators/tensor/implementations/tensor_i32.cairo b/src/operators/tensor/implementations/tensor_i32.cairo index 8296647f5..f8b90f4e1 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -431,6 +432,29 @@ impl TensorI8IntoTensorI32 of Into, Tensor> { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} + // Internals diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index 5cb5a64dd..cf4119a2a 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -418,6 +419,29 @@ impl I8TensorPartialEq of PartialEq> { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} + // Internals fn tensor_eq(mut lhs: Tensor, mut rhs: Tensor,) -> bool { diff --git a/src/operators/tensor/implementations/tensor_u32.cairo b/src/operators/tensor/implementations/tensor_u32.cairo index 699104807..cdcd5254d 100644 --- a/src/operators/tensor/implementations/tensor_u32.cairo +++ b/src/operators/tensor/implementations/tensor_u32.cairo @@ -4,6 +4,7 @@ use option::OptionTrait; use traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; +use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, @@ -396,6 +397,29 @@ impl U32TryIntoI8 of TryInto { } } +/// Implements partial ord for two `Tensor> { + #[inline(always)] + fn ge(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::ge(lhs.data, rhs.data); + } + + #[inline(always)] + fn gt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::gt(lhs.data, rhs.data); + } + + #[inline(always)] + fn le(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::le(lhs.data, rhs.data); + } + + #[inline(always)] + fn lt(lhs: Tensor, rhs: Tensor) -> bool { + return SpanPartialOrd::lt(lhs.data, rhs.data); + } +} + // Internals fn tensor_eq(mut lhs: Tensor, mut rhs: Tensor,) -> bool { diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index 0bdc203ae..2b94f96af 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -15,12 +15,13 @@ use orion::operators::tensor::core::{Tensor, TensorTrait, stride}; /// Cf: TensorTrait::unique docstring fn unique< T, - impl TCopy: Copy, - impl TDrop: Drop, - impl TTensor: TensorTrait, - impl TPartialOrd: PartialOrd, - impl TPartialEq: PartialEq, - impl TPartialEqTensor: PartialEq>, + +Copy, + +Drop, + +TensorTrait, + +PartialOrd, + +PartialEq, + +PartialEq>, + +PartialOrd> >( self: @Tensor, axis: Option, sorted: Option ) -> (Tensor, Tensor, Tensor, Tensor) { @@ -46,13 +47,8 @@ fn unique< } /// Subfunction unique for flatten tensors (no axis). -fn unique_flatten< - T, - impl TCopy: Copy, - impl TDrop: Drop, - impl TPartialOrd: PartialOrd, - impl TPartialEq: PartialEq, ->( +/// Cf: TensorTrait::unique docstring +fn unique_flatten, +Drop, +PartialOrd, +PartialEq,>( t: @Tensor, sorted: bool ) -> (Span, Span, Span, Span, Span) { let mut indices: Array = array![]; @@ -62,12 +58,8 @@ fn unique_flatten< let mut unique_elements = (*t.data).unique(); let mut new_shape: Array = array![unique_elements.len()]; - // TODO: investigate why calling merge before the next 2 loops - // cause the program to crash with error: - // #73054: One of the arguments does not satisfy the requirements of the libfunc. if (sorted) { - // unique_elements = merge(unique_elements); - unique_elements = unique_elements; + unique_elements = merge(unique_elements); } let mut unique_elements_span = unique_elements.span(); @@ -104,14 +96,16 @@ fn unique_flatten< } /// Subfunction unique for tensors (wth axis). +/// Cf: TensorTrait::unique docstring fn unique_along_axis< T, - impl TCopy: Copy, - impl TDrop: Drop, - impl TPartialOrd: PartialOrd, - impl TPartialEq: PartialEq, - impl TTensor: TensorTrait, - impl TPartialEqTensor: PartialEq>, + +Copy, + +Drop, + +PartialOrd, + +PartialEq, + +TensorTrait, + +PartialEq>, + +PartialOrd> >( t: @Tensor, axis: usize, sorted: bool ) -> (Span, Span, Span, Span, Span) { @@ -123,7 +117,7 @@ fn unique_along_axis< let rank = (*t).shape.len(); assert(axis < rank, 'axis out of dimensions'); - let all_tensors = as_tensors_array(t, axis, rank); + let all_tensors = as_tensors_array(t, axis); let mut unique_tensors = get_unique_tensors(all_tensors.span()); let mut unique_tensors_len = unique_tensors.len(); @@ -139,12 +133,11 @@ fn unique_along_axis< }); i += 1; }; - // TODO: need to implement PartialOrd for Tensor in order to sort the tensors - // using merge from Alexandria. (is this the right solution?) + if (sorted) { - // unique_tensors = merge(unique_tensors); - unique_tensors = unique_tensors; + unique_tensors = merge(unique_tensors); } + let mut all_tensors_span = all_tensors.span(); let mut unique_tensors_span = unique_tensors.span(); loop { @@ -179,11 +172,12 @@ fn unique_along_axis< return (unique_elements, new_shape_span, indices.span(), inverse_indices.span(), count.span()); } -/// Returns a Tensor as an array of tensors -fn as_tensors_array, impl TDrop: Drop, impl TTensor: TensorTrait,>( - tensor: @Tensor, axis: usize, rank: usize +/// Convert a Tensor to an array of tensors for a given axis. +fn as_tensors_array, +Drop, +TensorTrait,>( + tensor: @Tensor, axis: usize ) -> Array> { let shape = *tensor.shape; + let rank = shape.len(); let mut as_tensors: Array> = array![]; let mut axes: Array = array![]; @@ -238,13 +232,7 @@ fn as_tensors_array, impl TDrop: Drop, impl TTensor: T } /// Returns from an array of tensors all the uniques tensors. -fn get_unique_tensors< - T, - impl TCopy: Copy, - impl TDrop: Drop, - impl TPartialEq: PartialEq, - impl TPartialEqTensor: PartialEq> ->( +fn get_unique_tensors, +Drop, +PartialEq, +PartialEq>>( mut arr: Span> ) -> Array> { let mut uniques_tensors: Array> = array![]; @@ -263,7 +251,7 @@ fn get_unique_tensors< } /// Flatten a given array of tensors into an Array. -fn flatten_array_of_tensors, impl TDrop: Drop,>( +fn flatten_array_of_tensors, +Drop,>( tensors: Array>, axis: usize, new_shape: Span ) -> Span { let mut new_stride = stride(new_shape); From 8787e84a8df322b218d98da4660710362da4a2c3 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 2 Dec 2023 13:58:55 +0100 Subject: [PATCH 18/30] feat(tensor_unique): regen tests --- ...unique_fp16x16_with_axis_zero_sorted.cairo | 8 +-- .../input_0.cairo | 54 +++++++++---------- .../output_0.cairo | 54 +++++++++---------- .../unique_fp16x16_without_axis_sorted.cairo | 8 +-- .../input_0.cairo | 54 +++++++++---------- .../output_0.cairo | 52 +++++++++--------- tests/nodes/unique_u32_example.cairo | 8 +-- tests/nodes/unique_u32_example/output_0.cairo | 2 +- tests/nodes/unique_u32_example/output_1.cairo | 2 +- tests/nodes/unique_u32_example/output_2.cairo | 4 +- tests/nodes/unique_u32_example/output_3.cairo | 2 +- tests/nodes/unique_u32_example_two.cairo | 10 ++-- .../unique_u32_with_axis_one_not_sorted.cairo | 8 +-- .../input_0.cairo | 24 ++++----- .../output_0.cairo | 24 ++++----- .../unique_u32_with_axis_one_sorted.cairo | 8 +-- .../input_0.cairo | 24 ++++----- .../output_0.cairo | 24 ++++----- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- ...unique_u32_with_axis_zero_not_sorted.cairo | 8 +-- .../input_0.cairo | 30 +++++------ .../output_0.cairo | 30 +++++------ .../unique_u32_with_axis_zero_sorted.cairo | 8 +-- .../input_0.cairo | 28 +++++----- .../output_0.cairo | 28 +++++----- .../output_1.cairo | 2 +- .../output_2.cairo | 2 +- .../unique_u32_without_axis_not_sorted.cairo | 8 +-- .../input_0.cairo | 28 +++++----- .../output_0.cairo | 4 +- .../output_1.cairo | 6 +-- .../output_2.cairo | 24 ++++----- .../output_3.cairo | 4 +- .../unique_u32_without_axis_sorted.cairo | 10 ++-- .../input_0.cairo | 24 ++++----- .../output_0.cairo | 2 +- .../output_1.cairo | 6 +-- .../output_2.cairo | 24 ++++----- .../output_3.cairo | 6 +-- 40 files changed, 328 insertions(+), 328 deletions(-) diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo index fda07a0f7..281e2a6ea 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::I32TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[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 b51181d6a..4c7c3d31b 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 @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 157414, sign: true }); - data.append(FP16x16 { mag: 1771, sign: true }); - data.append(FP16x16 { mag: 104423, sign: false }); - data.append(FP16x16 { mag: 2093, sign: true }); - data.append(FP16x16 { mag: 63936, sign: false }); - data.append(FP16x16 { mag: 120461, sign: false }); - data.append(FP16x16 { mag: 72730, sign: false }); - data.append(FP16x16 { mag: 15555, sign: true }); - data.append(FP16x16 { mag: 44984, sign: false }); - data.append(FP16x16 { mag: 94211, sign: false }); - data.append(FP16x16 { mag: 93317, sign: true }); - data.append(FP16x16 { mag: 29023, sign: true }); - data.append(FP16x16 { mag: 52455, sign: true }); - data.append(FP16x16 { mag: 176026, sign: true }); - data.append(FP16x16 { mag: 98593, sign: true }); - data.append(FP16x16 { mag: 164495, sign: true }); - data.append(FP16x16 { mag: 140493, sign: true }); - data.append(FP16x16 { mag: 125737, sign: true }); - data.append(FP16x16 { mag: 64810, sign: false }); - data.append(FP16x16 { mag: 89675, sign: true }); - data.append(FP16x16 { mag: 125404, sign: false }); - data.append(FP16x16 { mag: 89381, sign: true }); - data.append(FP16x16 { mag: 93376, sign: false }); - data.append(FP16x16 { mag: 26320, sign: true }); - data.append(FP16x16 { mag: 2108, sign: true }); - data.append(FP16x16 { mag: 132017, sign: false }); - data.append(FP16x16 { mag: 69573, sign: true }); + data.append(FP16x16 { mag: 131841, sign: false }); + data.append(FP16x16 { mag: 177122, sign: false }); + data.append(FP16x16 { mag: 8001, sign: true }); + data.append(FP16x16 { mag: 196243, sign: false }); + data.append(FP16x16 { mag: 92229, sign: true }); + data.append(FP16x16 { mag: 51294, sign: false }); + data.append(FP16x16 { mag: 106419, sign: false }); + data.append(FP16x16 { mag: 174717, sign: false }); + data.append(FP16x16 { mag: 140928, sign: true }); + data.append(FP16x16 { mag: 11465, sign: true }); + data.append(FP16x16 { mag: 140627, sign: true }); + data.append(FP16x16 { mag: 176437, sign: false }); + data.append(FP16x16 { mag: 104537, sign: false }); + data.append(FP16x16 { mag: 127197, sign: false }); + data.append(FP16x16 { mag: 7148, sign: true }); + data.append(FP16x16 { mag: 16541, sign: true }); + data.append(FP16x16 { mag: 60120, sign: false }); + data.append(FP16x16 { mag: 192460, sign: true }); + data.append(FP16x16 { mag: 152480, sign: true }); + data.append(FP16x16 { mag: 118232, sign: true }); + data.append(FP16x16 { mag: 55096, sign: true }); + data.append(FP16x16 { mag: 174569, sign: true }); + data.append(FP16x16 { mag: 49745, sign: true }); + data.append(FP16x16 { mag: 36189, sign: true }); + data.append(FP16x16 { mag: 26667, sign: false }); + data.append(FP16x16 { mag: 89957, sign: true }); + data.append(FP16x16 { mag: 112614, sign: true }); 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 05d6dd5f8..23d6104d9 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 @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 157440, sign: true }); - data.append(FP16x16 { mag: 1772, sign: true }); - data.append(FP16x16 { mag: 104448, sign: false }); - data.append(FP16x16 { mag: 2094, sign: true }); - data.append(FP16x16 { mag: 63936, sign: false }); - data.append(FP16x16 { mag: 120448, sign: false }); - data.append(FP16x16 { mag: 72704, sign: false }); - data.append(FP16x16 { mag: 15552, sign: true }); - data.append(FP16x16 { mag: 44992, sign: false }); - data.append(FP16x16 { mag: 94208, sign: false }); - data.append(FP16x16 { mag: 93312, sign: true }); - data.append(FP16x16 { mag: 29024, sign: true }); - data.append(FP16x16 { mag: 52448, sign: true }); - data.append(FP16x16 { mag: 176000, sign: true }); - data.append(FP16x16 { mag: 98624, sign: true }); - data.append(FP16x16 { mag: 164480, sign: true }); - data.append(FP16x16 { mag: 140544, sign: true }); - data.append(FP16x16 { mag: 125760, sign: true }); - data.append(FP16x16 { mag: 64800, sign: false }); - data.append(FP16x16 { mag: 89664, sign: true }); - data.append(FP16x16 { mag: 125376, sign: false }); - data.append(FP16x16 { mag: 89408, sign: true }); - data.append(FP16x16 { mag: 93376, sign: false }); - data.append(FP16x16 { mag: 26320, sign: true }); - data.append(FP16x16 { mag: 2108, sign: true }); - data.append(FP16x16 { mag: 131968, sign: false }); - data.append(FP16x16 { mag: 69568, sign: true }); + data.append(FP16x16 { mag: 131840, sign: false }); + data.append(FP16x16 { mag: 177152, sign: false }); + data.append(FP16x16 { mag: 8000, sign: true }); + data.append(FP16x16 { mag: 196224, sign: false }); + data.append(FP16x16 { mag: 92224, sign: true }); + data.append(FP16x16 { mag: 51296, sign: false }); + data.append(FP16x16 { mag: 106432, sign: false }); + data.append(FP16x16 { mag: 174720, sign: false }); + data.append(FP16x16 { mag: 140928, sign: true }); + data.append(FP16x16 { mag: 11464, sign: true }); + data.append(FP16x16 { mag: 140672, sign: true }); + data.append(FP16x16 { mag: 176384, sign: false }); + data.append(FP16x16 { mag: 104512, sign: false }); + data.append(FP16x16 { mag: 127168, sign: false }); + data.append(FP16x16 { mag: 7148, sign: true }); + data.append(FP16x16 { mag: 16544, sign: true }); + data.append(FP16x16 { mag: 60128, sign: false }); + data.append(FP16x16 { mag: 192512, sign: true }); + data.append(FP16x16 { mag: 152448, sign: true }); + data.append(FP16x16 { mag: 118208, sign: true }); + data.append(FP16x16 { mag: 55104, sign: true }); + data.append(FP16x16 { mag: 174592, sign: true }); + data.append(FP16x16 { mag: 49760, sign: true }); + data.append(FP16x16 { mag: 36192, sign: true }); + data.append(FP16x16 { mag: 26672, sign: false }); + data.append(FP16x16 { mag: 89984, sign: true }); + data.append(FP16x16 { mag: 112640, sign: true }); 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 25fb84316..0225c5af4 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::I32TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32Tensor; use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[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 01527607c..89f824d0e 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 32314, sign: false }); - data.append(FP16x16 { mag: 116332, sign: false }); - data.append(FP16x16 { mag: 162730, sign: false }); - data.append(FP16x16 { mag: 153570, sign: false }); - data.append(FP16x16 { mag: 77465, sign: false }); - data.append(FP16x16 { mag: 51947, sign: false }); - data.append(FP16x16 { mag: 2997, sign: false }); - data.append(FP16x16 { mag: 59590, sign: false }); - data.append(FP16x16 { mag: 168764, sign: false }); - data.append(FP16x16 { mag: 188449, sign: false }); - data.append(FP16x16 { mag: 185811, sign: false }); - data.append(FP16x16 { mag: 148882, sign: false }); - data.append(FP16x16 { mag: 139498, sign: false }); - data.append(FP16x16 { mag: 73709, sign: false }); - data.append(FP16x16 { mag: 184393, sign: false }); - data.append(FP16x16 { mag: 70132, sign: false }); - data.append(FP16x16 { mag: 23780, sign: false }); - data.append(FP16x16 { mag: 119286, sign: false }); - data.append(FP16x16 { mag: 63510, sign: false }); - data.append(FP16x16 { mag: 11925, sign: false }); - data.append(FP16x16 { mag: 80588, sign: false }); - data.append(FP16x16 { mag: 161148, sign: false }); - data.append(FP16x16 { mag: 47213, sign: false }); - data.append(FP16x16 { mag: 45615, sign: false }); - data.append(FP16x16 { mag: 160150, sign: false }); - data.append(FP16x16 { mag: 91119, sign: false }); - data.append(FP16x16 { mag: 75209, sign: false }); + data.append(FP16x16 { mag: 18803, sign: false }); + data.append(FP16x16 { mag: 42065, sign: false }); + data.append(FP16x16 { mag: 133958, sign: false }); + data.append(FP16x16 { mag: 129359, sign: false }); + data.append(FP16x16 { mag: 76398, sign: false }); + data.append(FP16x16 { mag: 127485, sign: false }); + data.append(FP16x16 { mag: 41739, sign: false }); + data.append(FP16x16 { mag: 36606, sign: false }); + data.append(FP16x16 { mag: 99432, sign: false }); + data.append(FP16x16 { mag: 93731, sign: false }); + data.append(FP16x16 { mag: 40635, sign: false }); + data.append(FP16x16 { mag: 146044, sign: false }); + data.append(FP16x16 { mag: 45156, sign: false }); + data.append(FP16x16 { mag: 92658, sign: false }); + data.append(FP16x16 { mag: 101742, sign: false }); + data.append(FP16x16 { mag: 115036, sign: false }); + data.append(FP16x16 { mag: 121002, sign: false }); + data.append(FP16x16 { mag: 30248, sign: false }); + data.append(FP16x16 { mag: 80580, sign: false }); + data.append(FP16x16 { mag: 17017, sign: false }); + data.append(FP16x16 { mag: 15148, sign: false }); + data.append(FP16x16 { mag: 8024, sign: false }); + data.append(FP16x16 { mag: 151441, sign: false }); + data.append(FP16x16 { mag: 54931, sign: false }); + data.append(FP16x16 { mag: 177975, sign: false }); + data.append(FP16x16 { mag: 189528, sign: false }); + data.append(FP16x16 { mag: 179335, 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 d933a1a3e..c9619ab54 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo @@ -8,32 +8,32 @@ fn output_0() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 32320, sign: false }); - data.append(FP16x16 { mag: 116352, sign: false }); - data.append(FP16x16 { mag: 162688, sign: false }); - data.append(FP16x16 { mag: 153600, sign: false }); - data.append(FP16x16 { mag: 77440, sign: false }); - data.append(FP16x16 { mag: 51936, sign: false }); - data.append(FP16x16 { mag: 2998, sign: false }); - data.append(FP16x16 { mag: 59584, sign: false }); - data.append(FP16x16 { mag: 168704, sign: false }); - data.append(FP16x16 { mag: 188416, sign: false }); - data.append(FP16x16 { mag: 185856, sign: false }); - data.append(FP16x16 { mag: 148864, sign: false }); - data.append(FP16x16 { mag: 139520, sign: false }); - data.append(FP16x16 { mag: 73728, sign: false }); - data.append(FP16x16 { mag: 184448, sign: false }); - data.append(FP16x16 { mag: 70144, sign: false }); - data.append(FP16x16 { mag: 23776, sign: false }); - data.append(FP16x16 { mag: 119296, sign: false }); - data.append(FP16x16 { mag: 63520, sign: false }); - data.append(FP16x16 { mag: 11928, sign: false }); + data.append(FP16x16 { mag: 18800, sign: false }); + data.append(FP16x16 { mag: 42080, sign: false }); + data.append(FP16x16 { mag: 134016, sign: false }); + data.append(FP16x16 { mag: 129344, sign: false }); + data.append(FP16x16 { mag: 76416, sign: false }); + data.append(FP16x16 { mag: 127488, sign: false }); + data.append(FP16x16 { mag: 41728, sign: false }); + data.append(FP16x16 { mag: 36608, sign: false }); + data.append(FP16x16 { mag: 99456, sign: false }); + data.append(FP16x16 { mag: 93760, sign: false }); + data.append(FP16x16 { mag: 40640, sign: false }); + data.append(FP16x16 { mag: 146048, sign: false }); + data.append(FP16x16 { mag: 45152, sign: false }); + data.append(FP16x16 { mag: 92672, sign: false }); + data.append(FP16x16 { mag: 101760, sign: false }); + data.append(FP16x16 { mag: 115008, sign: false }); + data.append(FP16x16 { mag: 121024, sign: false }); + data.append(FP16x16 { mag: 30256, sign: false }); data.append(FP16x16 { mag: 80576, sign: false }); - data.append(FP16x16 { mag: 161152, sign: false }); - data.append(FP16x16 { mag: 47200, sign: false }); - data.append(FP16x16 { mag: 45600, sign: false }); - data.append(FP16x16 { mag: 160128, sign: false }); - data.append(FP16x16 { mag: 91136, sign: false }); - data.append(FP16x16 { mag: 75200, sign: false }); + data.append(FP16x16 { mag: 17024, sign: false }); + data.append(FP16x16 { mag: 15152, sign: false }); + data.append(FP16x16 { mag: 8024, sign: false }); + data.append(FP16x16 { mag: 151424, sign: false }); + data.append(FP16x16 { mag: 54944, sign: false }); + data.append(FP16x16 { mag: 177920, sign: false }); + data.append(FP16x16 { mag: 189568, sign: false }); + data.append(FP16x16 { mag: 179328, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo index 2fbfb3e62..4f3ddd0a8 100644 --- a/tests/nodes/unique_u32_example.cairo +++ b/tests/nodes/unique_u32_example.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use 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/unique_u32_example/output_0.cairo b/tests/nodes/unique_u32_example/output_0.cairo index 775ae2c22..1ede61a4e 100644 --- a/tests/nodes/unique_u32_example/output_0.cairo +++ b/tests/nodes/unique_u32_example/output_0.cairo @@ -7,8 +7,8 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(2); data.append(1); + data.append(2); data.append(3); data.append(4); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/unique_u32_example/output_1.cairo b/tests/nodes/unique_u32_example/output_1.cairo index 43ab94da8..265eb461c 100644 --- a/tests/nodes/unique_u32_example/output_1.cairo +++ b/tests/nodes/unique_u32_example/output_1.cairo @@ -8,8 +8,8 @@ fn output_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - 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: 3, sign: false }); data.append(i32 { mag: 4, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/unique_u32_example/output_2.cairo b/tests/nodes/unique_u32_example/output_2.cairo index 1301f355f..1b2efecbe 100644 --- a/tests/nodes/unique_u32_example/output_2.cairo +++ b/tests/nodes/unique_u32_example/output_2.cairo @@ -8,9 +8,9 @@ fn output_2() -> 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: 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: 3, sign: false }); data.append(i32 { mag: 2, sign: false }); diff --git a/tests/nodes/unique_u32_example/output_3.cairo b/tests/nodes/unique_u32_example/output_3.cairo index 1fb61830f..d9dc64a2d 100644 --- a/tests/nodes/unique_u32_example/output_3.cairo +++ b/tests/nodes/unique_u32_example/output_3.cairo @@ -8,8 +8,8 @@ fn output_3() -> Tensor { 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: 1, sign: false }); data.append(i32 { mag: 2, sign: false }); data.append(i32 { mag: 1, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo index bfd43dc87..c4eee3207 100644 --- a/tests/nodes/unique_u32_example_two.cairo +++ b/tests/nodes/unique_u32_example_two.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -22,7 +22,7 @@ fn test_unique_u32_example_two() { let z_2 = output_2::output_2(); let z_3 = output_3::output_3(); - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::None(())); + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(true)); assert_eq(y_0, z_0); assert_eq(y_1, z_1); 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 1298df4ce..5a1448de9 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use 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/unique_u32_with_axis_one_not_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo index ad06900a5..eaafbfed5 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 @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(2); - data.append(4); + data.append(0); + data.append(1); + data.append(0); data.append(4); data.append(4); data.append(4); data.append(3); data.append(2); + data.append(4); + data.append(4); + data.append(0); + data.append(1); + data.append(4); data.append(1); data.append(1); data.append(0); + data.append(4); data.append(3); + data.append(0); + data.append(4); data.append(3); - data.append(1); - data.append(1); data.append(3); - data.append(1); data.append(3); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(2); - data.append(1); - data.append(3); - data.append(1); - data.append(1); data.append(3); + data.append(0); 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 391d824d3..5f4676f1c 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 @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(2); - data.append(4); + data.append(0); + data.append(1); + data.append(0); data.append(4); data.append(4); data.append(4); data.append(3); data.append(2); + data.append(4); + data.append(4); + data.append(0); + data.append(1); + data.append(4); data.append(1); data.append(1); data.append(0); + data.append(4); data.append(3); + data.append(0); + data.append(4); data.append(3); - data.append(1); - data.append(1); data.append(3); - data.append(1); data.append(3); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(2); - data.append(1); - data.append(3); - data.append(1); - data.append(1); data.append(3); + data.append(0); 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 dfcdd026b..31e3302bd 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use 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/unique_u32_with_axis_one_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo index f6e3dbe88..a33899d6d 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(2); data.append(3); + data.append(0); data.append(4); data.append(1); - data.append(2); data.append(4); data.append(1); - data.append(1); data.append(3); - data.append(1); data.append(3); - data.append(4); - data.append(1); + data.append(0); + data.append(3); data.append(2); + data.append(4); + data.append(4); data.append(1); + data.append(4); data.append(0); data.append(0); data.append(4); data.append(0); - data.append(2); - data.append(3); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(1); data.append(2); data.append(4); - data.append(4); - data.append(3); + data.append(2); 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 35c722fac..41af58071 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 @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); - data.append(2); - data.append(3); data.append(4); data.append(1); - data.append(2); + data.append(3); + data.append(0); data.append(4); - data.append(1); - data.append(1); data.append(3); - data.append(1); data.append(3); + data.append(0); data.append(4); data.append(1); + data.append(4); + data.append(3); data.append(2); - data.append(1); + data.append(4); data.append(0); data.append(0); data.append(4); data.append(0); - data.append(2); - data.append(3); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(1); data.append(2); data.append(4); - data.append(4); - data.append(3); + data.append(2); 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 e3a48b20a..b779b1e10 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 @@ -8,8 +8,8 @@ fn output_1() -> 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: 0, sign: false }); data.append(i32 { mag: 2, sign: false }); 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 7d3ab361b..7297098a2 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 @@ -8,8 +8,8 @@ fn output_2() -> 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: 0, sign: false }); data.append(i32 { mag: 2, sign: false }); 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 b0a247dfd..0660709a5 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use 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/unique_u32_with_axis_zero_not_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo index bcc066bd3..5d4aebd98 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 @@ -9,32 +9,32 @@ fn input_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(1); data.append(4); - data.append(2); data.append(3); - data.append(4); + data.append(1); data.append(3); - data.append(2); data.append(0); + data.append(0); + data.append(1); + data.append(3); data.append(4); + data.append(0); data.append(2); - data.append(1); data.append(4); data.append(0); data.append(4); - data.append(2); - data.append(2); - data.append(2); - data.append(3); - data.append(1); - data.append(3); - data.append(2); data.append(0); - data.append(2); + data.append(4); + data.append(3); + data.append(4); data.append(3); - data.append(2); - data.append(1); - data.append(2); data.append(1); + data.append(3); 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 ce6a31ee4..94b8ca9e9 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 @@ -9,32 +9,32 @@ 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(1); data.append(4); - data.append(2); data.append(3); - data.append(4); + data.append(1); data.append(3); - data.append(2); data.append(0); + data.append(0); + data.append(1); + data.append(3); data.append(4); + data.append(0); data.append(2); - data.append(1); data.append(4); data.append(0); data.append(4); - data.append(2); - data.append(2); - data.append(2); - data.append(3); - data.append(1); - data.append(3); - data.append(2); data.append(0); - data.append(2); + data.append(4); + data.append(3); + data.append(4); data.append(3); - data.append(2); - data.append(1); - data.append(2); data.append(1); + data.append(3); 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 9eccee7a9..1fd960fd0 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use 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/unique_u32_with_axis_zero_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo index 248ac1f9f..b575d419c 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); data.append(4); + data.append(1); + data.append(2); data.append(4); - data.append(0); + data.append(1); data.append(3); + data.append(1); data.append(0); - data.append(2); - data.append(4); + data.append(0); + data.append(3); data.append(2); data.append(3); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); + data.append(3); data.append(1); - data.append(4); - data.append(1); - data.append(1); - data.append(2); - data.append(2); - data.append(4); data.append(3); data.append(3); data.append(3); + data.append(3); + data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(0); data.append(2); - data.append(2); + data.append(4); 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 79c610013..caf29e7a0 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 @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(4); - data.append(4); - data.append(0); data.append(3); - data.append(0); - data.append(2); - data.append(4); data.append(2); data.append(3); + data.append(0); + data.append(0); + data.append(3); data.append(1); + data.append(3); + data.append(3); + data.append(3); + data.append(3); + data.append(0); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); + data.append(2); + data.append(4); data.append(4); data.append(1); - data.append(1); - data.append(2); data.append(2); data.append(4); + data.append(1); data.append(3); - data.append(3); - data.append(3); - data.append(2); - data.append(2); + data.append(1); + data.append(0); + data.append(0); 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 e3a48b20a..d887c1a39 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 @@ -8,8 +8,8 @@ fn output_1() -> 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: 0, sign: false }); 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 7d3ab361b..5d6ba0796 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 @@ -8,8 +8,8 @@ fn output_2() -> 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: 2, sign: false }); 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 9aa6e158a..16e5f4906 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use 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/unique_u32_without_axis_not_sorted/input_0.cairo b/tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo index ddea6256c..1b1d6682e 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 @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(0); + data.append(4); data.append(0); data.append(0); - data.append(2); - data.append(1); data.append(4); - data.append(2); - data.append(3); + data.append(1); + data.append(1); + data.append(0); + data.append(1); data.append(1); data.append(3); + data.append(4); + data.append(1); + data.append(4); + data.append(1); + data.append(4); data.append(2); data.append(0); data.append(2); - data.append(0); - data.append(3); data.append(2); - data.append(0); data.append(1); data.append(2); data.append(3); - data.append(2); + data.append(3); + data.append(3); data.append(4); - data.append(1); - data.append(1); - data.append(0); - data.append(2); - data.append(0); - data.append(0); 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 0f237bc38..aa2bbe67f 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 @@ -7,10 +7,10 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); data.append(1); + data.append(0); 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 d3d7bc082..ceb79e924 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 @@ -9,9 +9,9 @@ fn output_1() -> Tensor { 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: 6, sign: false }); + data.append(i32 { mag: 11, sign: false }); + data.append(i32 { mag: 17, sign: false }); 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 6d85a75ad..c1833bbea 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 @@ -9,31 +9,31 @@ fn output_2() -> Tensor { 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: 2, 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: 4, 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: 0, 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: 2, 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: 0, 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: 2, 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: 4, 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: 3, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 2, sign: false }); 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 1ddbbcd44..663ebad0c 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 @@ -9,9 +9,9 @@ fn output_3() -> Tensor { let mut data = ArrayTrait::new(); data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 8, sign: false }); data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(i32 { mag: 6, sign: false }); + data.append(i32 { mag: 4, sign: false }); data.append(i32 { mag: 4, sign: false }); 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 409edd7f9..f64c4e855 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 array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -22,7 +22,7 @@ fn test_unique_u32_without_axis_sorted() { let z_2 = output_2::output_2(); let z_3 = output_3::output_3(); - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::None(())); + let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(true)); assert_eq(y_0, z_0); assert_eq(y_1, z_1); 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 c860fca3e..1c1233e89 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(2); - data.append(0); + data.append(1); + data.append(1); + data.append(4); data.append(1); data.append(3); data.append(4); data.append(0); - data.append(4); - data.append(3); - data.append(3); - data.append(3); data.append(0); data.append(4); + data.append(1); + data.append(2); data.append(4); data.append(3); data.append(0); - data.append(3); - data.append(3); data.append(0); - data.append(2); data.append(3); + data.append(2); + data.append(0); data.append(0); + data.append(4); data.append(1); + data.append(1); + data.append(0); data.append(4); - data.append(3); + data.append(0); + data.append(1); data.append(2); - data.append(3); 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 75ab79961..dff01c104 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -8,8 +8,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(2); data.append(1); + data.append(2); data.append(3); data.append(4); TensorTrait::new(shape.span(), data.span()) 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 8f1d46d8b..0535ee557 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -8,10 +8,10 @@ fn output_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(i32 { mag: 6, 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: 10, sign: false }); data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 2, sign: false }); 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 1feae6729..08f0cb930 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -8,32 +8,32 @@ fn output_2() -> Tensor { 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: 0, 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: 1, 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: 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: 4, 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: 0, 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: 2, 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: 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: 2, 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: 3, sign: false }); + data.append(i32 { mag: 2, sign: false }); 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 8664eee03..8604add2c 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -8,10 +8,10 @@ fn output_3() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(i32 { mag: 8, sign: false }); data.append(i32 { mag: 7, sign: false }); data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(i32 { mag: 3, sign: false }); + data.append(i32 { mag: 6, sign: false }); TensorTrait::new(shape.span(), data.span()) } From 599fc5ca2e443917874220b8d8e48eea544ddafb Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 9 Dec 2023 13:21:08 +0100 Subject: [PATCH 19/30] feat(tensor_unique): Fixing missed imports --- src/operators/tensor/implementations/tensor_fp16x16.cairo | 2 +- src/operators/tensor/implementations/tensor_fp16x16wide.cairo | 2 +- src/operators/tensor/implementations/tensor_fp32x32.cairo | 2 +- src/operators/tensor/implementations/tensor_fp64x64.cairo | 2 +- src/operators/tensor/implementations/tensor_fp8x23.cairo | 2 +- src/operators/tensor/implementations/tensor_fp8x23wide.cairo | 2 +- src/operators/tensor/implementations/tensor_i32.cairo | 2 +- src/operators/tensor/implementations/tensor_i8.cairo | 2 +- src/operators/tensor/implementations/tensor_u32.cairo | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index d526e3dbf..8d5b48fa4 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait, FP16x16}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index ace212f19..2a419b184 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i8, i32, 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 f38a6ddd1..e51988870 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait, FP32x32, FP32x32Impl}; use orion::numbers::fixed_point::implementations::fp32x32::core::ONE; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index 146860fea..88c9bedb0 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i8, i32, 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_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index a2557500f..8832be718 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -9,7 +9,7 @@ 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core, ml, manipulation}; use orion::numbers::{i8, i32, NumberTrait, FP8x23}; 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 431d867c2..d606fae4d 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i8, i32, 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 8745485e1..7ed6a6bc8 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i32, i8, NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_i8::I8Tensor, tensor_bool::BoolTensor}; diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index 852ca3eae..477971f1d 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_bool::BoolTensor}; diff --git a/src/operators/tensor/implementations/tensor_u32.cairo b/src/operators/tensor/implementations/tensor_u32.cairo index e66161cb2..001c841fc 100644 --- a/src/operators/tensor/implementations/tensor_u32.cairo +++ b/src/operators/tensor/implementations/tensor_u32.cairo @@ -9,7 +9,7 @@ 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, manipulation, core}; +use orion::operators::tensor::{math, linalg, quantization, ml, manipulation, core}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_bool::BoolTensor}; From 4351ca834ed175fe552bd990a727597737847128 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 9 Dec 2023 13:35:26 +0100 Subject: [PATCH 20/30] feat(tensor_unique): Removed not used test in nodes.cairo --- tests/nodes.cairo | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/nodes.cairo b/tests/nodes.cairo index e3c95c01e..60cbcf753 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -830,4 +830,3 @@ mod unique_u32_with_axis_zero_sorted; mod unique_u32_with_axis_zero_not_sorted; mod unique_u32_with_axis_one_sorted; mod unique_u32_with_axis_one_not_sorted; -mod unique_u32_with_axis_one_not_sorted_custom; From ef5c7f831aa19d57cb81a18f5cda4769cb9c1a8f Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 9 Dec 2023 19:14:48 +0100 Subject: [PATCH 21/30] chore(cairo_update): update to 2.4.0 --- .github/workflows/test.yaml | 2 +- Scarb.toml | 9 +- .../implement-new-operators-in-orion.md | 2 +- .../mnist-classification-with-orion.md | 4 +- ...fiable-linear-regression-model-in-orion.md | 6 +- .../verifiable-support-vector-machine.md | 10 +- docs/framework/get-started.md | 4 +- .../neural-network/nn.hard_sigmoid.md | 2 +- .../operators/neural-network/nn.leaky_relu.md | 2 +- .../operators/neural-network/nn.linear.md | 2 +- .../operators/neural-network/nn.logsoftmax.md | 2 +- .../operators/neural-network/nn.relu.md | 2 +- .../operators/neural-network/nn.sigmoid.md | 2 +- .../operators/neural-network/nn.softmax.md | 2 +- .../operators/neural-network/nn.softplus.md | 2 +- .../operators/neural-network/nn.softsign.md | 2 +- .../neural-network/nn.thresholded_relu.md | 2 +- docs/framework/operators/tensor/README.md | 4 +- docs/framework/operators/tensor/tensor.abs.md | 2 +- .../framework/operators/tensor/tensor.acos.md | 2 +- .../operators/tensor/tensor.acosh.md | 2 +- docs/framework/operators/tensor/tensor.and.md | 2 +- .../operators/tensor/tensor.argmax.md | 6 +- .../operators/tensor/tensor.argmin.md | 6 +- .../tensor/tensor.array_feature_extractor.md | 2 +- .../framework/operators/tensor/tensor.asin.md | 2 +- .../operators/tensor/tensor.asinh.md | 2 +- docs/framework/operators/tensor/tensor.at.md | 2 +- .../framework/operators/tensor/tensor.atan.md | 2 +- .../operators/tensor/tensor.binarizer.md | 2 +- .../operators/tensor/tensor.bitwise_and.md | 2 +- .../operators/tensor/tensor.bitwise_or.md | 2 +- .../operators/tensor/tensor.bitwise_xor.md | 2 +- .../framework/operators/tensor/tensor.ceil.md | 2 +- .../framework/operators/tensor/tensor.clip.md | 2 +- .../operators/tensor/tensor.concat.md | 2 +- .../tensor/tensor.concat_from_sequence.md | 2 +- .../tensor/tensor.constant_of_shape.md | 2 +- docs/framework/operators/tensor/tensor.cos.md | 2 +- .../framework/operators/tensor/tensor.cosh.md | 2 +- .../operators/tensor/tensor.cumsum.md | 6 +- .../tensor/tensor.dequantize_linear.md | 2 +- .../operators/tensor/tensor.equal.md | 4 +- docs/framework/operators/tensor/tensor.exp.md | 2 +- .../operators/tensor/tensor.flatten.md | 4 +- .../operators/tensor/tensor.gather.md | 2 +- .../tensor/tensor.gather_elements.md | 2 +- .../operators/tensor/tensor.greater.md | 4 +- .../operators/tensor/tensor.greater_equal.md | 4 +- .../operators/tensor/tensor.identity.md | 2 +- .../operators/tensor/tensor.is_inf.md | 2 +- .../operators/tensor/tensor.is_nan.md | 2 +- .../framework/operators/tensor/tensor.less.md | 4 +- .../operators/tensor/tensor.less_equal.md | 4 +- docs/framework/operators/tensor/tensor.log.md | 2 +- .../operators/tensor/tensor.matmul.md | 6 +- docs/framework/operators/tensor/tensor.max.md | 4 +- .../operators/tensor/tensor.max_in_tensor.md | 2 +- docs/framework/operators/tensor/tensor.min.md | 4 +- .../operators/tensor/tensor.min_in_tensor.md | 2 +- docs/framework/operators/tensor/tensor.neg.md | 2 +- docs/framework/operators/tensor/tensor.new.md | 2 +- .../operators/tensor/tensor.nonzero.md | 2 +- docs/framework/operators/tensor/tensor.not.md | 2 +- .../operators/tensor/tensor.onehot.md | 2 +- docs/framework/operators/tensor/tensor.or.md | 4 +- docs/framework/operators/tensor/tensor.pow.md | 4 +- .../operators/tensor/tensor.qlinear_add.md | 2 +- .../operators/tensor/tensor.qlinear_concat.md | 2 +- .../tensor/tensor.qlinear_leakyrelu.md | 2 +- .../operators/tensor/tensor.qlinear_matmul.md | 2 +- .../operators/tensor/tensor.qlinear_mul.md | 2 +- .../tensor/tensor.quantize_linear.md | 2 +- .../operators/tensor/tensor.ravel_index.md | 2 +- .../operators/tensor/tensor.reduce_l1.md | 2 +- .../operators/tensor/tensor.reduce_mean.md | 2 +- .../operators/tensor/tensor.reduce_min.md | 2 +- .../operators/tensor/tensor.reduce_prod.md | 2 +- .../operators/tensor/tensor.reduce_sum.md | 2 +- .../operators/tensor/tensor.reshape.md | 2 +- .../operators/tensor/tensor.round.md | 2 +- .../operators/tensor/tensor.scatter.md | 2 +- .../operators/tensor/tensor.sequence_at.md | 2 +- .../tensor/tensor.sequence_construct.md | 2 +- .../operators/tensor/tensor.sequence_empty.md | 2 +- .../operators/tensor/tensor.sequence_erase.md | 2 +- .../operators/tensor/tensor.shrink.md | 2 +- .../framework/operators/tensor/tensor.sign.md | 2 +- docs/framework/operators/tensor/tensor.sin.md | 2 +- .../framework/operators/tensor/tensor.sinh.md | 2 +- .../operators/tensor/tensor.slice.md | 2 +- .../framework/operators/tensor/tensor.sqrt.md | 2 +- .../operators/tensor/tensor.squeeze.md | 2 +- .../operators/tensor/tensor.stride.md | 2 +- .../framework/operators/tensor/tensor.tanh.md | 2 +- .../operators/tensor/tensor.transpose.md | 2 +- .../operators/tensor/tensor.trilu.md | 2 +- .../operators/tensor/tensor.unravel_index.md | 2 +- .../operators/tensor/tensor.unsqueeze.md | 2 +- .../operators/tensor/tensor.where.md | 2 +- docs/framework/operators/tensor/tensor.xor.md | 4 +- ...ication-with-feedforward-neural-network.md | 4 +- src/numbers.cairo | 14 +- src/numbers/complex_number/complex64.cairo | 2 +- .../implementations/fp16x16/core.cairo | 60 ++--- .../implementations/fp16x16/helpers.cairo | 4 +- .../implementations/fp16x16/math/core.cairo | 9 +- .../implementations/fp16x16/math/hyp.cairo | 4 +- .../implementations/fp16x16/math/trig.cairo | 8 +- .../implementations/fp16x16wide/core.cairo | 60 ++--- .../implementations/fp16x16wide/helpers.cairo | 4 +- .../fp16x16wide/math/core.cairo | 9 +- .../fp16x16wide/math/hyp.cairo | 4 +- .../fp16x16wide/math/trig.cairo | 8 +- .../implementations/fp32x32/core.cairo | 64 +++--- .../implementations/fp64x64/core.cairo | 66 +++--- .../implementations/fp8x23/core.cairo | 60 ++--- .../implementations/fp8x23/helpers.cairo | 4 +- .../implementations/fp8x23/math/core.cairo | 9 +- .../implementations/fp8x23/math/hyp.cairo | 4 +- .../implementations/fp8x23/math/trig.cairo | 8 +- .../implementations/fp8x23wide/core.cairo | 60 ++--- .../implementations/fp8x23wide/helpers.cairo | 4 +- .../fp8x23wide/math/core.cairo | 9 +- .../implementations/fp8x23wide/math/hyp.cairo | 4 +- .../fp8x23wide/math/trig.cairo | 8 +- src/numbers/fixed_point/utils.cairo | 2 + src/numbers/signed_integer/i128.cairo | 2 +- src/numbers/signed_integer/i16.cairo | 2 +- src/numbers/signed_integer/i32.cairo | 2 +- src/numbers/signed_integer/i64.cairo | 2 +- src/numbers/signed_integer/i8.cairo | 2 +- .../tree_classifier_fp16x16.cairo | 6 +- .../tree_classifier_fp32x32.cairo | 6 +- .../tree_classifier_fp64x64.cairo | 6 +- .../tree_classifier_fp8x23.cairo | 6 +- src/operators/ml/tree_ensemble/core.cairo | 2 +- .../tree_ensemble_classifier.cairo | 8 +- .../tree_regressor_fp16x16.cairo | 4 +- .../tree_regressor_fp32x32.cairo | 4 +- .../tree_regressor_fp64x64.cairo | 4 +- .../tree_regressor_fp8x23.cairo | 4 +- .../xgboost_regressor_fp16x16.cairo | 4 +- .../xgboost_regressor_fp32x32.cairo | 4 +- .../xgboost_regressor_fp64x64.cairo | 4 +- .../xgboost_regressor_fp8x23.cairo | 4 +- src/operators/nn/core.cairo | 20 +- src/operators/nn/functional/gemm.cairo | 2 +- .../nn/functional/hard_sigmoid.cairo | 6 +- src/operators/nn/functional/leaky_relu.cairo | 6 +- src/operators/nn/functional/linear.cairo | 2 +- src/operators/nn/functional/logsoftmax.cairo | 2 +- src/operators/nn/functional/relu.cairo | 6 +- src/operators/nn/functional/sigmoid.cairo | 6 +- src/operators/nn/functional/softplus.cairo | 6 +- src/operators/nn/functional/softsign.cairo | 6 +- .../nn/functional/thresholded_relu.cairo | 6 +- src/operators/tensor/core.cairo | 210 +++++++++--------- src/operators/tensor/helpers.cairo | 6 +- .../tensor/implementations/tensor_bool.cairo | 14 +- .../implementations/tensor_fp16x16.cairo | 22 +- .../implementations/tensor_fp16x16wide.cairo | 22 +- .../implementations/tensor_fp32x32.cairo | 28 +-- .../implementations/tensor_fp64x64.cairo | 28 +-- .../implementations/tensor_fp8x23.cairo | 22 +- .../implementations/tensor_fp8x23wide.cairo | 22 +- .../tensor/implementations/tensor_i32.cairo | 22 +- .../tensor/implementations/tensor_i8.cairo | 22 +- .../tensor/implementations/tensor_u32.cairo | 22 +- src/operators/tensor/linalg/matmul.cairo | 6 +- src/operators/tensor/linalg/transpose.cairo | 4 +- src/operators/tensor/linalg/trilu.cairo | 4 +- src/operators/tensor/math/abs.cairo | 6 +- src/operators/tensor/math/acos.cairo | 6 +- src/operators/tensor/math/acosh.cairo | 8 +- src/operators/tensor/math/and.cairo | 6 +- src/operators/tensor/math/argmax.cairo | 6 +- src/operators/tensor/math/argmin.cairo | 6 +- src/operators/tensor/math/arithmetic.cairo | 4 +- src/operators/tensor/math/asin.cairo | 6 +- src/operators/tensor/math/asinh.cairo | 8 +- src/operators/tensor/math/atan.cairo | 8 +- src/operators/tensor/math/binarizer.cairo | 6 +- src/operators/tensor/math/bitwise_and.cairo | 8 +- src/operators/tensor/math/bitwise_or.cairo | 8 +- src/operators/tensor/math/bitwise_xor.cairo | 8 +- src/operators/tensor/math/ceil.cairo | 6 +- src/operators/tensor/math/concat.cairo | 6 +- .../tensor/math/concat_from_sequence.cairo | 6 +- src/operators/tensor/math/cos.cairo | 8 +- src/operators/tensor/math/cosh.cairo | 8 +- src/operators/tensor/math/cumsum.cairo | 8 +- src/operators/tensor/math/equal.cairo | 6 +- src/operators/tensor/math/exp.cairo | 10 +- src/operators/tensor/math/flatten.cairo | 4 +- src/operators/tensor/math/gather.cairo | 8 +- .../tensor/math/gather_elements.cairo | 8 +- src/operators/tensor/math/greater.cairo | 6 +- src/operators/tensor/math/greater_equal.cairo | 6 +- src/operators/tensor/math/is_inf.cairo | 6 +- src/operators/tensor/math/is_nan.cairo | 6 +- src/operators/tensor/math/less.cairo | 6 +- src/operators/tensor/math/less_equal.cairo | 6 +- src/operators/tensor/math/log.cairo | 8 +- src/operators/tensor/math/max.cairo | 2 +- src/operators/tensor/math/max_in_tensor.cairo | 4 +- src/operators/tensor/math/min.cairo | 2 +- src/operators/tensor/math/min_in_tensor.cairo | 4 +- src/operators/tensor/math/neg.cairo | 6 +- src/operators/tensor/math/not.cairo | 6 +- src/operators/tensor/math/onehot.cairo | 8 +- .../tensor/math/optional_get_element.cairo | 4 +- src/operators/tensor/math/or.cairo | 6 +- src/operators/tensor/math/pow.cairo | 6 +- src/operators/tensor/math/reduce_l1.cairo | 6 +- src/operators/tensor/math/reduce_l2.cairo | 6 +- src/operators/tensor/math/reduce_mean.cairo | 4 +- src/operators/tensor/math/reduce_min.cairo | 4 +- src/operators/tensor/math/reduce_prod.cairo | 4 +- src/operators/tensor/math/reduce_sum.cairo | 4 +- .../tensor/math/reduce_sum_square.cairo | 6 +- src/operators/tensor/math/round.cairo | 8 +- src/operators/tensor/math/scatter.cairo | 12 +- src/operators/tensor/math/sequence_at.cairo | 4 +- .../tensor/math/sequence_construct.cairo | 2 +- .../tensor/math/sequence_empty.cairo | 2 +- .../tensor/math/sequence_erase.cairo | 4 +- .../tensor/math/sequence_insert.cairo | 4 +- .../tensor/math/sequence_length.cairo | 2 +- src/operators/tensor/math/shrink.cairo | 6 +- src/operators/tensor/math/sign.cairo | 8 +- src/operators/tensor/math/sin.cairo | 8 +- src/operators/tensor/math/sinh.cairo | 8 +- src/operators/tensor/math/sqrt.cairo | 8 +- src/operators/tensor/math/tanh.cairo | 8 +- src/operators/tensor/math/where.cairo | 6 +- src/operators/tensor/math/xor.cairo | 6 +- .../tensor/ml/array_feature_extractor.cairo | 6 +- .../quantization/dequantize_linear.cairo | 6 +- .../tensor/quantization/qlinear_add.cairo | 6 +- .../tensor/quantization/qlinear_concat.cairo | 8 +- .../quantization/qlinear_leakyrelu.cairo | 6 +- .../tensor/quantization/qlinear_matmul.cairo | 6 +- .../tensor/quantization/qlinear_mul.cairo | 6 +- .../tensor/quantization/quantize_linear.cairo | 8 +- src/operators/vec.cairo | 4 +- .../tensor/fixed_point/fp16x16.cairo | 4 +- .../tensor/fixed_point/fp8x23.cairo | 4 +- src/test_helper/tensor/i32.cairo | 4 +- src/test_helper/tensor/i8.cairo | 4 +- src/test_helper/tensor/u32.cairo | 4 +- src/utils.cairo | 6 +- tests/nodes/abs_fp16x16.cairo | 2 +- tests/nodes/abs_fp16x16/input_0.cairo | 2 +- tests/nodes/abs_fp16x16/output_0.cairo | 2 +- tests/nodes/abs_fp8x23.cairo | 2 +- tests/nodes/abs_fp8x23/input_0.cairo | 2 +- tests/nodes/abs_fp8x23/output_0.cairo | 2 +- tests/nodes/abs_i32.cairo | 2 +- tests/nodes/abs_i32/input_0.cairo | 2 +- tests/nodes/abs_i32/output_0.cairo | 2 +- tests/nodes/abs_i8.cairo | 2 +- tests/nodes/abs_i8/input_0.cairo | 2 +- tests/nodes/abs_i8/output_0.cairo | 2 +- tests/nodes/acos_fp16x16.cairo | 2 +- tests/nodes/acos_fp16x16/input_0.cairo | 2 +- tests/nodes/acos_fp16x16/output_0.cairo | 2 +- tests/nodes/acos_fp8x23.cairo | 2 +- tests/nodes/acos_fp8x23/input_0.cairo | 2 +- tests/nodes/acos_fp8x23/output_0.cairo | 2 +- tests/nodes/acosh_fp16x16.cairo | 2 +- tests/nodes/acosh_fp16x16/input_0.cairo | 2 +- tests/nodes/acosh_fp16x16/output_0.cairo | 2 +- tests/nodes/acosh_fp8x23.cairo | 2 +- tests/nodes/acosh_fp8x23/input_0.cairo | 2 +- tests/nodes/acosh_fp8x23/output_0.cairo | 2 +- tests/nodes/add_fp16x16.cairo | 2 +- tests/nodes/add_fp16x16/input_0.cairo | 2 +- tests/nodes/add_fp16x16/input_1.cairo | 2 +- tests/nodes/add_fp16x16/output_0.cairo | 2 +- tests/nodes/add_fp16x16_broadcast.cairo | 2 +- .../nodes/add_fp16x16_broadcast/input_0.cairo | 2 +- .../nodes/add_fp16x16_broadcast/input_1.cairo | 2 +- .../add_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/add_fp8x23.cairo | 2 +- tests/nodes/add_fp8x23/input_0.cairo | 2 +- tests/nodes/add_fp8x23/input_1.cairo | 2 +- tests/nodes/add_fp8x23/output_0.cairo | 2 +- tests/nodes/add_fp8x23_broadcast.cairo | 2 +- .../nodes/add_fp8x23_broadcast/input_0.cairo | 2 +- .../nodes/add_fp8x23_broadcast/input_1.cairo | 2 +- .../nodes/add_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/add_i32.cairo | 2 +- tests/nodes/add_i32/input_0.cairo | 2 +- tests/nodes/add_i32/input_1.cairo | 2 +- tests/nodes/add_i32/output_0.cairo | 2 +- tests/nodes/add_i32_broadcast.cairo | 2 +- tests/nodes/add_i32_broadcast/input_0.cairo | 2 +- tests/nodes/add_i32_broadcast/input_1.cairo | 2 +- tests/nodes/add_i32_broadcast/output_0.cairo | 2 +- tests/nodes/add_i8.cairo | 2 +- tests/nodes/add_i8/input_0.cairo | 2 +- tests/nodes/add_i8/input_1.cairo | 2 +- tests/nodes/add_i8/output_0.cairo | 2 +- tests/nodes/add_i8_broadcast.cairo | 2 +- tests/nodes/add_i8_broadcast/input_0.cairo | 2 +- tests/nodes/add_i8_broadcast/input_1.cairo | 2 +- tests/nodes/add_i8_broadcast/output_0.cairo | 2 +- tests/nodes/add_u32.cairo | 2 +- tests/nodes/add_u32/input_0.cairo | 2 +- tests/nodes/add_u32/input_1.cairo | 2 +- tests/nodes/add_u32/output_0.cairo | 2 +- tests/nodes/add_u32_broadcast.cairo | 2 +- tests/nodes/add_u32_broadcast/input_0.cairo | 2 +- tests/nodes/add_u32_broadcast/input_1.cairo | 2 +- tests/nodes/add_u32_broadcast/output_0.cairo | 2 +- tests/nodes/and_bool.cairo | 2 +- tests/nodes/and_bool/input_0.cairo | 2 +- tests/nodes/and_bool/input_1.cairo | 2 +- tests/nodes/and_bool/output_0.cairo | 2 +- tests/nodes/and_bool_broadcast.cairo | 2 +- tests/nodes/argmax_fp16x16_1D_default.cairo | 2 +- .../argmax_fp16x16_1D_default/input_0.cairo | 2 +- .../argmax_fp16x16_1D_default/output_0.cairo | 2 +- .../argmax_fp16x16_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/argmax_fp16x16_1D_last_index.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp16x16_2D_default.cairo | 2 +- .../argmax_fp16x16_2D_default/input_0.cairo | 2 +- .../argmax_fp16x16_2D_default/output_0.cairo | 2 +- .../argmax_fp16x16_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/argmax_fp16x16_2D_last_index.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp16x16_3D_default.cairo | 2 +- .../argmax_fp16x16_3D_default/input_0.cairo | 2 +- .../argmax_fp16x16_3D_default/output_0.cairo | 2 +- .../argmax_fp16x16_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/argmax_fp16x16_3D_last_index.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp8x23_1D_default.cairo | 2 +- .../argmax_fp8x23_1D_default/input_0.cairo | 2 +- .../argmax_fp8x23_1D_default/output_0.cairo | 2 +- .../argmax_fp8x23_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp8x23_1D_last_index.cairo | 2 +- .../argmax_fp8x23_1D_last_index/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp8x23_2D_default.cairo | 2 +- .../argmax_fp8x23_2D_default/input_0.cairo | 2 +- .../argmax_fp8x23_2D_default/output_0.cairo | 2 +- .../argmax_fp8x23_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp8x23_2D_last_index.cairo | 2 +- .../argmax_fp8x23_2D_last_index/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp8x23_3D_default.cairo | 2 +- .../argmax_fp8x23_3D_default/input_0.cairo | 2 +- .../argmax_fp8x23_3D_default/output_0.cairo | 2 +- .../argmax_fp8x23_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_fp8x23_3D_last_index.cairo | 2 +- .../argmax_fp8x23_3D_last_index/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_i32_1D_default.cairo | 2 +- .../nodes/argmax_i32_1D_default/input_0.cairo | 2 +- .../argmax_i32_1D_default/output_0.cairo | 2 +- .../nodes/argmax_i32_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_i32_1D_last_index.cairo | 2 +- .../argmax_i32_1D_last_index/input_0.cairo | 2 +- .../argmax_i32_1D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_i32_2D_default.cairo | 2 +- .../nodes/argmax_i32_2D_default/input_0.cairo | 2 +- .../argmax_i32_2D_default/output_0.cairo | 2 +- .../nodes/argmax_i32_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_i32_2D_last_index.cairo | 2 +- .../argmax_i32_2D_last_index/input_0.cairo | 2 +- .../argmax_i32_2D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_i32_3D_default.cairo | 2 +- .../nodes/argmax_i32_3D_default/input_0.cairo | 2 +- .../argmax_i32_3D_default/output_0.cairo | 2 +- .../nodes/argmax_i32_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_i32_3D_last_index.cairo | 2 +- .../argmax_i32_3D_last_index/input_0.cairo | 2 +- .../argmax_i32_3D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_i8_1D_default.cairo | 2 +- .../nodes/argmax_i8_1D_default/input_0.cairo | 2 +- .../nodes/argmax_i8_1D_default/output_0.cairo | 2 +- tests/nodes/argmax_i8_1D_keepdims_false.cairo | 2 +- .../argmax_i8_1D_keepdims_false/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_i8_1D_last_index.cairo | 2 +- .../argmax_i8_1D_last_index/input_0.cairo | 2 +- .../argmax_i8_1D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_i8_2D_default.cairo | 2 +- .../nodes/argmax_i8_2D_default/input_0.cairo | 2 +- .../nodes/argmax_i8_2D_default/output_0.cairo | 2 +- tests/nodes/argmax_i8_2D_keepdims_false.cairo | 2 +- .../argmax_i8_2D_keepdims_false/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_i8_2D_last_index.cairo | 2 +- .../argmax_i8_2D_last_index/input_0.cairo | 2 +- .../argmax_i8_2D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_i8_3D_default.cairo | 2 +- .../nodes/argmax_i8_3D_default/input_0.cairo | 2 +- .../nodes/argmax_i8_3D_default/output_0.cairo | 2 +- tests/nodes/argmax_i8_3D_keepdims_false.cairo | 2 +- .../argmax_i8_3D_keepdims_false/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_i8_3D_last_index.cairo | 2 +- .../argmax_i8_3D_last_index/input_0.cairo | 2 +- .../argmax_i8_3D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_u32_1D_default.cairo | 2 +- .../nodes/argmax_u32_1D_default/input_0.cairo | 2 +- .../argmax_u32_1D_default/output_0.cairo | 2 +- .../nodes/argmax_u32_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_u32_1D_last_index.cairo | 2 +- .../argmax_u32_1D_last_index/input_0.cairo | 2 +- .../argmax_u32_1D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_u32_2D_default.cairo | 2 +- .../nodes/argmax_u32_2D_default/input_0.cairo | 2 +- .../argmax_u32_2D_default/output_0.cairo | 2 +- .../nodes/argmax_u32_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_u32_2D_last_index.cairo | 2 +- .../argmax_u32_2D_last_index/input_0.cairo | 2 +- .../argmax_u32_2D_last_index/output_0.cairo | 2 +- tests/nodes/argmax_u32_3D_default.cairo | 2 +- .../nodes/argmax_u32_3D_default/input_0.cairo | 2 +- .../argmax_u32_3D_default/output_0.cairo | 2 +- .../nodes/argmax_u32_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmax_u32_3D_last_index.cairo | 2 +- .../argmax_u32_3D_last_index/input_0.cairo | 2 +- .../argmax_u32_3D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_fp16x16_1D_default.cairo | 2 +- .../argmin_fp16x16_1D_default/input_0.cairo | 2 +- .../argmin_fp16x16_1D_default/output_0.cairo | 2 +- .../argmin_fp16x16_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/argmin_fp16x16_1D_last_index.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp16x16_2D_default.cairo | 2 +- .../argmin_fp16x16_2D_default/input_0.cairo | 2 +- .../argmin_fp16x16_2D_default/output_0.cairo | 2 +- .../argmin_fp16x16_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/argmin_fp16x16_2D_last_index.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp16x16_3D_default.cairo | 2 +- .../argmin_fp16x16_3D_default/input_0.cairo | 2 +- .../argmin_fp16x16_3D_default/output_0.cairo | 2 +- .../argmin_fp16x16_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/argmin_fp16x16_3D_last_index.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp8x23_1D_default.cairo | 2 +- .../argmin_fp8x23_1D_default/input_0.cairo | 2 +- .../argmin_fp8x23_1D_default/output_0.cairo | 2 +- .../argmin_fp8x23_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp8x23_1D_last_index.cairo | 2 +- .../argmin_fp8x23_1D_last_index/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp8x23_2D_default.cairo | 2 +- .../argmin_fp8x23_2D_default/input_0.cairo | 2 +- .../argmin_fp8x23_2D_default/output_0.cairo | 2 +- .../argmin_fp8x23_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp8x23_2D_last_index.cairo | 2 +- .../argmin_fp8x23_2D_last_index/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp8x23_3D_default.cairo | 2 +- .../argmin_fp8x23_3D_default/input_0.cairo | 2 +- .../argmin_fp8x23_3D_default/output_0.cairo | 2 +- .../argmin_fp8x23_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_fp8x23_3D_last_index.cairo | 2 +- .../argmin_fp8x23_3D_last_index/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_i32_1D_default.cairo | 2 +- .../nodes/argmin_i32_1D_default/input_0.cairo | 2 +- .../argmin_i32_1D_default/output_0.cairo | 2 +- .../nodes/argmin_i32_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_i32_1D_last_index.cairo | 2 +- .../argmin_i32_1D_last_index/input_0.cairo | 2 +- .../argmin_i32_1D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_i32_2D_default.cairo | 2 +- .../nodes/argmin_i32_2D_default/input_0.cairo | 2 +- .../argmin_i32_2D_default/output_0.cairo | 2 +- .../nodes/argmin_i32_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_i32_2D_last_index.cairo | 2 +- .../argmin_i32_2D_last_index/input_0.cairo | 2 +- .../argmin_i32_2D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_i32_3D_default.cairo | 2 +- .../nodes/argmin_i32_3D_default/input_0.cairo | 2 +- .../argmin_i32_3D_default/output_0.cairo | 2 +- .../nodes/argmin_i32_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_i32_3D_last_index.cairo | 2 +- .../argmin_i32_3D_last_index/input_0.cairo | 2 +- .../argmin_i32_3D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_i8_1D_default.cairo | 2 +- .../nodes/argmin_i8_1D_default/input_0.cairo | 2 +- .../nodes/argmin_i8_1D_default/output_0.cairo | 2 +- tests/nodes/argmin_i8_1D_keepdims_false.cairo | 2 +- .../argmin_i8_1D_keepdims_false/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_i8_1D_last_index.cairo | 2 +- .../argmin_i8_1D_last_index/input_0.cairo | 2 +- .../argmin_i8_1D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_i8_2D_default.cairo | 2 +- .../nodes/argmin_i8_2D_default/input_0.cairo | 2 +- .../nodes/argmin_i8_2D_default/output_0.cairo | 2 +- tests/nodes/argmin_i8_2D_keepdims_false.cairo | 2 +- .../argmin_i8_2D_keepdims_false/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_i8_2D_last_index.cairo | 2 +- .../argmin_i8_2D_last_index/input_0.cairo | 2 +- .../argmin_i8_2D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_i8_3D_default.cairo | 2 +- .../nodes/argmin_i8_3D_default/input_0.cairo | 2 +- .../nodes/argmin_i8_3D_default/output_0.cairo | 2 +- tests/nodes/argmin_i8_3D_keepdims_false.cairo | 2 +- .../argmin_i8_3D_keepdims_false/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_i8_3D_last_index.cairo | 2 +- .../argmin_i8_3D_last_index/input_0.cairo | 2 +- .../argmin_i8_3D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_u32_1D_default.cairo | 2 +- .../nodes/argmin_u32_1D_default/input_0.cairo | 2 +- .../argmin_u32_1D_default/output_0.cairo | 2 +- .../nodes/argmin_u32_1D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_u32_1D_last_index.cairo | 2 +- .../argmin_u32_1D_last_index/input_0.cairo | 2 +- .../argmin_u32_1D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_u32_2D_default.cairo | 2 +- .../nodes/argmin_u32_2D_default/input_0.cairo | 2 +- .../argmin_u32_2D_default/output_0.cairo | 2 +- .../nodes/argmin_u32_2D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_u32_2D_last_index.cairo | 2 +- .../argmin_u32_2D_last_index/input_0.cairo | 2 +- .../argmin_u32_2D_last_index/output_0.cairo | 2 +- tests/nodes/argmin_u32_3D_default.cairo | 2 +- .../nodes/argmin_u32_3D_default/input_0.cairo | 2 +- .../argmin_u32_3D_default/output_0.cairo | 2 +- .../nodes/argmin_u32_3D_keepdims_false.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/argmin_u32_3D_last_index.cairo | 2 +- .../argmin_u32_3D_last_index/input_0.cairo | 2 +- .../argmin_u32_3D_last_index/output_0.cairo | 2 +- .../array_feature_extractor_1D_fp16x16.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_1D_fp8x23.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_1D_i32.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_2D_fp16x16.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_2D_fp8x23.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_2D_i32.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_3D_fp16x16.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_3D_fp8x23.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../array_feature_extractor_3D_i32.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/asin_fp16x16.cairo | 2 +- tests/nodes/asin_fp16x16/input_0.cairo | 2 +- tests/nodes/asin_fp16x16/output_0.cairo | 2 +- tests/nodes/asin_fp8x23.cairo | 2 +- tests/nodes/asin_fp8x23/input_0.cairo | 2 +- tests/nodes/asin_fp8x23/output_0.cairo | 2 +- tests/nodes/asinh_fp16x16.cairo | 2 +- tests/nodes/asinh_fp16x16/input_0.cairo | 2 +- tests/nodes/asinh_fp16x16/output_0.cairo | 2 +- tests/nodes/asinh_fp8x23.cairo | 2 +- tests/nodes/asinh_fp8x23/input_0.cairo | 2 +- tests/nodes/asinh_fp8x23/output_0.cairo | 2 +- tests/nodes/atan_fp16x16.cairo | 2 +- tests/nodes/atan_fp16x16/input_0.cairo | 2 +- tests/nodes/atan_fp16x16/output_0.cairo | 2 +- tests/nodes/atan_fp8x23.cairo | 2 +- tests/nodes/atan_fp8x23/input_0.cairo | 2 +- tests/nodes/atan_fp8x23/output_0.cairo | 2 +- tests/nodes/binarizer_fp16x16.cairo | 2 +- tests/nodes/binarizer_fp16x16/input_0.cairo | 2 +- tests/nodes/binarizer_fp16x16/output_0.cairo | 2 +- tests/nodes/binarizer_fp8x23.cairo | 2 +- tests/nodes/binarizer_fp8x23/input_0.cairo | 2 +- tests/nodes/binarizer_fp8x23/output_0.cairo | 2 +- tests/nodes/ceil_fp16x16.cairo | 2 +- tests/nodes/ceil_fp16x16/input_0.cairo | 2 +- tests/nodes/ceil_fp16x16/output_0.cairo | 2 +- tests/nodes/ceil_fp8x23.cairo | 2 +- tests/nodes/ceil_fp8x23/input_0.cairo | 2 +- tests/nodes/ceil_fp8x23/output_0.cairo | 2 +- tests/nodes/clip_fp16x16_2d.cairo | 2 +- tests/nodes/clip_fp16x16_2d/input_0.cairo | 2 +- tests/nodes/clip_fp16x16_2d/output_0.cairo | 2 +- tests/nodes/clip_fp16x16_3d.cairo | 2 +- tests/nodes/clip_fp16x16_3d/input_0.cairo | 2 +- tests/nodes/clip_fp16x16_3d/output_0.cairo | 2 +- tests/nodes/clip_fp8x23_2d.cairo | 2 +- tests/nodes/clip_fp8x23_2d/input_0.cairo | 2 +- tests/nodes/clip_fp8x23_2d/output_0.cairo | 2 +- tests/nodes/clip_fp8x23_3d.cairo | 2 +- tests/nodes/clip_fp8x23_3d/input_0.cairo | 2 +- tests/nodes/clip_fp8x23_3d/output_0.cairo | 2 +- tests/nodes/clip_i32_2d.cairo | 2 +- tests/nodes/clip_i32_2d/input_0.cairo | 2 +- tests/nodes/clip_i32_2d/output_0.cairo | 2 +- tests/nodes/clip_i32_3d.cairo | 2 +- tests/nodes/clip_i32_3d/input_0.cairo | 2 +- tests/nodes/clip_i32_3d/output_0.cairo | 2 +- tests/nodes/clip_i8_2d.cairo | 2 +- tests/nodes/clip_i8_2d/input_0.cairo | 2 +- tests/nodes/clip_i8_2d/output_0.cairo | 2 +- tests/nodes/clip_i8_3d.cairo | 2 +- tests/nodes/clip_i8_3d/input_0.cairo | 2 +- tests/nodes/clip_i8_3d/output_0.cairo | 2 +- tests/nodes/clip_u32_2d.cairo | 2 +- tests/nodes/clip_u32_2d/input_0.cairo | 2 +- tests/nodes/clip_u32_2d/output_0.cairo | 2 +- tests/nodes/clip_u32_3d.cairo | 2 +- tests/nodes/clip_u32_3d/input_0.cairo | 2 +- tests/nodes/clip_u32_3d/output_0.cairo | 2 +- tests/nodes/concat_fp16x16_1d.cairo | 2 +- tests/nodes/concat_fp16x16_1d/input_0.cairo | 2 +- tests/nodes/concat_fp16x16_1d/input_1.cairo | 2 +- tests/nodes/concat_fp16x16_1d/output_0.cairo | 2 +- tests/nodes/concat_fp16x16_2d.cairo | 2 +- tests/nodes/concat_fp16x16_2d/input_0.cairo | 2 +- tests/nodes/concat_fp16x16_2d/input_1.cairo | 2 +- tests/nodes/concat_fp16x16_2d/output_0.cairo | 2 +- tests/nodes/concat_fp16x16_3d_axis_1.cairo | 2 +- .../concat_fp16x16_3d_axis_1/input_0.cairo | 2 +- .../concat_fp16x16_3d_axis_1/input_1.cairo | 2 +- .../concat_fp16x16_3d_axis_1/output_0.cairo | 2 +- tests/nodes/concat_fp16x16_3d_axis_2.cairo | 2 +- .../concat_fp16x16_3d_axis_2/input_0.cairo | 2 +- .../concat_fp16x16_3d_axis_2/input_1.cairo | 2 +- .../concat_fp16x16_3d_axis_2/output_0.cairo | 2 +- tests/nodes/concat_fp16x16_3d_default.cairo | 2 +- .../concat_fp16x16_3d_default/input_0.cairo | 2 +- .../concat_fp16x16_3d_default/input_1.cairo | 2 +- .../concat_fp16x16_3d_default/output_0.cairo | 2 +- ...ncat_fp16x16_3d_three_tensors_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- ...ncat_fp16x16_3d_three_tensors_axis_2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/concat_fp8x23_1d.cairo | 2 +- tests/nodes/concat_fp8x23_1d/input_0.cairo | 2 +- tests/nodes/concat_fp8x23_1d/input_1.cairo | 2 +- tests/nodes/concat_fp8x23_1d/output_0.cairo | 2 +- tests/nodes/concat_fp8x23_2d.cairo | 2 +- tests/nodes/concat_fp8x23_2d/input_0.cairo | 2 +- tests/nodes/concat_fp8x23_2d/input_1.cairo | 2 +- tests/nodes/concat_fp8x23_2d/output_0.cairo | 2 +- tests/nodes/concat_fp8x23_3d_axis_1.cairo | 2 +- .../concat_fp8x23_3d_axis_1/input_0.cairo | 2 +- .../concat_fp8x23_3d_axis_1/input_1.cairo | 2 +- .../concat_fp8x23_3d_axis_1/output_0.cairo | 2 +- tests/nodes/concat_fp8x23_3d_axis_2.cairo | 2 +- .../concat_fp8x23_3d_axis_2/input_0.cairo | 2 +- .../concat_fp8x23_3d_axis_2/input_1.cairo | 2 +- .../concat_fp8x23_3d_axis_2/output_0.cairo | 2 +- tests/nodes/concat_fp8x23_3d_default.cairo | 2 +- .../concat_fp8x23_3d_default/input_0.cairo | 2 +- .../concat_fp8x23_3d_default/input_1.cairo | 2 +- .../concat_fp8x23_3d_default/output_0.cairo | 2 +- ...oncat_fp8x23_3d_three_tensors_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- ...oncat_fp8x23_3d_three_tensors_axis_2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- ...om_sequence_fp16x16_new_axis_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...t_from_sequence_fp16x16_new_axis_one.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ..._from_sequence_fp16x16_new_axis_zero.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...rom_sequence_fp8x23_new_axis_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...at_from_sequence_fp8x23_new_axis_one.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...t_from_sequence_fp8x23_new_axis_zero.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...t_from_sequence_i32_new_axis_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...oncat_from_sequence_i32_new_axis_one.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...ncat_from_sequence_i32_new_axis_zero.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...at_from_sequence_i8_new_axis_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...concat_from_sequence_i8_new_axis_one.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...oncat_from_sequence_i8_new_axis_zero.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...t_from_sequence_u32_new_axis_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...oncat_from_sequence_u32_new_axis_one.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...ncat_from_sequence_u32_new_axis_zero.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/concat_i32_1d.cairo | 2 +- tests/nodes/concat_i32_1d/input_0.cairo | 2 +- tests/nodes/concat_i32_1d/input_1.cairo | 2 +- tests/nodes/concat_i32_1d/output_0.cairo | 2 +- tests/nodes/concat_i32_2d.cairo | 2 +- tests/nodes/concat_i32_2d/input_0.cairo | 2 +- tests/nodes/concat_i32_2d/input_1.cairo | 2 +- tests/nodes/concat_i32_2d/output_0.cairo | 2 +- tests/nodes/concat_i32_3d_axis_1.cairo | 2 +- .../nodes/concat_i32_3d_axis_1/input_0.cairo | 2 +- .../nodes/concat_i32_3d_axis_1/input_1.cairo | 2 +- .../nodes/concat_i32_3d_axis_1/output_0.cairo | 2 +- tests/nodes/concat_i32_3d_axis_2.cairo | 2 +- .../nodes/concat_i32_3d_axis_2/input_0.cairo | 2 +- .../nodes/concat_i32_3d_axis_2/input_1.cairo | 2 +- .../nodes/concat_i32_3d_axis_2/output_0.cairo | 2 +- tests/nodes/concat_i32_3d_default.cairo | 2 +- .../nodes/concat_i32_3d_default/input_0.cairo | 2 +- .../nodes/concat_i32_3d_default/input_1.cairo | 2 +- .../concat_i32_3d_default/output_0.cairo | 2 +- .../concat_i32_3d_three_tensors_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../concat_i32_3d_three_tensors_axis_2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/concat_i8_1d.cairo | 2 +- tests/nodes/concat_i8_1d/input_0.cairo | 2 +- tests/nodes/concat_i8_1d/input_1.cairo | 2 +- tests/nodes/concat_i8_1d/output_0.cairo | 2 +- tests/nodes/concat_i8_2d.cairo | 2 +- tests/nodes/concat_i8_2d/input_0.cairo | 2 +- tests/nodes/concat_i8_2d/input_1.cairo | 2 +- tests/nodes/concat_i8_2d/output_0.cairo | 2 +- tests/nodes/concat_i8_3d_axis_1.cairo | 2 +- tests/nodes/concat_i8_3d_axis_1/input_0.cairo | 2 +- tests/nodes/concat_i8_3d_axis_1/input_1.cairo | 2 +- .../nodes/concat_i8_3d_axis_1/output_0.cairo | 2 +- tests/nodes/concat_i8_3d_axis_2.cairo | 2 +- tests/nodes/concat_i8_3d_axis_2/input_0.cairo | 2 +- tests/nodes/concat_i8_3d_axis_2/input_1.cairo | 2 +- .../nodes/concat_i8_3d_axis_2/output_0.cairo | 2 +- tests/nodes/concat_i8_3d_default.cairo | 2 +- .../nodes/concat_i8_3d_default/input_0.cairo | 2 +- .../nodes/concat_i8_3d_default/input_1.cairo | 2 +- .../nodes/concat_i8_3d_default/output_0.cairo | 2 +- .../concat_i8_3d_three_tensors_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../concat_i8_3d_three_tensors_axis_2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/concat_u32_1d.cairo | 2 +- tests/nodes/concat_u32_1d/input_0.cairo | 2 +- tests/nodes/concat_u32_1d/input_1.cairo | 2 +- tests/nodes/concat_u32_1d/output_0.cairo | 2 +- tests/nodes/concat_u32_2d.cairo | 2 +- tests/nodes/concat_u32_2d/input_0.cairo | 2 +- tests/nodes/concat_u32_2d/input_1.cairo | 2 +- tests/nodes/concat_u32_2d/output_0.cairo | 2 +- tests/nodes/concat_u32_3d_axis_1.cairo | 2 +- .../nodes/concat_u32_3d_axis_1/input_0.cairo | 2 +- .../nodes/concat_u32_3d_axis_1/input_1.cairo | 2 +- .../nodes/concat_u32_3d_axis_1/output_0.cairo | 2 +- tests/nodes/concat_u32_3d_axis_2.cairo | 2 +- .../nodes/concat_u32_3d_axis_2/input_0.cairo | 2 +- .../nodes/concat_u32_3d_axis_2/input_1.cairo | 2 +- .../nodes/concat_u32_3d_axis_2/output_0.cairo | 2 +- tests/nodes/concat_u32_3d_default.cairo | 2 +- .../nodes/concat_u32_3d_default/input_0.cairo | 2 +- .../nodes/concat_u32_3d_default/input_1.cairo | 2 +- .../concat_u32_3d_default/output_0.cairo | 2 +- .../concat_u32_3d_three_tensors_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../concat_u32_3d_three_tensors_axis_2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/cos_fp16x16.cairo | 2 +- tests/nodes/cos_fp16x16/input_0.cairo | 2 +- tests/nodes/cos_fp16x16/output_0.cairo | 2 +- tests/nodes/cos_fp8x23.cairo | 2 +- tests/nodes/cos_fp8x23/input_0.cairo | 2 +- tests/nodes/cos_fp8x23/output_0.cairo | 2 +- tests/nodes/cosh_fp16x16.cairo | 2 +- tests/nodes/cosh_fp16x16/input_0.cairo | 2 +- tests/nodes/cosh_fp16x16/output_0.cairo | 2 +- tests/nodes/cosh_fp8x23.cairo | 2 +- tests/nodes/cosh_fp8x23/input_0.cairo | 2 +- tests/nodes/cosh_fp8x23/output_0.cairo | 2 +- tests/nodes/cumsum_fp16x16_1d_default.cairo | 2 +- .../cumsum_fp16x16_1d_default/input_0.cairo | 2 +- .../cumsum_fp16x16_1d_default/output_0.cairo | 2 +- tests/nodes/cumsum_fp16x16_1d_exclusive.cairo | 2 +- .../cumsum_fp16x16_1d_exclusive/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/cumsum_fp16x16_1d_reverse.cairo | 2 +- .../cumsum_fp16x16_1d_reverse/input_0.cairo | 2 +- .../cumsum_fp16x16_1d_reverse/output_0.cairo | 2 +- .../cumsum_fp16x16_1d_reverse_exclusive.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/cumsum_fp16x16_2d_axis_0.cairo | 2 +- .../cumsum_fp16x16_2d_axis_0/input_0.cairo | 2 +- .../cumsum_fp16x16_2d_axis_0/output_0.cairo | 2 +- tests/nodes/cumsum_fp16x16_2d_axis_1.cairo | 2 +- .../cumsum_fp16x16_2d_axis_1/input_0.cairo | 2 +- .../cumsum_fp16x16_2d_axis_1/output_0.cairo | 2 +- tests/nodes/cumsum_fp8x23_1d_default.cairo | 2 +- .../cumsum_fp8x23_1d_default/input_0.cairo | 2 +- .../cumsum_fp8x23_1d_default/output_0.cairo | 2 +- tests/nodes/cumsum_fp8x23_1d_exclusive.cairo | 2 +- .../cumsum_fp8x23_1d_exclusive/input_0.cairo | 2 +- .../cumsum_fp8x23_1d_exclusive/output_0.cairo | 2 +- tests/nodes/cumsum_fp8x23_1d_reverse.cairo | 2 +- .../cumsum_fp8x23_1d_reverse/input_0.cairo | 2 +- .../cumsum_fp8x23_1d_reverse/output_0.cairo | 2 +- .../cumsum_fp8x23_1d_reverse_exclusive.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/cumsum_fp8x23_2d_axis_0.cairo | 2 +- .../cumsum_fp8x23_2d_axis_0/input_0.cairo | 2 +- .../cumsum_fp8x23_2d_axis_0/output_0.cairo | 2 +- tests/nodes/cumsum_fp8x23_2d_axis_1.cairo | 2 +- .../cumsum_fp8x23_2d_axis_1/input_0.cairo | 2 +- .../cumsum_fp8x23_2d_axis_1/output_0.cairo | 2 +- tests/nodes/cumsum_i32_1d_default.cairo | 2 +- .../nodes/cumsum_i32_1d_default/input_0.cairo | 2 +- .../cumsum_i32_1d_default/output_0.cairo | 2 +- tests/nodes/cumsum_i32_1d_exclusive.cairo | 2 +- .../cumsum_i32_1d_exclusive/input_0.cairo | 2 +- .../cumsum_i32_1d_exclusive/output_0.cairo | 2 +- tests/nodes/cumsum_i32_1d_reverse.cairo | 2 +- .../nodes/cumsum_i32_1d_reverse/input_0.cairo | 2 +- .../cumsum_i32_1d_reverse/output_0.cairo | 2 +- .../cumsum_i32_1d_reverse_exclusive.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/cumsum_i32_2d_axis_0.cairo | 2 +- .../nodes/cumsum_i32_2d_axis_0/input_0.cairo | 2 +- .../nodes/cumsum_i32_2d_axis_0/output_0.cairo | 2 +- tests/nodes/cumsum_i32_2d_axis_1.cairo | 2 +- .../nodes/cumsum_i32_2d_axis_1/input_0.cairo | 2 +- .../nodes/cumsum_i32_2d_axis_1/output_0.cairo | 2 +- tests/nodes/cumsum_i8_1d_default.cairo | 2 +- .../nodes/cumsum_i8_1d_default/input_0.cairo | 2 +- .../nodes/cumsum_i8_1d_default/output_0.cairo | 2 +- tests/nodes/cumsum_i8_1d_exclusive.cairo | 2 +- .../cumsum_i8_1d_exclusive/input_0.cairo | 2 +- .../cumsum_i8_1d_exclusive/output_0.cairo | 2 +- tests/nodes/cumsum_i8_1d_reverse.cairo | 2 +- .../nodes/cumsum_i8_1d_reverse/input_0.cairo | 2 +- .../nodes/cumsum_i8_1d_reverse/output_0.cairo | 2 +- .../cumsum_i8_1d_reverse_exclusive.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/cumsum_i8_2d_axis_0.cairo | 2 +- tests/nodes/cumsum_i8_2d_axis_0/input_0.cairo | 2 +- .../nodes/cumsum_i8_2d_axis_0/output_0.cairo | 2 +- tests/nodes/cumsum_i8_2d_axis_1.cairo | 2 +- tests/nodes/cumsum_i8_2d_axis_1/input_0.cairo | 2 +- .../nodes/cumsum_i8_2d_axis_1/output_0.cairo | 2 +- tests/nodes/cumsum_u32_1d_default.cairo | 2 +- .../nodes/cumsum_u32_1d_default/input_0.cairo | 2 +- .../cumsum_u32_1d_default/output_0.cairo | 2 +- tests/nodes/cumsum_u32_1d_exclusive.cairo | 2 +- .../cumsum_u32_1d_exclusive/input_0.cairo | 2 +- .../cumsum_u32_1d_exclusive/output_0.cairo | 2 +- tests/nodes/cumsum_u32_1d_reverse.cairo | 2 +- .../nodes/cumsum_u32_1d_reverse/input_0.cairo | 2 +- .../cumsum_u32_1d_reverse/output_0.cairo | 2 +- .../cumsum_u32_1d_reverse_exclusive.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/cumsum_u32_2d_axis_0.cairo | 2 +- .../nodes/cumsum_u32_2d_axis_0/input_0.cairo | 2 +- .../nodes/cumsum_u32_2d_axis_0/output_0.cairo | 2 +- tests/nodes/cumsum_u32_2d_axis_1.cairo | 2 +- .../nodes/cumsum_u32_2d_axis_1/input_0.cairo | 2 +- .../nodes/cumsum_u32_2d_axis_1/output_0.cairo | 2 +- tests/nodes/div_fp16x16.cairo | 2 +- tests/nodes/div_fp16x16/input_0.cairo | 2 +- tests/nodes/div_fp16x16/input_1.cairo | 2 +- tests/nodes/div_fp16x16/output_0.cairo | 2 +- tests/nodes/div_fp16x16_broadcast.cairo | 2 +- .../nodes/div_fp16x16_broadcast/input_0.cairo | 2 +- .../nodes/div_fp16x16_broadcast/input_1.cairo | 2 +- .../div_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/div_fp8x23.cairo | 2 +- tests/nodes/div_fp8x23/input_0.cairo | 2 +- tests/nodes/div_fp8x23/input_1.cairo | 2 +- tests/nodes/div_fp8x23/output_0.cairo | 2 +- tests/nodes/div_fp8x23_broadcast.cairo | 2 +- .../nodes/div_fp8x23_broadcast/input_0.cairo | 2 +- .../nodes/div_fp8x23_broadcast/input_1.cairo | 2 +- .../nodes/div_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/div_i32.cairo | 2 +- tests/nodes/div_i32/input_0.cairo | 2 +- tests/nodes/div_i32/input_1.cairo | 2 +- tests/nodes/div_i32/output_0.cairo | 2 +- tests/nodes/div_i32_broadcast.cairo | 2 +- tests/nodes/div_i32_broadcast/input_0.cairo | 2 +- tests/nodes/div_i32_broadcast/input_1.cairo | 2 +- tests/nodes/div_i32_broadcast/output_0.cairo | 2 +- tests/nodes/div_i8.cairo | 2 +- tests/nodes/div_i8/input_0.cairo | 2 +- tests/nodes/div_i8/input_1.cairo | 2 +- tests/nodes/div_i8/output_0.cairo | 2 +- tests/nodes/div_i8_broadcast.cairo | 2 +- tests/nodes/div_i8_broadcast/input_0.cairo | 2 +- tests/nodes/div_i8_broadcast/input_1.cairo | 2 +- tests/nodes/div_i8_broadcast/output_0.cairo | 2 +- tests/nodes/div_u32.cairo | 2 +- tests/nodes/div_u32/input_0.cairo | 2 +- tests/nodes/div_u32/input_1.cairo | 2 +- tests/nodes/div_u32/output_0.cairo | 2 +- tests/nodes/div_u32_broadcast.cairo | 2 +- tests/nodes/div_u32_broadcast/input_0.cairo | 2 +- tests/nodes/div_u32_broadcast/input_1.cairo | 2 +- tests/nodes/div_u32_broadcast/output_0.cairo | 2 +- tests/nodes/equal_fp16x16.cairo | 2 +- tests/nodes/equal_fp16x16/input_0.cairo | 2 +- tests/nodes/equal_fp16x16/input_1.cairo | 2 +- tests/nodes/equal_fp16x16/output_0.cairo | 2 +- tests/nodes/equal_fp16x16_broadcast.cairo | 2 +- .../equal_fp16x16_broadcast/input_0.cairo | 2 +- .../equal_fp16x16_broadcast/input_1.cairo | 2 +- .../equal_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/equal_fp8x23.cairo | 2 +- tests/nodes/equal_fp8x23/input_0.cairo | 2 +- tests/nodes/equal_fp8x23/input_1.cairo | 2 +- tests/nodes/equal_fp8x23/output_0.cairo | 2 +- tests/nodes/equal_fp8x23_broadcast.cairo | 2 +- .../equal_fp8x23_broadcast/input_0.cairo | 2 +- .../equal_fp8x23_broadcast/input_1.cairo | 2 +- .../equal_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/equal_i32.cairo | 2 +- tests/nodes/equal_i32/input_0.cairo | 2 +- tests/nodes/equal_i32/input_1.cairo | 2 +- tests/nodes/equal_i32/output_0.cairo | 2 +- tests/nodes/equal_i32_broadcast.cairo | 2 +- tests/nodes/equal_i32_broadcast/input_0.cairo | 2 +- tests/nodes/equal_i32_broadcast/input_1.cairo | 2 +- .../nodes/equal_i32_broadcast/output_0.cairo | 2 +- tests/nodes/equal_i8.cairo | 2 +- tests/nodes/equal_i8/input_0.cairo | 2 +- tests/nodes/equal_i8/input_1.cairo | 2 +- tests/nodes/equal_i8/output_0.cairo | 2 +- tests/nodes/equal_i8_broadcast.cairo | 2 +- tests/nodes/equal_i8_broadcast/input_0.cairo | 2 +- tests/nodes/equal_i8_broadcast/input_1.cairo | 2 +- tests/nodes/equal_i8_broadcast/output_0.cairo | 2 +- tests/nodes/equal_u32.cairo | 2 +- tests/nodes/equal_u32/input_0.cairo | 2 +- tests/nodes/equal_u32/input_1.cairo | 2 +- tests/nodes/equal_u32/output_0.cairo | 2 +- tests/nodes/equal_u32_broadcast.cairo | 2 +- tests/nodes/equal_u32_broadcast/input_0.cairo | 2 +- tests/nodes/equal_u32_broadcast/input_1.cairo | 2 +- .../nodes/equal_u32_broadcast/output_0.cairo | 2 +- tests/nodes/exp_fp16x16.cairo | 2 +- tests/nodes/exp_fp16x16/input_0.cairo | 2 +- tests/nodes/exp_fp16x16/output_0.cairo | 2 +- tests/nodes/exp_fp8x23.cairo | 2 +- tests/nodes/exp_fp8x23/input_0.cairo | 2 +- tests/nodes/exp_fp8x23/output_0.cairo | 2 +- .../gather_elements_fp16x16_3d_axis1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../gather_elements_fp16x16_3d_axis2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../gather_elements_fp16x16_3d_default.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../gather_elements_fp8x23_3d_axis1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../gather_elements_fp8x23_3d_axis2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../gather_elements_fp8x23_3d_default.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/gather_elements_i32_3d_axis1.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/gather_elements_i32_3d_axis2.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../gather_elements_i32_3d_default.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/gather_elements_i8_3d_axis1.cairo | 2 +- .../gather_elements_i8_3d_axis1/input_0.cairo | 2 +- .../gather_elements_i8_3d_axis1/input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/gather_elements_i8_3d_default.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/gather_elements_u32_axis1.cairo | 2 +- .../gather_elements_u32_axis1/input_0.cairo | 2 +- .../gather_elements_u32_axis1/input_1.cairo | 2 +- .../gather_elements_u32_axis1/output_0.cairo | 2 +- tests/nodes/gather_elements_u32_axis2.cairo | 2 +- .../gather_elements_u32_axis2/input_0.cairo | 2 +- .../gather_elements_u32_axis2/input_1.cairo | 2 +- .../gather_elements_u32_axis2/output_0.cairo | 2 +- tests/nodes/gather_elements_u32_axis3.cairo | 2 +- .../gather_elements_u32_axis3/input_0.cairo | 2 +- .../gather_elements_u32_axis3/input_1.cairo | 2 +- .../gather_elements_u32_axis3/output_0.cairo | 2 +- tests/nodes/gather_elements_u32_default.cairo | 2 +- .../gather_elements_u32_default/input_0.cairo | 2 +- .../gather_elements_u32_default/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/gather_fp16x16_3d_axis1.cairo | 2 +- .../gather_fp16x16_3d_axis1/input_0.cairo | 2 +- .../gather_fp16x16_3d_axis1/input_1.cairo | 2 +- .../gather_fp16x16_3d_axis1/output_0.cairo | 2 +- tests/nodes/gather_fp16x16_3d_axis2.cairo | 2 +- .../gather_fp16x16_3d_axis2/input_0.cairo | 2 +- .../gather_fp16x16_3d_axis2/input_1.cairo | 2 +- .../gather_fp16x16_3d_axis2/output_0.cairo | 2 +- tests/nodes/gather_fp16x16_3d_default.cairo | 2 +- .../gather_fp16x16_3d_default/input_0.cairo | 2 +- .../gather_fp16x16_3d_default/input_1.cairo | 2 +- .../gather_fp16x16_3d_default/output_0.cairo | 2 +- tests/nodes/gather_fp8x23_3d_axis1.cairo | 2 +- .../gather_fp8x23_3d_axis1/input_0.cairo | 2 +- .../gather_fp8x23_3d_axis1/input_1.cairo | 2 +- .../gather_fp8x23_3d_axis1/output_0.cairo | 2 +- tests/nodes/gather_fp8x23_3d_axis2.cairo | 2 +- .../gather_fp8x23_3d_axis2/input_0.cairo | 2 +- .../gather_fp8x23_3d_axis2/input_1.cairo | 2 +- .../gather_fp8x23_3d_axis2/output_0.cairo | 2 +- tests/nodes/gather_fp8x23_3d_default.cairo | 2 +- .../gather_fp8x23_3d_default/input_0.cairo | 2 +- .../gather_fp8x23_3d_default/input_1.cairo | 2 +- .../gather_fp8x23_3d_default/output_0.cairo | 2 +- tests/nodes/gather_i32_3d_axis1.cairo | 2 +- tests/nodes/gather_i32_3d_axis1/input_0.cairo | 2 +- tests/nodes/gather_i32_3d_axis1/input_1.cairo | 2 +- .../nodes/gather_i32_3d_axis1/output_0.cairo | 2 +- tests/nodes/gather_i32_3d_axis2.cairo | 2 +- tests/nodes/gather_i32_3d_axis2/input_0.cairo | 2 +- tests/nodes/gather_i32_3d_axis2/input_1.cairo | 2 +- .../nodes/gather_i32_3d_axis2/output_0.cairo | 2 +- tests/nodes/gather_i32_3d_default.cairo | 2 +- .../nodes/gather_i32_3d_default/input_0.cairo | 2 +- .../nodes/gather_i32_3d_default/input_1.cairo | 2 +- .../gather_i32_3d_default/output_0.cairo | 2 +- tests/nodes/gather_i8_3d_axis1.cairo | 2 +- tests/nodes/gather_i8_3d_axis1/input_0.cairo | 2 +- tests/nodes/gather_i8_3d_axis1/input_1.cairo | 2 +- tests/nodes/gather_i8_3d_axis1/output_0.cairo | 2 +- tests/nodes/gather_i8_3d_axis2.cairo | 2 +- tests/nodes/gather_i8_3d_axis2/input_0.cairo | 2 +- tests/nodes/gather_i8_3d_axis2/input_1.cairo | 2 +- tests/nodes/gather_i8_3d_axis2/output_0.cairo | 2 +- tests/nodes/gather_i8_3d_default.cairo | 2 +- .../nodes/gather_i8_3d_default/input_0.cairo | 2 +- .../nodes/gather_i8_3d_default/input_1.cairo | 2 +- .../nodes/gather_i8_3d_default/output_0.cairo | 2 +- tests/nodes/gather_u32_3d_axis1.cairo | 2 +- tests/nodes/gather_u32_3d_axis1/input_0.cairo | 2 +- tests/nodes/gather_u32_3d_axis1/input_1.cairo | 2 +- .../nodes/gather_u32_3d_axis1/output_0.cairo | 2 +- tests/nodes/gather_u32_3d_axis2.cairo | 2 +- tests/nodes/gather_u32_3d_axis2/input_0.cairo | 2 +- tests/nodes/gather_u32_3d_axis2/input_1.cairo | 2 +- .../nodes/gather_u32_3d_axis2/output_0.cairo | 2 +- tests/nodes/gather_u32_3d_default.cairo | 2 +- .../nodes/gather_u32_3d_default/input_0.cairo | 2 +- .../nodes/gather_u32_3d_default/input_1.cairo | 2 +- .../gather_u32_3d_default/output_0.cairo | 2 +- tests/nodes/gemm_all_attributes/input_0.cairo | 2 +- tests/nodes/gemm_all_attributes/input_1.cairo | 2 +- tests/nodes/gemm_all_attributes/input_2.cairo | 2 +- .../nodes/gemm_all_attributes/output_0.cairo | 2 +- tests/nodes/gemm_alpha/input_0.cairo | 2 +- tests/nodes/gemm_alpha/input_1.cairo | 2 +- tests/nodes/gemm_alpha/output_0.cairo | 2 +- tests/nodes/gemm_beta/input_0.cairo | 2 +- tests/nodes/gemm_beta/input_1.cairo | 2 +- tests/nodes/gemm_beta/input_2.cairo | 2 +- tests/nodes/gemm_beta/output_0.cairo | 2 +- .../gemm_default_matrix_bias/input_0.cairo | 2 +- .../gemm_default_matrix_bias/input_1.cairo | 2 +- .../gemm_default_matrix_bias/input_2.cairo | 2 +- .../gemm_default_matrix_bias/output_0.cairo | 2 +- .../nodes/gemm_default_no_bias/input_0.cairo | 2 +- .../nodes/gemm_default_no_bias/input_1.cairo | 2 +- .../nodes/gemm_default_no_bias/output_0.cairo | 2 +- .../gemm_default_vector_bias/input_0.cairo | 2 +- .../gemm_default_vector_bias/input_1.cairo | 2 +- .../gemm_default_vector_bias/input_2.cairo | 2 +- .../gemm_default_vector_bias/output_0.cairo | 2 +- tests/nodes/gemm_transposeA/input_0.cairo | 2 +- tests/nodes/gemm_transposeA/input_1.cairo | 2 +- tests/nodes/gemm_transposeA/output_0.cairo | 2 +- tests/nodes/gemm_transposeB/input_0.cairo | 2 +- tests/nodes/gemm_transposeB/input_1.cairo | 2 +- tests/nodes/gemm_transposeB/output_0.cairo | 2 +- tests/nodes/greater_equal_fp16x16.cairo | 2 +- .../nodes/greater_equal_fp16x16/input_0.cairo | 2 +- .../nodes/greater_equal_fp16x16/input_1.cairo | 2 +- .../greater_equal_fp16x16/output_0.cairo | 2 +- .../greater_equal_fp16x16_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/greater_equal_fp8x23.cairo | 2 +- .../nodes/greater_equal_fp8x23/input_0.cairo | 2 +- .../nodes/greater_equal_fp8x23/input_1.cairo | 2 +- .../nodes/greater_equal_fp8x23/output_0.cairo | 2 +- .../greater_equal_fp8x23_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/greater_equal_i32.cairo | 2 +- tests/nodes/greater_equal_i32/input_0.cairo | 2 +- tests/nodes/greater_equal_i32/input_1.cairo | 2 +- tests/nodes/greater_equal_i32/output_0.cairo | 2 +- tests/nodes/greater_equal_i32_broadcast.cairo | 2 +- .../greater_equal_i32_broadcast/input_0.cairo | 2 +- .../greater_equal_i32_broadcast/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/greater_equal_i8.cairo | 2 +- tests/nodes/greater_equal_i8/input_0.cairo | 2 +- tests/nodes/greater_equal_i8/input_1.cairo | 2 +- tests/nodes/greater_equal_i8/output_0.cairo | 2 +- tests/nodes/greater_equal_i8_broadcast.cairo | 2 +- .../greater_equal_i8_broadcast/input_0.cairo | 2 +- .../greater_equal_i8_broadcast/input_1.cairo | 2 +- .../greater_equal_i8_broadcast/output_0.cairo | 2 +- tests/nodes/greater_equal_u32.cairo | 2 +- tests/nodes/greater_equal_u32/input_0.cairo | 2 +- tests/nodes/greater_equal_u32/input_1.cairo | 2 +- tests/nodes/greater_equal_u32/output_0.cairo | 2 +- tests/nodes/greater_equal_u32_broadcast.cairo | 2 +- .../greater_equal_u32_broadcast/input_0.cairo | 2 +- .../greater_equal_u32_broadcast/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/greater_fp16x16.cairo | 2 +- tests/nodes/greater_fp16x16/input_0.cairo | 2 +- tests/nodes/greater_fp16x16/input_1.cairo | 2 +- tests/nodes/greater_fp16x16/output_0.cairo | 2 +- tests/nodes/greater_fp16x16_broadcast.cairo | 2 +- .../greater_fp16x16_broadcast/input_0.cairo | 2 +- .../greater_fp16x16_broadcast/input_1.cairo | 2 +- .../greater_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/greater_fp8x23.cairo | 2 +- tests/nodes/greater_fp8x23/input_0.cairo | 2 +- tests/nodes/greater_fp8x23/input_1.cairo | 2 +- tests/nodes/greater_fp8x23/output_0.cairo | 2 +- tests/nodes/greater_fp8x23_broadcast.cairo | 2 +- .../greater_fp8x23_broadcast/input_0.cairo | 2 +- .../greater_fp8x23_broadcast/input_1.cairo | 2 +- .../greater_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/greater_i32.cairo | 2 +- tests/nodes/greater_i32/input_0.cairo | 2 +- tests/nodes/greater_i32/input_1.cairo | 2 +- tests/nodes/greater_i32/output_0.cairo | 2 +- tests/nodes/greater_i32_broadcast.cairo | 2 +- .../nodes/greater_i32_broadcast/input_0.cairo | 2 +- .../nodes/greater_i32_broadcast/input_1.cairo | 2 +- .../greater_i32_broadcast/output_0.cairo | 2 +- tests/nodes/greater_i8.cairo | 2 +- tests/nodes/greater_i8/input_0.cairo | 2 +- tests/nodes/greater_i8/input_1.cairo | 2 +- tests/nodes/greater_i8/output_0.cairo | 2 +- tests/nodes/greater_i8_broadcast.cairo | 2 +- .../nodes/greater_i8_broadcast/input_0.cairo | 2 +- .../nodes/greater_i8_broadcast/input_1.cairo | 2 +- .../nodes/greater_i8_broadcast/output_0.cairo | 2 +- tests/nodes/greater_u32.cairo | 2 +- tests/nodes/greater_u32/input_0.cairo | 2 +- tests/nodes/greater_u32/input_1.cairo | 2 +- tests/nodes/greater_u32/output_0.cairo | 2 +- tests/nodes/greater_u32_broadcast.cairo | 2 +- .../nodes/greater_u32_broadcast/input_0.cairo | 2 +- .../nodes/greater_u32_broadcast/input_1.cairo | 2 +- .../greater_u32_broadcast/output_0.cairo | 2 +- .../nodes/hard_sigmoid_fp16x16/input_0.cairo | 2 +- .../nodes/hard_sigmoid_fp16x16/output_0.cairo | 2 +- tests/nodes/hard_sigmoid_fp8x23/input_0.cairo | 2 +- .../nodes/hard_sigmoid_fp8x23/output_0.cairo | 2 +- tests/nodes/identity_fP16x16.cairo | 2 +- tests/nodes/identity_fP16x16/input_0.cairo | 2 +- tests/nodes/identity_fP16x16/output_0.cairo | 2 +- tests/nodes/identity_fP8x23.cairo | 2 +- tests/nodes/identity_fP8x23/input_0.cairo | 2 +- tests/nodes/identity_fP8x23/output_0.cairo | 2 +- tests/nodes/identity_i32.cairo | 2 +- tests/nodes/identity_i32/input_0.cairo | 2 +- tests/nodes/identity_i32/output_0.cairo | 2 +- tests/nodes/identity_i8.cairo | 2 +- tests/nodes/identity_i8/input_0.cairo | 2 +- tests/nodes/identity_i8/output_0.cairo | 2 +- tests/nodes/identity_u32.cairo | 2 +- tests/nodes/identity_u32/input_0.cairo | 2 +- tests/nodes/identity_u32/output_0.cairo | 2 +- tests/nodes/is_inf_fp16x16.cairo | 2 +- tests/nodes/is_inf_fp16x16/input_0.cairo | 2 +- tests/nodes/is_inf_fp16x16/output_0.cairo | 2 +- tests/nodes/is_inf_fp8x23.cairo | 2 +- tests/nodes/is_inf_fp8x23/input_0.cairo | 2 +- tests/nodes/is_inf_fp8x23/output_0.cairo | 2 +- tests/nodes/is_inf_i32.cairo | 2 +- tests/nodes/is_inf_i32/input_0.cairo | 2 +- tests/nodes/is_inf_i32/output_0.cairo | 2 +- tests/nodes/is_inf_i8.cairo | 2 +- tests/nodes/is_inf_i8/input_0.cairo | 2 +- tests/nodes/is_inf_i8/output_0.cairo | 2 +- tests/nodes/is_inf_u32.cairo | 2 +- tests/nodes/is_inf_u32/input_0.cairo | 2 +- tests/nodes/is_inf_u32/output_0.cairo | 2 +- tests/nodes/is_nan_fp16x16.cairo | 2 +- tests/nodes/is_nan_fp16x16/input_0.cairo | 2 +- tests/nodes/is_nan_fp16x16/output_0.cairo | 2 +- tests/nodes/is_nan_fp8x23.cairo | 2 +- tests/nodes/is_nan_fp8x23/input_0.cairo | 2 +- tests/nodes/is_nan_fp8x23/output_0.cairo | 2 +- tests/nodes/is_neg_inf_fp16x16.cairo | 2 +- tests/nodes/is_neg_inf_fp16x16/input_0.cairo | 2 +- tests/nodes/is_neg_inf_fp16x16/output_0.cairo | 2 +- tests/nodes/is_neg_inf_fp8x23.cairo | 2 +- tests/nodes/is_neg_inf_fp8x23/input_0.cairo | 2 +- tests/nodes/is_neg_inf_fp8x23/output_0.cairo | 2 +- tests/nodes/is_neg_inf_i32.cairo | 2 +- tests/nodes/is_neg_inf_i32/input_0.cairo | 2 +- tests/nodes/is_neg_inf_i32/output_0.cairo | 2 +- tests/nodes/is_neg_inf_i8.cairo | 2 +- tests/nodes/is_neg_inf_i8/input_0.cairo | 2 +- tests/nodes/is_neg_inf_i8/output_0.cairo | 2 +- tests/nodes/is_pos_inf_fp16x16.cairo | 2 +- tests/nodes/is_pos_inf_fp16x16/input_0.cairo | 2 +- tests/nodes/is_pos_inf_fp16x16/output_0.cairo | 2 +- tests/nodes/is_pos_inf_fp8x23.cairo | 2 +- tests/nodes/is_pos_inf_fp8x23/input_0.cairo | 2 +- tests/nodes/is_pos_inf_fp8x23/output_0.cairo | 2 +- tests/nodes/is_pos_inf_i32.cairo | 2 +- tests/nodes/is_pos_inf_i32/input_0.cairo | 2 +- tests/nodes/is_pos_inf_i32/output_0.cairo | 2 +- tests/nodes/is_pos_inf_i8.cairo | 2 +- tests/nodes/is_pos_inf_i8/input_0.cairo | 2 +- tests/nodes/is_pos_inf_i8/output_0.cairo | 2 +- tests/nodes/leaky_relu_fp16x16/input_0.cairo | 2 +- tests/nodes/leaky_relu_fp16x16/output_0.cairo | 2 +- tests/nodes/leaky_relu_fp8x23/input_0.cairo | 2 +- tests/nodes/leaky_relu_fp8x23/output_0.cairo | 2 +- tests/nodes/less_equal_fp16x16.cairo | 2 +- tests/nodes/less_equal_fp16x16/input_0.cairo | 2 +- tests/nodes/less_equal_fp16x16/input_1.cairo | 2 +- tests/nodes/less_equal_fp16x16/output_0.cairo | 2 +- .../nodes/less_equal_fp16x16_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/less_equal_fp8x23.cairo | 2 +- tests/nodes/less_equal_fp8x23/input_0.cairo | 2 +- tests/nodes/less_equal_fp8x23/input_1.cairo | 2 +- tests/nodes/less_equal_fp8x23/output_0.cairo | 2 +- tests/nodes/less_equal_fp8x23_broadcast.cairo | 2 +- .../less_equal_fp8x23_broadcast/input_0.cairo | 2 +- .../less_equal_fp8x23_broadcast/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/less_equal_i32.cairo | 2 +- tests/nodes/less_equal_i32/input_0.cairo | 2 +- tests/nodes/less_equal_i32/input_1.cairo | 2 +- tests/nodes/less_equal_i32/output_0.cairo | 2 +- tests/nodes/less_equal_i32_broadcast.cairo | 2 +- .../less_equal_i32_broadcast/input_0.cairo | 2 +- .../less_equal_i32_broadcast/input_1.cairo | 2 +- .../less_equal_i32_broadcast/output_0.cairo | 2 +- tests/nodes/less_equal_i8.cairo | 2 +- tests/nodes/less_equal_i8/input_0.cairo | 2 +- tests/nodes/less_equal_i8/input_1.cairo | 2 +- tests/nodes/less_equal_i8/output_0.cairo | 2 +- tests/nodes/less_equal_i8_broadcast.cairo | 2 +- .../less_equal_i8_broadcast/input_0.cairo | 2 +- .../less_equal_i8_broadcast/input_1.cairo | 2 +- .../less_equal_i8_broadcast/output_0.cairo | 2 +- tests/nodes/less_equal_u32.cairo | 2 +- tests/nodes/less_equal_u32/input_0.cairo | 2 +- tests/nodes/less_equal_u32/input_1.cairo | 2 +- tests/nodes/less_equal_u32/output_0.cairo | 2 +- tests/nodes/less_equal_u32_broadcast.cairo | 2 +- .../less_equal_u32_broadcast/input_0.cairo | 2 +- .../less_equal_u32_broadcast/input_1.cairo | 2 +- .../less_equal_u32_broadcast/output_0.cairo | 2 +- tests/nodes/less_fp16x16.cairo | 2 +- tests/nodes/less_fp16x16/input_0.cairo | 2 +- tests/nodes/less_fp16x16/input_1.cairo | 2 +- tests/nodes/less_fp16x16/output_0.cairo | 2 +- tests/nodes/less_fp16x16_broadcast.cairo | 2 +- .../less_fp16x16_broadcast/input_0.cairo | 2 +- .../less_fp16x16_broadcast/input_1.cairo | 2 +- .../less_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/less_fp8x23.cairo | 2 +- tests/nodes/less_fp8x23/input_0.cairo | 2 +- tests/nodes/less_fp8x23/input_1.cairo | 2 +- tests/nodes/less_fp8x23/output_0.cairo | 2 +- tests/nodes/less_fp8x23_broadcast.cairo | 2 +- .../nodes/less_fp8x23_broadcast/input_0.cairo | 2 +- .../nodes/less_fp8x23_broadcast/input_1.cairo | 2 +- .../less_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/less_i32.cairo | 2 +- tests/nodes/less_i32/input_0.cairo | 2 +- tests/nodes/less_i32/input_1.cairo | 2 +- tests/nodes/less_i32/output_0.cairo | 2 +- tests/nodes/less_i32_broadcast.cairo | 2 +- tests/nodes/less_i32_broadcast/input_0.cairo | 2 +- tests/nodes/less_i32_broadcast/input_1.cairo | 2 +- tests/nodes/less_i32_broadcast/output_0.cairo | 2 +- tests/nodes/less_i8.cairo | 2 +- tests/nodes/less_i8/input_0.cairo | 2 +- tests/nodes/less_i8/input_1.cairo | 2 +- tests/nodes/less_i8/output_0.cairo | 2 +- tests/nodes/less_i8_broadcast.cairo | 2 +- tests/nodes/less_i8_broadcast/input_0.cairo | 2 +- tests/nodes/less_i8_broadcast/input_1.cairo | 2 +- tests/nodes/less_i8_broadcast/output_0.cairo | 2 +- tests/nodes/less_u32.cairo | 2 +- tests/nodes/less_u32/input_0.cairo | 2 +- tests/nodes/less_u32/input_1.cairo | 2 +- tests/nodes/less_u32/output_0.cairo | 2 +- tests/nodes/less_u32_broadcast.cairo | 2 +- tests/nodes/less_u32_broadcast/input_0.cairo | 2 +- tests/nodes/less_u32_broadcast/input_1.cairo | 2 +- tests/nodes/less_u32_broadcast/output_0.cairo | 2 +- tests/nodes/linear_fp16x16/input_0.cairo | 2 +- tests/nodes/linear_fp16x16/input_1.cairo | 2 +- tests/nodes/linear_fp16x16/input_2.cairo | 2 +- tests/nodes/linear_fp16x16/output_0.cairo | 2 +- tests/nodes/linear_fp8x23/input_0.cairo | 2 +- tests/nodes/linear_fp8x23/input_1.cairo | 2 +- tests/nodes/linear_fp8x23/input_2.cairo | 2 +- tests/nodes/linear_fp8x23/output_0.cairo | 2 +- tests/nodes/linear_i32/input_0.cairo | 2 +- tests/nodes/linear_i32/input_1.cairo | 2 +- tests/nodes/linear_i32/input_2.cairo | 2 +- tests/nodes/linear_i32/output_0.cairo | 2 +- tests/nodes/linear_i8/input_0.cairo | 2 +- tests/nodes/linear_i8/input_1.cairo | 2 +- tests/nodes/linear_i8/input_2.cairo | 2 +- tests/nodes/linear_i8/output_0.cairo | 2 +- tests/nodes/linear_u32/input_0.cairo | 2 +- tests/nodes/linear_u32/input_1.cairo | 2 +- tests/nodes/linear_u32/input_2.cairo | 2 +- tests/nodes/linear_u32/output_0.cairo | 2 +- tests/nodes/log_fp16x16.cairo | 2 +- tests/nodes/log_fp16x16/input_0.cairo | 2 +- tests/nodes/log_fp16x16/output_0.cairo | 2 +- tests/nodes/log_fp8x23.cairo | 2 +- tests/nodes/log_fp8x23/input_0.cairo | 2 +- tests/nodes/log_fp8x23/output_0.cairo | 2 +- .../logsoftmax_fp16x16_axis_0/input_0.cairo | 2 +- .../logsoftmax_fp16x16_axis_0/output_0.cairo | 2 +- .../logsoftmax_fp16x16_axis_1/input_0.cairo | 2 +- .../logsoftmax_fp16x16_axis_1/output_0.cairo | 2 +- .../logsoftmax_fp8x23_axis_0/input_0.cairo | 2 +- .../logsoftmax_fp8x23_axis_0/output_0.cairo | 2 +- .../logsoftmax_fp8x23_axis_1/input_0.cairo | 2 +- .../logsoftmax_fp8x23_axis_1/output_0.cairo | 2 +- tests/nodes/matmul_fp16x16_1d.cairo | 2 +- tests/nodes/matmul_fp16x16_1d/input_0.cairo | 2 +- tests/nodes/matmul_fp16x16_1d/input_1.cairo | 2 +- tests/nodes/matmul_fp16x16_1d/output_0.cairo | 2 +- tests/nodes/matmul_fp16x16_1x2.cairo | 2 +- tests/nodes/matmul_fp16x16_1x2/input_0.cairo | 2 +- tests/nodes/matmul_fp16x16_1x2/input_1.cairo | 2 +- tests/nodes/matmul_fp16x16_1x2/output_0.cairo | 2 +- tests/nodes/matmul_fp16x16_2x1.cairo | 2 +- tests/nodes/matmul_fp16x16_2x1/input_0.cairo | 2 +- tests/nodes/matmul_fp16x16_2x1/input_1.cairo | 2 +- tests/nodes/matmul_fp16x16_2x1/output_0.cairo | 2 +- tests/nodes/matmul_fp16x16_2x2.cairo | 2 +- tests/nodes/matmul_fp16x16_2x2/input_0.cairo | 2 +- tests/nodes/matmul_fp16x16_2x2/input_1.cairo | 2 +- tests/nodes/matmul_fp16x16_2x2/output_0.cairo | 2 +- tests/nodes/matmul_fp8x23_1d.cairo | 2 +- tests/nodes/matmul_fp8x23_1d/input_0.cairo | 2 +- tests/nodes/matmul_fp8x23_1d/input_1.cairo | 2 +- tests/nodes/matmul_fp8x23_1d/output_0.cairo | 2 +- tests/nodes/matmul_fp8x23_1x2.cairo | 2 +- tests/nodes/matmul_fp8x23_1x2/input_0.cairo | 2 +- tests/nodes/matmul_fp8x23_1x2/input_1.cairo | 2 +- tests/nodes/matmul_fp8x23_1x2/output_0.cairo | 2 +- tests/nodes/matmul_fp8x23_2x1.cairo | 2 +- tests/nodes/matmul_fp8x23_2x1/input_0.cairo | 2 +- tests/nodes/matmul_fp8x23_2x1/input_1.cairo | 2 +- tests/nodes/matmul_fp8x23_2x1/output_0.cairo | 2 +- tests/nodes/matmul_fp8x23_2x2.cairo | 2 +- tests/nodes/matmul_fp8x23_2x2/input_0.cairo | 2 +- tests/nodes/matmul_fp8x23_2x2/input_1.cairo | 2 +- tests/nodes/matmul_fp8x23_2x2/output_0.cairo | 2 +- tests/nodes/matmul_i32_1d.cairo | 2 +- tests/nodes/matmul_i32_1d/input_0.cairo | 2 +- tests/nodes/matmul_i32_1d/input_1.cairo | 2 +- tests/nodes/matmul_i32_1d/output_0.cairo | 2 +- tests/nodes/matmul_i32_1x2.cairo | 2 +- tests/nodes/matmul_i32_1x2/input_0.cairo | 2 +- tests/nodes/matmul_i32_1x2/input_1.cairo | 2 +- tests/nodes/matmul_i32_1x2/output_0.cairo | 2 +- tests/nodes/matmul_i32_2x1.cairo | 2 +- tests/nodes/matmul_i32_2x1/input_0.cairo | 2 +- tests/nodes/matmul_i32_2x1/input_1.cairo | 2 +- tests/nodes/matmul_i32_2x1/output_0.cairo | 2 +- tests/nodes/matmul_i32_2x2.cairo | 2 +- tests/nodes/matmul_i32_2x2/input_0.cairo | 2 +- tests/nodes/matmul_i32_2x2/input_1.cairo | 2 +- tests/nodes/matmul_i32_2x2/output_0.cairo | 2 +- tests/nodes/matmul_i8_1d.cairo | 2 +- tests/nodes/matmul_i8_1d/input_0.cairo | 2 +- tests/nodes/matmul_i8_1d/input_1.cairo | 2 +- tests/nodes/matmul_i8_1d/output_0.cairo | 2 +- tests/nodes/matmul_i8_1x2.cairo | 2 +- tests/nodes/matmul_i8_1x2/input_0.cairo | 2 +- tests/nodes/matmul_i8_1x2/input_1.cairo | 2 +- tests/nodes/matmul_i8_1x2/output_0.cairo | 2 +- tests/nodes/matmul_i8_2x1.cairo | 2 +- tests/nodes/matmul_i8_2x1/input_0.cairo | 2 +- tests/nodes/matmul_i8_2x1/input_1.cairo | 2 +- tests/nodes/matmul_i8_2x1/output_0.cairo | 2 +- tests/nodes/matmul_i8_2x2.cairo | 2 +- tests/nodes/matmul_i8_2x2/input_0.cairo | 2 +- tests/nodes/matmul_i8_2x2/input_1.cairo | 2 +- tests/nodes/matmul_i8_2x2/output_0.cairo | 2 +- tests/nodes/matmul_u32_1d.cairo | 2 +- tests/nodes/matmul_u32_1d/input_0.cairo | 2 +- tests/nodes/matmul_u32_1d/input_1.cairo | 2 +- tests/nodes/matmul_u32_1d/output_0.cairo | 2 +- tests/nodes/matmul_u32_1x2.cairo | 2 +- tests/nodes/matmul_u32_1x2/input_0.cairo | 2 +- tests/nodes/matmul_u32_1x2/input_1.cairo | 2 +- tests/nodes/matmul_u32_1x2/output_0.cairo | 2 +- tests/nodes/matmul_u32_2x1.cairo | 2 +- tests/nodes/matmul_u32_2x1/input_0.cairo | 2 +- tests/nodes/matmul_u32_2x1/input_1.cairo | 2 +- tests/nodes/matmul_u32_2x1/output_0.cairo | 2 +- tests/nodes/matmul_u32_2x2.cairo | 2 +- tests/nodes/matmul_u32_2x2/input_0.cairo | 2 +- tests/nodes/matmul_u32_2x2/input_1.cairo | 2 +- tests/nodes/matmul_u32_2x2/output_0.cairo | 2 +- .../max_fp16x16_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../max_fp16x16_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/max_fp16x16_three_tensors.cairo | 2 +- .../max_fp16x16_three_tensors/input_0.cairo | 2 +- .../max_fp16x16_three_tensors/input_1.cairo | 2 +- .../max_fp16x16_three_tensors/input_2.cairo | 2 +- .../max_fp16x16_three_tensors/output_0.cairo | 2 +- tests/nodes/max_fp16x16_two_tensors.cairo | 2 +- .../max_fp16x16_two_tensors/input_0.cairo | 2 +- .../max_fp16x16_two_tensors/input_1.cairo | 2 +- .../max_fp16x16_two_tensors/output_0.cairo | 2 +- .../max_fp8x23_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../max_fp8x23_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/max_fp8x23_three_tensors.cairo | 2 +- .../max_fp8x23_three_tensors/input_0.cairo | 2 +- .../max_fp8x23_three_tensors/input_1.cairo | 2 +- .../max_fp8x23_three_tensors/input_2.cairo | 2 +- .../max_fp8x23_three_tensors/output_0.cairo | 2 +- tests/nodes/max_fp8x23_two_tensors.cairo | 2 +- .../max_fp8x23_two_tensors/input_0.cairo | 2 +- .../max_fp8x23_two_tensors/input_1.cairo | 2 +- .../max_fp8x23_two_tensors/output_0.cairo | 2 +- .../max_i32_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/max_i32_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/max_i32_three_tensors.cairo | 2 +- .../nodes/max_i32_three_tensors/input_0.cairo | 2 +- .../nodes/max_i32_three_tensors/input_1.cairo | 2 +- .../nodes/max_i32_three_tensors/input_2.cairo | 2 +- .../max_i32_three_tensors/output_0.cairo | 2 +- tests/nodes/max_i32_two_tensors.cairo | 2 +- tests/nodes/max_i32_two_tensors/input_0.cairo | 2 +- tests/nodes/max_i32_two_tensors/input_1.cairo | 2 +- .../nodes/max_i32_two_tensors/output_0.cairo | 2 +- .../max_i8_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/max_i8_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/max_i8_three_tensors.cairo | 2 +- .../nodes/max_i8_three_tensors/input_0.cairo | 2 +- .../nodes/max_i8_three_tensors/input_1.cairo | 2 +- .../nodes/max_i8_three_tensors/input_2.cairo | 2 +- .../nodes/max_i8_three_tensors/output_0.cairo | 2 +- tests/nodes/max_i8_two_tensors.cairo | 2 +- tests/nodes/max_i8_two_tensors/input_0.cairo | 2 +- tests/nodes/max_i8_two_tensors/input_1.cairo | 2 +- tests/nodes/max_i8_two_tensors/output_0.cairo | 2 +- .../max_u32_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/max_u32_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/max_u32_three_tensors.cairo | 2 +- .../nodes/max_u32_three_tensors/input_0.cairo | 2 +- .../nodes/max_u32_three_tensors/input_1.cairo | 2 +- .../nodes/max_u32_three_tensors/input_2.cairo | 2 +- .../max_u32_three_tensors/output_0.cairo | 2 +- tests/nodes/max_u32_two_tensors.cairo | 2 +- tests/nodes/max_u32_two_tensors/input_0.cairo | 2 +- tests/nodes/max_u32_two_tensors/input_1.cairo | 2 +- .../nodes/max_u32_two_tensors/output_0.cairo | 2 +- .../min_fp16x16_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../min_fp16x16_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/min_fp16x16_three_tensors.cairo | 2 +- .../min_fp16x16_three_tensors/input_0.cairo | 2 +- .../min_fp16x16_three_tensors/input_1.cairo | 2 +- .../min_fp16x16_three_tensors/input_2.cairo | 2 +- .../min_fp16x16_three_tensors/output_0.cairo | 2 +- tests/nodes/min_fp16x16_two_tensors.cairo | 2 +- .../min_fp16x16_two_tensors/input_0.cairo | 2 +- .../min_fp16x16_two_tensors/input_1.cairo | 2 +- .../min_fp16x16_two_tensors/output_0.cairo | 2 +- .../min_fp8x23_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../min_fp8x23_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/min_fp8x23_three_tensors.cairo | 2 +- .../min_fp8x23_three_tensors/input_0.cairo | 2 +- .../min_fp8x23_three_tensors/input_1.cairo | 2 +- .../min_fp8x23_three_tensors/input_2.cairo | 2 +- .../min_fp8x23_three_tensors/output_0.cairo | 2 +- tests/nodes/min_fp8x23_two_tensors.cairo | 2 +- .../min_fp8x23_two_tensors/input_0.cairo | 2 +- .../min_fp8x23_two_tensors/input_1.cairo | 2 +- .../min_fp8x23_two_tensors/output_0.cairo | 2 +- .../min_i32_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/min_i32_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/min_i32_three_tensors.cairo | 2 +- .../nodes/min_i32_three_tensors/input_0.cairo | 2 +- .../nodes/min_i32_three_tensors/input_1.cairo | 2 +- .../nodes/min_i32_three_tensors/input_2.cairo | 2 +- .../min_i32_three_tensors/output_0.cairo | 2 +- tests/nodes/min_i32_two_tensors.cairo | 2 +- tests/nodes/min_i32_two_tensors/input_0.cairo | 2 +- tests/nodes/min_i32_two_tensors/input_1.cairo | 2 +- .../nodes/min_i32_two_tensors/output_0.cairo | 2 +- .../min_i8_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/min_i8_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/min_i8_three_tensors.cairo | 2 +- .../nodes/min_i8_three_tensors/input_0.cairo | 2 +- .../nodes/min_i8_three_tensors/input_1.cairo | 2 +- .../nodes/min_i8_three_tensors/input_2.cairo | 2 +- .../nodes/min_i8_three_tensors/output_0.cairo | 2 +- tests/nodes/min_i8_two_tensors.cairo | 2 +- tests/nodes/min_i8_two_tensors/input_0.cairo | 2 +- tests/nodes/min_i8_two_tensors/input_1.cairo | 2 +- tests/nodes/min_i8_two_tensors/output_0.cairo | 2 +- .../min_u32_broadcast_three_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/min_u32_broadcast_two_tensors.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/min_u32_three_tensors.cairo | 2 +- .../nodes/min_u32_three_tensors/input_0.cairo | 2 +- .../nodes/min_u32_three_tensors/input_1.cairo | 2 +- .../nodes/min_u32_three_tensors/input_2.cairo | 2 +- .../min_u32_three_tensors/output_0.cairo | 2 +- tests/nodes/min_u32_two_tensors.cairo | 2 +- tests/nodes/min_u32_two_tensors/input_0.cairo | 2 +- tests/nodes/min_u32_two_tensors/input_1.cairo | 2 +- .../nodes/min_u32_two_tensors/output_0.cairo | 2 +- tests/nodes/mul_fp16x16.cairo | 2 +- tests/nodes/mul_fp16x16/input_0.cairo | 2 +- tests/nodes/mul_fp16x16/input_1.cairo | 2 +- tests/nodes/mul_fp16x16/output_0.cairo | 2 +- tests/nodes/mul_fp16x16_broadcast.cairo | 2 +- .../nodes/mul_fp16x16_broadcast/input_0.cairo | 2 +- .../nodes/mul_fp16x16_broadcast/input_1.cairo | 2 +- .../mul_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/mul_fp8x23.cairo | 2 +- tests/nodes/mul_fp8x23/input_0.cairo | 2 +- tests/nodes/mul_fp8x23/input_1.cairo | 2 +- tests/nodes/mul_fp8x23/output_0.cairo | 2 +- tests/nodes/mul_fp8x23_broadcast.cairo | 2 +- .../nodes/mul_fp8x23_broadcast/input_0.cairo | 2 +- .../nodes/mul_fp8x23_broadcast/input_1.cairo | 2 +- .../nodes/mul_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/mul_i32.cairo | 2 +- tests/nodes/mul_i32/input_0.cairo | 2 +- tests/nodes/mul_i32/input_1.cairo | 2 +- tests/nodes/mul_i32/output_0.cairo | 2 +- tests/nodes/mul_i32_broadcast.cairo | 2 +- tests/nodes/mul_i32_broadcast/input_0.cairo | 2 +- tests/nodes/mul_i32_broadcast/input_1.cairo | 2 +- tests/nodes/mul_i32_broadcast/output_0.cairo | 2 +- tests/nodes/mul_i8.cairo | 2 +- tests/nodes/mul_i8/input_0.cairo | 2 +- tests/nodes/mul_i8/input_1.cairo | 2 +- tests/nodes/mul_i8/output_0.cairo | 2 +- tests/nodes/mul_i8_broadcast.cairo | 2 +- tests/nodes/mul_i8_broadcast/input_0.cairo | 2 +- tests/nodes/mul_i8_broadcast/input_1.cairo | 2 +- tests/nodes/mul_i8_broadcast/output_0.cairo | 2 +- tests/nodes/mul_u32.cairo | 2 +- tests/nodes/mul_u32/input_0.cairo | 2 +- tests/nodes/mul_u32/input_1.cairo | 2 +- tests/nodes/mul_u32/output_0.cairo | 2 +- tests/nodes/mul_u32_broadcast.cairo | 2 +- tests/nodes/mul_u32_broadcast/input_0.cairo | 2 +- tests/nodes/mul_u32_broadcast/input_1.cairo | 2 +- tests/nodes/mul_u32_broadcast/output_0.cairo | 2 +- tests/nodes/neg_fp16x16.cairo | 2 +- tests/nodes/neg_fp16x16/input_0.cairo | 2 +- tests/nodes/neg_fp16x16/output_0.cairo | 2 +- tests/nodes/neg_fp8x23.cairo | 2 +- tests/nodes/neg_fp8x23/input_0.cairo | 2 +- tests/nodes/neg_fp8x23/output_0.cairo | 2 +- tests/nodes/neg_i32.cairo | 2 +- tests/nodes/neg_i32/input_0.cairo | 2 +- tests/nodes/neg_i32/output_0.cairo | 2 +- tests/nodes/neg_i8.cairo | 2 +- tests/nodes/neg_i8/input_0.cairo | 2 +- tests/nodes/neg_i8/output_0.cairo | 2 +- tests/nodes/nonzero_fp16x16_2d.cairo | 2 +- tests/nodes/nonzero_fp16x16_2d/input_0.cairo | 2 +- tests/nodes/nonzero_fp16x16_2d/output_0.cairo | 2 +- tests/nodes/nonzero_fp16x16_3d.cairo | 2 +- tests/nodes/nonzero_fp16x16_3d/input_0.cairo | 2 +- tests/nodes/nonzero_fp16x16_3d/output_0.cairo | 2 +- tests/nodes/nonzero_fp8x23_2d.cairo | 2 +- tests/nodes/nonzero_fp8x23_2d/input_0.cairo | 2 +- tests/nodes/nonzero_fp8x23_2d/output_0.cairo | 2 +- tests/nodes/nonzero_fp8x23_3d.cairo | 2 +- tests/nodes/nonzero_fp8x23_3d/input_0.cairo | 2 +- tests/nodes/nonzero_fp8x23_3d/output_0.cairo | 2 +- tests/nodes/nonzero_i32_2d.cairo | 2 +- tests/nodes/nonzero_i32_2d/input_0.cairo | 2 +- tests/nodes/nonzero_i32_2d/output_0.cairo | 2 +- tests/nodes/nonzero_i32_3d.cairo | 2 +- tests/nodes/nonzero_i32_3d/input_0.cairo | 2 +- tests/nodes/nonzero_i32_3d/output_0.cairo | 2 +- tests/nodes/nonzero_i8_2d.cairo | 2 +- tests/nodes/nonzero_i8_2d/input_0.cairo | 2 +- tests/nodes/nonzero_i8_2d/output_0.cairo | 2 +- tests/nodes/nonzero_i8_3d.cairo | 2 +- tests/nodes/nonzero_i8_3d/input_0.cairo | 2 +- tests/nodes/nonzero_i8_3d/output_0.cairo | 2 +- tests/nodes/nonzero_u32_2d.cairo | 2 +- tests/nodes/nonzero_u32_2d/input_0.cairo | 2 +- tests/nodes/nonzero_u32_2d/output_0.cairo | 2 +- tests/nodes/nonzero_u32_3d.cairo | 2 +- tests/nodes/nonzero_u32_3d/input_0.cairo | 2 +- tests/nodes/nonzero_u32_3d/output_0.cairo | 2 +- tests/nodes/not_bool.cairo | 2 +- tests/nodes/not_bool/input_0.cairo | 2 +- tests/nodes/not_bool/output_0.cairo | 2 +- tests/nodes/or_fp16x16.cairo | 2 +- tests/nodes/or_fp16x16/input_0.cairo | 2 +- tests/nodes/or_fp16x16/input_1.cairo | 2 +- tests/nodes/or_fp16x16/output_0.cairo | 2 +- tests/nodes/or_fp16x16_broadcast.cairo | 2 +- .../nodes/or_fp16x16_broadcast/input_0.cairo | 2 +- .../nodes/or_fp16x16_broadcast/input_1.cairo | 2 +- .../nodes/or_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/or_fp8x23.cairo | 2 +- tests/nodes/or_fp8x23/input_0.cairo | 2 +- tests/nodes/or_fp8x23/input_1.cairo | 2 +- tests/nodes/or_fp8x23/output_0.cairo | 2 +- tests/nodes/or_fp8x23_broadcast.cairo | 2 +- tests/nodes/or_fp8x23_broadcast/input_0.cairo | 2 +- tests/nodes/or_fp8x23_broadcast/input_1.cairo | 2 +- .../nodes/or_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/or_i32.cairo | 2 +- tests/nodes/or_i32/input_0.cairo | 2 +- tests/nodes/or_i32/input_1.cairo | 2 +- tests/nodes/or_i32/output_0.cairo | 2 +- tests/nodes/or_i32_broadcast.cairo | 2 +- tests/nodes/or_i32_broadcast/input_0.cairo | 2 +- tests/nodes/or_i32_broadcast/input_1.cairo | 2 +- tests/nodes/or_i32_broadcast/output_0.cairo | 2 +- tests/nodes/or_i8.cairo | 2 +- tests/nodes/or_i8/input_0.cairo | 2 +- tests/nodes/or_i8/input_1.cairo | 2 +- tests/nodes/or_i8/output_0.cairo | 2 +- tests/nodes/or_i8_broadcast.cairo | 2 +- tests/nodes/or_i8_broadcast/input_0.cairo | 2 +- tests/nodes/or_i8_broadcast/input_1.cairo | 2 +- tests/nodes/or_i8_broadcast/output_0.cairo | 2 +- tests/nodes/or_u32.cairo | 2 +- tests/nodes/or_u32/input_0.cairo | 2 +- tests/nodes/or_u32/input_1.cairo | 2 +- tests/nodes/or_u32/output_0.cairo | 2 +- tests/nodes/or_u32_broadcast.cairo | 2 +- tests/nodes/or_u32_broadcast/input_0.cairo | 2 +- tests/nodes/or_u32_broadcast/input_1.cairo | 2 +- tests/nodes/or_u32_broadcast/output_0.cairo | 2 +- tests/nodes/pow_fp16x16.cairo | 2 +- tests/nodes/pow_fp16x16/input_0.cairo | 2 +- tests/nodes/pow_fp16x16/input_1.cairo | 2 +- tests/nodes/pow_fp16x16/output_0.cairo | 2 +- tests/nodes/pow_fp16x16_broadcast.cairo | 2 +- .../nodes/pow_fp16x16_broadcast/input_0.cairo | 2 +- .../nodes/pow_fp16x16_broadcast/input_1.cairo | 2 +- .../pow_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/pow_fp8x23.cairo | 2 +- tests/nodes/pow_fp8x23/input_0.cairo | 2 +- tests/nodes/pow_fp8x23/input_1.cairo | 2 +- tests/nodes/pow_fp8x23/output_0.cairo | 2 +- tests/nodes/pow_fp8x23_broadcast.cairo | 2 +- .../nodes/pow_fp8x23_broadcast/input_0.cairo | 2 +- .../nodes/pow_fp8x23_broadcast/input_1.cairo | 2 +- .../nodes/pow_fp8x23_broadcast/output_0.cairo | 2 +- ...ce_l1_fp16x16_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_l1_fp16x16_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...p16x16_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...uce_l1_fp8x23_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_l1_fp8x23_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...fp8x23_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...reduce_l1_i32_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_l1_i32_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...l1_i32_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_l1_i8_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_l1_i8_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ..._l1_i8_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...reduce_l1_u32_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_l1_u32_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...l1_u32_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...ce_l2_fp16x16_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_l2_fp16x16_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...p16x16_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...uce_l2_fp8x23_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_l2_fp8x23_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...fp8x23_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_mean_fp16x16_1D.cairo | 2 +- .../reduce_mean_fp16x16_1D/input_0.cairo | 2 +- .../reduce_mean_fp16x16_1D/output_0.cairo | 2 +- .../nodes/reduce_mean_fp16x16_2D_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_mean_fp16x16_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_mean_fp16x16_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_mean_fp8x23_1D.cairo | 2 +- .../nodes/reduce_mean_fp8x23_1D/input_0.cairo | 2 +- .../reduce_mean_fp8x23_1D/output_0.cairo | 2 +- .../nodes/reduce_mean_fp8x23_2D_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_mean_fp8x23_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_mean_fp8x23_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_mean_i32_1D.cairo | 2 +- tests/nodes/reduce_mean_i32_1D/input_0.cairo | 2 +- tests/nodes/reduce_mean_i32_1D/output_0.cairo | 2 +- tests/nodes/reduce_mean_i32_2D_axis_1.cairo | 2 +- .../reduce_mean_i32_2D_axis_1/input_0.cairo | 2 +- .../reduce_mean_i32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_mean_i32_2D_default.cairo | 2 +- .../reduce_mean_i32_2D_default/input_0.cairo | 2 +- .../reduce_mean_i32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_mean_i32_2D_keepdims.cairo | 2 +- .../reduce_mean_i32_2D_keepdims/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_mean_i8_1D.cairo | 2 +- tests/nodes/reduce_mean_i8_1D/input_0.cairo | 2 +- tests/nodes/reduce_mean_i8_1D/output_0.cairo | 2 +- tests/nodes/reduce_mean_i8_2D_axis_1.cairo | 2 +- .../reduce_mean_i8_2D_axis_1/input_0.cairo | 2 +- .../reduce_mean_i8_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_mean_i8_2D_default.cairo | 2 +- .../reduce_mean_i8_2D_default/input_0.cairo | 2 +- .../reduce_mean_i8_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_mean_i8_2D_keepdims.cairo | 2 +- .../reduce_mean_i8_2D_keepdims/input_0.cairo | 2 +- .../reduce_mean_i8_2D_keepdims/output_0.cairo | 2 +- tests/nodes/reduce_mean_u32_1D.cairo | 2 +- tests/nodes/reduce_mean_u32_1D/input_0.cairo | 2 +- tests/nodes/reduce_mean_u32_1D/output_0.cairo | 2 +- tests/nodes/reduce_mean_u32_2D_axis_1.cairo | 2 +- .../reduce_mean_u32_2D_axis_1/input_0.cairo | 2 +- .../reduce_mean_u32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_mean_u32_2D_default.cairo | 2 +- .../reduce_mean_u32_2D_default/input_0.cairo | 2 +- .../reduce_mean_u32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_mean_u32_2D_keepdims.cairo | 2 +- .../reduce_mean_u32_2D_keepdims/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_min_fp16x16_1D.cairo | 2 +- .../nodes/reduce_min_fp16x16_1D/input_0.cairo | 2 +- .../reduce_min_fp16x16_1D/output_0.cairo | 2 +- .../nodes/reduce_min_fp16x16_2D_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_min_fp16x16_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_min_fp16x16_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_min_fp8x23_1D.cairo | 2 +- .../nodes/reduce_min_fp8x23_1D/input_0.cairo | 2 +- .../nodes/reduce_min_fp8x23_1D/output_0.cairo | 2 +- tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo | 2 +- .../reduce_min_fp8x23_2D_axis_1/input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_min_fp8x23_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_min_fp8x23_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_min_i32_1D.cairo | 2 +- tests/nodes/reduce_min_i32_1D/input_0.cairo | 2 +- tests/nodes/reduce_min_i32_1D/output_0.cairo | 2 +- tests/nodes/reduce_min_i32_2D_axis_1.cairo | 2 +- .../reduce_min_i32_2D_axis_1/input_0.cairo | 2 +- .../reduce_min_i32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_min_i32_2D_default.cairo | 2 +- .../reduce_min_i32_2D_default/input_0.cairo | 2 +- .../reduce_min_i32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_min_i32_2D_keepdims.cairo | 2 +- .../reduce_min_i32_2D_keepdims/input_0.cairo | 2 +- .../reduce_min_i32_2D_keepdims/output_0.cairo | 2 +- tests/nodes/reduce_min_i8_1D.cairo | 2 +- tests/nodes/reduce_min_i8_1D/input_0.cairo | 2 +- tests/nodes/reduce_min_i8_1D/output_0.cairo | 2 +- tests/nodes/reduce_min_i8_2D_axis_1.cairo | 2 +- .../reduce_min_i8_2D_axis_1/input_0.cairo | 2 +- .../reduce_min_i8_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_min_i8_2D_default.cairo | 2 +- .../reduce_min_i8_2D_default/input_0.cairo | 2 +- .../reduce_min_i8_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_min_i8_2D_keepdims.cairo | 2 +- .../reduce_min_i8_2D_keepdims/input_0.cairo | 2 +- .../reduce_min_i8_2D_keepdims/output_0.cairo | 2 +- tests/nodes/reduce_min_u32_1D.cairo | 2 +- tests/nodes/reduce_min_u32_1D/input_0.cairo | 2 +- tests/nodes/reduce_min_u32_1D/output_0.cairo | 2 +- tests/nodes/reduce_min_u32_2D_axis_1.cairo | 2 +- .../reduce_min_u32_2D_axis_1/input_0.cairo | 2 +- .../reduce_min_u32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_min_u32_2D_default.cairo | 2 +- .../reduce_min_u32_2D_default/input_0.cairo | 2 +- .../reduce_min_u32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_min_u32_2D_keepdims.cairo | 2 +- .../reduce_min_u32_2D_keepdims/input_0.cairo | 2 +- .../reduce_min_u32_2D_keepdims/output_0.cairo | 2 +- tests/nodes/reduce_prod_fp16x16_1D.cairo | 2 +- .../reduce_prod_fp16x16_1D/input_0.cairo | 2 +- .../reduce_prod_fp16x16_1D/output_0.cairo | 2 +- .../nodes/reduce_prod_fp16x16_2D_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_prod_fp16x16_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_prod_fp16x16_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_prod_fp8x23_1D.cairo | 2 +- .../nodes/reduce_prod_fp8x23_1D/input_0.cairo | 2 +- .../reduce_prod_fp8x23_1D/output_0.cairo | 2 +- .../nodes/reduce_prod_fp8x23_2D_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_prod_fp8x23_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_prod_fp8x23_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_prod_i32_1D.cairo | 2 +- tests/nodes/reduce_prod_i32_1D/input_0.cairo | 2 +- tests/nodes/reduce_prod_i32_1D/output_0.cairo | 2 +- tests/nodes/reduce_prod_i32_2D_axis_1.cairo | 2 +- .../reduce_prod_i32_2D_axis_1/input_0.cairo | 2 +- .../reduce_prod_i32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_prod_i32_2D_default.cairo | 2 +- .../reduce_prod_i32_2D_default/input_0.cairo | 2 +- .../reduce_prod_i32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_prod_i32_2D_keepdims.cairo | 2 +- .../reduce_prod_i32_2D_keepdims/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_prod_i8_1D.cairo | 2 +- tests/nodes/reduce_prod_i8_1D/input_0.cairo | 2 +- tests/nodes/reduce_prod_i8_1D/output_0.cairo | 2 +- tests/nodes/reduce_prod_i8_2D_axis_1.cairo | 2 +- .../reduce_prod_i8_2D_axis_1/input_0.cairo | 2 +- .../reduce_prod_i8_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_prod_i8_2D_default.cairo | 2 +- .../reduce_prod_i8_2D_default/input_0.cairo | 2 +- .../reduce_prod_i8_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_prod_i8_2D_keepdims.cairo | 2 +- .../reduce_prod_i8_2D_keepdims/input_0.cairo | 2 +- .../reduce_prod_i8_2D_keepdims/output_0.cairo | 2 +- tests/nodes/reduce_prod_u32_1D.cairo | 2 +- tests/nodes/reduce_prod_u32_1D/input_0.cairo | 2 +- tests/nodes/reduce_prod_u32_1D/output_0.cairo | 2 +- tests/nodes/reduce_prod_u32_2D_axis_1.cairo | 2 +- .../reduce_prod_u32_2D_axis_1/input_0.cairo | 2 +- .../reduce_prod_u32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_prod_u32_2D_default.cairo | 2 +- .../reduce_prod_u32_2D_default/input_0.cairo | 2 +- .../reduce_prod_u32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_prod_u32_2D_keepdims.cairo | 2 +- .../reduce_prod_u32_2D_keepdims/input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_sum_fp16x16_1D.cairo | 2 +- .../nodes/reduce_sum_fp16x16_1D/input_0.cairo | 2 +- .../reduce_sum_fp16x16_1D/output_0.cairo | 2 +- .../nodes/reduce_sum_fp16x16_2D_axis_1.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_sum_fp16x16_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../reduce_sum_fp16x16_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_sum_fp8x23_1D.cairo | 2 +- .../nodes/reduce_sum_fp8x23_1D/input_0.cairo | 2 +- .../nodes/reduce_sum_fp8x23_1D/output_0.cairo | 2 +- tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo | 2 +- .../reduce_sum_fp8x23_2D_axis_1/input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_sum_fp8x23_2D_default.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/reduce_sum_fp8x23_2D_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_sum_i32_1D.cairo | 2 +- tests/nodes/reduce_sum_i32_1D/input_0.cairo | 2 +- tests/nodes/reduce_sum_i32_1D/output_0.cairo | 2 +- tests/nodes/reduce_sum_i32_2D_axis_1.cairo | 2 +- .../reduce_sum_i32_2D_axis_1/input_0.cairo | 2 +- .../reduce_sum_i32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_sum_i32_2D_default.cairo | 2 +- .../reduce_sum_i32_2D_default/input_0.cairo | 2 +- .../reduce_sum_i32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_sum_i32_2D_keepdims.cairo | 2 +- .../reduce_sum_i32_2D_keepdims/input_0.cairo | 2 +- .../reduce_sum_i32_2D_keepdims/output_0.cairo | 2 +- tests/nodes/reduce_sum_i8_1D.cairo | 2 +- tests/nodes/reduce_sum_i8_1D/input_0.cairo | 2 +- tests/nodes/reduce_sum_i8_1D/output_0.cairo | 2 +- tests/nodes/reduce_sum_i8_2D_axis_1.cairo | 2 +- .../reduce_sum_i8_2D_axis_1/input_0.cairo | 2 +- .../reduce_sum_i8_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_sum_i8_2D_default.cairo | 2 +- .../reduce_sum_i8_2D_default/input_0.cairo | 2 +- .../reduce_sum_i8_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_sum_i8_2D_keepdims.cairo | 2 +- .../reduce_sum_i8_2D_keepdims/input_0.cairo | 2 +- .../reduce_sum_i8_2D_keepdims/output_0.cairo | 2 +- ...quare_fp16x16_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...e_sum_square_fp16x16_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...p16x16_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...square_fp8x23_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...ce_sum_square_fp8x23_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...fp8x23_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...um_square_i32_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...educe_sum_square_i32_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...re_i32_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...sum_square_i8_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...reduce_sum_square_i8_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...are_i8_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...um_square_u32_export_do_not_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...educe_sum_square_u32_export_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- ...re_u32_export_negative_axes_keepdims.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/reduce_sum_u32_1D.cairo | 2 +- tests/nodes/reduce_sum_u32_1D/input_0.cairo | 2 +- tests/nodes/reduce_sum_u32_1D/output_0.cairo | 2 +- tests/nodes/reduce_sum_u32_2D_axis_1.cairo | 2 +- .../reduce_sum_u32_2D_axis_1/input_0.cairo | 2 +- .../reduce_sum_u32_2D_axis_1/output_0.cairo | 2 +- tests/nodes/reduce_sum_u32_2D_default.cairo | 2 +- .../reduce_sum_u32_2D_default/input_0.cairo | 2 +- .../reduce_sum_u32_2D_default/output_0.cairo | 2 +- tests/nodes/reduce_sum_u32_2D_keepdims.cairo | 2 +- .../reduce_sum_u32_2D_keepdims/input_0.cairo | 2 +- .../reduce_sum_u32_2D_keepdims/output_0.cairo | 2 +- tests/nodes/relu_fp16x16/input_0.cairo | 2 +- tests/nodes/relu_fp16x16/output_0.cairo | 2 +- tests/nodes/relu_fp8x23/input_0.cairo | 2 +- tests/nodes/relu_fp8x23/output_0.cairo | 2 +- tests/nodes/relu_i32/input_0.cairo | 2 +- tests/nodes/relu_i32/output_0.cairo | 2 +- tests/nodes/relu_i8/input_0.cairo | 2 +- tests/nodes/relu_i8/output_0.cairo | 2 +- tests/nodes/round_fp16x16.cairo | 2 +- tests/nodes/round_fp16x16/input_0.cairo | 2 +- tests/nodes/round_fp16x16/output_0.cairo | 2 +- tests/nodes/round_fp8x23.cairo | 2 +- tests/nodes/round_fp8x23/input_0.cairo | 2 +- tests/nodes/round_fp8x23/output_0.cairo | 2 +- tests/nodes/scatter_fp16x16_3d_axis1.cairo | 2 +- .../scatter_fp16x16_3d_axis1/input_0.cairo | 2 +- .../scatter_fp16x16_3d_axis1/input_1.cairo | 2 +- .../scatter_fp16x16_3d_axis1/input_2.cairo | 2 +- .../scatter_fp16x16_3d_axis1/output_0.cairo | 2 +- .../nodes/scatter_fp16x16_3d_axis1_add.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../input_2.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/scatter_fp16x16_3d_default.cairo | 2 +- .../scatter_fp16x16_3d_default/input_0.cairo | 2 +- .../scatter_fp16x16_3d_default/input_1.cairo | 2 +- .../scatter_fp16x16_3d_default/input_2.cairo | 2 +- .../scatter_fp16x16_3d_default/output_0.cairo | 2 +- tests/nodes/scatter_fp8x23_axis1.cairo | 2 +- .../nodes/scatter_fp8x23_axis1/input_0.cairo | 2 +- .../nodes/scatter_fp8x23_axis1/input_1.cairo | 2 +- .../nodes/scatter_fp8x23_axis1/input_2.cairo | 2 +- .../nodes/scatter_fp8x23_axis1/output_0.cairo | 2 +- tests/nodes/scatter_fp8x23_default.cairo | 2 +- .../scatter_fp8x23_default/input_0.cairo | 2 +- .../scatter_fp8x23_default/input_1.cairo | 2 +- .../scatter_fp8x23_default/input_2.cairo | 2 +- .../scatter_fp8x23_default/output_0.cairo | 2 +- tests/nodes/scatter_fp8x23_mul.cairo | 2 +- tests/nodes/scatter_fp8x23_mul/input_0.cairo | 2 +- tests/nodes/scatter_fp8x23_mul/input_1.cairo | 2 +- tests/nodes/scatter_fp8x23_mul/input_2.cairo | 2 +- tests/nodes/scatter_fp8x23_mul/output_0.cairo | 2 +- tests/nodes/scatter_i8_axis1.cairo | 2 +- tests/nodes/scatter_i8_axis1/input_0.cairo | 2 +- tests/nodes/scatter_i8_axis1/input_1.cairo | 2 +- tests/nodes/scatter_i8_axis1/input_2.cairo | 2 +- tests/nodes/scatter_i8_axis1/output_0.cairo | 2 +- tests/nodes/scatter_i8_axis1_max.cairo | 2 +- .../nodes/scatter_i8_axis1_max/input_0.cairo | 2 +- .../nodes/scatter_i8_axis1_max/input_1.cairo | 2 +- .../nodes/scatter_i8_axis1_max/input_2.cairo | 2 +- .../nodes/scatter_i8_axis1_max/output_0.cairo | 2 +- tests/nodes/scatter_i8_default.cairo | 2 +- tests/nodes/scatter_i8_default/input_0.cairo | 2 +- tests/nodes/scatter_i8_default/input_1.cairo | 2 +- tests/nodes/scatter_i8_default/input_2.cairo | 2 +- tests/nodes/scatter_i8_default/output_0.cairo | 2 +- tests/nodes/scatter_u32_add.cairo | 2 +- tests/nodes/scatter_u32_add/input_0.cairo | 2 +- tests/nodes/scatter_u32_add/input_1.cairo | 2 +- tests/nodes/scatter_u32_add/input_2.cairo | 2 +- tests/nodes/scatter_u32_add/output_0.cairo | 2 +- tests/nodes/scatter_u32_axis1.cairo | 2 +- tests/nodes/scatter_u32_axis1/input_0.cairo | 2 +- tests/nodes/scatter_u32_axis1/input_1.cairo | 2 +- tests/nodes/scatter_u32_axis1/input_2.cairo | 2 +- tests/nodes/scatter_u32_axis1/output_0.cairo | 2 +- tests/nodes/scatter_u32_default.cairo | 2 +- tests/nodes/scatter_u32_default/input_0.cairo | 2 +- tests/nodes/scatter_u32_default/input_1.cairo | 2 +- tests/nodes/scatter_u32_default/input_2.cairo | 2 +- .../nodes/scatter_u32_default/output_0.cairo | 2 +- .../nodes/sequence_at_fp16x16_negative.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../nodes/sequence_at_fp16x16_positive.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_at_fp8x23_negative.cairo | 2 +- .../sequence_at_fp8x23_negative/input_0.cairo | 2 +- .../sequence_at_fp8x23_negative/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_at_fp8x23_positive.cairo | 2 +- .../sequence_at_fp8x23_positive/input_0.cairo | 2 +- .../sequence_at_fp8x23_positive/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_at_i32_negative.cairo | 2 +- .../sequence_at_i32_negative/input_0.cairo | 2 +- .../sequence_at_i32_negative/input_1.cairo | 2 +- .../sequence_at_i32_negative/output_0.cairo | 2 +- tests/nodes/sequence_at_i32_positive.cairo | 2 +- .../sequence_at_i32_positive/input_0.cairo | 2 +- .../sequence_at_i32_positive/input_1.cairo | 2 +- .../sequence_at_i32_positive/output_0.cairo | 2 +- tests/nodes/sequence_at_i8_negative.cairo | 2 +- .../sequence_at_i8_negative/input_0.cairo | 2 +- .../sequence_at_i8_negative/input_1.cairo | 2 +- .../sequence_at_i8_negative/output_0.cairo | 2 +- tests/nodes/sequence_at_i8_positive.cairo | 2 +- .../sequence_at_i8_positive/input_0.cairo | 2 +- .../sequence_at_i8_positive/input_1.cairo | 2 +- .../sequence_at_i8_positive/output_0.cairo | 2 +- tests/nodes/sequence_at_u32_negative.cairo | 2 +- .../sequence_at_u32_negative/input_0.cairo | 2 +- .../sequence_at_u32_negative/input_1.cairo | 2 +- .../sequence_at_u32_negative/output_0.cairo | 2 +- tests/nodes/sequence_at_u32_positive.cairo | 2 +- .../sequence_at_u32_positive/input_0.cairo | 2 +- .../sequence_at_u32_positive/input_1.cairo | 2 +- .../sequence_at_u32_positive/output_0.cairo | 2 +- tests/nodes/sequence_construct_fp16x16.cairo | 2 +- .../sequence_construct_fp16x16/input_0.cairo | 2 +- .../sequence_construct_fp16x16/output_0.cairo | 2 +- tests/nodes/sequence_construct_fp8x23.cairo | 2 +- .../sequence_construct_fp8x23/input_0.cairo | 2 +- .../sequence_construct_fp8x23/output_0.cairo | 2 +- tests/nodes/sequence_construct_i32.cairo | 2 +- .../sequence_construct_i32/input_0.cairo | 2 +- .../sequence_construct_i32/output_0.cairo | 2 +- tests/nodes/sequence_construct_i8.cairo | 2 +- .../nodes/sequence_construct_i8/input_0.cairo | 2 +- .../sequence_construct_i8/output_0.cairo | 2 +- tests/nodes/sequence_construct_u32.cairo | 2 +- .../sequence_construct_u32/input_0.cairo | 2 +- .../sequence_construct_u32/output_0.cairo | 2 +- tests/nodes/sequence_empty_fp16x16.cairo | 2 +- .../sequence_empty_fp16x16/output_0.cairo | 2 +- tests/nodes/sequence_empty_fp8x23.cairo | 2 +- .../sequence_empty_fp8x23/output_0.cairo | 2 +- tests/nodes/sequence_empty_i32.cairo | 2 +- tests/nodes/sequence_empty_i32/output_0.cairo | 2 +- tests/nodes/sequence_empty_i8.cairo | 2 +- tests/nodes/sequence_empty_i8/output_0.cairo | 2 +- tests/nodes/sequence_empty_u32.cairo | 2 +- tests/nodes/sequence_empty_u32/output_0.cairo | 2 +- .../nodes/sequence_erase_fp16x16_empty.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../sequence_erase_fp16x16_negative.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../sequence_erase_fp16x16_positive.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_erase_fp8x23_empty.cairo | 2 +- .../sequence_erase_fp8x23_empty/input_0.cairo | 2 +- .../output_0.cairo | 2 +- .../sequence_erase_fp8x23_negative.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- .../sequence_erase_fp8x23_positive.cairo | 2 +- .../input_0.cairo | 2 +- .../input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_erase_i32_empty.cairo | 2 +- .../sequence_erase_i32_empty/input_0.cairo | 2 +- .../sequence_erase_i32_empty/output_0.cairo | 2 +- tests/nodes/sequence_erase_i32_negative.cairo | 2 +- .../sequence_erase_i32_negative/input_0.cairo | 2 +- .../sequence_erase_i32_negative/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_erase_i32_positive.cairo | 2 +- .../sequence_erase_i32_positive/input_0.cairo | 2 +- .../sequence_erase_i32_positive/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_erase_i8_empty.cairo | 2 +- .../sequence_erase_i8_empty/input_0.cairo | 2 +- .../sequence_erase_i8_empty/output_0.cairo | 2 +- tests/nodes/sequence_erase_i8_negative.cairo | 2 +- .../sequence_erase_i8_negative/input_0.cairo | 2 +- .../sequence_erase_i8_negative/input_1.cairo | 2 +- .../sequence_erase_i8_negative/output_0.cairo | 2 +- tests/nodes/sequence_erase_i8_positive.cairo | 2 +- .../sequence_erase_i8_positive/input_0.cairo | 2 +- .../sequence_erase_i8_positive/input_1.cairo | 2 +- .../sequence_erase_i8_positive/output_0.cairo | 2 +- tests/nodes/sequence_erase_u32_empty.cairo | 2 +- .../sequence_erase_u32_empty/input_0.cairo | 2 +- .../sequence_erase_u32_empty/output_0.cairo | 2 +- tests/nodes/sequence_erase_u32_negative.cairo | 2 +- .../sequence_erase_u32_negative/input_0.cairo | 2 +- .../sequence_erase_u32_negative/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_erase_u32_positive.cairo | 2 +- .../sequence_erase_u32_positive/input_0.cairo | 2 +- .../sequence_erase_u32_positive/input_1.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_insert_fp16x16.cairo | 2 +- .../sequence_insert_fp16x16/input_0.cairo | 2 +- .../sequence_insert_fp16x16/input_1.cairo | 2 +- .../sequence_insert_fp16x16/input_2.cairo | 2 +- .../sequence_insert_fp16x16/output_0.cairo | 2 +- tests/nodes/sequence_insert_fp8x23.cairo | 2 +- .../sequence_insert_fp8x23/input_0.cairo | 2 +- .../sequence_insert_fp8x23/input_1.cairo | 2 +- .../sequence_insert_fp8x23/input_2.cairo | 2 +- .../sequence_insert_fp8x23/output_0.cairo | 2 +- tests/nodes/sequence_insert_i32.cairo | 2 +- tests/nodes/sequence_insert_i32/input_0.cairo | 2 +- tests/nodes/sequence_insert_i32/input_1.cairo | 2 +- tests/nodes/sequence_insert_i32/input_2.cairo | 2 +- .../nodes/sequence_insert_i32/output_0.cairo | 2 +- tests/nodes/sequence_insert_i8.cairo | 2 +- tests/nodes/sequence_insert_i8/input_0.cairo | 2 +- tests/nodes/sequence_insert_i8/input_1.cairo | 2 +- tests/nodes/sequence_insert_i8/input_2.cairo | 2 +- tests/nodes/sequence_insert_i8/output_0.cairo | 2 +- tests/nodes/sequence_insert_u32.cairo | 2 +- tests/nodes/sequence_insert_u32/input_0.cairo | 2 +- tests/nodes/sequence_insert_u32/input_1.cairo | 2 +- tests/nodes/sequence_insert_u32/input_2.cairo | 2 +- .../nodes/sequence_insert_u32/output_0.cairo | 2 +- tests/nodes/sequence_length_fp16x16.cairo | 2 +- .../sequence_length_fp16x16/input_0.cairo | 2 +- .../sequence_length_fp16x16/output_0.cairo | 2 +- .../sequence_length_fp16x16_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_length_fp8x23.cairo | 2 +- .../sequence_length_fp8x23/input_0.cairo | 2 +- .../sequence_length_fp8x23/output_0.cairo | 2 +- .../sequence_length_fp8x23_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_length_i32.cairo | 2 +- tests/nodes/sequence_length_i32/input_0.cairo | 2 +- .../nodes/sequence_length_i32/output_0.cairo | 2 +- .../nodes/sequence_length_i32_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_length_i8.cairo | 2 +- tests/nodes/sequence_length_i8/input_0.cairo | 2 +- tests/nodes/sequence_length_i8/output_0.cairo | 2 +- .../nodes/sequence_length_i8_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/sequence_length_u32.cairo | 2 +- tests/nodes/sequence_length_u32/input_0.cairo | 2 +- .../nodes/sequence_length_u32/output_0.cairo | 2 +- .../nodes/sequence_length_u32_broadcast.cairo | 2 +- .../input_0.cairo | 2 +- .../output_0.cairo | 2 +- tests/nodes/shrink_hard_fp16x16.cairo | 2 +- tests/nodes/shrink_hard_fp16x16/input_0.cairo | 2 +- .../nodes/shrink_hard_fp16x16/output_0.cairo | 2 +- tests/nodes/shrink_hard_fp8x23.cairo | 2 +- tests/nodes/shrink_hard_fp8x23/input_0.cairo | 2 +- tests/nodes/shrink_hard_fp8x23/output_0.cairo | 2 +- tests/nodes/shrink_soft_fp16x16.cairo | 2 +- tests/nodes/shrink_soft_fp16x16/input_0.cairo | 2 +- .../nodes/shrink_soft_fp16x16/output_0.cairo | 2 +- tests/nodes/shrink_soft_fp8x23.cairo | 2 +- tests/nodes/shrink_soft_fp8x23/input_0.cairo | 2 +- tests/nodes/shrink_soft_fp8x23/output_0.cairo | 2 +- tests/nodes/sigmoid_fp16x16/input_0.cairo | 2 +- tests/nodes/sigmoid_fp16x16/output_0.cairo | 2 +- tests/nodes/sigmoid_fp8x23/input_0.cairo | 2 +- tests/nodes/sigmoid_fp8x23/output_0.cairo | 2 +- tests/nodes/sign_fP16x16.cairo | 2 +- tests/nodes/sign_fP16x16/input_0.cairo | 2 +- tests/nodes/sign_fP16x16/output_0.cairo | 2 +- tests/nodes/sign_fP8x23.cairo | 2 +- tests/nodes/sign_fP8x23/input_0.cairo | 2 +- tests/nodes/sign_fP8x23/output_0.cairo | 2 +- tests/nodes/sign_fail.cairo | 2 +- tests/nodes/sign_fail/input_0.cairo | 2 +- tests/nodes/sign_fail/output_0.cairo | 2 +- tests/nodes/sign_i32.cairo | 2 +- tests/nodes/sign_i32/input_0.cairo | 2 +- tests/nodes/sign_i32/output_0.cairo | 2 +- tests/nodes/sign_i8.cairo | 2 +- tests/nodes/sign_i8/input_0.cairo | 2 +- tests/nodes/sign_i8/output_0.cairo | 2 +- tests/nodes/sin_fp16x16.cairo | 2 +- tests/nodes/sin_fp16x16/input_0.cairo | 2 +- tests/nodes/sin_fp16x16/output_0.cairo | 2 +- tests/nodes/sin_fp8x23.cairo | 2 +- tests/nodes/sin_fp8x23/input_0.cairo | 2 +- tests/nodes/sin_fp8x23/output_0.cairo | 2 +- tests/nodes/sinh_fp16x16.cairo | 2 +- tests/nodes/sinh_fp16x16/input_0.cairo | 2 +- tests/nodes/sinh_fp16x16/output_0.cairo | 2 +- tests/nodes/sinh_fp8x23.cairo | 2 +- tests/nodes/sinh_fp8x23/input_0.cairo | 2 +- tests/nodes/sinh_fp8x23/output_0.cairo | 2 +- tests/nodes/slice_fp16x16_2d.cairo | 2 +- tests/nodes/slice_fp16x16_2d/input_0.cairo | 2 +- tests/nodes/slice_fp16x16_2d/output_0.cairo | 2 +- tests/nodes/slice_fp16x16_3d.cairo | 2 +- tests/nodes/slice_fp16x16_3d/input_0.cairo | 2 +- tests/nodes/slice_fp16x16_3d/output_0.cairo | 2 +- tests/nodes/slice_fp8x23_2d.cairo | 2 +- tests/nodes/slice_fp8x23_2d/input_0.cairo | 2 +- tests/nodes/slice_fp8x23_2d/output_0.cairo | 2 +- tests/nodes/slice_fp8x23_3d.cairo | 2 +- tests/nodes/slice_fp8x23_3d/input_0.cairo | 2 +- tests/nodes/slice_fp8x23_3d/output_0.cairo | 2 +- tests/nodes/slice_i32_2d.cairo | 2 +- tests/nodes/slice_i32_2d/input_0.cairo | 2 +- tests/nodes/slice_i32_2d/output_0.cairo | 2 +- tests/nodes/slice_i32_3d.cairo | 2 +- tests/nodes/slice_i32_3d/input_0.cairo | 2 +- tests/nodes/slice_i32_3d/output_0.cairo | 2 +- tests/nodes/slice_i8_2d.cairo | 2 +- tests/nodes/slice_i8_2d/input_0.cairo | 2 +- tests/nodes/slice_i8_2d/output_0.cairo | 2 +- tests/nodes/slice_i8_3d.cairo | 2 +- tests/nodes/slice_i8_3d/input_0.cairo | 2 +- tests/nodes/slice_i8_3d/output_0.cairo | 2 +- tests/nodes/slice_u32_2d.cairo | 2 +- tests/nodes/slice_u32_2d/input_0.cairo | 2 +- tests/nodes/slice_u32_2d/output_0.cairo | 2 +- tests/nodes/slice_u32_3d.cairo | 2 +- tests/nodes/slice_u32_3d/input_0.cairo | 2 +- tests/nodes/slice_u32_3d/output_0.cairo | 2 +- tests/nodes/softmax_fp16x16/input_0.cairo | 2 +- tests/nodes/softmax_fp16x16/output_0.cairo | 2 +- tests/nodes/softmax_fp8x23/input_0.cairo | 2 +- tests/nodes/softmax_fp8x23/output_0.cairo | 2 +- tests/nodes/softplus_fp16x16/input_0.cairo | 2 +- tests/nodes/softplus_fp16x16/output_0.cairo | 2 +- tests/nodes/softplus_fp8x23/input_0.cairo | 2 +- tests/nodes/softplus_fp8x23/output_0.cairo | 2 +- tests/nodes/softsign_fp16x16/input_0.cairo | 2 +- tests/nodes/softsign_fp16x16/output_0.cairo | 2 +- tests/nodes/softsign_fp8x23/input_0.cairo | 2 +- tests/nodes/softsign_fp8x23/output_0.cairo | 2 +- tests/nodes/sqrt_fp16x16.cairo | 2 +- tests/nodes/sqrt_fp16x16/input_0.cairo | 2 +- tests/nodes/sqrt_fp16x16/output_0.cairo | 2 +- tests/nodes/sqrt_fp8x23.cairo | 2 +- tests/nodes/sqrt_fp8x23/input_0.cairo | 2 +- tests/nodes/sqrt_fp8x23/output_0.cairo | 2 +- tests/nodes/squeeze_fP16x16.cairo | 2 +- tests/nodes/squeeze_fP16x16/input_0.cairo | 2 +- tests/nodes/squeeze_fP16x16/output_0.cairo | 2 +- tests/nodes/squeeze_fP8x23.cairo | 2 +- tests/nodes/squeeze_fP8x23/input_0.cairo | 2 +- tests/nodes/squeeze_fP8x23/output_0.cairo | 2 +- tests/nodes/squeeze_i32.cairo | 2 +- tests/nodes/squeeze_i32/input_0.cairo | 2 +- tests/nodes/squeeze_i32/output_0.cairo | 2 +- tests/nodes/squeeze_i8.cairo | 2 +- tests/nodes/squeeze_i8/input_0.cairo | 2 +- tests/nodes/squeeze_i8/output_0.cairo | 2 +- tests/nodes/squeeze_u32.cairo | 2 +- tests/nodes/squeeze_u32/input_0.cairo | 2 +- tests/nodes/squeeze_u32/output_0.cairo | 2 +- .../nodes/squeeze_u32/output_negatives.cairo | 2 +- tests/nodes/squeeze_u32/output_non_axes.cairo | 2 +- tests/nodes/sub_fp16x16.cairo | 2 +- tests/nodes/sub_fp16x16/input_0.cairo | 2 +- tests/nodes/sub_fp16x16/input_1.cairo | 2 +- tests/nodes/sub_fp16x16/output_0.cairo | 2 +- tests/nodes/sub_fp16x16_broadcast.cairo | 2 +- .../nodes/sub_fp16x16_broadcast/input_0.cairo | 2 +- .../nodes/sub_fp16x16_broadcast/input_1.cairo | 2 +- .../sub_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/sub_fp8x23.cairo | 2 +- tests/nodes/sub_fp8x23/input_0.cairo | 2 +- tests/nodes/sub_fp8x23/input_1.cairo | 2 +- tests/nodes/sub_fp8x23/output_0.cairo | 2 +- tests/nodes/sub_fp8x23_broadcast.cairo | 2 +- .../nodes/sub_fp8x23_broadcast/input_0.cairo | 2 +- .../nodes/sub_fp8x23_broadcast/input_1.cairo | 2 +- .../nodes/sub_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/sub_i32.cairo | 2 +- tests/nodes/sub_i32/input_0.cairo | 2 +- tests/nodes/sub_i32/input_1.cairo | 2 +- tests/nodes/sub_i32/output_0.cairo | 2 +- tests/nodes/sub_i32_broadcast.cairo | 2 +- tests/nodes/sub_i32_broadcast/input_0.cairo | 2 +- tests/nodes/sub_i32_broadcast/input_1.cairo | 2 +- tests/nodes/sub_i32_broadcast/output_0.cairo | 2 +- tests/nodes/sub_i8.cairo | 2 +- tests/nodes/sub_i8/input_0.cairo | 2 +- tests/nodes/sub_i8/input_1.cairo | 2 +- tests/nodes/sub_i8/output_0.cairo | 2 +- tests/nodes/sub_i8_broadcast.cairo | 2 +- tests/nodes/sub_i8_broadcast/input_0.cairo | 2 +- tests/nodes/sub_i8_broadcast/input_1.cairo | 2 +- tests/nodes/sub_i8_broadcast/output_0.cairo | 2 +- tests/nodes/sub_u32.cairo | 2 +- tests/nodes/sub_u32/input_0.cairo | 2 +- tests/nodes/sub_u32/input_1.cairo | 2 +- tests/nodes/sub_u32/output_0.cairo | 2 +- tests/nodes/sub_u32_broadcast.cairo | 2 +- tests/nodes/sub_u32_broadcast/input_0.cairo | 2 +- tests/nodes/sub_u32_broadcast/input_1.cairo | 2 +- tests/nodes/sub_u32_broadcast/output_0.cairo | 2 +- tests/nodes/tanh_fp16x16.cairo | 2 +- tests/nodes/tanh_fp16x16/input_0.cairo | 2 +- tests/nodes/tanh_fp16x16/output_0.cairo | 2 +- tests/nodes/tanh_fp8x23.cairo | 2 +- tests/nodes/tanh_fp8x23/input_0.cairo | 2 +- tests/nodes/tanh_fp8x23/output_0.cairo | 2 +- .../thresholded_relu_fp16x16/input_0.cairo | 2 +- .../thresholded_relu_fp16x16/output_0.cairo | 2 +- .../thresholded_relu_fp8x23/input_0.cairo | 2 +- .../thresholded_relu_fp8x23/output_0.cairo | 2 +- tests/nodes/transpose_fp16x16_2d.cairo | 2 +- .../nodes/transpose_fp16x16_2d/input_0.cairo | 2 +- .../nodes/transpose_fp16x16_2d/output_0.cairo | 2 +- tests/nodes/transpose_fp16x16_3d.cairo | 2 +- .../nodes/transpose_fp16x16_3d/input_0.cairo | 2 +- .../nodes/transpose_fp16x16_3d/output_0.cairo | 2 +- tests/nodes/transpose_fp8x23_2d.cairo | 2 +- tests/nodes/transpose_fp8x23_2d/input_0.cairo | 2 +- .../nodes/transpose_fp8x23_2d/output_0.cairo | 2 +- tests/nodes/transpose_fp8x23_3d.cairo | 2 +- tests/nodes/transpose_fp8x23_3d/input_0.cairo | 2 +- .../nodes/transpose_fp8x23_3d/output_0.cairo | 2 +- tests/nodes/transpose_i32_2d.cairo | 2 +- tests/nodes/transpose_i32_2d/input_0.cairo | 2 +- tests/nodes/transpose_i32_2d/output_0.cairo | 2 +- tests/nodes/transpose_i32_3d.cairo | 2 +- tests/nodes/transpose_i32_3d/input_0.cairo | 2 +- tests/nodes/transpose_i32_3d/output_0.cairo | 2 +- tests/nodes/transpose_i8_2d.cairo | 2 +- tests/nodes/transpose_i8_2d/input_0.cairo | 2 +- tests/nodes/transpose_i8_2d/output_0.cairo | 2 +- tests/nodes/transpose_i8_3d.cairo | 2 +- tests/nodes/transpose_i8_3d/input_0.cairo | 2 +- tests/nodes/transpose_i8_3d/output_0.cairo | 2 +- tests/nodes/transpose_u32_2d.cairo | 2 +- tests/nodes/transpose_u32_2d/input_0.cairo | 2 +- tests/nodes/transpose_u32_2d/output_0.cairo | 2 +- tests/nodes/transpose_u32_3d.cairo | 2 +- tests/nodes/transpose_u32_3d/input_0.cairo | 2 +- tests/nodes/transpose_u32_3d/output_0.cairo | 2 +- tests/nodes/tril_fp16x16.cairo | 2 +- tests/nodes/tril_fp16x16/input_0.cairo | 2 +- tests/nodes/tril_fp16x16/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_neg.cairo | 2 +- tests/nodes/tril_fp16x16_neg/input_0.cairo | 2 +- tests/nodes/tril_fp16x16_neg/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_one_row.cairo | 2 +- .../nodes/tril_fp16x16_one_row/input_0.cairo | 2 +- .../nodes/tril_fp16x16_one_row/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_out_neg.cairo | 2 +- .../nodes/tril_fp16x16_out_neg/input_0.cairo | 2 +- .../nodes/tril_fp16x16_out_neg/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_out_pos.cairo | 2 +- .../nodes/tril_fp16x16_out_pos/input_0.cairo | 2 +- .../nodes/tril_fp16x16_out_pos/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_pos.cairo | 2 +- tests/nodes/tril_fp16x16_pos/input_0.cairo | 2 +- tests/nodes/tril_fp16x16_pos/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_square.cairo | 2 +- tests/nodes/tril_fp16x16_square/input_0.cairo | 2 +- .../nodes/tril_fp16x16_square/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_square_neg.cairo | 2 +- .../tril_fp16x16_square_neg/input_0.cairo | 2 +- .../tril_fp16x16_square_neg/output_0.cairo | 2 +- tests/nodes/tril_fp16x16_zero.cairo | 2 +- tests/nodes/tril_fp16x16_zero/input_0.cairo | 2 +- tests/nodes/tril_fp16x16_zero/output_0.cairo | 2 +- tests/nodes/tril_fp8x23.cairo | 2 +- tests/nodes/tril_fp8x23/input_0.cairo | 2 +- tests/nodes/tril_fp8x23/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_neg.cairo | 2 +- tests/nodes/tril_fp8x23_neg/input_0.cairo | 2 +- tests/nodes/tril_fp8x23_neg/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_one_row.cairo | 2 +- tests/nodes/tril_fp8x23_one_row/input_0.cairo | 2 +- .../nodes/tril_fp8x23_one_row/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_out_neg.cairo | 2 +- tests/nodes/tril_fp8x23_out_neg/input_0.cairo | 2 +- .../nodes/tril_fp8x23_out_neg/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_out_pos.cairo | 2 +- tests/nodes/tril_fp8x23_out_pos/input_0.cairo | 2 +- .../nodes/tril_fp8x23_out_pos/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_pos.cairo | 2 +- tests/nodes/tril_fp8x23_pos/input_0.cairo | 2 +- tests/nodes/tril_fp8x23_pos/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_square.cairo | 2 +- tests/nodes/tril_fp8x23_square/input_0.cairo | 2 +- tests/nodes/tril_fp8x23_square/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_square_neg.cairo | 2 +- .../tril_fp8x23_square_neg/input_0.cairo | 2 +- .../tril_fp8x23_square_neg/output_0.cairo | 2 +- tests/nodes/tril_fp8x23_zero.cairo | 2 +- tests/nodes/tril_fp8x23_zero/input_0.cairo | 2 +- tests/nodes/tril_fp8x23_zero/output_0.cairo | 2 +- tests/nodes/tril_i32.cairo | 2 +- tests/nodes/tril_i32/input_0.cairo | 2 +- tests/nodes/tril_i32/output_0.cairo | 2 +- tests/nodes/tril_i32_one_row.cairo | 2 +- tests/nodes/tril_i32_one_row/input_0.cairo | 2 +- tests/nodes/tril_i32_one_row/output_0.cairo | 2 +- tests/nodes/tril_i32_out_neg.cairo | 2 +- tests/nodes/tril_i32_out_neg/input_0.cairo | 2 +- tests/nodes/tril_i32_out_neg/output_0.cairo | 2 +- tests/nodes/tril_i32_out_pos.cairo | 2 +- tests/nodes/tril_i32_out_pos/input_0.cairo | 2 +- tests/nodes/tril_i32_out_pos/output_0.cairo | 2 +- tests/nodes/tril_i32_pos.cairo | 2 +- tests/nodes/tril_i32_pos/input_0.cairo | 2 +- tests/nodes/tril_i32_pos/output_0.cairo | 2 +- tests/nodes/tril_i32_square.cairo | 2 +- tests/nodes/tril_i32_square/input_0.cairo | 2 +- tests/nodes/tril_i32_square/output_0.cairo | 2 +- tests/nodes/tril_i32_square_neg.cairo | 2 +- tests/nodes/tril_i32_square_neg/input_0.cairo | 2 +- .../nodes/tril_i32_square_neg/output_0.cairo | 2 +- tests/nodes/tril_i32_zero.cairo | 2 +- tests/nodes/tril_i32_zero/input_0.cairo | 2 +- tests/nodes/tril_i32_zero/output_0.cairo | 2 +- tests/nodes/tril_i8.cairo | 2 +- tests/nodes/tril_i8/input_0.cairo | 2 +- tests/nodes/tril_i8/output_0.cairo | 2 +- tests/nodes/tril_i8_neg.cairo | 2 +- tests/nodes/tril_i8_neg/input_0.cairo | 2 +- tests/nodes/tril_i8_neg/output_0.cairo | 2 +- tests/nodes/tril_i8_one_row.cairo | 2 +- tests/nodes/tril_i8_one_row/input_0.cairo | 2 +- tests/nodes/tril_i8_one_row/output_0.cairo | 2 +- tests/nodes/tril_i8_out_neg.cairo | 2 +- tests/nodes/tril_i8_out_neg/input_0.cairo | 2 +- tests/nodes/tril_i8_out_neg/output_0.cairo | 2 +- tests/nodes/tril_i8_out_pos.cairo | 2 +- tests/nodes/tril_i8_out_pos/input_0.cairo | 2 +- tests/nodes/tril_i8_out_pos/output_0.cairo | 2 +- tests/nodes/tril_i8_pos.cairo | 2 +- tests/nodes/tril_i8_pos/input_0.cairo | 2 +- tests/nodes/tril_i8_pos/output_0.cairo | 2 +- tests/nodes/tril_i8_square.cairo | 2 +- tests/nodes/tril_i8_square/input_0.cairo | 2 +- tests/nodes/tril_i8_square/output_0.cairo | 2 +- tests/nodes/tril_i8_square_neg.cairo | 2 +- tests/nodes/tril_i8_square_neg/input_0.cairo | 2 +- tests/nodes/tril_i8_square_neg/output_0.cairo | 2 +- tests/nodes/tril_i8_zero.cairo | 2 +- tests/nodes/tril_i8_zero/input_0.cairo | 2 +- tests/nodes/tril_i8_zero/output_0.cairo | 2 +- tests/nodes/tril_neg_i32.cairo | 2 +- tests/nodes/tril_neg_i32/input_0.cairo | 2 +- tests/nodes/tril_neg_i32/output_0.cairo | 2 +- tests/nodes/tril_u32.cairo | 2 +- tests/nodes/tril_u32/input_0.cairo | 2 +- tests/nodes/tril_u32/output_0.cairo | 2 +- tests/nodes/tril_u32_neg.cairo | 2 +- tests/nodes/tril_u32_neg/input_0.cairo | 2 +- tests/nodes/tril_u32_neg/output_0.cairo | 2 +- tests/nodes/tril_u32_one_row.cairo | 2 +- tests/nodes/tril_u32_one_row/input_0.cairo | 2 +- tests/nodes/tril_u32_one_row/output_0.cairo | 2 +- tests/nodes/tril_u32_out_neg.cairo | 2 +- tests/nodes/tril_u32_out_neg/input_0.cairo | 2 +- tests/nodes/tril_u32_out_neg/output_0.cairo | 2 +- tests/nodes/tril_u32_out_pos.cairo | 2 +- tests/nodes/tril_u32_out_pos/input_0.cairo | 2 +- tests/nodes/tril_u32_out_pos/output_0.cairo | 2 +- tests/nodes/tril_u32_pos.cairo | 2 +- tests/nodes/tril_u32_pos/input_0.cairo | 2 +- tests/nodes/tril_u32_pos/output_0.cairo | 2 +- tests/nodes/tril_u32_square.cairo | 2 +- tests/nodes/tril_u32_square/input_0.cairo | 2 +- tests/nodes/tril_u32_square/output_0.cairo | 2 +- tests/nodes/tril_u32_square_neg.cairo | 2 +- tests/nodes/tril_u32_square_neg/input_0.cairo | 2 +- .../nodes/tril_u32_square_neg/output_0.cairo | 2 +- tests/nodes/tril_u32_zero.cairo | 2 +- tests/nodes/tril_u32_zero/input_0.cairo | 2 +- tests/nodes/tril_u32_zero/output_0.cairo | 2 +- tests/nodes/triu_fp16x16.cairo | 2 +- tests/nodes/triu_fp16x16/input_0.cairo | 2 +- tests/nodes/triu_fp16x16/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_neg.cairo | 2 +- tests/nodes/triu_fp16x16_neg/input_0.cairo | 2 +- tests/nodes/triu_fp16x16_neg/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_one_row.cairo | 2 +- .../nodes/triu_fp16x16_one_row/input_0.cairo | 2 +- .../nodes/triu_fp16x16_one_row/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_out_neg.cairo | 2 +- .../nodes/triu_fp16x16_out_neg/input_0.cairo | 2 +- .../nodes/triu_fp16x16_out_neg/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_out_pos.cairo | 2 +- .../nodes/triu_fp16x16_out_pos/input_0.cairo | 2 +- .../nodes/triu_fp16x16_out_pos/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_pos.cairo | 2 +- tests/nodes/triu_fp16x16_pos/input_0.cairo | 2 +- tests/nodes/triu_fp16x16_pos/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_square.cairo | 2 +- tests/nodes/triu_fp16x16_square/input_0.cairo | 2 +- .../nodes/triu_fp16x16_square/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_square_neg.cairo | 2 +- .../triu_fp16x16_square_neg/input_0.cairo | 2 +- .../triu_fp16x16_square_neg/output_0.cairo | 2 +- tests/nodes/triu_fp16x16_zero.cairo | 2 +- tests/nodes/triu_fp16x16_zero/input_0.cairo | 2 +- tests/nodes/triu_fp16x16_zero/output_0.cairo | 2 +- tests/nodes/triu_fp8x23.cairo | 2 +- tests/nodes/triu_fp8x23/input_0.cairo | 2 +- tests/nodes/triu_fp8x23/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_neg.cairo | 2 +- tests/nodes/triu_fp8x23_neg/input_0.cairo | 2 +- tests/nodes/triu_fp8x23_neg/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_one_row.cairo | 2 +- tests/nodes/triu_fp8x23_one_row/input_0.cairo | 2 +- .../nodes/triu_fp8x23_one_row/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_out_neg.cairo | 2 +- tests/nodes/triu_fp8x23_out_neg/input_0.cairo | 2 +- .../nodes/triu_fp8x23_out_neg/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_out_pos.cairo | 2 +- tests/nodes/triu_fp8x23_out_pos/input_0.cairo | 2 +- .../nodes/triu_fp8x23_out_pos/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_pos.cairo | 2 +- tests/nodes/triu_fp8x23_pos/input_0.cairo | 2 +- tests/nodes/triu_fp8x23_pos/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_square.cairo | 2 +- tests/nodes/triu_fp8x23_square/input_0.cairo | 2 +- tests/nodes/triu_fp8x23_square/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_square_neg.cairo | 2 +- .../triu_fp8x23_square_neg/input_0.cairo | 2 +- .../triu_fp8x23_square_neg/output_0.cairo | 2 +- tests/nodes/triu_fp8x23_zero.cairo | 2 +- tests/nodes/triu_fp8x23_zero/input_0.cairo | 2 +- tests/nodes/triu_fp8x23_zero/output_0.cairo | 2 +- tests/nodes/triu_i32.cairo | 2 +- tests/nodes/triu_i32/input_0.cairo | 2 +- tests/nodes/triu_i32/output_0.cairo | 2 +- tests/nodes/triu_i32_neg.cairo | 2 +- tests/nodes/triu_i32_neg/input_0.cairo | 2 +- tests/nodes/triu_i32_neg/output_0.cairo | 2 +- tests/nodes/triu_i32_one_row.cairo | 2 +- tests/nodes/triu_i32_one_row/input_0.cairo | 2 +- tests/nodes/triu_i32_one_row/output_0.cairo | 2 +- tests/nodes/triu_i32_out_neg.cairo | 2 +- tests/nodes/triu_i32_out_neg/input_0.cairo | 2 +- tests/nodes/triu_i32_out_neg/output_0.cairo | 2 +- tests/nodes/triu_i32_out_pos.cairo | 2 +- tests/nodes/triu_i32_out_pos/input_0.cairo | 2 +- tests/nodes/triu_i32_out_pos/output_0.cairo | 2 +- tests/nodes/triu_i32_pos.cairo | 2 +- tests/nodes/triu_i32_pos/input_0.cairo | 2 +- tests/nodes/triu_i32_pos/output_0.cairo | 2 +- tests/nodes/triu_i32_square.cairo | 2 +- tests/nodes/triu_i32_square/input_0.cairo | 2 +- tests/nodes/triu_i32_square/output_0.cairo | 2 +- tests/nodes/triu_i32_square_neg.cairo | 2 +- tests/nodes/triu_i32_square_neg/input_0.cairo | 2 +- .../nodes/triu_i32_square_neg/output_0.cairo | 2 +- tests/nodes/triu_i32_zero.cairo | 2 +- tests/nodes/triu_i32_zero/input_0.cairo | 2 +- tests/nodes/triu_i32_zero/output_0.cairo | 2 +- tests/nodes/triu_i8.cairo | 2 +- tests/nodes/triu_i8/input_0.cairo | 2 +- tests/nodes/triu_i8/output_0.cairo | 2 +- tests/nodes/triu_i8_neg.cairo | 2 +- tests/nodes/triu_i8_neg/input_0.cairo | 2 +- tests/nodes/triu_i8_neg/output_0.cairo | 2 +- tests/nodes/triu_i8_one_row.cairo | 2 +- tests/nodes/triu_i8_one_row/input_0.cairo | 2 +- tests/nodes/triu_i8_one_row/output_0.cairo | 2 +- tests/nodes/triu_i8_out_neg.cairo | 2 +- tests/nodes/triu_i8_out_neg/input_0.cairo | 2 +- tests/nodes/triu_i8_out_neg/output_0.cairo | 2 +- tests/nodes/triu_i8_out_pos.cairo | 2 +- tests/nodes/triu_i8_out_pos/input_0.cairo | 2 +- tests/nodes/triu_i8_out_pos/output_0.cairo | 2 +- tests/nodes/triu_i8_pos.cairo | 2 +- tests/nodes/triu_i8_pos/input_0.cairo | 2 +- tests/nodes/triu_i8_pos/output_0.cairo | 2 +- tests/nodes/triu_i8_square.cairo | 2 +- tests/nodes/triu_i8_square/input_0.cairo | 2 +- tests/nodes/triu_i8_square/output_0.cairo | 2 +- tests/nodes/triu_i8_square_neg.cairo | 2 +- tests/nodes/triu_i8_square_neg/input_0.cairo | 2 +- tests/nodes/triu_i8_square_neg/output_0.cairo | 2 +- tests/nodes/triu_i8_zero.cairo | 2 +- tests/nodes/triu_i8_zero/input_0.cairo | 2 +- tests/nodes/triu_i8_zero/output_0.cairo | 2 +- tests/nodes/triu_u32.cairo | 2 +- tests/nodes/triu_u32/input_0.cairo | 2 +- tests/nodes/triu_u32/output_0.cairo | 2 +- tests/nodes/triu_u32_neg.cairo | 2 +- tests/nodes/triu_u32_neg/input_0.cairo | 2 +- tests/nodes/triu_u32_neg/output_0.cairo | 2 +- tests/nodes/triu_u32_one_row.cairo | 2 +- tests/nodes/triu_u32_one_row/input_0.cairo | 2 +- tests/nodes/triu_u32_one_row/output_0.cairo | 2 +- tests/nodes/triu_u32_out_neg.cairo | 2 +- tests/nodes/triu_u32_out_neg/input_0.cairo | 2 +- tests/nodes/triu_u32_out_neg/output_0.cairo | 2 +- tests/nodes/triu_u32_out_pos.cairo | 2 +- tests/nodes/triu_u32_out_pos/input_0.cairo | 2 +- tests/nodes/triu_u32_out_pos/output_0.cairo | 2 +- tests/nodes/triu_u32_pos.cairo | 2 +- tests/nodes/triu_u32_pos/input_0.cairo | 2 +- tests/nodes/triu_u32_pos/output_0.cairo | 2 +- tests/nodes/triu_u32_square.cairo | 2 +- tests/nodes/triu_u32_square/input_0.cairo | 2 +- tests/nodes/triu_u32_square/output_0.cairo | 2 +- tests/nodes/triu_u32_square_neg.cairo | 2 +- tests/nodes/triu_u32_square_neg/input_0.cairo | 2 +- .../nodes/triu_u32_square_neg/output_0.cairo | 2 +- tests/nodes/triu_u32_zero.cairo | 2 +- tests/nodes/triu_u32_zero/input_0.cairo | 2 +- tests/nodes/triu_u32_zero/output_0.cairo | 2 +- tests/nodes/unsqueeze_fp16x16_2d.cairo | 2 +- .../nodes/unsqueeze_fp16x16_2d/input_0.cairo | 2 +- .../nodes/unsqueeze_fp16x16_2d/output_0.cairo | 2 +- tests/nodes/unsqueeze_fp16x16_3d.cairo | 2 +- .../nodes/unsqueeze_fp16x16_3d/input_0.cairo | 2 +- .../nodes/unsqueeze_fp16x16_3d/output_0.cairo | 2 +- tests/nodes/unsqueeze_fp8x23_2d.cairo | 2 +- tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo | 2 +- .../nodes/unsqueeze_fp8x23_2d/output_0.cairo | 2 +- tests/nodes/unsqueeze_fp8x23_3d.cairo | 2 +- tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo | 2 +- .../nodes/unsqueeze_fp8x23_3d/output_0.cairo | 2 +- tests/nodes/unsqueeze_i32_2d.cairo | 2 +- tests/nodes/unsqueeze_i32_2d/input_0.cairo | 2 +- tests/nodes/unsqueeze_i32_2d/output_0.cairo | 2 +- tests/nodes/unsqueeze_i32_3d.cairo | 2 +- tests/nodes/unsqueeze_i32_3d/input_0.cairo | 2 +- tests/nodes/unsqueeze_i32_3d/output_0.cairo | 2 +- tests/nodes/unsqueeze_i8_2d.cairo | 2 +- tests/nodes/unsqueeze_i8_2d/input_0.cairo | 2 +- tests/nodes/unsqueeze_i8_2d/output_0.cairo | 2 +- tests/nodes/unsqueeze_i8_3d.cairo | 2 +- tests/nodes/unsqueeze_i8_3d/input_0.cairo | 2 +- tests/nodes/unsqueeze_i8_3d/output_0.cairo | 2 +- tests/nodes/unsqueeze_u32_2d.cairo | 2 +- tests/nodes/unsqueeze_u32_2d/input_0.cairo | 2 +- tests/nodes/unsqueeze_u32_2d/output_0.cairo | 2 +- tests/nodes/unsqueeze_u32_3d.cairo | 2 +- tests/nodes/unsqueeze_u32_3d/input_0.cairo | 2 +- tests/nodes/unsqueeze_u32_3d/output_0.cairo | 2 +- tests/nodes/where_fp16x16.cairo | 2 +- tests/nodes/where_fp16x16/input_0.cairo | 2 +- tests/nodes/where_fp16x16/input_1.cairo | 2 +- tests/nodes/where_fp16x16/input_2.cairo | 2 +- tests/nodes/where_fp16x16/output_0.cairo | 2 +- tests/nodes/where_fp16x16_broadcast.cairo | 2 +- .../where_fp16x16_broadcast/input_0.cairo | 2 +- .../where_fp16x16_broadcast/input_1.cairo | 2 +- .../where_fp16x16_broadcast/input_2.cairo | 2 +- .../where_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/where_fp8x23.cairo | 2 +- tests/nodes/where_fp8x23/input_0.cairo | 2 +- tests/nodes/where_fp8x23/input_1.cairo | 2 +- tests/nodes/where_fp8x23/input_2.cairo | 2 +- tests/nodes/where_fp8x23/output_0.cairo | 2 +- tests/nodes/where_fp8x23_broadcast.cairo | 2 +- .../where_fp8x23_broadcast/input_0.cairo | 2 +- .../where_fp8x23_broadcast/input_1.cairo | 2 +- .../where_fp8x23_broadcast/input_2.cairo | 2 +- .../where_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/where_i32.cairo | 2 +- tests/nodes/where_i32/input_0.cairo | 2 +- tests/nodes/where_i32/input_1.cairo | 2 +- tests/nodes/where_i32/input_2.cairo | 2 +- tests/nodes/where_i32/output_0.cairo | 2 +- tests/nodes/where_i32_broadcast.cairo | 2 +- tests/nodes/where_i32_broadcast/input_0.cairo | 2 +- tests/nodes/where_i32_broadcast/input_1.cairo | 2 +- tests/nodes/where_i32_broadcast/input_2.cairo | 2 +- .../nodes/where_i32_broadcast/output_0.cairo | 2 +- tests/nodes/where_i8.cairo | 2 +- tests/nodes/where_i8/input_0.cairo | 2 +- tests/nodes/where_i8/input_1.cairo | 2 +- tests/nodes/where_i8/input_2.cairo | 2 +- tests/nodes/where_i8/output_0.cairo | 2 +- tests/nodes/where_i8_broadcast.cairo | 2 +- tests/nodes/where_i8_broadcast/input_0.cairo | 2 +- tests/nodes/where_i8_broadcast/input_1.cairo | 2 +- tests/nodes/where_i8_broadcast/input_2.cairo | 2 +- tests/nodes/where_i8_broadcast/output_0.cairo | 2 +- tests/nodes/where_u32.cairo | 2 +- tests/nodes/where_u32/input_0.cairo | 2 +- tests/nodes/where_u32/input_1.cairo | 2 +- tests/nodes/where_u32/input_2.cairo | 2 +- tests/nodes/where_u32/output_0.cairo | 2 +- tests/nodes/where_u32_broadcast.cairo | 2 +- tests/nodes/where_u32_broadcast/input_0.cairo | 2 +- tests/nodes/where_u32_broadcast/input_1.cairo | 2 +- tests/nodes/where_u32_broadcast/input_2.cairo | 2 +- .../nodes/where_u32_broadcast/output_0.cairo | 2 +- tests/nodes/xor_fp16x16.cairo | 2 +- tests/nodes/xor_fp16x16/input_0.cairo | 2 +- tests/nodes/xor_fp16x16/input_1.cairo | 2 +- tests/nodes/xor_fp16x16/output_0.cairo | 2 +- tests/nodes/xor_fp16x16_broadcast.cairo | 2 +- .../nodes/xor_fp16x16_broadcast/input_0.cairo | 2 +- .../nodes/xor_fp16x16_broadcast/input_1.cairo | 2 +- .../xor_fp16x16_broadcast/output_0.cairo | 2 +- tests/nodes/xor_fp8x23.cairo | 2 +- tests/nodes/xor_fp8x23/input_0.cairo | 2 +- tests/nodes/xor_fp8x23/input_1.cairo | 2 +- tests/nodes/xor_fp8x23/output_0.cairo | 2 +- tests/nodes/xor_fp8x23_broadcast.cairo | 2 +- .../nodes/xor_fp8x23_broadcast/input_0.cairo | 2 +- .../nodes/xor_fp8x23_broadcast/input_1.cairo | 2 +- .../nodes/xor_fp8x23_broadcast/output_0.cairo | 2 +- tests/nodes/xor_i32.cairo | 2 +- tests/nodes/xor_i32/input_0.cairo | 2 +- tests/nodes/xor_i32/input_1.cairo | 2 +- tests/nodes/xor_i32/output_0.cairo | 2 +- tests/nodes/xor_i32_broadcast.cairo | 2 +- tests/nodes/xor_i32_broadcast/input_0.cairo | 2 +- tests/nodes/xor_i32_broadcast/input_1.cairo | 2 +- tests/nodes/xor_i32_broadcast/output_0.cairo | 2 +- tests/nodes/xor_i8.cairo | 2 +- tests/nodes/xor_i8/input_0.cairo | 2 +- tests/nodes/xor_i8/input_1.cairo | 2 +- tests/nodes/xor_i8/output_0.cairo | 2 +- tests/nodes/xor_i8_broadcast.cairo | 2 +- tests/nodes/xor_i8_broadcast/input_0.cairo | 2 +- tests/nodes/xor_i8_broadcast/input_1.cairo | 2 +- tests/nodes/xor_i8_broadcast/output_0.cairo | 2 +- tests/nodes/xor_u32.cairo | 2 +- tests/nodes/xor_u32/input_0.cairo | 2 +- tests/nodes/xor_u32/input_1.cairo | 2 +- tests/nodes/xor_u32/output_0.cairo | 2 +- tests/nodes/xor_u32_broadcast.cairo | 2 +- tests/nodes/xor_u32_broadcast/input_0.cairo | 2 +- tests/nodes/xor_u32_broadcast/input_1.cairo | 2 +- tests/nodes/xor_u32_broadcast/output_0.cairo | 2 +- tests/numbers/complex_number_test.cairo | 2 +- tests/operators/constant_of_shape_test.cairo | 4 +- tests/operators/qlinear_add_test.cairo | 4 +- tests/operators/qlinear_concat_test.cairo | 4 +- tests/operators/qlinear_leakyrelu_test.cairo | 4 +- tests/operators/qlinear_matmul_test.cairo | 4 +- tests/operators/qlinear_mul_test.cairo | 4 +- tests/operators/transpose_test.cairo | 4 +- .../fp_i8_test.cairo | 16 +- .../dequantize_linear_i32_test.cairo | 6 +- .../quantize_linear_fp_test/fp_i8_test.cairo | 16 +- .../quantize_linear_i32_test.cairo | 6 +- tests/tensor_core/at/at_bool_test.cairo | 6 +- .../at/at_fp_test/at_fp16x16_test.cairo | 6 +- .../at/at_fp_test/at_fp8x23_test.cairo | 6 +- tests/tensor_core/at/at_i32_test.cairo | 6 +- tests/tensor_core/at/at_u32_test.cairo | 6 +- .../flatten/flatten_i32_test.cairo | 6 +- .../flatten/flatten_u32_test.cairo | 6 +- .../onehot_fp_test/onehot_fp16x16_test.cairo | 6 +- .../onehot_fp_test/onehot_fp8x23_test.cairo | 6 +- tests/tensor_core/ravel_index.cairo | 6 +- .../tensor_core/stride/stride_bool_test.cairo | 6 +- .../stride_fp_test/stride_fp16x16_test.cairo | 12 +- .../stride_fp_test/stride_fp8x23_test.cairo | 12 +- .../tensor_core/stride/stride_i32_test.cairo | 12 +- .../tensor_core/stride/stride_u32_test.cairo | 12 +- tests/tensor_core/unravel_index.cairo | 12 +- 3084 files changed, 3817 insertions(+), 3822 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8c68ba96d..33e343ae4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,5 +9,5 @@ jobs: - uses: actions/checkout@v3 - uses: software-mansion/setup-scarb@v1 with: - scarb-version: "2.3.0" + scarb-version: "2.4.0" - run: scarb test --workspace && scarb fmt --workspace \ No newline at end of file diff --git a/Scarb.toml b/Scarb.toml index bcbb9f9c1..39c7ffadf 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -1,13 +1,16 @@ [package] name = "orion" version = "0.1.7" +cairo-version = "2.4.0" +edition = "2023_10" description = "ONNX Runtime in Cairo for verifiable ML inference using STARK" homepage = "https://github.com/gizatechxyz/orion" [dependencies] -alexandria_data_structures = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "f37d73d" } -alexandria_sorting = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "f37d73d" } -cubit = { git = "https://github.com/influenceth/cubit.git", rev = "b459053" } +alexandria_merkle_tree = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "01a7690" } +alexandria_data_structures = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "01a7690" } +alexandria_sorting = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "01a7690" } +cubit = { git = "https://github.com/akhercha/cubit.git", rev = "d3869a3" } # TODO: update rev [scripts] sierra = "cairo-compile . -r" diff --git a/docs/academy/tutorials/implement-new-operators-in-orion.md b/docs/academy/tutorials/implement-new-operators-in-orion.md index 24fd698d1..fa9cc08fc 100644 --- a/docs/academy/tutorials/implement-new-operators-in-orion.md +++ b/docs/academy/tutorials/implement-new-operators-in-orion.md @@ -208,7 +208,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/academy/tutorials/mnist-classification-with-orion.md b/docs/academy/tutorials/mnist-classification-with-orion.md index bb85956d5..cec11fde8 100644 --- a/docs/academy/tutorials/mnist-classification-with-orion.md +++ b/docs/academy/tutorials/mnist-classification-with-orion.md @@ -392,7 +392,7 @@ os.makedirs('src/generated', exist_ok=True) for tensor_name, tensor in tensors.items(): with open(os.path.join('src', 'generated', f"{tensor_name}.cairo"), "w") as f: f.write( - "use array::ArrayTrait;\n" + + "use core::array::ArrayTrait;\n" + "use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor};\n" + "use orion::numbers::i32;\n\n" + "\nfn {0}() -> Tensor ".format(tensor_name) + "{\n" + @@ -431,7 +431,7 @@ We have just created a file called `lib.cairo`, which contains a module declarat Here is a file we generated: `fc1_bias.cairo` ```rust -use array::ArrayTrait; +use core::array::ArrayTrait; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::numbers::i32; diff --git a/docs/academy/tutorials/verifiable-linear-regression-model-in-orion.md b/docs/academy/tutorials/verifiable-linear-regression-model-in-orion.md index d69fddb21..1de5b296b 100644 --- a/docs/academy/tutorials/verifiable-linear-regression-model-in-orion.md +++ b/docs/academy/tutorials/verifiable-linear-regression-model-in-orion.md @@ -164,7 +164,7 @@ def generate_cairo_files(data, name): os.makedirs('src/generated', exist_ok=True) with open(os.path.join('src', 'generated', f"{name}.cairo"), "w") as f: f.write( - "use array::ArrayTrait;\n" + + "use core::array::ArrayTrait;\n" + "use orion::operators::tensor::{FP16x16Tensor, TensorTrait, Tensor};\n" + "use orion::numbers::{FixedTrait, FP16x16, FP16x16Impl};\n" "\nfn {0}() -> Tensor ".format(name) + "{\n" + @@ -200,7 +200,7 @@ mod lin_reg_func; This will tell our compiler to include the separate modules listed above during the compilation of our code. We will be covering each module in detail in the following section, but let’s first review the generated folder files. ```rust -use array::ArrayTrait; +use core::array::ArrayTrait; use orion::operators::tensor::{FP16x16Tensor, TensorTrait, Tensor}; use orion::numbers::{FixedTrait, FP16x16, FP16x16Impl}; @@ -343,7 +343,7 @@ Calculating the y-intercept is fairly simple, we just need to substitute the cal Now that we have implemented all the necessary functions for the OLS method, we can finally test our linear regression model. We begin by creating a new separate test file named `test.cairo` and import all the necessary Orion libraries including our `X_values` and `y_values` found in the generated folder. We also import all the OLS functions from `lin_reg_func.cairo` file as we will be relying upon them to construct the regression model. ```rust -use debug::PrintTrait; +use core::debug::PrintTrait; use verifiable_linear_regression::generated::X_values::X_values; use verifiable_linear_regression::generated::Y_values::Y_values; diff --git a/docs/academy/tutorials/verifiable-support-vector-machine.md b/docs/academy/tutorials/verifiable-support-vector-machine.md index b1ce9583d..6986539f1 100644 --- a/docs/academy/tutorials/verifiable-support-vector-machine.md +++ b/docs/academy/tutorials/verifiable-support-vector-machine.md @@ -196,7 +196,7 @@ def generate_cairo_files(data, name): with open(os.path.join('src', 'generated', f"{name}.cairo"), "w") as f: f.write( - "use array::ArrayTrait;\n" + + "use core::array::ArrayTrait;\n" + "use orion::operators::tensor::{Tensor, TensorTrait, FP16x16Tensor};\n" + "use orion::numbers::{FixedTrait, FP16x16, FP16x16Impl};\n" + "\n" + f"fn {name}() -> Tensor" + "{\n\n" + @@ -237,7 +237,7 @@ mod helper; This will tell our compiler to include the separate modules listed above during the compilation of our code. We will be covering each module in detail in the following section, but let’s first review the generated folder files. ```rust -use array::ArrayTrait; +use core::array::ArrayTrait; use orion::operators::tensor::{Tensor, TensorTrait, FP16x16Tensor}; use orion::numbers::{FixedTrait, FP16x16, FP16x16Impl}; @@ -449,9 +449,9 @@ fn pred(x: @Tensor, w: @Tensor) -> Tensor { Finally, our `train.cairo` file implements model training using the functions described earlier and is executed as part of our model tests. ```rust -use debug::PrintTrait; +use core::debug::PrintTrait; use traits::TryInto; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ Tensor, TensorTrait, FP16x16Tensor, FP16x16TensorAdd, FP16x16TensorMul, FP16x16TensorSub, FP16x16TensorDiv @@ -576,7 +576,7 @@ Now that we have implemented all the necessary functions for SVM, we can finally ```rust use traits::TryInto; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ Tensor, TensorTrait, FP16x16Tensor, FP16x16TensorAdd, FP16x16TensorMul, FP16x16TensorSub, FP16x16TensorDiv diff --git a/docs/framework/get-started.md b/docs/framework/get-started.md index 972ecc2e4..ca8612509 100644 --- a/docs/framework/get-started.md +++ b/docs/framework/get-started.md @@ -3,7 +3,7 @@ In this section, we will guide you to start using Orion successfully. We will help you install Cairo 1.0 and add Orion dependency in your project. {% hint style="info" %} -Orion supports **Cairo and Scarb v2.3.0** +Orion supports **Cairo and Scarb v2.4.0** {% endhint %} ## 📦 Installations @@ -56,7 +56,7 @@ scarb build You can now use the `orion` in your files: ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::operators::nn::{NNTrait, I32NN}; diff --git a/docs/framework/operators/neural-network/nn.hard_sigmoid.md b/docs/framework/operators/neural-network/nn.hard_sigmoid.md index be4338109..eeff0e31b 100644 --- a/docs/framework/operators/neural-network/nn.hard_sigmoid.md +++ b/docs/framework/operators/neural-network/nn.hard_sigmoid.md @@ -27,7 +27,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/neural-network/nn.leaky_relu.md b/docs/framework/operators/neural-network/nn.leaky_relu.md index 04d671ec3..2aca42881 100644 --- a/docs/framework/operators/neural-network/nn.leaky_relu.md +++ b/docs/framework/operators/neural-network/nn.leaky_relu.md @@ -22,7 +22,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/neural-network/nn.linear.md b/docs/framework/operators/neural-network/nn.linear.md index 0e37fd268..60d9079c8 100644 --- a/docs/framework/operators/neural-network/nn.linear.md +++ b/docs/framework/operators/neural-network/nn.linear.md @@ -23,7 +23,7 @@ A `Tensor` representing the result of the linear transformation. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::operators::nn::{NNTrait, I32NN}; diff --git a/docs/framework/operators/neural-network/nn.logsoftmax.md b/docs/framework/operators/neural-network/nn.logsoftmax.md index 1aba6b01b..ccd7f8652 100644 --- a/docs/framework/operators/neural-network/nn.logsoftmax.md +++ b/docs/framework/operators/neural-network/nn.logsoftmax.md @@ -26,7 +26,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/neural-network/nn.relu.md b/docs/framework/operators/neural-network/nn.relu.md index c4f622066..aff9a322a 100644 --- a/docs/framework/operators/neural-network/nn.relu.md +++ b/docs/framework/operators/neural-network/nn.relu.md @@ -21,7 +21,7 @@ A `Tensor` with the same shape as the input tensor. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::operators::nn::{NNTrait, I32NN}; diff --git a/docs/framework/operators/neural-network/nn.sigmoid.md b/docs/framework/operators/neural-network/nn.sigmoid.md index 28503f04a..4dde429eb 100644 --- a/docs/framework/operators/neural-network/nn.sigmoid.md +++ b/docs/framework/operators/neural-network/nn.sigmoid.md @@ -25,7 +25,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/neural-network/nn.softmax.md b/docs/framework/operators/neural-network/nn.softmax.md index 6b1b0c982..4fb83e0b3 100644 --- a/docs/framework/operators/neural-network/nn.softmax.md +++ b/docs/framework/operators/neural-network/nn.softmax.md @@ -26,7 +26,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/neural-network/nn.softplus.md b/docs/framework/operators/neural-network/nn.softplus.md index 32caeda7a..b9c1b7603 100644 --- a/docs/framework/operators/neural-network/nn.softplus.md +++ b/docs/framework/operators/neural-network/nn.softplus.md @@ -25,7 +25,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/neural-network/nn.softsign.md b/docs/framework/operators/neural-network/nn.softsign.md index d80b89d7c..aee3071c4 100644 --- a/docs/framework/operators/neural-network/nn.softsign.md +++ b/docs/framework/operators/neural-network/nn.softsign.md @@ -25,7 +25,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/neural-network/nn.thresholded_relu.md b/docs/framework/operators/neural-network/nn.thresholded_relu.md index 8c1206ce1..3d2ecc243 100644 --- a/docs/framework/operators/neural-network/nn.thresholded_relu.md +++ b/docs/framework/operators/neural-network/nn.thresholded_relu.md @@ -22,7 +22,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/docs/framework/operators/tensor/README.md b/docs/framework/operators/tensor/README.md index 0f0ed5513..1127918e5 100644 --- a/docs/framework/operators/tensor/README.md +++ b/docs/framework/operators/tensor/README.md @@ -137,7 +137,7 @@ Two tensors are “broadcastable” if the following rules hold: Element-wise add. ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, U32TensorAdd}; fn element_wise_add_example() -> Tensor { @@ -158,7 +158,7 @@ fn element_wise_add_example() -> Tensor { Add two tensors of different shapes but compatible in broadcasting. ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, U32TensorAdd}; fn broadcasting_add_example() -> Tensor { diff --git a/docs/framework/operators/tensor/tensor.abs.md b/docs/framework/operators/tensor/tensor.abs.md index 923c7cedc..0f3e3cc85 100644 --- a/docs/framework/operators/tensor/tensor.abs.md +++ b/docs/framework/operators/tensor/tensor.abs.md @@ -19,7 +19,7 @@ the absolute value of all elements in the input tensor. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::numbers::{i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.acos.md b/docs/framework/operators/tensor/tensor.acos.md index 724947e68..b6db3203f 100644 --- a/docs/framework/operators/tensor/tensor.acos.md +++ b/docs/framework/operators/tensor/tensor.acos.md @@ -23,7 +23,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.acosh.md b/docs/framework/operators/tensor/tensor.acosh.md index 7dbf6ba09..813fd8d7d 100644 --- a/docs/framework/operators/tensor/tensor.acosh.md +++ b/docs/framework/operators/tensor/tensor.acosh.md @@ -24,7 +24,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.and.md b/docs/framework/operators/tensor/tensor.and.md index 2c2b74f16..b26f9bdbb 100644 --- a/docs/framework/operators/tensor/tensor.and.md +++ b/docs/framework/operators/tensor/tensor.and.md @@ -25,7 +25,7 @@ A new `Tensor` with the same shape as the broadcasted inputs. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.argmax.md b/docs/framework/operators/tensor/tensor.argmax.md index 511b05c91..cb3457a45 100644 --- a/docs/framework/operators/tensor/tensor.argmax.md +++ b/docs/framework/operators/tensor/tensor.argmax.md @@ -26,7 +26,7 @@ A new `Tensor` instance containing the indices of the maximum values along th Case 1: argmax with default parameters ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -43,7 +43,7 @@ fn argmax_example() -> Tensor { Case 2: argmax with keepdims set to false ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -62,7 +62,7 @@ fn argmax_example() -> Tensor { Case 3: argmax with select_last_index set to true ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.argmin.md b/docs/framework/operators/tensor/tensor.argmin.md index cfe15e89b..d5f0ae192 100644 --- a/docs/framework/operators/tensor/tensor.argmin.md +++ b/docs/framework/operators/tensor/tensor.argmin.md @@ -26,7 +26,7 @@ A new `Tensor` instance containing the indices of the minimum values along th Case 1: argmin with default parameters ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -44,7 +44,7 @@ fn argmin_example() -> Tensor { Case 2: argmin with keepdims set to false ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -63,7 +63,7 @@ fn argmin_example() -> Tensor { Case 3: argmin with select_last_index set to true ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.array_feature_extractor.md b/docs/framework/operators/tensor/tensor.array_feature_extractor.md index f06bdaf00..f5cec209e 100644 --- a/docs/framework/operators/tensor/tensor.array_feature_extractor.md +++ b/docs/framework/operators/tensor/tensor.array_feature_extractor.md @@ -22,7 +22,7 @@ A new `Tensor` of the same shape as the input tensor with selected elements b ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor, U32Tensor}; use orion::numbers::{i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.asin.md b/docs/framework/operators/tensor/tensor.asin.md index 0c29f8735..592519485 100644 --- a/docs/framework/operators/tensor/tensor.asin.md +++ b/docs/framework/operators/tensor/tensor.asin.md @@ -23,7 +23,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.asinh.md b/docs/framework/operators/tensor/tensor.asinh.md index c0193b8b8..eade59fde 100644 --- a/docs/framework/operators/tensor/tensor.asinh.md +++ b/docs/framework/operators/tensor/tensor.asinh.md @@ -24,7 +24,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.at.md b/docs/framework/operators/tensor/tensor.at.md index 0cc9833d5..b0752f51d 100644 --- a/docs/framework/operators/tensor/tensor.at.md +++ b/docs/framework/operators/tensor/tensor.at.md @@ -22,7 +22,7 @@ The `T` value at the specified indices. # Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.atan.md b/docs/framework/operators/tensor/tensor.atan.md index f0b7e12ab..cc61d05f6 100644 --- a/docs/framework/operators/tensor/tensor.atan.md +++ b/docs/framework/operators/tensor/tensor.atan.md @@ -23,7 +23,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.binarizer.md b/docs/framework/operators/tensor/tensor.binarizer.md index f97dcd446..6e1009dfa 100644 --- a/docs/framework/operators/tensor/tensor.binarizer.md +++ b/docs/framework/operators/tensor/tensor.binarizer.md @@ -20,7 +20,7 @@ Constrain input and output types to fixed point numbers. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.bitwise_and.md b/docs/framework/operators/tensor/tensor.bitwise_and.md index 5288ab953..c12793d88 100644 --- a/docs/framework/operators/tensor/tensor.bitwise_and.md +++ b/docs/framework/operators/tensor/tensor.bitwise_and.md @@ -25,7 +25,7 @@ A new `Tensor` with the same shape as the broadcasted inputs. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.bitwise_or.md b/docs/framework/operators/tensor/tensor.bitwise_or.md index ac3ac4f38..37a0b9c03 100644 --- a/docs/framework/operators/tensor/tensor.bitwise_or.md +++ b/docs/framework/operators/tensor/tensor.bitwise_or.md @@ -25,7 +25,7 @@ A new `Tensor` with the same shape as the broadcasted inputs. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.bitwise_xor.md b/docs/framework/operators/tensor/tensor.bitwise_xor.md index 62f1dd0b1..5f3797156 100644 --- a/docs/framework/operators/tensor/tensor.bitwise_xor.md +++ b/docs/framework/operators/tensor/tensor.bitwise_xor.md @@ -25,7 +25,7 @@ A new `Tensor` with the same shape as the broadcasted inputs. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.ceil.md b/docs/framework/operators/tensor/tensor.ceil.md index 33a0bf932..5954e45f8 100644 --- a/docs/framework/operators/tensor/tensor.ceil.md +++ b/docs/framework/operators/tensor/tensor.ceil.md @@ -23,7 +23,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.clip.md b/docs/framework/operators/tensor/tensor.clip.md index d5dab3fb5..aa54a81a4 100644 --- a/docs/framework/operators/tensor/tensor.clip.md +++ b/docs/framework/operators/tensor/tensor.clip.md @@ -19,7 +19,7 @@ Output `Tensor` with clipped input elements. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.concat.md b/docs/framework/operators/tensor/tensor.concat.md index 0e134a288..70ca6b26f 100644 --- a/docs/framework/operators/tensor/tensor.concat.md +++ b/docs/framework/operators/tensor/tensor.concat.md @@ -23,7 +23,7 @@ A new `Tensor` concatenated tensor of the input tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.concat_from_sequence.md b/docs/framework/operators/tensor/tensor.concat_from_sequence.md index 846322b90..04cacdd62 100644 --- a/docs/framework/operators/tensor/tensor.concat_from_sequence.md +++ b/docs/framework/operators/tensor/tensor.concat_from_sequence.md @@ -25,7 +25,7 @@ A new `Tensor` concatenated tensor from the input tensor sequence. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.constant_of_shape.md b/docs/framework/operators/tensor/tensor.constant_of_shape.md index ca275e375..b06c2793a 100644 --- a/docs/framework/operators/tensor/tensor.constant_of_shape.md +++ b/docs/framework/operators/tensor/tensor.constant_of_shape.md @@ -20,7 +20,7 @@ A new `Tensor` instance. Let's create new u32 Tensor with constant 42. ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ TensorTrait, // we import the trait diff --git a/docs/framework/operators/tensor/tensor.cos.md b/docs/framework/operators/tensor/tensor.cos.md index f9384ec6d..64e06a397 100644 --- a/docs/framework/operators/tensor/tensor.cos.md +++ b/docs/framework/operators/tensor/tensor.cos.md @@ -23,7 +23,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.cosh.md b/docs/framework/operators/tensor/tensor.cosh.md index 3668e8ca0..f08548d4a 100644 --- a/docs/framework/operators/tensor/tensor.cosh.md +++ b/docs/framework/operators/tensor/tensor.cosh.md @@ -24,7 +24,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.cumsum.md b/docs/framework/operators/tensor/tensor.cumsum.md index c93fa4d94..de34797e0 100644 --- a/docs/framework/operators/tensor/tensor.cumsum.md +++ b/docs/framework/operators/tensor/tensor.cumsum.md @@ -26,7 +26,7 @@ A new `Tensor` instance containing the cumulative sum of the input tensor's e Case 1: cumsum with default parameters ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -43,7 +43,7 @@ fn cumsum_example() -> Tensor { Case 2: cumsum with exclusive = true ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -60,7 +60,7 @@ fn cumsum_example() -> Tensor { Case 3: cumsum with exclusive = true and reverse = true ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.dequantize_linear.md b/docs/framework/operators/tensor/tensor.dequantize_linear.md index 38635349b..b7410f8c4 100644 --- a/docs/framework/operators/tensor/tensor.dequantize_linear.md +++ b/docs/framework/operators/tensor/tensor.dequantize_linear.md @@ -30,7 +30,7 @@ fp16x16wide tensor, not supported. ## Examples ```rust - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; use orion::numbers::{i8, i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.equal.md b/docs/framework/operators/tensor/tensor.equal.md index 83bb52a5d..6e393c989 100644 --- a/docs/framework/operators/tensor/tensor.equal.md +++ b/docs/framework/operators/tensor/tensor.equal.md @@ -27,7 +27,7 @@ A new `Tensor` of booleans (1 if equal, 0 otherwise) with the same shape Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -49,7 +49,7 @@ fn eq_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.exp.md b/docs/framework/operators/tensor/tensor.exp.md index 187d9becd..ecaa0a44a 100644 --- a/docs/framework/operators/tensor/tensor.exp.md +++ b/docs/framework/operators/tensor/tensor.exp.md @@ -24,7 +24,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.flatten.md b/docs/framework/operators/tensor/tensor.flatten.md index 0740346b4..6e3537a55 100644 --- a/docs/framework/operators/tensor/tensor.flatten.md +++ b/docs/framework/operators/tensor/tensor.flatten.md @@ -41,7 +41,7 @@ fn flatten_example() -> Tensor { Case 2: flatten with axis 1 ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -58,7 +58,7 @@ fn flatten_example() -> Tensor { Case 3: flatten with axis 2 ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.gather.md b/docs/framework/operators/tensor/tensor.gather.md index 8eb4a81f4..218b01385 100644 --- a/docs/framework/operators/tensor/tensor.gather.md +++ b/docs/framework/operators/tensor/tensor.gather.md @@ -23,7 +23,7 @@ A new `Tensor` . ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.gather_elements.md b/docs/framework/operators/tensor/tensor.gather_elements.md index ad8b6c3bb..9bda94eb6 100644 --- a/docs/framework/operators/tensor/tensor.gather_elements.md +++ b/docs/framework/operators/tensor/tensor.gather_elements.md @@ -23,7 +23,7 @@ A new `Tensor` . ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.greater.md b/docs/framework/operators/tensor/tensor.greater.md index 677bc1220..fb186b8f7 100644 --- a/docs/framework/operators/tensor/tensor.greater.md +++ b/docs/framework/operators/tensor/tensor.greater.md @@ -27,7 +27,7 @@ A new `Tensor` of booleans (0 or 1) with the same shape as the broadcaste Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -49,7 +49,7 @@ fn greater_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.greater_equal.md b/docs/framework/operators/tensor/tensor.greater_equal.md index 8a2d6637d..1fecfbdc4 100644 --- a/docs/framework/operators/tensor/tensor.greater_equal.md +++ b/docs/framework/operators/tensor/tensor.greater_equal.md @@ -27,7 +27,7 @@ A new `Tensor` of booleans (0 or 1) with the same shape as the broadcaste Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -49,7 +49,7 @@ fn greater_equal_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.identity.md b/docs/framework/operators/tensor/tensor.identity.md index 902972c84..43a25c564 100644 --- a/docs/framework/operators/tensor/tensor.identity.md +++ b/docs/framework/operators/tensor/tensor.identity.md @@ -17,7 +17,7 @@ A new `Tensor` to copy input into. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; diff --git a/docs/framework/operators/tensor/tensor.is_inf.md b/docs/framework/operators/tensor/tensor.is_inf.md index e77a5fb61..313b4d8b8 100644 --- a/docs/framework/operators/tensor/tensor.is_inf.md +++ b/docs/framework/operators/tensor/tensor.is_inf.md @@ -20,7 +20,7 @@ A new `Tensor` instance with entries set to true iff the input tensors cor ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{BoolTensor, TensorTrait, Tensor, U32Tensor}; fn is_inf_example() -> Tensor { diff --git a/docs/framework/operators/tensor/tensor.is_nan.md b/docs/framework/operators/tensor/tensor.is_nan.md index 28e5881e0..955edc0f9 100644 --- a/docs/framework/operators/tensor/tensor.is_nan.md +++ b/docs/framework/operators/tensor/tensor.is_nan.md @@ -16,7 +16,7 @@ A new `Tensor` instance with entries set to true iff the input tensors cor ## Examples -use array::{ArrayTrait, SpanTrait}; +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.less.md b/docs/framework/operators/tensor/tensor.less.md index 0413fa7ea..d5d264d8a 100644 --- a/docs/framework/operators/tensor/tensor.less.md +++ b/docs/framework/operators/tensor/tensor.less.md @@ -27,7 +27,7 @@ A new `Tensor` of booleans (0 or 1) with the same shape as the broadcaste Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -49,7 +49,7 @@ fn less_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.less_equal.md b/docs/framework/operators/tensor/tensor.less_equal.md index 23d3356fa..c440b39c6 100644 --- a/docs/framework/operators/tensor/tensor.less_equal.md +++ b/docs/framework/operators/tensor/tensor.less_equal.md @@ -27,7 +27,7 @@ A new `Tensor` of booleans (0 or 1) with the same shape as the broadcaste Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -49,7 +49,7 @@ fn less_equal_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.log.md b/docs/framework/operators/tensor/tensor.log.md index d14245e47..7ed4e9e2a 100644 --- a/docs/framework/operators/tensor/tensor.log.md +++ b/docs/framework/operators/tensor/tensor.log.md @@ -24,7 +24,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.matmul.md b/docs/framework/operators/tensor/tensor.matmul.md index 21e828a76..378d661be 100644 --- a/docs/framework/operators/tensor/tensor.matmul.md +++ b/docs/framework/operators/tensor/tensor.matmul.md @@ -29,7 +29,7 @@ A new `Tensor` resulting from the matrix multiplication. Case 1: Dot product of two vectors (1D \* 1D) ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -47,7 +47,7 @@ fn dot_product_example() -> Tensor { Case 2: Matrix multiplication (2D \* 2D) ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -69,7 +69,7 @@ fn matrix_mul_example() -> Tensor { Case 3: Matrix-Vector multiplication (2D x 1D) ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.max.md b/docs/framework/operators/tensor/tensor.max.md index 966405862..27f1e4eb5 100644 --- a/docs/framework/operators/tensor/tensor.max.md +++ b/docs/framework/operators/tensor/tensor.max.md @@ -27,7 +27,7 @@ A new `Tensor` containing the element-wise maximum values Case 1: Process tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -46,7 +46,7 @@ fn max_example() -> Tensor { Case 2: Process tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.max_in_tensor.md b/docs/framework/operators/tensor/tensor.max_in_tensor.md index 08ac0f82f..c2453f9b9 100644 --- a/docs/framework/operators/tensor/tensor.max_in_tensor.md +++ b/docs/framework/operators/tensor/tensor.max_in_tensor.md @@ -17,7 +17,7 @@ The maximum `T` value in the tensor. Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.min.md b/docs/framework/operators/tensor/tensor.min.md index 31157c2dc..92bc2d150 100644 --- a/docs/framework/operators/tensor/tensor.min.md +++ b/docs/framework/operators/tensor/tensor.min.md @@ -27,7 +27,7 @@ A new `Tensor` containing the element-wise minimum values Case 1: Process tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -46,7 +46,7 @@ fn min_example() -> Tensor { Case 2: Process tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.min_in_tensor.md b/docs/framework/operators/tensor/tensor.min_in_tensor.md index 65ac74034..1f17f1062 100644 --- a/docs/framework/operators/tensor/tensor.min_in_tensor.md +++ b/docs/framework/operators/tensor/tensor.min_in_tensor.md @@ -17,7 +17,7 @@ The minimum `T` value in the tensor. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.neg.md b/docs/framework/operators/tensor/tensor.neg.md index f5c9b3816..8b4a1a93e 100644 --- a/docs/framework/operators/tensor/tensor.neg.md +++ b/docs/framework/operators/tensor/tensor.neg.md @@ -19,7 +19,7 @@ the negation of all elements in the input tensor. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::numbers::{i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.new.md b/docs/framework/operators/tensor/tensor.new.md index 3d29c9da3..78b328aaf 100644 --- a/docs/framework/operators/tensor/tensor.new.md +++ b/docs/framework/operators/tensor/tensor.new.md @@ -24,7 +24,7 @@ A new `Tensor` instance. Let's create new u32 Tensors. ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ TensorTrait, // we import the trait diff --git a/docs/framework/operators/tensor/tensor.nonzero.md b/docs/framework/operators/tensor/tensor.nonzero.md index c9d8a1942..355660fbd 100644 --- a/docs/framework/operators/tensor/tensor.nonzero.md +++ b/docs/framework/operators/tensor/tensor.nonzero.md @@ -17,7 +17,7 @@ A new `Tensor` indices of the elements that are non-zero (in row-major or ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.not.md b/docs/framework/operators/tensor/tensor.not.md index 0add0277a..a08250171 100644 --- a/docs/framework/operators/tensor/tensor.not.md +++ b/docs/framework/operators/tensor/tensor.not.md @@ -19,7 +19,7 @@ the negation of all elements in the input tensor. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, BoolTensor}; use orion::numbers::{i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.onehot.md b/docs/framework/operators/tensor/tensor.onehot.md index 09e88f02d..18cfaefc5 100644 --- a/docs/framework/operators/tensor/tensor.onehot.md +++ b/docs/framework/operators/tensor/tensor.onehot.md @@ -28,7 +28,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.or.md b/docs/framework/operators/tensor/tensor.or.md index ec92f7bab..ff210a043 100644 --- a/docs/framework/operators/tensor/tensor.or.md +++ b/docs/framework/operators/tensor/tensor.or.md @@ -27,7 +27,7 @@ A new `Tensor` of booleans (0 or 1) with the same shape as the broadcaste Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -48,7 +48,7 @@ fn or_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.pow.md b/docs/framework/operators/tensor/tensor.pow.md index 0a0ae4ac7..be4bd8149 100644 --- a/docs/framework/operators/tensor/tensor.pow.md +++ b/docs/framework/operators/tensor/tensor.pow.md @@ -27,7 +27,7 @@ A new `Tensor` with the same shape as the broadcasted inputs. Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -48,7 +48,7 @@ fn pow_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.qlinear_add.md b/docs/framework/operators/tensor/tensor.qlinear_add.md index 998ddd214..508282156 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_add.md +++ b/docs/framework/operators/tensor/tensor.qlinear_add.md @@ -37,7 +37,7 @@ fp16x16wide tensor, not supported. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.qlinear_concat.md b/docs/framework/operators/tensor/tensor.qlinear_concat.md index 1eda056fe..6f2b44ff8 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_concat.md +++ b/docs/framework/operators/tensor/tensor.qlinear_concat.md @@ -33,7 +33,7 @@ A new `Tensor` concatenated quantized tensor of the dequantized input tensor ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md b/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md index 0dfa04498..92b94530f 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md +++ b/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md @@ -34,7 +34,7 @@ bool tensor, not supported. ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.qlinear_matmul.md b/docs/framework/operators/tensor/tensor.qlinear_matmul.md index 4192918af..13ff99602 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_matmul.md +++ b/docs/framework/operators/tensor/tensor.qlinear_matmul.md @@ -37,7 +37,7 @@ fp16x16wide tensor, not supported. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.qlinear_mul.md b/docs/framework/operators/tensor/tensor.qlinear_mul.md index d773b9b19..695128ce0 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_mul.md +++ b/docs/framework/operators/tensor/tensor.qlinear_mul.md @@ -37,7 +37,7 @@ fp16x16wide tensor, not supported. ## Example -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.quantize_linear.md b/docs/framework/operators/tensor/tensor.quantize_linear.md index 312cb94cb..7b99fef01 100644 --- a/docs/framework/operators/tensor/tensor.quantize_linear.md +++ b/docs/framework/operators/tensor/tensor.quantize_linear.md @@ -29,7 +29,7 @@ u32 tensor, not supported. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; use orion::numbers::{i8, i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.ravel_index.md b/docs/framework/operators/tensor/tensor.ravel_index.md index 6d6ff9725..a88d1b142 100644 --- a/docs/framework/operators/tensor/tensor.ravel_index.md +++ b/docs/framework/operators/tensor/tensor.ravel_index.md @@ -22,7 +22,7 @@ The index corresponding to the given indices. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.reduce_l1.md b/docs/framework/operators/tensor/tensor.reduce_l1.md index b4edd2a22..6fb448700 100644 --- a/docs/framework/operators/tensor/tensor.reduce_l1.md +++ b/docs/framework/operators/tensor/tensor.reduce_l1.md @@ -23,7 +23,7 @@ A new `Tensor` instance with the specified axis reduced by summing its elemen ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.reduce_mean.md b/docs/framework/operators/tensor/tensor.reduce_mean.md index 633f8ab00..3d74c3a98 100644 --- a/docs/framework/operators/tensor/tensor.reduce_mean.md +++ b/docs/framework/operators/tensor/tensor.reduce_mean.md @@ -24,7 +24,7 @@ A new `Tensor` instance with the specified axes reduced by meaning its elemen ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.reduce_min.md b/docs/framework/operators/tensor/tensor.reduce_min.md index eb416b7f7..d2d78ef2c 100644 --- a/docs/framework/operators/tensor/tensor.reduce_min.md +++ b/docs/framework/operators/tensor/tensor.reduce_min.md @@ -24,7 +24,7 @@ A new `Tensor` instance with the specified axes reduced by minimum of its ele ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.reduce_prod.md b/docs/framework/operators/tensor/tensor.reduce_prod.md index 35117d602..2d79b4c4b 100644 --- a/docs/framework/operators/tensor/tensor.reduce_prod.md +++ b/docs/framework/operators/tensor/tensor.reduce_prod.md @@ -23,7 +23,7 @@ A new `Tensor` instance with the specified axis reduced by multiplying its el ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.reduce_sum.md b/docs/framework/operators/tensor/tensor.reduce_sum.md index e596ba311..3aa77d2ce 100644 --- a/docs/framework/operators/tensor/tensor.reduce_sum.md +++ b/docs/framework/operators/tensor/tensor.reduce_sum.md @@ -23,7 +23,7 @@ A new `Tensor` instance with the specified axis reduced by summing its elemen ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.reshape.md b/docs/framework/operators/tensor/tensor.reshape.md index 998c40c1a..b2c8f84eb 100644 --- a/docs/framework/operators/tensor/tensor.reshape.md +++ b/docs/framework/operators/tensor/tensor.reshape.md @@ -22,7 +22,7 @@ A new `Tensor` with the specified target shape and the same data. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.round.md b/docs/framework/operators/tensor/tensor.round.md index 9a6c949eb..58e9f4f54 100644 --- a/docs/framework/operators/tensor/tensor.round.md +++ b/docs/framework/operators/tensor/tensor.round.md @@ -19,7 +19,7 @@ the round value of all elements in the input tensor. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/docs/framework/operators/tensor/tensor.scatter.md b/docs/framework/operators/tensor/tensor.scatter.md index 439e7ab0b..4951a5d25 100644 --- a/docs/framework/operators/tensor/tensor.scatter.md +++ b/docs/framework/operators/tensor/tensor.scatter.md @@ -25,7 +25,7 @@ A new `Tensor` . ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.sequence_at.md b/docs/framework/operators/tensor/tensor.sequence_at.md index e0a9535f9..386c594a6 100644 --- a/docs/framework/operators/tensor/tensor.sequence_at.md +++ b/docs/framework/operators/tensor/tensor.sequence_at.md @@ -23,7 +23,7 @@ The tensor `Tensor` from the sequence at the specified position. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; use orion::numbers::{i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.sequence_construct.md b/docs/framework/operators/tensor/tensor.sequence_construct.md index fea30780d..d5e627bd1 100644 --- a/docs/framework/operators/tensor/tensor.sequence_construct.md +++ b/docs/framework/operators/tensor/tensor.sequence_construct.md @@ -21,7 +21,7 @@ A tensor sequence `Array>` containing the input tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.sequence_empty.md b/docs/framework/operators/tensor/tensor.sequence_empty.md index a46ddba5f..60ea380e5 100644 --- a/docs/framework/operators/tensor/tensor.sequence_empty.md +++ b/docs/framework/operators/tensor/tensor.sequence_empty.md @@ -17,7 +17,7 @@ An empty `Array>` instance. Let's create a new empty sequence. ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ TensorTrait, // we import the trait diff --git a/docs/framework/operators/tensor/tensor.sequence_erase.md b/docs/framework/operators/tensor/tensor.sequence_erase.md index 4c5f94a39..6bce32316 100644 --- a/docs/framework/operators/tensor/tensor.sequence_erase.md +++ b/docs/framework/operators/tensor/tensor.sequence_erase.md @@ -23,7 +23,7 @@ The tensor sequence `Array>` with the erased tensor at the specified p ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; use orion::numbers::{i32, IntegerTrait}; diff --git a/docs/framework/operators/tensor/tensor.shrink.md b/docs/framework/operators/tensor/tensor.shrink.md index 37c2e74aa..45bc26b1b 100644 --- a/docs/framework/operators/tensor/tensor.shrink.md +++ b/docs/framework/operators/tensor/tensor.shrink.md @@ -22,7 +22,7 @@ Constrain input and output types to fixed point numbers. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.sign.md b/docs/framework/operators/tensor/tensor.sign.md index 8acb8c730..1829b9264 100644 --- a/docs/framework/operators/tensor/tensor.sign.md +++ b/docs/framework/operators/tensor/tensor.sign.md @@ -18,7 +18,7 @@ A new `Tensor` of the same shape as the input tensor with The sign of the inp ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; diff --git a/docs/framework/operators/tensor/tensor.sin.md b/docs/framework/operators/tensor/tensor.sin.md index 3c7e0da17..e315ac8b3 100644 --- a/docs/framework/operators/tensor/tensor.sin.md +++ b/docs/framework/operators/tensor/tensor.sin.md @@ -23,7 +23,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; diff --git a/docs/framework/operators/tensor/tensor.sinh.md b/docs/framework/operators/tensor/tensor.sinh.md index c89f40ecb..a593594ed 100644 --- a/docs/framework/operators/tensor/tensor.sinh.md +++ b/docs/framework/operators/tensor/tensor.sinh.md @@ -24,7 +24,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.slice.md b/docs/framework/operators/tensor/tensor.slice.md index 0f8782d6e..50a8ecaab 100644 --- a/docs/framework/operators/tensor/tensor.slice.md +++ b/docs/framework/operators/tensor/tensor.slice.md @@ -27,7 +27,7 @@ A new `Tensor` slice of the input tensor. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.sqrt.md b/docs/framework/operators/tensor/tensor.sqrt.md index 918913f0b..dd45c9b83 100644 --- a/docs/framework/operators/tensor/tensor.sqrt.md +++ b/docs/framework/operators/tensor/tensor.sqrt.md @@ -23,7 +23,7 @@ Constrain input and output types to fixed point tensors. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.squeeze.md b/docs/framework/operators/tensor/tensor.squeeze.md index 28076d678..d251cbb7d 100644 --- a/docs/framework/operators/tensor/tensor.squeeze.md +++ b/docs/framework/operators/tensor/tensor.squeeze.md @@ -18,7 +18,7 @@ A new `Tensor` Reshaped tensor with same data as input. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.stride.md b/docs/framework/operators/tensor/tensor.stride.md index 75313770a..7085835fd 100644 --- a/docs/framework/operators/tensor/tensor.stride.md +++ b/docs/framework/operators/tensor/tensor.stride.md @@ -16,7 +16,7 @@ A span of usize representing the stride for each dimension of the tensor. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.tanh.md b/docs/framework/operators/tensor/tensor.tanh.md index 9ffec7780..69090698e 100644 --- a/docs/framework/operators/tensor/tensor.tanh.md +++ b/docs/framework/operators/tensor/tensor.tanh.md @@ -24,7 +24,7 @@ Constrain input and output types to fixed point tensors. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.transpose.md b/docs/framework/operators/tensor/tensor.transpose.md index 0dee6e2fb..adbdbf63a 100644 --- a/docs/framework/operators/tensor/tensor.transpose.md +++ b/docs/framework/operators/tensor/tensor.transpose.md @@ -22,7 +22,7 @@ A `Tensor` instance with the axes reordered according to the given permutatio ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.trilu.md b/docs/framework/operators/tensor/tensor.trilu.md index afc504691..a3e3a3088 100644 --- a/docs/framework/operators/tensor/tensor.trilu.md +++ b/docs/framework/operators/tensor/tensor.trilu.md @@ -23,7 +23,7 @@ A `Tensor` instance with the uppper/lower triangular part of the tensor. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.unravel_index.md b/docs/framework/operators/tensor/tensor.unravel_index.md index 6221a5bd7..388bc2614 100644 --- a/docs/framework/operators/tensor/tensor.unravel_index.md +++ b/docs/framework/operators/tensor/tensor.unravel_index.md @@ -22,7 +22,7 @@ The unraveled indices corresponding to the given index. ## Examples ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.unsqueeze.md b/docs/framework/operators/tensor/tensor.unsqueeze.md index ba73743c0..22ef500ed 100644 --- a/docs/framework/operators/tensor/tensor.unsqueeze.md +++ b/docs/framework/operators/tensor/tensor.unsqueeze.md @@ -25,7 +25,7 @@ Reshaped `Tensor` with same data as input. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.where.md b/docs/framework/operators/tensor/tensor.where.md index 187f12ecb..7151ce506 100644 --- a/docs/framework/operators/tensor/tensor.where.md +++ b/docs/framework/operators/tensor/tensor.where.md @@ -25,7 +25,7 @@ chosen from x or y depending on the condition. ## Example ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/framework/operators/tensor/tensor.xor.md b/docs/framework/operators/tensor/tensor.xor.md index 53d89b24e..89e4c41ea 100644 --- a/docs/framework/operators/tensor/tensor.xor.md +++ b/docs/framework/operators/tensor/tensor.xor.md @@ -27,7 +27,7 @@ A new `Tensor` of booleans (0 or 1) with the same shape as the broadcaste Case 1: Compare tensors with same shape ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; @@ -48,7 +48,7 @@ fn xor_example() -> Tensor { Case 2: Compare tensors with different shapes ```rust -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; diff --git a/docs/resources/tutorials/mnist-classification-with-feedforward-neural-network.md b/docs/resources/tutorials/mnist-classification-with-feedforward-neural-network.md index a58436ff4..62c5603fe 100644 --- a/docs/resources/tutorials/mnist-classification-with-feedforward-neural-network.md +++ b/docs/resources/tutorials/mnist-classification-with-feedforward-neural-network.md @@ -390,7 +390,7 @@ os.makedirs('src/generated', exist_ok=True) for tensor_name, tensor in tensors.items(): with open(os.path.join('src', 'generated', f"{tensor_name}.cairo"), "w") as f: f.write( - "use array::ArrayTrait;\n" + + "use core::array::ArrayTrait;\n" + "use orion::operators::tensor::core::{TensorTrait, Tensor, ExtraParams};\n" + "use orion::operators::tensor::implementations::impl_tensor_i32::Tensor_i32;\n" + "use orion::numbers::fixed_point::core::FixedImpl;\n" + @@ -432,7 +432,7 @@ We have just created a file called `lib.cairo`, which contains a module declarat Here is a file we generated: `fc1_bias.cairo` ```rust -use array::ArrayTrait; +use core::array::ArrayTrait; use orion::operators::tensor::core::{TensorTrait, Tensor, ExtraParams}; use orion::operators::tensor::implementations::impl_tensor_i32::Tensor_i32; use orion::numbers::fixed_point::core::FixedImpl; diff --git a/src/numbers.cairo b/src/numbers.cairo index ff9bdf7b4..201a004c7 100644 --- a/src/numbers.cairo +++ b/src/numbers.cairo @@ -975,7 +975,7 @@ impl FP16x16WNumber of NumberTrait { use orion::numbers::fixed_point::implementations::fp64x64::core::{ FP64x64Impl, FP64x64, FP64x64Add, FP64x64Sub }; -use orion::numbers::fixed_point::implementations::fp64x64::core as core_fp64x64; +use orion::numbers::fixed_point::implementations::fp64x64::{core as core_fp64x64}; use orion::numbers::fixed_point::implementations::fp64x64::comp as comp_fp64x64; use cubit::f128 as fp64x64; @@ -1084,7 +1084,7 @@ impl FP64x64Number of NumberTrait { FP64x64Impl::ZERO() } fn is_zero(self: FP64x64) -> bool { - fp64x64::core::eq(@self, @FP64x64Impl::ZERO()) + fp64x64::ops::eq(@self, @FP64x64Impl::ZERO()) } fn half() -> FP64x64 { @@ -1104,11 +1104,11 @@ impl FP64x64Number of NumberTrait { } fn abs(self: FP64x64) -> FP64x64 { - fp64x64::core::abs(self) + fp64x64::ops::abs(self) } fn neg(self: FP64x64) -> FP64x64 { - fp64x64::core::neg(self) + fp64x64::ops::neg(self) } fn min_value() -> FP64x64 { @@ -1312,7 +1312,7 @@ impl FP32x32Number of NumberTrait { FP32x32Impl::ZERO() } fn is_zero(self: FP32x32) -> bool { - fp32x32::core::eq(@self, @FP32x32Impl::ZERO()) + fp32x32::ops::eq(@self, @FP32x32Impl::ZERO()) } fn half() -> FP32x32 { @@ -1332,11 +1332,11 @@ impl FP32x32Number of NumberTrait { } fn abs(self: FP32x32) -> FP32x32 { - fp32x32::core::abs(self) + fp32x32::ops::abs(self) } fn neg(self: FP32x32) -> FP32x32 { - fp32x32::core::neg(self) + fp32x32::ops::neg(self) } fn min_value() -> FP32x32 { diff --git a/src/numbers/complex_number/complex64.cairo b/src/numbers/complex_number/complex64.cairo index 026fcd58b..5b588fb9d 100644 --- a/src/numbers/complex_number/complex64.cairo +++ b/src/numbers/complex_number/complex64.cairo @@ -1,4 +1,4 @@ -use debug::PrintTrait; +use core::debug::PrintTrait; use orion::numbers::complex_number::complex_trait::ComplexTrait; use orion::numbers::{FP64x64, FP64x64Impl, FP32x32, FP32x32Impl, FixedTrait}; diff --git a/src/numbers/fixed_point/implementations/fp16x16/core.cairo b/src/numbers/fixed_point/implementations/fp16x16/core.cairo index 02a4f9db8..6adecff9b 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/core.cairo @@ -1,12 +1,12 @@ -use debug::PrintTrait; +use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{TryInto, Into}; +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, trig, hyp}; +use orion::numbers::fixed_point::implementations::fp16x16::math::{core as core_math, trig, hyp}; use orion::numbers::fixed_point::utils; /// A struct representing a fixed point number. @@ -50,12 +50,12 @@ impl FP16x16Impl of FixedTrait { } fn from_felt(val: felt252) -> FP16x16 { - let mag = integer::u32_try_from_felt252(utils::felt_abs(val)).unwrap(); + let mag = core::integer::u32_try_from_felt252(utils::felt_abs(val)).unwrap(); return FixedTrait::new(mag, utils::felt_sign(val)); } fn abs(self: FP16x16) -> FP16x16 { - return core::abs(self); + return core_math::abs(self); } fn acos(self: FP16x16) -> FP16x16 { @@ -95,7 +95,7 @@ impl FP16x16Impl of FixedTrait { } fn ceil(self: FP16x16) -> FP16x16 { - return core::ceil(self); + return core_math::ceil(self); } fn cos(self: FP16x16) -> FP16x16 { @@ -111,46 +111,46 @@ impl FP16x16Impl of FixedTrait { } fn floor(self: FP16x16) -> FP16x16 { - return core::floor(self); + return core_math::floor(self); } // Calculates the natural exponent of x: e^x fn exp(self: FP16x16) -> FP16x16 { - return core::exp(self); + return core_math::exp(self); } // Calculates the binary exponent of x: 2^x fn exp2(self: FP16x16) -> FP16x16 { - return core::exp2(self); + return core_math::exp2(self); } // Calculates the natural logarithm of x: ln(x) // self must be greater than zero fn ln(self: FP16x16) -> FP16x16 { - return core::ln(self); + return core_math::ln(self); } // Calculates the binary logarithm of x: log2(x) // self must be greather than zero fn log2(self: FP16x16) -> FP16x16 { - return core::log2(self); + return core_math::log2(self); } // Calculates the base 10 log of x: log10(x) // self must be greater than zero fn log10(self: FP16x16) -> FP16x16 { - return core::log10(self); + return core_math::log10(self); } // Calclates the value of x^y and checks for overflow before returning // self is a fixed point value // b is a fixed point value fn pow(self: FP16x16, b: FP16x16) -> FP16x16 { - return core::pow(self, b); + return core_math::pow(self, b); } fn round(self: FP16x16) -> FP16x16 { - return core::round(self); + return core_math::round(self); } fn sin(self: FP16x16) -> FP16x16 { @@ -168,7 +168,7 @@ impl FP16x16Impl of FixedTrait { // Calculates the square root of a fixed point value // x must be positive fn sqrt(self: FP16x16) -> FP16x16 { - return core::sqrt(self); + return core_math::sqrt(self); } fn tan(self: FP16x16) -> FP16x16 { @@ -184,7 +184,7 @@ impl FP16x16Impl of FixedTrait { } fn sign(self: FP16x16) -> FP16x16 { - return core::sign(self); + return core_math::sign(self); } fn NaN() -> FP16x16 { @@ -312,18 +312,18 @@ impl FP16x16TryIntoU8 of TryInto { impl FP16x16PartialEq of PartialEq { #[inline(always)] fn eq(lhs: @FP16x16, rhs: @FP16x16) -> bool { - return core::eq(lhs, rhs); + return core_math::eq(lhs, rhs); } #[inline(always)] fn ne(lhs: @FP16x16, rhs: @FP16x16) -> bool { - return core::ne(lhs, rhs); + return core_math::ne(lhs, rhs); } } impl FP16x16Add of Add { fn add(lhs: FP16x16, rhs: FP16x16) -> FP16x16 { - return core::add(lhs, rhs); + return core_math::add(lhs, rhs); } } @@ -336,7 +336,7 @@ impl FP16x16AddEq of AddEq { impl FP16x16Sub of Sub { fn sub(lhs: FP16x16, rhs: FP16x16) -> FP16x16 { - return core::sub(lhs, rhs); + return core_math::sub(lhs, rhs); } } @@ -349,7 +349,7 @@ impl FP16x16SubEq of SubEq { impl FP16x16Mul of Mul { fn mul(lhs: FP16x16, rhs: FP16x16) -> FP16x16 { - return core::mul(lhs, rhs); + return core_math::mul(lhs, rhs); } } @@ -362,7 +362,7 @@ impl FP16x16MulEq of MulEq { impl FP16x16Div of Div { fn div(lhs: FP16x16, rhs: FP16x16) -> FP16x16 { - return core::div(lhs, rhs); + return core_math::div(lhs, rhs); } } @@ -376,36 +376,36 @@ impl FP16x16DivEq of DivEq { impl FP16x16PartialOrd of PartialOrd { #[inline(always)] fn ge(lhs: FP16x16, rhs: FP16x16) -> bool { - return core::ge(lhs, rhs); + return core_math::ge(lhs, rhs); } #[inline(always)] fn gt(lhs: FP16x16, rhs: FP16x16) -> bool { - return core::gt(lhs, rhs); + return core_math::gt(lhs, rhs); } #[inline(always)] fn le(lhs: FP16x16, rhs: FP16x16) -> bool { - return core::le(lhs, rhs); + return core_math::le(lhs, rhs); } #[inline(always)] fn lt(lhs: FP16x16, rhs: FP16x16) -> bool { - return core::lt(lhs, rhs); + return core_math::lt(lhs, rhs); } } impl FP16x16Neg of Neg { #[inline(always)] fn neg(a: FP16x16) -> FP16x16 { - return core::neg(a); + return core_math::neg(a); } } impl FP16x16Rem of Rem { #[inline(always)] fn rem(lhs: FP16x16, rhs: FP16x16) -> FP16x16 { - return core::rem(lhs, rhs); + return core_math::rem(lhs, rhs); } } diff --git a/src/numbers/fixed_point/implementations/fp16x16/helpers.cairo b/src/numbers/fixed_point/implementations/fp16x16/helpers.cairo index c398b3911..03e0f49fb 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/helpers.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/helpers.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use traits::Into; +use core::debug::PrintTrait; +use core::traits::Into; use orion::numbers::fixed_point::implementations::fp16x16::core::{ HALF, ONE, TWO, FP16x16, FP16x16Impl, FP16x16Sub, FP16x16Div, FixedTrait, FP16x16Print diff --git a/src/numbers/fixed_point/implementations/fp16x16/math/core.cairo b/src/numbers/fixed_point/implementations/fp16x16/math/core.cairo index 1f35354aa..6cb9bebfe 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/math/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/math/core.cairo @@ -1,8 +1,9 @@ use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{Into, TryInto}; -use integer::{u32_safe_divmod, u32_as_non_zero, u32_wide_mul}; +use core::option::OptionTrait; +use core::result::{ResultTrait, ResultTraitImpl}; +use core::traits::{Into, TryInto}; +use core::integer; +use core::integer::{u32_safe_divmod, u32_as_non_zero, u32_wide_mul}; use orion::numbers::fixed_point::implementations::fp16x16::core::{ HALF, ONE, MAX, FP16x16, FP16x16Impl, FP16x16Add, FP16x16AddEq, FP16x16Sub, FP16x16Mul, diff --git a/src/numbers/fixed_point/implementations/fp16x16/math/hyp.cairo b/src/numbers/fixed_point/implementations/fp16x16/math/hyp.cairo index adee2421f..78d0cdac2 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/math/hyp.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/math/hyp.cairo @@ -47,8 +47,8 @@ fn atanh(a: FP16x16) -> FP16x16 { #[cfg(test)] mod tests { - use option::OptionTrait; - use traits::Into; + use core::option::OptionTrait; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp16x16::helpers::assert_precise; diff --git a/src/numbers/fixed_point/implementations/fp16x16/math/trig.cairo b/src/numbers/fixed_point/implementations/fp16x16/math/trig.cairo index 52394686f..8b0d9b47f 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/math/trig.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/math/trig.cairo @@ -1,6 +1,6 @@ -use debug::PrintTrait; -use integer::{u32_safe_divmod, u32_as_non_zero}; -use option::OptionTrait; +use core::debug::PrintTrait; +use core::integer::{u32_safe_divmod, u32_as_non_zero}; +use core::option::OptionTrait; use orion::numbers::fixed_point::implementations::fp16x16::math::lut; use orion::numbers::fixed_point::implementations::fp16x16::core::{ @@ -206,7 +206,7 @@ fn _sin_loop(a: FP16x16, i: u32, acc: FP16x16) -> FP16x16 { #[cfg(test)] mod tests { - use traits::Into; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp16x16::helpers::{ assert_precise, assert_relative diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo index 7be8ab278..65676cb45 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo @@ -1,12 +1,12 @@ -use debug::PrintTrait; +use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{TryInto, Into}; +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, trig, hyp}; +use orion::numbers::fixed_point::implementations::fp16x16wide::math::{core as core_math, trig, hyp}; use orion::numbers::fixed_point::utils; /// A struct representing a fixed point number. @@ -50,12 +50,12 @@ impl FP16x16WImpl of FixedTrait { } fn from_felt(val: felt252) -> FP16x16W { - let mag = integer::u64_try_from_felt252(utils::felt_abs(val)).unwrap(); + let mag = core::integer::u64_try_from_felt252(utils::felt_abs(val)).unwrap(); return FixedTrait::new(mag, utils::felt_sign(val)); } fn abs(self: FP16x16W) -> FP16x16W { - return core::abs(self); + return core_math::abs(self); } fn acos(self: FP16x16W) -> FP16x16W { @@ -95,7 +95,7 @@ impl FP16x16WImpl of FixedTrait { } fn ceil(self: FP16x16W) -> FP16x16W { - return core::ceil(self); + return core_math::ceil(self); } fn cos(self: FP16x16W) -> FP16x16W { @@ -111,46 +111,46 @@ impl FP16x16WImpl of FixedTrait { } fn floor(self: FP16x16W) -> FP16x16W { - return core::floor(self); + return core_math::floor(self); } // Calculates the natural exponent of x: e^x fn exp(self: FP16x16W) -> FP16x16W { - return core::exp(self); + return core_math::exp(self); } // Calculates the binary exponent of x: 2^x fn exp2(self: FP16x16W) -> FP16x16W { - return core::exp2(self); + return core_math::exp2(self); } // Calculates the natural logarithm of x: ln(x) // self must be greater than zero fn ln(self: FP16x16W) -> FP16x16W { - return core::ln(self); + return core_math::ln(self); } // Calculates the binary logarithm of x: log2(x) // self must be greather than zero fn log2(self: FP16x16W) -> FP16x16W { - return core::log2(self); + return core_math::log2(self); } // Calculates the base 10 log of x: log10(x) // self must be greater than zero fn log10(self: FP16x16W) -> FP16x16W { - return core::log10(self); + return core_math::log10(self); } // Calclates the value of x^y and checks for overflow before returning // self is a fixed point value // b is a fixed point value fn pow(self: FP16x16W, b: FP16x16W) -> FP16x16W { - return core::pow(self, b); + return core_math::pow(self, b); } fn round(self: FP16x16W) -> FP16x16W { - return core::round(self); + return core_math::round(self); } fn sin(self: FP16x16W) -> FP16x16W { @@ -168,7 +168,7 @@ impl FP16x16WImpl of FixedTrait { // Calculates the square root of a fixed point value // x must be positive fn sqrt(self: FP16x16W) -> FP16x16W { - return core::sqrt(self); + return core_math::sqrt(self); } fn tan(self: FP16x16W) -> FP16x16W { @@ -184,7 +184,7 @@ impl FP16x16WImpl of FixedTrait { } fn sign(self: FP16x16W) -> FP16x16W { - return core::sign(self); + return core_math::sign(self); } fn NaN() -> FP16x16W { @@ -327,18 +327,18 @@ impl FP16x16WTryIntoU8 of TryInto { impl FP16x16WPartialEq of PartialEq { #[inline(always)] fn eq(lhs: @FP16x16W, rhs: @FP16x16W) -> bool { - return core::eq(lhs, rhs); + return core_math::eq(lhs, rhs); } #[inline(always)] fn ne(lhs: @FP16x16W, rhs: @FP16x16W) -> bool { - return core::ne(lhs, rhs); + return core_math::ne(lhs, rhs); } } impl FP16x16WAdd of Add { fn add(lhs: FP16x16W, rhs: FP16x16W) -> FP16x16W { - return core::add(lhs, rhs); + return core_math::add(lhs, rhs); } } @@ -351,7 +351,7 @@ impl FP16x16WAddEq of AddEq { impl FP16x16WSub of Sub { fn sub(lhs: FP16x16W, rhs: FP16x16W) -> FP16x16W { - return core::sub(lhs, rhs); + return core_math::sub(lhs, rhs); } } @@ -364,7 +364,7 @@ impl FP16x16WSubEq of SubEq { impl FP16x16WMul of Mul { fn mul(lhs: FP16x16W, rhs: FP16x16W) -> FP16x16W { - return core::mul(lhs, rhs); + return core_math::mul(lhs, rhs); } } @@ -377,7 +377,7 @@ impl FP16x16WMulEq of MulEq { impl FP16x16WDiv of Div { fn div(lhs: FP16x16W, rhs: FP16x16W) -> FP16x16W { - return core::div(lhs, rhs); + return core_math::div(lhs, rhs); } } @@ -391,36 +391,36 @@ impl FP16x16WDivEq of DivEq { impl FP16x16WPartialOrd of PartialOrd { #[inline(always)] fn ge(lhs: FP16x16W, rhs: FP16x16W) -> bool { - return core::ge(lhs, rhs); + return core_math::ge(lhs, rhs); } #[inline(always)] fn gt(lhs: FP16x16W, rhs: FP16x16W) -> bool { - return core::gt(lhs, rhs); + return core_math::gt(lhs, rhs); } #[inline(always)] fn le(lhs: FP16x16W, rhs: FP16x16W) -> bool { - return core::le(lhs, rhs); + return core_math::le(lhs, rhs); } #[inline(always)] fn lt(lhs: FP16x16W, rhs: FP16x16W) -> bool { - return core::lt(lhs, rhs); + return core_math::lt(lhs, rhs); } } impl FP16x16WNeg of Neg { #[inline(always)] fn neg(a: FP16x16W) -> FP16x16W { - return core::neg(a); + return core_math::neg(a); } } impl FP16x16WRem of Rem { #[inline(always)] fn rem(lhs: FP16x16W, rhs: FP16x16W) -> FP16x16W { - return core::rem(lhs, rhs); + return core_math::rem(lhs, rhs); } } diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/helpers.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/helpers.cairo index a36f52be1..d6f50b1b5 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/helpers.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/helpers.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use traits::Into; +use core::debug::PrintTrait; +use core::traits::Into; use orion::numbers::fixed_point::implementations::fp16x16wide::core::{ HALF, ONE, TWO, FP16x16W, FP16x16WImpl, FP16x16WSub, FP16x16WDiv, FixedTrait, FP16x16WPrint diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/math/core.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/math/core.cairo index 21f8b2cc8..62288a0f1 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/math/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/math/core.cairo @@ -1,8 +1,9 @@ use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{Into, TryInto}; -use integer::{u64_safe_divmod, u64_as_non_zero, u64_wide_mul}; +use core::option::OptionTrait; +use core::result::{ResultTrait, ResultTraitImpl}; +use core::traits::{Into, TryInto}; +use core::integer; +use core::integer::{u64_safe_divmod, u64_as_non_zero, u64_wide_mul}; use orion::numbers::fixed_point::implementations::fp16x16wide::core::{ HALF, ONE, MAX, FP16x16W, FP16x16WImpl, FP16x16WAdd, FP16x16WAddEq, FP16x16WSub, FP16x16WMul, diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/math/hyp.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/math/hyp.cairo index 8ab228449..527b6046d 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/math/hyp.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/math/hyp.cairo @@ -47,8 +47,8 @@ fn atanh(a: FP16x16W) -> FP16x16W { #[cfg(test)] mod tests { - use option::OptionTrait; - use traits::Into; + use core::option::OptionTrait; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp16x16wide::helpers::assert_precise; diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/math/trig.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/math/trig.cairo index 0cfebea64..3c22fd97f 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/math/trig.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/math/trig.cairo @@ -1,6 +1,6 @@ -use debug::PrintTrait; -use integer::{u64_safe_divmod, u64_as_non_zero}; -use option::OptionTrait; +use core::debug::PrintTrait; +use core::integer::{u64_safe_divmod, u64_as_non_zero}; +use core::option::OptionTrait; use orion::numbers::fixed_point::implementations::fp16x16wide::math::lut; use orion::numbers::fixed_point::implementations::fp16x16wide::core::{ @@ -206,7 +206,7 @@ fn _sin_loop(a: FP16x16W, i: u64, acc: FP16x16W) -> FP16x16W { #[cfg(test)] mod tests { - use traits::Into; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp16x16wide::helpers::{ assert_precise, assert_relative diff --git a/src/numbers/fixed_point/implementations/fp32x32/core.cairo b/src/numbers/fixed_point/implementations/fp32x32/core.cairo index fca39b6fb..c813852cd 100644 --- a/src/numbers/fixed_point/implementations/fp32x32/core.cairo +++ b/src/numbers/fixed_point/implementations/fp32x32/core.cairo @@ -1,8 +1,8 @@ -use debug::PrintTrait; +use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{TryInto, Into}; +use core::option::OptionTrait; +use core::result::{ResultTrait, ResultTraitImpl}; +use core::traits::{TryInto, Into}; use cubit::f64 as fp32x32; use cubit::f64::Fixed as FP32x32; @@ -41,12 +41,12 @@ impl FP32x32Impl of FixedTrait { } fn from_felt(val: felt252) -> FP32x32 { - let mag = integer::u64_try_from_felt252(utils::felt_abs(val)).unwrap(); + let mag = core::integer::u64_try_from_felt252(utils::felt_abs(val)).unwrap(); return FixedTrait::new(mag, utils::felt_sign(val)); } fn abs(self: FP32x32) -> FP32x32 { - return fp32x32::core::abs(self); + return fp32x32::ops::abs(self); } fn acos(self: FP32x32) -> FP32x32 { @@ -86,7 +86,7 @@ impl FP32x32Impl of FixedTrait { } fn ceil(self: FP32x32) -> FP32x32 { - return fp32x32::core::ceil(self); + return fp32x32::ops::ceil(self); } fn cos(self: FP32x32) -> FP32x32 { @@ -102,46 +102,46 @@ impl FP32x32Impl of FixedTrait { } fn floor(self: FP32x32) -> FP32x32 { - return fp32x32::core::floor(self); + return fp32x32::ops::floor(self); } // Calculates the natural exponent of x: e^x fn exp(self: FP32x32) -> FP32x32 { - return fp32x32::core::exp(self); + return fp32x32::ops::exp(self); } // Calculates the binary exponent of x: 2^x fn exp2(self: FP32x32) -> FP32x32 { - return fp32x32::core::exp2(self); + return fp32x32::ops::exp2(self); } // Calculates the natural logarithm of x: ln(x) // self must be greater than zero fn ln(self: FP32x32) -> FP32x32 { - return fp32x32::core::ln(self); + return fp32x32::ops::ln(self); } // Calculates the binary logarithm of x: log2(x) // self must be greather than zero fn log2(self: FP32x32) -> FP32x32 { - return fp32x32::core::log2(self); + return fp32x32::ops::log2(self); } // Calculates the base 10 log of x: log10(x) // self must be greater than zero fn log10(self: FP32x32) -> FP32x32 { - return fp32x32::core::log10(self); + return fp32x32::ops::log10(self); } // Calclates the value of x^y and checks for overflow before returning // self is a fixed point value // b is a fixed point value fn pow(self: FP32x32, b: FP32x32) -> FP32x32 { - return fp32x32::core::pow(self, b); + return fp32x32::ops::pow(self, b); } fn round(self: FP32x32) -> FP32x32 { - return fp32x32::core::round(self); + return fp32x32::ops::round(self); } fn sin(self: FP32x32) -> FP32x32 { @@ -159,7 +159,7 @@ impl FP32x32Impl of FixedTrait { // Calculates the square root of a fixed point value // x must be positive fn sqrt(self: FP32x32) -> FP32x32 { - return fp32x32::core::sqrt(self); + return fp32x32::ops::sqrt(self); } fn tan(self: FP32x32) -> FP32x32 { @@ -285,100 +285,100 @@ impl FP32x32TryIntoI8 of TryInto { // impl FP32x32PartialEq of PartialEq { // #[inline(always)] // fn eq(lhs: @FP32x32, rhs: @FP32x32) -> bool { -// return fp32x32::core::eq(lhs, rhs); +// return fp32x32::ops::eq(lhs, rhs); // } // #[inline(always)] // fn ne(lhs: @FP32x32, rhs: @FP32x32) -> bool { -// return fp32x32::core::ne(lhs, rhs); +// return fp32x32::ops::ne(lhs, rhs); // } // } impl FP32x32Add of Add { fn add(lhs: FP32x32, rhs: FP32x32) -> FP32x32 { - return fp32x32::core::add(lhs, rhs); + return fp32x32::ops::add(lhs, rhs); } } impl FP32x32AddEq of AddEq { #[inline(always)] fn add_eq(ref self: FP32x32, other: FP32x32) { - self = fp32x32::core::add(self, other); + self = fp32x32::ops::add(self, other); } } impl FP32x32Sub of Sub { fn sub(lhs: FP32x32, rhs: FP32x32) -> FP32x32 { - return fp32x32::core::sub(lhs, rhs); + return fp32x32::ops::sub(lhs, rhs); } } impl FP32x32SubEq of SubEq { #[inline(always)] fn sub_eq(ref self: FP32x32, other: FP32x32) { - self = fp32x32::core::sub(self, other); + self = fp32x32::ops::sub(self, other); } } impl FP32x32Mul of Mul { fn mul(lhs: FP32x32, rhs: FP32x32) -> FP32x32 { - return fp32x32::core::mul(lhs, rhs); + return fp32x32::ops::mul(lhs, rhs); } } impl FP32x32MulEq of MulEq { #[inline(always)] fn mul_eq(ref self: FP32x32, other: FP32x32) { - self = fp32x32::core::mul(self, other); + self = fp32x32::ops::mul(self, other); } } impl FP32x32Div of Div { fn div(lhs: FP32x32, rhs: FP32x32) -> FP32x32 { - return fp32x32::core::div(lhs, rhs); + return fp32x32::ops::div(lhs, rhs); } } impl FP32x32DivEq of DivEq { #[inline(always)] fn div_eq(ref self: FP32x32, other: FP32x32) { - self = fp32x32::core::div(self, other); + self = fp32x32::ops::div(self, other); } } impl FP32x32PartialOrd of PartialOrd { #[inline(always)] fn ge(lhs: FP32x32, rhs: FP32x32) -> bool { - return fp32x32::core::ge(lhs, rhs); + return fp32x32::ops::ge(lhs, rhs); } #[inline(always)] fn gt(lhs: FP32x32, rhs: FP32x32) -> bool { - return fp32x32::core::gt(lhs, rhs); + return fp32x32::ops::gt(lhs, rhs); } #[inline(always)] fn le(lhs: FP32x32, rhs: FP32x32) -> bool { - return fp32x32::core::le(lhs, rhs); + return fp32x32::ops::le(lhs, rhs); } #[inline(always)] fn lt(lhs: FP32x32, rhs: FP32x32) -> bool { - return fp32x32::core::lt(lhs, rhs); + return fp32x32::ops::lt(lhs, rhs); } } impl FP32x32Neg of Neg { #[inline(always)] fn neg(a: FP32x32) -> FP32x32 { - return fp32x32::core::neg(a); + return fp32x32::ops::neg(a); } } impl FP32x32Rem of Rem { #[inline(always)] fn rem(lhs: FP32x32, rhs: FP32x32) -> FP32x32 { - return fp32x32::core::rem(lhs, rhs); + return fp32x32::ops::rem(lhs, rhs); } } diff --git a/src/numbers/fixed_point/implementations/fp64x64/core.cairo b/src/numbers/fixed_point/implementations/fp64x64/core.cairo index bb674e03c..e5daf4920 100644 --- a/src/numbers/fixed_point/implementations/fp64x64/core.cairo +++ b/src/numbers/fixed_point/implementations/fp64x64/core.cairo @@ -1,13 +1,13 @@ -use debug::PrintTrait; +use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{TryInto, Into}; +use core::option::OptionTrait; +use core::result::{ResultTrait, ResultTraitImpl}; +use core::traits::{TryInto, Into}; use cubit::f128 as fp64x64; use cubit::f128::types::Fixed as FP64x64; use cubit::f128::ONE_u128 as ONE; -use cubit::f128::core::MAX_u128 as MAX; +use cubit::f128::ops::MAX_u128 as MAX; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::utils; @@ -41,12 +41,12 @@ impl FP64x64Impl of FixedTrait { } fn from_felt(val: felt252) -> FP64x64 { - let mag = integer::u128_try_from_felt252(utils::felt_abs(val)).unwrap(); + let mag = core::integer::u128_try_from_felt252(utils::felt_abs(val)).unwrap(); return FixedTrait::new(mag, utils::felt_sign(val)); } fn abs(self: FP64x64) -> FP64x64 { - return fp64x64::core::abs(self); + return fp64x64::ops::abs(self); } fn acos(self: FP64x64) -> FP64x64 { @@ -86,7 +86,7 @@ impl FP64x64Impl of FixedTrait { } fn ceil(self: FP64x64) -> FP64x64 { - return fp64x64::core::ceil(self); + return fp64x64::ops::ceil(self); } fn cos(self: FP64x64) -> FP64x64 { @@ -102,46 +102,46 @@ impl FP64x64Impl of FixedTrait { } fn floor(self: FP64x64) -> FP64x64 { - return fp64x64::core::floor(self); + return fp64x64::ops::floor(self); } // Calculates the natural exponent of x: e^x fn exp(self: FP64x64) -> FP64x64 { - return fp64x64::core::exp(self); + return fp64x64::ops::exp(self); } // Calculates the binary exponent of x: 2^x fn exp2(self: FP64x64) -> FP64x64 { - return fp64x64::core::exp2(self); + return fp64x64::ops::exp2(self); } // Calculates the natural logarithm of x: ln(x) // self must be greater than zero fn ln(self: FP64x64) -> FP64x64 { - return fp64x64::core::ln(self); + return fp64x64::ops::ln(self); } // Calculates the binary logarithm of x: log2(x) // self must be greather than zero fn log2(self: FP64x64) -> FP64x64 { - return fp64x64::core::log2(self); + return fp64x64::ops::log2(self); } // Calculates the base 10 log of x: log10(x) // self must be greater than zero fn log10(self: FP64x64) -> FP64x64 { - return fp64x64::core::log10(self); + return fp64x64::ops::log10(self); } // Calclates the value of x^y and checks for overflow before returning // self is a fixed point value // b is a fixed point value fn pow(self: FP64x64, b: FP64x64) -> FP64x64 { - return fp64x64::core::pow(self, b); + return fp64x64::ops::pow(self, b); } fn round(self: FP64x64) -> FP64x64 { - return fp64x64::core::round(self); + return fp64x64::ops::round(self); } fn sin(self: FP64x64) -> FP64x64 { @@ -159,7 +159,7 @@ impl FP64x64Impl of FixedTrait { // Calculates the square root of a fixed point value // x must be positive fn sqrt(self: FP64x64) -> FP64x64 { - return fp64x64::core::sqrt(self); + return fp64x64::ops::sqrt(self); } fn tan(self: FP64x64) -> FP64x64 { @@ -285,100 +285,100 @@ impl FP64x64TryIntoI8 of TryInto { // impl FP64x64PartialEq of PartialEq { // #[inline(always)] // fn eq(lhs: @FP64x64, rhs: @FP64x64) -> bool { -// return fp64x64::core::eq(lhs, rhs); +// return fp64x64::ops::eq(lhs, rhs); // } // #[inline(always)] // fn ne(lhs: @FP64x64, rhs: @FP64x64) -> bool { -// return fp64x64::core::ne(lhs, rhs); +// return fp64x64::ops::ne(lhs, rhs); // } // } impl FP64x64Add of Add { fn add(lhs: FP64x64, rhs: FP64x64) -> FP64x64 { - return fp64x64::core::add(lhs, rhs); + return fp64x64::ops::add(lhs, rhs); } } impl FP64x64AddEq of AddEq { #[inline(always)] fn add_eq(ref self: FP64x64, other: FP64x64) { - self = fp64x64::core::add(self, other); + self = fp64x64::ops::add(self, other); } } impl FP64x64Sub of Sub { fn sub(lhs: FP64x64, rhs: FP64x64) -> FP64x64 { - return fp64x64::core::sub(lhs, rhs); + return fp64x64::ops::sub(lhs, rhs); } } impl FP64x64SubEq of SubEq { #[inline(always)] fn sub_eq(ref self: FP64x64, other: FP64x64) { - self = fp64x64::core::sub(self, other); + self = fp64x64::ops::sub(self, other); } } impl FP64x64Mul of Mul { fn mul(lhs: FP64x64, rhs: FP64x64) -> FP64x64 { - return fp64x64::core::mul(lhs, rhs); + return fp64x64::ops::mul(lhs, rhs); } } impl FP64x64MulEq of MulEq { #[inline(always)] fn mul_eq(ref self: FP64x64, other: FP64x64) { - self = fp64x64::core::mul(self, other); + self = fp64x64::ops::mul(self, other); } } impl FP64x64Div of Div { fn div(lhs: FP64x64, rhs: FP64x64) -> FP64x64 { - return fp64x64::core::div(lhs, rhs); + return fp64x64::ops::div(lhs, rhs); } } impl FP64x64DivEq of DivEq { #[inline(always)] fn div_eq(ref self: FP64x64, other: FP64x64) { - self = fp64x64::core::div(self, other); + self = fp64x64::ops::div(self, other); } } impl FP64x64PartialOrd of PartialOrd { #[inline(always)] fn ge(lhs: FP64x64, rhs: FP64x64) -> bool { - return fp64x64::core::ge(lhs, rhs); + return fp64x64::ops::ge(lhs, rhs); } #[inline(always)] fn gt(lhs: FP64x64, rhs: FP64x64) -> bool { - return fp64x64::core::gt(lhs, rhs); + return fp64x64::ops::gt(lhs, rhs); } #[inline(always)] fn le(lhs: FP64x64, rhs: FP64x64) -> bool { - return fp64x64::core::le(lhs, rhs); + return fp64x64::ops::le(lhs, rhs); } #[inline(always)] fn lt(lhs: FP64x64, rhs: FP64x64) -> bool { - return fp64x64::core::lt(lhs, rhs); + return fp64x64::ops::lt(lhs, rhs); } } impl FP64x64Neg of Neg { #[inline(always)] fn neg(a: FP64x64) -> FP64x64 { - return fp64x64::core::neg(a); + return fp64x64::ops::neg(a); } } impl FP64x64Rem of Rem { #[inline(always)] fn rem(lhs: FP64x64, rhs: FP64x64) -> FP64x64 { - return fp64x64::core::rem(lhs, rhs); + return fp64x64::ops::rem(lhs, rhs); } } diff --git a/src/numbers/fixed_point/implementations/fp8x23/core.cairo b/src/numbers/fixed_point/implementations/fp8x23/core.cairo index 9faffd18e..1d2c62d21 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/core.cairo @@ -1,12 +1,12 @@ -use debug::PrintTrait; +use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{TryInto, Into}; +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, trig, hyp}; +use orion::numbers::fixed_point::implementations::fp8x23::math::{core as core_math, trig, hyp}; use orion::numbers::fixed_point::utils; /// A struct representing a fixed point number. @@ -50,12 +50,12 @@ impl FP8x23Impl of FixedTrait { } fn from_felt(val: felt252) -> FP8x23 { - let mag = integer::u32_try_from_felt252(utils::felt_abs(val)).unwrap(); + let mag = core::integer::u32_try_from_felt252(utils::felt_abs(val)).unwrap(); return FixedTrait::new(mag, utils::felt_sign(val)); } fn abs(self: FP8x23) -> FP8x23 { - return core::abs(self); + return core_math::abs(self); } fn acos(self: FP8x23) -> FP8x23 { @@ -95,7 +95,7 @@ impl FP8x23Impl of FixedTrait { } fn ceil(self: FP8x23) -> FP8x23 { - return core::ceil(self); + return core_math::ceil(self); } fn cos(self: FP8x23) -> FP8x23 { @@ -111,46 +111,46 @@ impl FP8x23Impl of FixedTrait { } fn floor(self: FP8x23) -> FP8x23 { - return core::floor(self); + return core_math::floor(self); } // Calculates the natural exponent of x: e^x fn exp(self: FP8x23) -> FP8x23 { - return core::exp(self); + return core_math::exp(self); } // Calculates the binary exponent of x: 2^x fn exp2(self: FP8x23) -> FP8x23 { - return core::exp2(self); + return core_math::exp2(self); } // Calculates the natural logarithm of x: ln(x) // self must be greater than zero fn ln(self: FP8x23) -> FP8x23 { - return core::ln(self); + return core_math::ln(self); } // Calculates the binary logarithm of x: log2(x) // self must be greather than zero fn log2(self: FP8x23) -> FP8x23 { - return core::log2(self); + return core_math::log2(self); } // Calculates the base 10 log of x: log10(x) // self must be greater than zero fn log10(self: FP8x23) -> FP8x23 { - return core::log10(self); + return core_math::log10(self); } // Calclates the value of x^y and checks for overflow before returning // self is a fixed point value // b is a fixed point value fn pow(self: FP8x23, b: FP8x23) -> FP8x23 { - return core::pow(self, b); + return core_math::pow(self, b); } fn round(self: FP8x23) -> FP8x23 { - return core::round(self); + return core_math::round(self); } fn sin(self: FP8x23) -> FP8x23 { @@ -168,7 +168,7 @@ impl FP8x23Impl of FixedTrait { // Calculates the square root of a fixed point value // x must be positive fn sqrt(self: FP8x23) -> FP8x23 { - return core::sqrt(self); + return core_math::sqrt(self); } fn tan(self: FP8x23) -> FP8x23 { @@ -184,7 +184,7 @@ impl FP8x23Impl of FixedTrait { } fn sign(self: FP8x23) -> FP8x23 { - return core::sign(self); + return core_math::sign(self); } fn NaN() -> FP8x23 { @@ -311,18 +311,18 @@ impl FP8x23TryIntoI8 of TryInto { impl FP8x23PartialEq of PartialEq { #[inline(always)] fn eq(lhs: @FP8x23, rhs: @FP8x23) -> bool { - return core::eq(lhs, rhs); + return core_math::eq(lhs, rhs); } #[inline(always)] fn ne(lhs: @FP8x23, rhs: @FP8x23) -> bool { - return core::ne(lhs, rhs); + return core_math::ne(lhs, rhs); } } impl FP8x23Add of Add { fn add(lhs: FP8x23, rhs: FP8x23) -> FP8x23 { - return core::add(lhs, rhs); + return core_math::add(lhs, rhs); } } @@ -335,7 +335,7 @@ impl FP8x23AddEq of AddEq { impl FP8x23Sub of Sub { fn sub(lhs: FP8x23, rhs: FP8x23) -> FP8x23 { - return core::sub(lhs, rhs); + return core_math::sub(lhs, rhs); } } @@ -348,7 +348,7 @@ impl FP8x23SubEq of SubEq { impl FP8x23Mul of Mul { fn mul(lhs: FP8x23, rhs: FP8x23) -> FP8x23 { - return core::mul(lhs, rhs); + return core_math::mul(lhs, rhs); } } @@ -361,7 +361,7 @@ impl FP8x23MulEq of MulEq { impl FP8x23Div of Div { fn div(lhs: FP8x23, rhs: FP8x23) -> FP8x23 { - return core::div(lhs, rhs); + return core_math::div(lhs, rhs); } } @@ -375,36 +375,36 @@ impl FP8x23DivEq of DivEq { impl FP8x23PartialOrd of PartialOrd { #[inline(always)] fn ge(lhs: FP8x23, rhs: FP8x23) -> bool { - return core::ge(lhs, rhs); + return core_math::ge(lhs, rhs); } #[inline(always)] fn gt(lhs: FP8x23, rhs: FP8x23) -> bool { - return core::gt(lhs, rhs); + return core_math::gt(lhs, rhs); } #[inline(always)] fn le(lhs: FP8x23, rhs: FP8x23) -> bool { - return core::le(lhs, rhs); + return core_math::le(lhs, rhs); } #[inline(always)] fn lt(lhs: FP8x23, rhs: FP8x23) -> bool { - return core::lt(lhs, rhs); + return core_math::lt(lhs, rhs); } } impl FP8x23Neg of Neg { #[inline(always)] fn neg(a: FP8x23) -> FP8x23 { - return core::neg(a); + return core_math::neg(a); } } impl FP8x23Rem of Rem { #[inline(always)] fn rem(lhs: FP8x23, rhs: FP8x23) -> FP8x23 { - return core::rem(lhs, rhs); + return core_math::rem(lhs, rhs); } } diff --git a/src/numbers/fixed_point/implementations/fp8x23/helpers.cairo b/src/numbers/fixed_point/implementations/fp8x23/helpers.cairo index e63b1fe6a..f019ef08a 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/helpers.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/helpers.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use traits::Into; +use core::debug::PrintTrait; +use core::traits::Into; use orion::numbers::fixed_point::implementations::fp8x23::core::{ HALF, ONE, TWO, FP8x23, FP8x23Sub, FP8x23Div, FixedTrait, FP8x23Print diff --git a/src/numbers/fixed_point/implementations/fp8x23/math/core.cairo b/src/numbers/fixed_point/implementations/fp8x23/math/core.cairo index 4ac727357..9e3d2cdce 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/math/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/math/core.cairo @@ -1,8 +1,9 @@ use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{Into, TryInto}; -use integer::{u32_safe_divmod, u32_as_non_zero, u32_wide_mul}; +use core::option::OptionTrait; +use core::result::{ResultTrait, ResultTraitImpl}; +use core::traits::{Into, TryInto}; +use core::integer; +use core::integer::{u32_safe_divmod, u32_as_non_zero, u32_wide_mul}; use orion::numbers::fixed_point::implementations::fp8x23::core::{ HALF, ONE, MAX, FP8x23, FP8x23Add, FP8x23Impl, FP8x23AddEq, FP8x23Sub, FP8x23Mul, FP8x23MulEq, diff --git a/src/numbers/fixed_point/implementations/fp8x23/math/hyp.cairo b/src/numbers/fixed_point/implementations/fp8x23/math/hyp.cairo index aa07ded7d..e2059d848 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/math/hyp.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/math/hyp.cairo @@ -47,8 +47,8 @@ fn atanh(a: FP8x23) -> FP8x23 { #[cfg(test)] mod tests { - use option::OptionTrait; - use traits::Into; + use core::option::OptionTrait; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp8x23::helpers::assert_precise; diff --git a/src/numbers/fixed_point/implementations/fp8x23/math/trig.cairo b/src/numbers/fixed_point/implementations/fp8x23/math/trig.cairo index 16cb40189..11aec54ad 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/math/trig.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/math/trig.cairo @@ -1,6 +1,6 @@ -use debug::PrintTrait; -use integer::{u32_safe_divmod, u32_as_non_zero}; -use option::OptionTrait; +use core::debug::PrintTrait; +use core::integer::{u32_safe_divmod, u32_as_non_zero}; +use core::option::OptionTrait; use orion::numbers::fixed_point::implementations::fp8x23::math::lut; use orion::numbers::fixed_point::implementations::fp8x23::core::{ @@ -205,7 +205,7 @@ fn _sin_loop(a: FP8x23, i: u32, acc: FP8x23) -> FP8x23 { #[cfg(test)] mod tests { - use traits::Into; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp8x23::helpers::{ assert_precise, assert_relative diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo index 428570029..f266d0f3a 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo @@ -1,12 +1,12 @@ -use debug::PrintTrait; +use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{TryInto, Into}; +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, trig, hyp}; +use orion::numbers::fixed_point::implementations::fp8x23wide::math::{core as core_math, trig, hyp}; use orion::numbers::fixed_point::utils; /// A struct representing a fixed point number. @@ -50,12 +50,12 @@ impl FP8x23WImpl of FixedTrait { } fn from_felt(val: felt252) -> FP8x23W { - let mag = integer::u64_try_from_felt252(utils::felt_abs(val)).unwrap(); + let mag = core::integer::u64_try_from_felt252(utils::felt_abs(val)).unwrap(); return FixedTrait::new(mag, utils::felt_sign(val)); } fn abs(self: FP8x23W) -> FP8x23W { - return core::abs(self); + return core_math::abs(self); } fn acos(self: FP8x23W) -> FP8x23W { @@ -95,7 +95,7 @@ impl FP8x23WImpl of FixedTrait { } fn ceil(self: FP8x23W) -> FP8x23W { - return core::ceil(self); + return core_math::ceil(self); } fn cos(self: FP8x23W) -> FP8x23W { @@ -111,46 +111,46 @@ impl FP8x23WImpl of FixedTrait { } fn floor(self: FP8x23W) -> FP8x23W { - return core::floor(self); + return core_math::floor(self); } // Calculates the natural exponent of x: e^x fn exp(self: FP8x23W) -> FP8x23W { - return core::exp(self); + return core_math::exp(self); } // Calculates the binary exponent of x: 2^x fn exp2(self: FP8x23W) -> FP8x23W { - return core::exp2(self); + return core_math::exp2(self); } // Calculates the natural logarithm of x: ln(x) // self must be greater than zero fn ln(self: FP8x23W) -> FP8x23W { - return core::ln(self); + return core_math::ln(self); } // Calculates the binary logarithm of x: log2(x) // self must be greather than zero fn log2(self: FP8x23W) -> FP8x23W { - return core::log2(self); + return core_math::log2(self); } // Calculates the base 10 log of x: log10(x) // self must be greater than zero fn log10(self: FP8x23W) -> FP8x23W { - return core::log10(self); + return core_math::log10(self); } // Calclates the value of x^y and checks for overflow before returning // self is a fixed point value // b is a fixed point value fn pow(self: FP8x23W, b: FP8x23W) -> FP8x23W { - return core::pow(self, b); + return core_math::pow(self, b); } fn round(self: FP8x23W) -> FP8x23W { - return core::round(self); + return core_math::round(self); } fn sin(self: FP8x23W) -> FP8x23W { @@ -168,7 +168,7 @@ impl FP8x23WImpl of FixedTrait { // Calculates the square root of a fixed point value // x must be positive fn sqrt(self: FP8x23W) -> FP8x23W { - return core::sqrt(self); + return core_math::sqrt(self); } fn tan(self: FP8x23W) -> FP8x23W { @@ -184,7 +184,7 @@ impl FP8x23WImpl of FixedTrait { } fn sign(self: FP8x23W) -> FP8x23W { - return core::sign(self); + return core_math::sign(self); } fn NaN() -> FP8x23W { @@ -316,18 +316,18 @@ impl FP8x23WTryIntoI8 of TryInto { impl FP8x23WPartialEq of PartialEq { #[inline(always)] fn eq(lhs: @FP8x23W, rhs: @FP8x23W) -> bool { - return core::eq(lhs, rhs); + return core_math::eq(lhs, rhs); } #[inline(always)] fn ne(lhs: @FP8x23W, rhs: @FP8x23W) -> bool { - return core::ne(lhs, rhs); + return core_math::ne(lhs, rhs); } } impl FP8x23WAdd of Add { fn add(lhs: FP8x23W, rhs: FP8x23W) -> FP8x23W { - return core::add(lhs, rhs); + return core_math::add(lhs, rhs); } } @@ -340,7 +340,7 @@ impl FP8x23WAddEq of AddEq { impl FP8x23WSub of Sub { fn sub(lhs: FP8x23W, rhs: FP8x23W) -> FP8x23W { - return core::sub(lhs, rhs); + return core_math::sub(lhs, rhs); } } @@ -353,7 +353,7 @@ impl FP8x23WSubEq of SubEq { impl FP8x23WMul of Mul { fn mul(lhs: FP8x23W, rhs: FP8x23W) -> FP8x23W { - return core::mul(lhs, rhs); + return core_math::mul(lhs, rhs); } } @@ -366,7 +366,7 @@ impl FP8x23WMulEq of MulEq { impl FP8x23WDiv of Div { fn div(lhs: FP8x23W, rhs: FP8x23W) -> FP8x23W { - return core::div(lhs, rhs); + return core_math::div(lhs, rhs); } } @@ -380,36 +380,36 @@ impl FP8x23WDivEq of DivEq { impl FP8x23WPartialOrd of PartialOrd { #[inline(always)] fn ge(lhs: FP8x23W, rhs: FP8x23W) -> bool { - return core::ge(lhs, rhs); + return core_math::ge(lhs, rhs); } #[inline(always)] fn gt(lhs: FP8x23W, rhs: FP8x23W) -> bool { - return core::gt(lhs, rhs); + return core_math::gt(lhs, rhs); } #[inline(always)] fn le(lhs: FP8x23W, rhs: FP8x23W) -> bool { - return core::le(lhs, rhs); + return core_math::le(lhs, rhs); } #[inline(always)] fn lt(lhs: FP8x23W, rhs: FP8x23W) -> bool { - return core::lt(lhs, rhs); + return core_math::lt(lhs, rhs); } } impl FP8x23WNeg of Neg { #[inline(always)] fn neg(a: FP8x23W) -> FP8x23W { - return core::neg(a); + return core_math::neg(a); } } impl FP8x23WRem of Rem { #[inline(always)] fn rem(lhs: FP8x23W, rhs: FP8x23W) -> FP8x23W { - return core::rem(lhs, rhs); + return core_math::rem(lhs, rhs); } } diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/helpers.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/helpers.cairo index 2a08af58a..292dc44d5 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/helpers.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/helpers.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use traits::Into; +use core::debug::PrintTrait; +use core::traits::Into; use orion::numbers::fixed_point::implementations::fp8x23wide::core::{ HALF, ONE, TWO, FP8x23W, FP8x23WSub, FP8x23WDiv, FixedTrait, FP8x23WPrint diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/math/core.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/math/core.cairo index bb3b318ee..9bf6a3db1 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/math/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/math/core.cairo @@ -1,8 +1,9 @@ use core::debug::PrintTrait; -use option::OptionTrait; -use result::{ResultTrait, ResultTraitImpl}; -use traits::{Into, TryInto}; -use integer::{u64_safe_divmod, u64_as_non_zero, u64_wide_mul}; +use core::option::OptionTrait; +use core::result::{ResultTrait, ResultTraitImpl}; +use core::traits::{Into, TryInto}; +use core::integer; +use core::integer::{u64_safe_divmod, u64_as_non_zero, u64_wide_mul}; use orion::numbers::fixed_point::implementations::fp8x23wide::core::{ HALF, ONE, MAX, FP8x23W, FP8x23WAdd, FP8x23WImpl, FP8x23WAddEq, FP8x23WSub, FP8x23WMul, diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/math/hyp.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/math/hyp.cairo index be95eedba..848f711a2 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/math/hyp.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/math/hyp.cairo @@ -47,8 +47,8 @@ fn atanh(a: FP8x23W) -> FP8x23W { #[cfg(test)] mod tests { - use option::OptionTrait; - use traits::Into; + use core::option::OptionTrait; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp8x23wide::helpers::assert_precise; diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/math/trig.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/math/trig.cairo index 5a16d18fa..f2074215c 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/math/trig.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/math/trig.cairo @@ -1,6 +1,6 @@ -use debug::PrintTrait; -use integer::{u64_safe_divmod, u64_as_non_zero}; -use option::OptionTrait; +use core::debug::PrintTrait; +use core::integer::{u64_safe_divmod, u64_as_non_zero}; +use core::option::OptionTrait; use orion::numbers::fixed_point::implementations::fp8x23wide::math::lut; use orion::numbers::fixed_point::implementations::fp8x23wide::core::{ @@ -205,7 +205,7 @@ fn _sin_loop(a: FP8x23W, i: u64, acc: FP8x23W) -> FP8x23W { #[cfg(test)] mod tests { - use traits::Into; + use core::traits::Into; use orion::numbers::fixed_point::implementations::fp8x23wide::helpers::{ assert_precise, assert_relative diff --git a/src/numbers/fixed_point/utils.cairo b/src/numbers/fixed_point/utils.cairo index 7e57cc68d..c15b28690 100644 --- a/src/numbers/fixed_point/utils.cairo +++ b/src/numbers/fixed_point/utils.cairo @@ -1,3 +1,5 @@ +use core::integer; + const HALF_PRIME: felt252 = 1809251394333065606848661391547535052811553607665798349986546028067936010240; diff --git a/src/numbers/signed_integer/i128.cairo b/src/numbers/signed_integer/i128.cairo index f75748b77..183a13c94 100644 --- a/src/numbers/signed_integer/i128.cairo +++ b/src/numbers/signed_integer/i128.cairo @@ -1,4 +1,4 @@ -use traits::Into; +use core::traits::Into; use orion::numbers::signed_integer::integer_trait::IntegerTrait; diff --git a/src/numbers/signed_integer/i16.cairo b/src/numbers/signed_integer/i16.cairo index f668d7b2a..2d1cf6e59 100644 --- a/src/numbers/signed_integer/i16.cairo +++ b/src/numbers/signed_integer/i16.cairo @@ -1,4 +1,4 @@ -use traits::Into; +use core::traits::Into; use orion::numbers::signed_integer::integer_trait::IntegerTrait; diff --git a/src/numbers/signed_integer/i32.cairo b/src/numbers/signed_integer/i32.cairo index 1c1fbc121..b36e59cc0 100644 --- a/src/numbers/signed_integer/i32.cairo +++ b/src/numbers/signed_integer/i32.cairo @@ -1,6 +1,6 @@ use core::option::OptionTrait; use core::traits::TryInto; -use traits::Into; +use core::traits::Into; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i8::i8; diff --git a/src/numbers/signed_integer/i64.cairo b/src/numbers/signed_integer/i64.cairo index e7d6bda94..59c6053bd 100644 --- a/src/numbers/signed_integer/i64.cairo +++ b/src/numbers/signed_integer/i64.cairo @@ -1,4 +1,4 @@ -use traits::Into; +use core::traits::Into; use orion::numbers::signed_integer::integer_trait::IntegerTrait; diff --git a/src/numbers/signed_integer/i8.cairo b/src/numbers/signed_integer/i8.cairo index babc90cea..f05c82a62 100644 --- a/src/numbers/signed_integer/i8.cairo +++ b/src/numbers/signed_integer/i8.cairo @@ -1,4 +1,4 @@ -use traits::Into; +use core::traits::Into; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i32::i32; diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo index 1789c8a64..ab1a7cf17 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo @@ -1,13 +1,13 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait}; +use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; use orion::operators::ml::tree_classifier::core; use orion::numbers::FP16x16; impl FP16x16TreeClassifier of TreeClassifierTrait { fn predict(ref self: TreeClassifier, features: Span) -> FP16x16 { - core::predict(ref self, features) + predict(ref self, features) } fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - core::predict_proba(ref self, features) + predict_proba(ref self, features) } } diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo index 442fb100a..edd00f3ad 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo @@ -1,13 +1,13 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait}; +use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; use orion::operators::ml::tree_classifier::core; use orion::numbers::{FP32x32, FP32x32Impl}; impl FP32x32TreeClassifier of TreeClassifierTrait { fn predict(ref self: TreeClassifier, features: Span) -> FP32x32 { - core::predict(ref self, features) + predict(ref self, features) } fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - core::predict_proba(ref self, features) + predict_proba(ref self, features) } } diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo index 61c9415ec..29dcded68 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo @@ -1,13 +1,13 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait}; +use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; use orion::operators::ml::tree_classifier::core; use orion::numbers::{FP64x64, FP64x64Impl}; impl FP64x64TreeClassifier of TreeClassifierTrait { fn predict(ref self: TreeClassifier, features: Span) -> FP64x64 { - core::predict(ref self, features) + predict(ref self, features) } fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - core::predict_proba(ref self, features) + predict_proba(ref self, features) } } diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo index 01f548efe..419a8e959 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo @@ -1,13 +1,13 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait}; +use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; use orion::operators::ml::tree_classifier::core; use orion::numbers::FP8x23; impl FP8x23TreeClassifier of TreeClassifierTrait { fn predict(ref self: TreeClassifier, features: Span) -> FP8x23 { - core::predict(ref self, features) + predict(ref self, features) } fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - core::predict_proba(ref self, features) + predict_proba(ref self, features) } } diff --git a/src/operators/ml/tree_ensemble/core.cairo b/src/operators/ml/tree_ensemble/core.cairo index 08fed475d..7cbe7122f 100644 --- a/src/operators/ml/tree_ensemble/core.cairo +++ b/src/operators/ml/tree_ensemble/core.cairo @@ -4,7 +4,7 @@ use orion::numbers::NumberTrait; use orion::operators::tensor::{Tensor, TensorTrait, U32Tensor}; use orion::utils::get_row; -use alexandria_data_structures::merkle_tree::{pedersen::PedersenHasherImpl}; +use alexandria_merkle_tree::merkle_tree::{pedersen::PedersenHasherImpl}; use alexandria_data_structures::array_ext::ArrayTraitExt; diff --git a/src/operators/ml/tree_ensemble/tree_ensemble_classifier.cairo b/src/operators/ml/tree_ensemble/tree_ensemble_classifier.cairo index 8925cb560..db83cb0aa 100644 --- a/src/operators/ml/tree_ensemble/tree_ensemble_classifier.cairo +++ b/src/operators/ml/tree_ensemble/tree_ensemble_classifier.cairo @@ -8,20 +8,20 @@ use core::array::SpanTrait; use core::nullable::NullableTrait; use core::dict::Felt252DictTrait; use core::dict::Felt252DictEntryTrait; -use nullable::{match_nullable, FromNullableResult}; +use core::nullable::{match_nullable, FromNullableResult}; use orion::operators::tensor::{Tensor, TensorTrait}; use orion::operators::ml::tree_ensemble::core::{TreeEnsemble, TreeEnsembleImpl, TreeEnsembleTrait}; use orion::numbers::NumberTrait; use orion::utils::get_row; -use alexandria_data_structures::merkle_tree::{pedersen::PedersenHasherImpl}; +use alexandria_merkle_tree::merkle_tree::{pedersen::PedersenHasherImpl}; use alexandria_data_structures::array_ext::{SpanTraitExt}; use orion::operators::matrix::{MutMatrix, MutMatrixImpl}; use orion::operators::vec::{VecTrait, NullableVec, NullableVecImpl}; -use debug::PrintTrait; +use core::debug::PrintTrait; #[derive(Destruct)] struct TreeEnsembleClassifier { @@ -408,7 +408,7 @@ impl TreeEnsembleClassifierImpl< POST_TRANSFORM::SOFTMAX => res.softmax(1), POST_TRANSFORM::LOGISTIC => res.sigmoid(), POST_TRANSFORM::SOFTMAXZERO => res.softmax_zero(1), - POST_TRANSFORM::PROBIT => panic_with_felt252('Probit not supported yet'), + POST_TRANSFORM::PROBIT => core::panic_with_felt252('Probit not supported yet'), }; // Labels diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo index 10fa1aa53..eb9e409ea 100644 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo +++ b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo @@ -1,9 +1,9 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait}; +use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; use orion::operators::ml::tree_regressor::core; use orion::numbers::FP16x16; impl FP16x16TreeRegressor of TreeRegressorTrait { fn predict(ref self: TreeRegressor, features: Span) -> FP16x16 { - core::predict(ref self, features) + predict(ref self, features) } } diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo index 72c5033c2..b79737e26 100644 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo +++ b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo @@ -1,9 +1,9 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait}; +use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; use orion::operators::ml::tree_regressor::core; use orion::numbers::{FP32x32, FP32x32Impl}; impl FP32x32TreeRegressor of TreeRegressorTrait { fn predict(ref self: TreeRegressor, features: Span) -> FP32x32 { - core::predict(ref self, features) + predict(ref self, features) } } diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo index 4450f630c..93c80acb9 100644 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo +++ b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo @@ -1,9 +1,9 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait}; +use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; use orion::operators::ml::tree_regressor::core; use orion::numbers::{FP64x64, FP64x64Impl}; impl FP64x64TreeRegressor of TreeRegressorTrait { fn predict(ref self: TreeRegressor, features: Span) -> FP64x64 { - core::predict(ref self, features) + predict(ref self, features) } } diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo index f6b1361be..7ebd03b7d 100644 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo +++ b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo @@ -1,9 +1,9 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait}; +use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; use orion::operators::ml::tree_regressor::core; use orion::numbers::FP8x23; impl FP8x23TreeRegressor of TreeRegressorTrait { fn predict(ref self: TreeRegressor, features: Span) -> FP8x23 { - core::predict(ref self, features) + predict(ref self, features) } } diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo index ab8bb3f40..a698dd227 100644 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo +++ b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo @@ -1,4 +1,4 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait}; +use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; use orion::operators::ml::xgboost_regressor::core; use orion::operators::ml::FP16x16TreeRegressor; use orion::numbers::FP16x16; @@ -9,6 +9,6 @@ impl FP16x16XGBoostRegressor of XGBoostRegressorTrait { ref features: Span, ref weights: Span ) -> FP16x16 { - core::predict(ref self, ref features, ref weights) + predict(ref self, ref features, ref weights) } } diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo index 4c4d72f74..251bfc9f8 100644 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo +++ b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo @@ -1,4 +1,4 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait}; +use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; use orion::operators::ml::xgboost_regressor::core; use orion::operators::ml::FP32x32TreeRegressor; use orion::numbers::{FP32x32, FP32x32Impl}; @@ -9,6 +9,6 @@ impl FP32x32XGBoostRegressor of XGBoostRegressorTrait { ref features: Span, ref weights: Span ) -> FP32x32 { - core::predict(ref self, ref features, ref weights) + predict(ref self, ref features, ref weights) } } diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo index 4ad8402bd..210853f4d 100644 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo +++ b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo @@ -1,4 +1,4 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait}; +use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; use orion::operators::ml::xgboost_regressor::core; use orion::operators::ml::FP64x64TreeRegressor; use orion::numbers::{FP64x64, FP64x64Impl}; @@ -9,6 +9,6 @@ impl FP64x64XGBoostRegressor of XGBoostRegressorTrait { ref features: Span, ref weights: Span ) -> FP64x64 { - core::predict(ref self, ref features, ref weights) + predict(ref self, ref features, ref weights) } } diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo index ac2f1d3b5..fa51d79a5 100644 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo +++ b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo @@ -1,4 +1,4 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait}; +use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; use orion::operators::ml::xgboost_regressor::core; use orion::operators::ml::FP8x23TreeRegressor; use orion::numbers::FP8x23; @@ -7,6 +7,6 @@ impl FP8x23XGBoostRegressor of XGBoostRegressorTrait { fn predict( ref self: Span>, ref features: Span, ref weights: Span ) -> FP8x23 { - core::predict(ref self, ref features, ref weights) + predict(ref self, ref features, ref weights) } } diff --git a/src/operators/nn/core.cairo b/src/operators/nn/core.cairo index 69531746e..ae794c3a1 100644 --- a/src/operators/nn/core.cairo +++ b/src/operators/nn/core.cairo @@ -37,7 +37,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; /// use orion::operators::nn::{NNTrait, I32NN}; @@ -89,7 +89,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; @@ -143,7 +143,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; @@ -202,7 +202,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; @@ -255,7 +255,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; @@ -308,7 +308,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; @@ -359,7 +359,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; /// use orion::operators::nn::{NNTrait, I32NN}; @@ -425,7 +425,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; @@ -483,7 +483,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; @@ -533,7 +533,7 @@ trait NNTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23}; /// use orion::operators::nn::{NNTrait, FP8x23NN}; diff --git a/src/operators/nn/functional/gemm.cairo b/src/operators/nn/functional/gemm.cairo index 2bfea4114..b67754301 100644 --- a/src/operators/nn/functional/gemm.cairo +++ b/src/operators/nn/functional/gemm.cairo @@ -1,4 +1,4 @@ -use array::SpanTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::{core::{Tensor, TensorTrait}, math::arithmetic::mul_by_scalar}; diff --git a/src/operators/nn/functional/hard_sigmoid.cairo b/src/operators/nn/functional/hard_sigmoid.cairo index 48308c6b7..5d4a69b8d 100644 --- a/src/operators/nn/functional/hard_sigmoid.cairo +++ b/src/operators/nn/functional/hard_sigmoid.cairo @@ -1,7 +1,7 @@ use core::traits::Into; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/nn/functional/leaky_relu.cairo b/src/operators/nn/functional/leaky_relu.cairo index 2792884e9..5aa29c5bd 100644 --- a/src/operators/nn/functional/leaky_relu.cairo +++ b/src/operators/nn/functional/leaky_relu.cairo @@ -1,7 +1,7 @@ use core::traits::Into; -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/nn/functional/linear.cairo b/src/operators/nn/functional/linear.cairo index b65e0cee7..fcc616f2c 100644 --- a/src/operators/nn/functional/linear.cairo +++ b/src/operators/nn/functional/linear.cairo @@ -1,4 +1,4 @@ -use array::SpanTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/nn/functional/logsoftmax.cairo b/src/operators/nn/functional/logsoftmax.cairo index ff5228458..1280e7cd3 100644 --- a/src/operators/nn/functional/logsoftmax.cairo +++ b/src/operators/nn/functional/logsoftmax.cairo @@ -1,4 +1,4 @@ -use array::SpanTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/nn/functional/relu.cairo b/src/operators/nn/functional/relu.cairo index 5b0b96719..d0fd2e7ca 100644 --- a/src/operators/nn/functional/relu.cairo +++ b/src/operators/nn/functional/relu.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/nn/functional/sigmoid.cairo b/src/operators/nn/functional/sigmoid.cairo index 4746414b5..57358a14e 100644 --- a/src/operators/nn/functional/sigmoid.cairo +++ b/src/operators/nn/functional/sigmoid.cairo @@ -1,7 +1,7 @@ use core::traits::Into; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/nn/functional/softplus.cairo b/src/operators/nn/functional/softplus.cairo index a41af52a1..c4f976085 100644 --- a/src/operators/nn/functional/softplus.cairo +++ b/src/operators/nn/functional/softplus.cairo @@ -1,7 +1,7 @@ use core::traits::Into; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/nn/functional/softsign.cairo b/src/operators/nn/functional/softsign.cairo index 53d61de90..f3326df57 100644 --- a/src/operators/nn/functional/softsign.cairo +++ b/src/operators/nn/functional/softsign.cairo @@ -1,7 +1,7 @@ use core::traits::Into; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/nn/functional/thresholded_relu.cairo b/src/operators/nn/functional/thresholded_relu.cairo index 86576bad7..43d0e5a81 100644 --- a/src/operators/nn/functional/thresholded_relu.cairo +++ b/src/operators/nn/functional/thresholded_relu.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index 75f90224f..fd80e2b93 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -1,6 +1,6 @@ -use array::{ArrayTrait, SpanTrait}; -use serde::Serde; -use option::OptionTrait; +use core::array::{ArrayTrait, SpanTrait}; +use core::serde::Serde; +use core::option::OptionTrait; use alexandria_data_structures::array_ext::{SpanTraitExt}; @@ -148,7 +148,7 @@ trait TensorTrait { /// Let's create new u32 Tensors. /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{ /// TensorTrait, // we import the trait @@ -205,7 +205,7 @@ trait TensorTrait { /// # Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -241,7 +241,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -291,7 +291,7 @@ trait TensorTrait { /// Case 1: Process tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -310,7 +310,7 @@ trait TensorTrait { /// Case 2: Process tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -346,7 +346,7 @@ trait TensorTrait { /// Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -391,7 +391,7 @@ trait TensorTrait { /// Case 1: Process tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -410,7 +410,7 @@ trait TensorTrait { /// Case 2: Process tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -445,7 +445,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -485,7 +485,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -527,7 +527,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -569,7 +569,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -609,7 +609,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -650,7 +650,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -694,7 +694,7 @@ trait TensorTrait { /// Case 1: argmax with default parameters /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -711,7 +711,7 @@ trait TensorTrait { /// Case 2: argmax with keepdims set to false /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -730,7 +730,7 @@ trait TensorTrait { /// Case 3: argmax with select_last_index set to true /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -777,7 +777,7 @@ trait TensorTrait { /// Case 1: argmin with default parameters /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -795,7 +795,7 @@ trait TensorTrait { /// Case 2: argmin with keepdims set to false /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -814,7 +814,7 @@ trait TensorTrait { /// Case 3: argmin with select_last_index set to true /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -864,7 +864,7 @@ trait TensorTrait { /// Case 1: Dot product of two vectors (1D \* 1D) /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -882,7 +882,7 @@ trait TensorTrait { /// Case 2: Matrix multiplication (2D \* 2D) /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -904,7 +904,7 @@ trait TensorTrait { /// Case 3: Matrix-Vector multiplication (2D x 1D) /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -948,7 +948,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FP8x23, FixedTrait}; @@ -999,7 +999,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FP8x23, FixedTrait}; @@ -1053,7 +1053,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1075,7 +1075,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1122,7 +1122,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1144,7 +1144,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1191,7 +1191,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1213,7 +1213,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1260,7 +1260,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1282,7 +1282,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1329,7 +1329,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1351,7 +1351,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1390,7 +1390,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; /// use orion::numbers::{i32, IntegerTrait}; @@ -1431,7 +1431,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; /// use orion::numbers::{i32, IntegerTrait}; @@ -1476,7 +1476,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FP8x23, FixedTrait}; @@ -1523,7 +1523,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FP8x23, FixedTrait}; @@ -1572,7 +1572,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FP8x23, FixedTrait}; @@ -1624,7 +1624,7 @@ trait TensorTrait { /// Case 1: cumsum with default parameters /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1641,7 +1641,7 @@ trait TensorTrait { /// Case 2: cumsum with exclusive = true /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1658,7 +1658,7 @@ trait TensorTrait { /// Case 3: cumsum with exclusive = true and reverse = true /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1718,7 +1718,7 @@ trait TensorTrait { /// Case 2: flatten with axis 1 /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1735,7 +1735,7 @@ trait TensorTrait { /// Case 3: flatten with axis 2 /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -1776,7 +1776,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -1827,7 +1827,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -1878,7 +1878,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -1929,7 +1929,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -1980,7 +1980,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -2030,7 +2030,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -2079,7 +2079,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -2128,7 +2128,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -2149,7 +2149,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -2197,7 +2197,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -2218,7 +2218,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -2262,7 +2262,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FP8x23, FixedTrait}; @@ -2312,7 +2312,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FP8x23, FixedTrait}; @@ -2364,7 +2364,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -2413,7 +2413,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -2473,7 +2473,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; /// use orion::numbers::{i8, i32, IntegerTrait}; @@ -2543,7 +2543,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; /// use orion::numbers::{i8, i32, IntegerTrait}; @@ -2618,7 +2618,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; @@ -2731,7 +2731,7 @@ trait TensorTrait { /// ## Example /// /// - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; @@ -2850,7 +2850,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; @@ -2954,7 +2954,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; @@ -3063,7 +3063,7 @@ trait TensorTrait { /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; @@ -3134,7 +3134,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3181,7 +3181,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3223,7 +3223,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3274,7 +3274,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3320,7 +3320,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3358,7 +3358,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3398,7 +3398,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// @@ -3433,7 +3433,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; /// @@ -3476,7 +3476,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3522,7 +3522,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3566,7 +3566,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; /// use orion::numbers::{FixedTrait, FP16x16}; @@ -3613,7 +3613,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3681,7 +3681,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3724,7 +3724,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3770,7 +3770,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3816,7 +3816,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3860,7 +3860,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -3978,7 +3978,7 @@ trait TensorTrait { /// Let's create new u32 Tensor with constant 42. /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{ /// TensorTrait, // we import the trait @@ -4021,7 +4021,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4067,7 +4067,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -4117,7 +4117,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor, U32Tensor}; /// use orion::numbers::{i32, IntegerTrait}; /// @@ -4163,7 +4163,7 @@ trait TensorTrait { /// Let's create a new empty sequence. /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{ /// TensorTrait, // we import the trait @@ -4205,7 +4205,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -4255,7 +4255,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4295,7 +4295,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4344,7 +4344,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4451,7 +4451,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; /// use orion::numbers::{i32, IntegerTrait}; @@ -4498,7 +4498,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; /// use orion::numbers::{i32, IntegerTrait}; @@ -4553,7 +4553,7 @@ trait TensorTrait { /// Case 1: Compare tensors with same shape /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4574,7 +4574,7 @@ trait TensorTrait { /// Case 2: Compare tensors with different shapes /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4656,7 +4656,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4694,7 +4694,7 @@ trait TensorTrait { /// ## Examples /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// use orion::operators::tensor::{BoolTensor, TensorTrait, Tensor, U32Tensor}; /// /// fn is_inf_example() -> Tensor { @@ -4728,7 +4728,7 @@ trait TensorTrait { /// /// ## Examples /// - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// use orion::operators::tensor::{BoolTensor, TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; /// @@ -4776,7 +4776,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// @@ -4833,7 +4833,7 @@ trait TensorTrait { /// ## Example /// /// ```rust - /// use array::{ArrayTrait, SpanTrait}; + /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, BoolTensor}; /// use orion::numbers::{i32, IntegerTrait}; diff --git a/src/operators/tensor/helpers.cairo b/src/operators/tensor/helpers.cairo index e55701dd6..3a031c52c 100644 --- a/src/operators/tensor/helpers.cairo +++ b/src/operators/tensor/helpers.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use alexandria_data_structures::array_ext::ArrayTraitExt; diff --git a/src/operators/tensor/implementations/tensor_bool.cairo b/src/operators/tensor/implementations/tensor_bool.cairo index c0a8d1ceb..7392a8624 100644 --- a/src/operators/tensor/implementations/tensor_bool.cairo +++ b/src/operators/tensor/implementations/tensor_bool.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_ops, ml}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::tensor_u32::U32Tensor; @@ -229,7 +229,7 @@ impl BoolTensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_ops::slice::(self, starts, ends, axes, steps) } fn gather(self: @Tensor, indices: Tensor, axis: Option) -> Tensor { @@ -261,7 +261,7 @@ impl BoolTensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_ops::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index dee654729..9b69de648 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP16x16}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; @@ -343,7 +343,7 @@ impl FP16x16Tensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather( @@ -353,15 +353,15 @@ impl FP16x16Tensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -369,7 +369,7 @@ impl FP16x16Tensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -377,7 +377,7 @@ impl FP16x16Tensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index 2f89df88b..1add4a7d8 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP16x16W}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; @@ -303,7 +303,7 @@ impl FP16x16WTensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather( @@ -313,15 +313,15 @@ impl FP16x16WTensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -331,7 +331,7 @@ impl FP16x16WTensor of TensorTrait { fn clip( self: @Tensor, min: Option, max: Option ) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -339,7 +339,7 @@ impl FP16x16WTensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where( diff --git a/src/operators/tensor/implementations/tensor_fp32x32.cairo b/src/operators/tensor/implementations/tensor_fp32x32.cairo index 7517ef7cd..3c30fdb59 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP32x32, FP32x32Impl}; use orion::numbers::fixed_point::implementations::fp32x32::core::ONE; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; @@ -344,7 +344,7 @@ impl FP32x32Tensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather( @@ -354,15 +354,15 @@ impl FP32x32Tensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -370,7 +370,7 @@ impl FP32x32Tensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -378,7 +378,7 @@ impl FP32x32Tensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { @@ -586,12 +586,6 @@ impl FP32x32TensorPartialEq of PartialEq> { } } -impl U32TryIntoU64 of TryInto { - fn try_into(self: u32) -> Option { - Option::Some(self.into()) - } -} - impl FP32x32TryIntoI8 of TryInto { fn try_into(self: FP32x32) -> Option { Option::Some(i8 { mag: (self.mag / ONE).try_into().unwrap(), sign: self.sign }) diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index d4c7e0a2b..a4d10f354 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, 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}; @@ -344,7 +344,7 @@ impl FP64x64Tensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather( @@ -354,15 +354,15 @@ impl FP64x64Tensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -370,7 +370,7 @@ impl FP64x64Tensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -378,7 +378,7 @@ impl FP64x64Tensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { @@ -587,12 +587,6 @@ impl FP64x64TensorPartialEq of PartialEq> { } } -impl U32TryIntoU128 of TryInto { - fn try_into(self: u32) -> Option { - Option::Some(self.into()) - } -} - impl FP64x64TryIntoI8 of TryInto { fn try_into(self: FP64x64) -> Option { Option::Some(i8 { mag: (self.mag / ONE).try_into().unwrap(), sign: self.sign }) diff --git a/src/operators/tensor/implementations/tensor_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index 1f10a73a5..4eff810ec 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_ops, ml}; use orion::numbers::{i8, i32, NumberTrait, FP8x23}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; @@ -344,7 +344,7 @@ impl FP8x23Tensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_ops::slice::(self, starts, ends, axes, steps) } fn gather( @@ -354,15 +354,15 @@ impl FP8x23Tensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_ops::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_ops::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_ops::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -370,7 +370,7 @@ impl FP8x23Tensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_ops::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -378,7 +378,7 @@ impl FP8x23Tensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_ops::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { diff --git a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo index fc820222d..c64588713 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP8x23W}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; @@ -294,7 +294,7 @@ impl FP8x23WTensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather( @@ -304,15 +304,15 @@ impl FP8x23WTensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -320,7 +320,7 @@ impl FP8x23WTensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -328,7 +328,7 @@ impl FP8x23WTensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { diff --git a/src/operators/tensor/implementations/tensor_i32.cairo b/src/operators/tensor/implementations/tensor_i32.cairo index 106daa208..8ad9128f5 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i32, i8, NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_i8::I8Tensor, tensor_bool::BoolTensor}; @@ -344,7 +344,7 @@ impl I32Tensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather(self: @Tensor, indices: Tensor, axis: Option) -> Tensor { @@ -352,15 +352,15 @@ impl I32Tensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -368,7 +368,7 @@ impl I32Tensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -376,7 +376,7 @@ impl I32Tensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index d9bb40cb1..a03db837a 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_bool::BoolTensor}; @@ -344,7 +344,7 @@ impl I8Tensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather(self: @Tensor, indices: Tensor, axis: Option) -> Tensor { @@ -352,15 +352,15 @@ impl I8Tensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -368,7 +368,7 @@ impl I8Tensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -376,7 +376,7 @@ impl I8Tensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { diff --git a/src/operators/tensor/implementations/tensor_u32.cairo b/src/operators/tensor/implementations/tensor_u32.cairo index 288c834e9..56abb440a 100644 --- a/src/operators/tensor/implementations/tensor_u32.cairo +++ b/src/operators/tensor/implementations/tensor_u32.cairo @@ -1,14 +1,14 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{TryInto, Into}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; 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, ml}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_bool::BoolTensor}; @@ -288,7 +288,7 @@ impl U32Tensor of TensorTrait { axes: Option>, steps: Option> ) -> Tensor { - core::slice::(self, starts, ends, axes, steps) + core_tensor::slice::(self, starts, ends, axes, steps) } fn gather(self: @Tensor, indices: Tensor, axis: Option) -> Tensor { @@ -296,15 +296,15 @@ impl U32Tensor of TensorTrait { } fn nonzero(self: @Tensor) -> Tensor { - core::nonzero(self) + core_tensor::nonzero(self) } fn squeeze(self: @Tensor, axes: Option>) -> Tensor { - core::squeeze(self, axes) + core_tensor::squeeze(self, axes) } fn unsqueeze(self: @Tensor, axes: Span) -> Tensor { - core::unsqueeze(self, axes) + core_tensor::unsqueeze(self, axes) } fn sign(self: @Tensor) -> Tensor { @@ -312,7 +312,7 @@ impl U32Tensor of TensorTrait { } fn clip(self: @Tensor, min: Option, max: Option) -> Tensor { - core::clip(self, min, max) + core_tensor::clip(self, min, max) } fn and(self: @Tensor, other: @Tensor) -> Tensor { @@ -320,7 +320,7 @@ impl U32Tensor of TensorTrait { } fn identity(self: @Tensor) -> Tensor { - core::identity(self) + core_tensor::identity(self) } fn where(self: @Tensor, x: @Tensor, y: @Tensor) -> Tensor { diff --git a/src/operators/tensor/linalg/matmul.cairo b/src/operators/tensor/linalg/matmul.cairo index a1fb9824a..435f258a8 100644 --- a/src/operators/tensor/linalg/matmul.cairo +++ b/src/operators/tensor/linalg/matmul.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/linalg/transpose.cairo b/src/operators/tensor/linalg/transpose.cairo index 74a5a36fc..44df929ba 100644 --- a/src/operators/tensor/linalg/transpose.cairo +++ b/src/operators/tensor/linalg/transpose.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{ new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape diff --git a/src/operators/tensor/linalg/trilu.cairo b/src/operators/tensor/linalg/trilu.cairo index a7a0f03d8..0c2ef1bdb 100644 --- a/src/operators/tensor/linalg/trilu.cairo +++ b/src/operators/tensor/linalg/trilu.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/abs.cairo b/src/operators/tensor/math/abs.cairo index 33aa69578..a7d8956ac 100644 --- a/src/operators/tensor/math/abs.cairo +++ b/src/operators/tensor/math/abs.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/acos.cairo b/src/operators/tensor/math/acos.cairo index dd39d3d9d..1e6fbcfe8 100644 --- a/src/operators/tensor/math/acos.cairo +++ b/src/operators/tensor/math/acos.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/acosh.cairo b/src/operators/tensor/math/acosh.cairo index 80e610f5f..78649e620 100644 --- a/src/operators/tensor/math/acosh.cairo +++ b/src/operators/tensor/math/acosh.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/and.cairo b/src/operators/tensor/math/and.cairo index 123ae335a..07e4c9443 100644 --- a/src/operators/tensor/math/and.cairo +++ b/src/operators/tensor/math/and.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::{core::{Tensor, TensorTrait, unravel_index}, BoolTensor}; diff --git a/src/operators/tensor/math/argmax.cairo b/src/operators/tensor/math/argmax.cairo index 1060b811f..52671766a 100644 --- a/src/operators/tensor/math/argmax.cairo +++ b/src/operators/tensor/math/argmax.cairo @@ -1,7 +1,7 @@ use core::debug::PrintTrait; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; use orion::operators::tensor::helpers::{reduce_output_shape, len_from_shape, combine_indices}; diff --git a/src/operators/tensor/math/argmin.cairo b/src/operators/tensor/math/argmin.cairo index f11a2825a..77eef9a99 100644 --- a/src/operators/tensor/math/argmin.cairo +++ b/src/operators/tensor/math/argmin.cairo @@ -1,7 +1,7 @@ use core::debug::PrintTrait; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; use orion::operators::tensor::helpers::{reduce_output_shape, combine_indices, len_from_shape}; diff --git a/src/operators/tensor/math/arithmetic.cairo b/src/operators/tensor/math/arithmetic.cairo index 46c346ed2..89f4869bd 100644 --- a/src/operators/tensor/math/arithmetic.cairo +++ b/src/operators/tensor/math/arithmetic.cairo @@ -1,7 +1,7 @@ use core::option::OptionTrait; use core::traits::TryInto; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::operators::tensor::helpers::broadcast_shape; diff --git a/src/operators/tensor/math/asin.cairo b/src/operators/tensor/math/asin.cairo index 2022bc33e..7018edcc6 100644 --- a/src/operators/tensor/math/asin.cairo +++ b/src/operators/tensor/math/asin.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/asinh.cairo b/src/operators/tensor/math/asinh.cairo index fc1ea17f6..28fcb467f 100644 --- a/src/operators/tensor/math/asinh.cairo +++ b/src/operators/tensor/math/asinh.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/atan.cairo b/src/operators/tensor/math/atan.cairo index 77d123653..25e991700 100644 --- a/src/operators/tensor/math/atan.cairo +++ b/src/operators/tensor/math/atan.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/binarizer.cairo b/src/operators/tensor/math/binarizer.cairo index a75013d16..bc42e7ac4 100644 --- a/src/operators/tensor/math/binarizer.cairo +++ b/src/operators/tensor/math/binarizer.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/bitwise_and.cairo b/src/operators/tensor/math/bitwise_and.cairo index 41e9304e3..c27d77938 100644 --- a/src/operators/tensor/math/bitwise_and.cairo +++ b/src/operators/tensor/math/bitwise_and.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; -use debug::PrintTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; +use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/bitwise_or.cairo b/src/operators/tensor/math/bitwise_or.cairo index ca3fea6c9..8869422d9 100644 --- a/src/operators/tensor/math/bitwise_or.cairo +++ b/src/operators/tensor/math/bitwise_or.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; -use debug::PrintTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; +use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/bitwise_xor.cairo b/src/operators/tensor/math/bitwise_xor.cairo index d1a699f3d..934fa750f 100644 --- a/src/operators/tensor/math/bitwise_xor.cairo +++ b/src/operators/tensor/math/bitwise_xor.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; -use debug::PrintTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; +use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/ceil.cairo b/src/operators/tensor/math/ceil.cairo index b2f232a95..73182f09a 100644 --- a/src/operators/tensor/math/ceil.cairo +++ b/src/operators/tensor/math/ceil.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/concat.cairo b/src/operators/tensor/math/concat.cairo index 39353cc2e..77ed9dac3 100644 --- a/src/operators/tensor/math/concat.cairo +++ b/src/operators/tensor/math/concat.cairo @@ -1,7 +1,7 @@ use core::clone::Clone; -use array::{ArrayTrait, SpanTrait}; -use option::OptionTrait; -use debug::PrintTrait; +use core::array::{ArrayTrait, SpanTrait}; +use core::option::OptionTrait; +use core::debug::PrintTrait; use core::traits::Into; use orion::operators::tensor::helpers::replace_index; diff --git a/src/operators/tensor/math/concat_from_sequence.cairo b/src/operators/tensor/math/concat_from_sequence.cairo index 598b139c3..89f46900e 100644 --- a/src/operators/tensor/math/concat_from_sequence.cairo +++ b/src/operators/tensor/math/concat_from_sequence.cairo @@ -1,7 +1,7 @@ use core::clone::Clone; -use array::{ArrayTrait, SpanTrait}; -use option::OptionTrait; -use debug::PrintTrait; +use core::array::{ArrayTrait, SpanTrait}; +use core::option::OptionTrait; +use core::debug::PrintTrait; use core::traits::Into; use orion::operators::tensor::helpers::replace_index; diff --git a/src/operators/tensor/math/cos.cairo b/src/operators/tensor/math/cos.cairo index 678320c1b..aad6ea925 100644 --- a/src/operators/tensor/math/cos.cairo +++ b/src/operators/tensor/math/cos.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/cosh.cairo b/src/operators/tensor/math/cosh.cairo index 58ffd2cc9..f3f15a284 100644 --- a/src/operators/tensor/math/cosh.cairo +++ b/src/operators/tensor/math/cosh.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/cumsum.cairo b/src/operators/tensor/math/cumsum.cairo index 97a755874..1ffe51821 100644 --- a/src/operators/tensor/math/cumsum.cairo +++ b/src/operators/tensor/math/cumsum.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use debug::PrintTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::debug::PrintTrait; use orion::operators::tensor::helpers::replace_index; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; diff --git a/src/operators/tensor/math/equal.cairo b/src/operators/tensor/math/equal.cairo index 9de0c9fe4..e3f884acd 100644 --- a/src/operators/tensor/math/equal.cairo +++ b/src/operators/tensor/math/equal.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; use orion::operators::tensor::helpers::{ diff --git a/src/operators/tensor/math/exp.cairo b/src/operators/tensor/math/exp.cairo index dfab30669..a7e04dca1 100644 --- a/src/operators/tensor/math/exp.cairo +++ b/src/operators/tensor/math/exp.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::{Into, TryInto}; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::{Into, TryInto}; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; @@ -31,8 +31,6 @@ fn exp< return TensorTrait::new(self.shape, result.span()); } -use debug::PrintTrait; - /// Cf: TensorTrait::exp docstring fn exp_upcast< T, diff --git a/src/operators/tensor/math/flatten.cairo b/src/operators/tensor/math/flatten.cairo index a16e78a25..7b0df7457 100644 --- a/src/operators/tensor/math/flatten.cairo +++ b/src/operators/tensor/math/flatten.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/gather.cairo b/src/operators/tensor/math/gather.cairo index ea8b85852..fab9a3dc8 100644 --- a/src/operators/tensor/math/gather.cairo +++ b/src/operators/tensor/math/gather.cairo @@ -1,13 +1,13 @@ use alexandria_data_structures::array_ext::SpanTraitExt; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use core::traits::Into; -use debug::PrintTrait; +use core::debug::PrintTrait; use core::traits::TryInto; use core::serde::Serde; use core::traits::Destruct; -use option::OptionTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/src/operators/tensor/math/gather_elements.cairo b/src/operators/tensor/math/gather_elements.cairo index dd9b9aa83..f5cc92784 100644 --- a/src/operators/tensor/math/gather_elements.cairo +++ b/src/operators/tensor/math/gather_elements.cairo @@ -1,13 +1,13 @@ use alexandria_data_structures::array_ext::SpanTraitExt; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use core::traits::Into; -use debug::PrintTrait; +use core::debug::PrintTrait; use core::traits::TryInto; use core::serde::Serde; use core::traits::Destruct; -use option::OptionTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::U32TensorPartialEq; diff --git a/src/operators/tensor/math/greater.cairo b/src/operators/tensor/math/greater.cairo index 7d4825b12..1177212bc 100644 --- a/src/operators/tensor/math/greater.cairo +++ b/src/operators/tensor/math/greater.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; use orion::operators::tensor::helpers::{ diff --git a/src/operators/tensor/math/greater_equal.cairo b/src/operators/tensor/math/greater_equal.cairo index 9edb87373..b7756d12e 100644 --- a/src/operators/tensor/math/greater_equal.cairo +++ b/src/operators/tensor/math/greater_equal.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; use orion::operators::tensor::helpers::{ diff --git a/src/operators/tensor/math/is_inf.cairo b/src/operators/tensor/math/is_inf.cairo index 52f4aa2e3..17312e985 100644 --- a/src/operators/tensor/math/is_inf.cairo +++ b/src/operators/tensor/math/is_inf.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/is_nan.cairo b/src/operators/tensor/math/is_nan.cairo index 32468e703..ccd0a39d4 100644 --- a/src/operators/tensor/math/is_nan.cairo +++ b/src/operators/tensor/math/is_nan.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/less.cairo b/src/operators/tensor/math/less.cairo index e578ec426..b9cc0370f 100644 --- a/src/operators/tensor/math/less.cairo +++ b/src/operators/tensor/math/less.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; use orion::operators::tensor::helpers::{ diff --git a/src/operators/tensor/math/less_equal.cairo b/src/operators/tensor/math/less_equal.cairo index 9b970a999..48316ed97 100644 --- a/src/operators/tensor/math/less_equal.cairo +++ b/src/operators/tensor/math/less_equal.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; use orion::operators::tensor::helpers::{ diff --git a/src/operators/tensor/math/log.cairo b/src/operators/tensor/math/log.cairo index 4ad8d6823..817ca135a 100644 --- a/src/operators/tensor/math/log.cairo +++ b/src/operators/tensor/math/log.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/max.cairo b/src/operators/tensor/math/max.cairo index 8052733d7..245099179 100644 --- a/src/operators/tensor/math/max.cairo +++ b/src/operators/tensor/math/max.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/max_in_tensor.cairo b/src/operators/tensor/math/max_in_tensor.cairo index 1abaf5545..318138ee2 100644 --- a/src/operators/tensor/math/max_in_tensor.cairo +++ b/src/operators/tensor/math/max_in_tensor.cairo @@ -1,5 +1,5 @@ -use array::SpanTrait; -use option::OptionTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/min.cairo b/src/operators/tensor/math/min.cairo index 61140f89d..a4ae655eb 100644 --- a/src/operators/tensor/math/min.cairo +++ b/src/operators/tensor/math/min.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/min_in_tensor.cairo b/src/operators/tensor/math/min_in_tensor.cairo index e52f4a227..dc02c49dc 100644 --- a/src/operators/tensor/math/min_in_tensor.cairo +++ b/src/operators/tensor/math/min_in_tensor.cairo @@ -1,5 +1,5 @@ -use array::SpanTrait; -use option::OptionTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/neg.cairo b/src/operators/tensor/math/neg.cairo index f7bae988f..e89b5a42a 100644 --- a/src/operators/tensor/math/neg.cairo +++ b/src/operators/tensor/math/neg.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/not.cairo b/src/operators/tensor/math/not.cairo index 68483ff29..83a859769 100644 --- a/src/operators/tensor/math/not.cairo +++ b/src/operators/tensor/math/not.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/onehot.cairo b/src/operators/tensor/math/onehot.cairo index d6e4f4c2c..37b533262 100644 --- a/src/operators/tensor/math/onehot.cairo +++ b/src/operators/tensor/math/onehot.cairo @@ -1,12 +1,12 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use core::traits::Into; -use debug::PrintTrait; +use core::debug::PrintTrait; use core::traits::TryInto; use core::serde::Serde; use core::traits::Destruct; -use option::OptionTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/optional_get_element.cairo b/src/operators/tensor/math/optional_get_element.cairo index 47906db29..e0c988ffe 100644 --- a/src/operators/tensor/math/optional_get_element.cairo +++ b/src/operators/tensor/math/optional_get_element.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; +use core::array::ArrayTrait; use option::OptionTrait; -use array::SpanTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/or.cairo b/src/operators/tensor/math/or.cairo index 95f3f9fab..60d10c95a 100644 --- a/src/operators/tensor/math/or.cairo +++ b/src/operators/tensor/math/or.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/pow.cairo b/src/operators/tensor/math/pow.cairo index f31fd774b..a5b15579b 100644 --- a/src/operators/tensor/math/pow.cairo +++ b/src/operators/tensor/math/pow.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/reduce_l1.cairo b/src/operators/tensor/math/reduce_l1.cairo index 27241e32d..8485f6e03 100644 --- a/src/operators/tensor/math/reduce_l1.cairo +++ b/src/operators/tensor/math/reduce_l1.cairo @@ -1,7 +1,7 @@ use core::option::OptionTrait; -use array::ArrayTrait; -use array::SpanTrait; -use debug::PrintTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; diff --git a/src/operators/tensor/math/reduce_l2.cairo b/src/operators/tensor/math/reduce_l2.cairo index 45c6b3ddd..b18fa704c 100644 --- a/src/operators/tensor/math/reduce_l2.cairo +++ b/src/operators/tensor/math/reduce_l2.cairo @@ -1,7 +1,7 @@ use core::option::OptionTrait; -use array::ArrayTrait; -use array::SpanTrait; -use debug::PrintTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; diff --git a/src/operators/tensor/math/reduce_mean.cairo b/src/operators/tensor/math/reduce_mean.cairo index 23abf4840..0fa2314b8 100644 --- a/src/operators/tensor/math/reduce_mean.cairo +++ b/src/operators/tensor/math/reduce_mean.cairo @@ -3,8 +3,8 @@ use core::traits::Div; use core::traits::TryInto; use core::traits::Into; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/reduce_min.cairo b/src/operators/tensor/math/reduce_min.cairo index 00568012f..fcf9c91a8 100644 --- a/src/operators/tensor/math/reduce_min.cairo +++ b/src/operators/tensor/math/reduce_min.cairo @@ -2,8 +2,8 @@ use core::option::OptionTrait; use core::traits::TryInto; use core::traits::Into; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/reduce_prod.cairo b/src/operators/tensor/math/reduce_prod.cairo index 5014ca38e..a25067e53 100644 --- a/src/operators/tensor/math/reduce_prod.cairo +++ b/src/operators/tensor/math/reduce_prod.cairo @@ -1,7 +1,7 @@ use core::option::OptionTrait; use core::traits::MulEq; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; diff --git a/src/operators/tensor/math/reduce_sum.cairo b/src/operators/tensor/math/reduce_sum.cairo index 4bc530cad..2dcd7bc0f 100644 --- a/src/operators/tensor/math/reduce_sum.cairo +++ b/src/operators/tensor/math/reduce_sum.cairo @@ -1,6 +1,6 @@ use core::option::OptionTrait; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; 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 3537982a0..131e4f198 100644 --- a/src/operators/tensor/math/reduce_sum_square.cairo +++ b/src/operators/tensor/math/reduce_sum_square.cairo @@ -1,7 +1,7 @@ use core::option::OptionTrait; -use array::ArrayTrait; -use array::SpanTrait; -use debug::PrintTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; diff --git a/src/operators/tensor/math/round.cairo b/src/operators/tensor/math/round.cairo index 9af729b17..fafd804d0 100644 --- a/src/operators/tensor/math/round.cairo +++ b/src/operators/tensor/math/round.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/scatter.cairo b/src/operators/tensor/math/scatter.cairo index bcd15c36d..565371584 100644 --- a/src/operators/tensor/math/scatter.cairo +++ b/src/operators/tensor/math/scatter.cairo @@ -1,18 +1,18 @@ use alexandria_data_structures::array_ext::SpanTraitExt; -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use core::traits::Into; -use debug::PrintTrait; +use core::debug::PrintTrait; use core::traits::TryInto; use core::serde::Serde; use core::traits::Destruct; -use option::OptionTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; -use dict::Felt252DictTrait; -use nullable::{nullable_from_box, match_nullable, FromNullableResult}; +use core::dict::Felt252DictTrait; +use core::nullable::{nullable_from_box, match_nullable, FromNullableResult}; /// Cf: TensorTrait::scatter docstring fn scatter< T, diff --git a/src/operators/tensor/math/sequence_at.cairo b/src/operators/tensor/math/sequence_at.cairo index 983aa3986..81f6776ac 100644 --- a/src/operators/tensor/math/sequence_at.cairo +++ b/src/operators/tensor/math/sequence_at.cairo @@ -1,5 +1,5 @@ -use array::{ArrayTrait, SpanTrait}; -use option::OptionTrait; +use core::array::{ArrayTrait, SpanTrait}; +use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/math/sequence_construct.cairo b/src/operators/tensor/math/sequence_construct.cairo index dd8ff3101..7b24560a7 100644 --- a/src/operators/tensor/math/sequence_construct.cairo +++ b/src/operators/tensor/math/sequence_construct.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/src/operators/tensor/math/sequence_empty.cairo b/src/operators/tensor/math/sequence_empty.cairo index c823cabe8..66ad658da 100644 --- a/src/operators/tensor/math/sequence_empty.cairo +++ b/src/operators/tensor/math/sequence_empty.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/src/operators/tensor/math/sequence_erase.cairo b/src/operators/tensor/math/sequence_erase.cairo index 6d7d4b913..d2f8de500 100644 --- a/src/operators/tensor/math/sequence_erase.cairo +++ b/src/operators/tensor/math/sequence_erase.cairo @@ -1,5 +1,5 @@ -use array::{ArrayTrait, SpanTrait}; -use option::OptionTrait; +use core::array::{ArrayTrait, SpanTrait}; +use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::operators::tensor::I32Tensor; diff --git a/src/operators/tensor/math/sequence_insert.cairo b/src/operators/tensor/math/sequence_insert.cairo index 85b06f64a..a5f7ce673 100644 --- a/src/operators/tensor/math/sequence_insert.cairo +++ b/src/operators/tensor/math/sequence_insert.cairo @@ -1,5 +1,5 @@ -use array::{ArrayTrait, SpanTrait}; -use option::OptionTrait; +use core::array::{ArrayTrait, SpanTrait}; +use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::operators::tensor::I32Tensor; diff --git a/src/operators/tensor/math/sequence_length.cairo b/src/operators/tensor/math/sequence_length.cairo index c9057bc9c..d87aaf357 100644 --- a/src/operators/tensor/math/sequence_length.cairo +++ b/src/operators/tensor/math/sequence_length.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/src/operators/tensor/math/shrink.cairo b/src/operators/tensor/math/shrink.cairo index 194fc18dc..ff1f3cb28 100644 --- a/src/operators/tensor/math/shrink.cairo +++ b/src/operators/tensor/math/shrink.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/sign.cairo b/src/operators/tensor/math/sign.cairo index 892ad19d0..5ac509d52 100644 --- a/src/operators/tensor/math/sign.cairo +++ b/src/operators/tensor/math/sign.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; diff --git a/src/operators/tensor/math/sin.cairo b/src/operators/tensor/math/sin.cairo index 0a93aea5d..b1471d77e 100644 --- a/src/operators/tensor/math/sin.cairo +++ b/src/operators/tensor/math/sin.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/sinh.cairo b/src/operators/tensor/math/sinh.cairo index 3437e5ade..5d3ef828b 100644 --- a/src/operators/tensor/math/sinh.cairo +++ b/src/operators/tensor/math/sinh.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/sqrt.cairo b/src/operators/tensor/math/sqrt.cairo index 5e0119103..84d23c150 100644 --- a/src/operators/tensor/math/sqrt.cairo +++ b/src/operators/tensor/math/sqrt.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/tanh.cairo b/src/operators/tensor/math/tanh.cairo index 12bc8a396..b94fba485 100644 --- a/src/operators/tensor/math/tanh.cairo +++ b/src/operators/tensor/math/tanh.cairo @@ -1,7 +1,7 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::Into; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::Into; use orion::numbers::NumberTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/operators/tensor/math/where.cairo b/src/operators/tensor/math/where.cairo index 4064e942f..ba71c1279 100644 --- a/src/operators/tensor/math/where.cairo +++ b/src/operators/tensor/math/where.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/math/xor.cairo b/src/operators/tensor/math/xor.cairo index 690a768d7..467fd1bfd 100644 --- a/src/operators/tensor/math/xor.cairo +++ b/src/operators/tensor/math/xor.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, unravel_index}; diff --git a/src/operators/tensor/ml/array_feature_extractor.cairo b/src/operators/tensor/ml/array_feature_extractor.cairo index 240a69b43..a9f6ff3d3 100644 --- a/src/operators/tensor/ml/array_feature_extractor.cairo +++ b/src/operators/tensor/ml/array_feature_extractor.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use option::OptionTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::option::OptionTrait; +use core::array::SpanTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::numbers::NumberTrait; diff --git a/src/operators/tensor/quantization/dequantize_linear.cairo b/src/operators/tensor/quantization/dequantize_linear.cairo index dd99f92a8..f1585cad8 100644 --- a/src/operators/tensor/quantization/dequantize_linear.cairo +++ b/src/operators/tensor/quantization/dequantize_linear.cairo @@ -1,7 +1,7 @@ use core::traits::Into; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::operators::tensor::helpers::check_compatibility; diff --git a/src/operators/tensor/quantization/qlinear_add.cairo b/src/operators/tensor/quantization/qlinear_add.cairo index 1574e8fd8..3c69564c2 100644 --- a/src/operators/tensor/quantization/qlinear_add.cairo +++ b/src/operators/tensor/quantization/qlinear_add.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::{NumberTrait}; use orion::operators::tensor::quantization::dequantize_linear::dequantize_linear; diff --git a/src/operators/tensor/quantization/qlinear_concat.cairo b/src/operators/tensor/quantization/qlinear_concat.cairo index 7b990af2b..4e200cd17 100644 --- a/src/operators/tensor/quantization/qlinear_concat.cairo +++ b/src/operators/tensor/quantization/qlinear_concat.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::{NumberTrait}; use orion::operators::tensor::quantization::dequantize_linear::dequantize_linear; @@ -164,7 +164,7 @@ fn dequantize_tensors< /// ## Example /// /// ```rust -/// use array::{ArrayTrait, SpanTrait}; +/// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// diff --git a/src/operators/tensor/quantization/qlinear_leakyrelu.cairo b/src/operators/tensor/quantization/qlinear_leakyrelu.cairo index 964467d69..b5b614b4a 100644 --- a/src/operators/tensor/quantization/qlinear_leakyrelu.cairo +++ b/src/operators/tensor/quantization/qlinear_leakyrelu.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::{NumberTrait}; use orion::operators::tensor::quantization::dequantize_linear::dequantize_linear; diff --git a/src/operators/tensor/quantization/qlinear_matmul.cairo b/src/operators/tensor/quantization/qlinear_matmul.cairo index b9d734a9b..bbb4c174a 100644 --- a/src/operators/tensor/quantization/qlinear_matmul.cairo +++ b/src/operators/tensor/quantization/qlinear_matmul.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::{NumberTrait}; use orion::operators::tensor::quantization::dequantize_linear::dequantize_linear; diff --git a/src/operators/tensor/quantization/qlinear_mul.cairo b/src/operators/tensor/quantization/qlinear_mul.cairo index fcd005218..4c952c3f9 100644 --- a/src/operators/tensor/quantization/qlinear_mul.cairo +++ b/src/operators/tensor/quantization/qlinear_mul.cairo @@ -1,6 +1,6 @@ -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; use orion::numbers::{NumberTrait}; use orion::operators::tensor::quantization::dequantize_linear::dequantize_linear; diff --git a/src/operators/tensor/quantization/quantize_linear.cairo b/src/operators/tensor/quantization/quantize_linear.cairo index 32f527696..91cc16155 100644 --- a/src/operators/tensor/quantization/quantize_linear.cairo +++ b/src/operators/tensor/quantization/quantize_linear.cairo @@ -1,8 +1,8 @@ use core::debug::PrintTrait; -use array::ArrayTrait; -use array::SpanTrait; -use option::OptionTrait; -use traits::TryInto; +use core::array::ArrayTrait; +use core::array::SpanTrait; +use core::option::OptionTrait; +use core::traits::TryInto; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::operators::tensor::helpers::check_compatibility; diff --git a/src/operators/vec.cairo b/src/operators/vec.cairo index 6fb43b6db..997db8616 100644 --- a/src/operators/vec.cairo +++ b/src/operators/vec.cairo @@ -1,7 +1,7 @@ use core::box::BoxTrait; use core::traits::Into; +use core::nullable::{Nullable, match_nullable, FromNullableResult, nullable_from_box}; use alexandria_data_structures::vec::{VecTrait}; -use core::nullable::{Nullable, match_nullable, FromNullableResult}; use orion::numbers::NumberTrait; struct NullableVec { @@ -44,7 +44,7 @@ impl NullableVecImpl< fn push(ref self: NullableVec, value: T) -> () { self.items.insert(self.len.into(), nullable_from_box(BoxTrait::new(value))); - self.len = integer::u32_wrapping_add(self.len, 1_usize); + self.len = core::integer::u32_wrapping_add(self.len, 1_usize); } fn set(ref self: NullableVec, index: usize, value: T) { diff --git a/src/test_helper/tensor/fixed_point/fp16x16.cairo b/src/test_helper/tensor/fixed_point/fp16x16.cairo index 5039eca85..096edb4f8 100644 --- a/src/test_helper/tensor/fixed_point/fp16x16.cairo +++ b/src/test_helper/tensor/fixed_point/fp16x16.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp16x16::core::FP16x16; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; diff --git a/src/test_helper/tensor/fixed_point/fp8x23.cairo b/src/test_helper/tensor/fixed_point/fp8x23.cairo index c706970d5..eac13a89b 100644 --- a/src/test_helper/tensor/fixed_point/fp8x23.cairo +++ b/src/test_helper/tensor/fixed_point/fp8x23.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp8x23::core::FP8x23; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; diff --git a/src/test_helper/tensor/i32.cairo b/src/test_helper/tensor/i32.cairo index 402e4dec4..f28647779 100644 --- a/src/test_helper/tensor/i32.cairo +++ b/src/test_helper/tensor/i32.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; diff --git a/src/test_helper/tensor/i8.cairo b/src/test_helper/tensor/i8.cairo index 27274dcc4..d4ee6ed67 100644 --- a/src/test_helper/tensor/i8.cairo +++ b/src/test_helper/tensor/i8.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/src/test_helper/tensor/u32.cairo b/src/test_helper/tensor/u32.cairo index ffa5ebb08..553ebecff 100644 --- a/src/test_helper/tensor/u32.cairo +++ b/src/test_helper/tensor/u32.cairo @@ -1,5 +1,5 @@ -use array::ArrayTrait; -use array::SpanTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/src/utils.cairo b/src/utils.cairo index e30b66fa4..34946d5c5 100644 --- a/src/utils.cairo +++ b/src/utils.cairo @@ -1,7 +1,7 @@ use core::traits::TryInto; -use option::OptionTrait; -use array::ArrayTrait; -use array::SpanTrait; +use core::option::OptionTrait; +use core::array::ArrayTrait; +use core::array::SpanTrait; use orion::operators::tensor::{Tensor, TensorTrait}; diff --git a/tests/nodes/abs_fp16x16.cairo b/tests/nodes/abs_fp16x16.cairo index 4195da3c3..493682bd4 100644 --- a/tests/nodes/abs_fp16x16.cairo +++ b/tests/nodes/abs_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/abs_fp16x16/input_0.cairo b/tests/nodes/abs_fp16x16/input_0.cairo index d6d78d634..7482436b8 100644 --- a/tests/nodes/abs_fp16x16/input_0.cairo +++ b/tests/nodes/abs_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/abs_fp16x16/output_0.cairo b/tests/nodes/abs_fp16x16/output_0.cairo index 8030777f3..fc031a4b6 100644 --- a/tests/nodes/abs_fp16x16/output_0.cairo +++ b/tests/nodes/abs_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/abs_fp8x23.cairo b/tests/nodes/abs_fp8x23.cairo index fa8350d38..b6ed1e097 100644 --- a/tests/nodes/abs_fp8x23.cairo +++ b/tests/nodes/abs_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/abs_fp8x23/input_0.cairo b/tests/nodes/abs_fp8x23/input_0.cairo index f6c6ebdcd..90adfd51b 100644 --- a/tests/nodes/abs_fp8x23/input_0.cairo +++ b/tests/nodes/abs_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/abs_fp8x23/output_0.cairo b/tests/nodes/abs_fp8x23/output_0.cairo index e7bd613ce..b4ab25398 100644 --- a/tests/nodes/abs_fp8x23/output_0.cairo +++ b/tests/nodes/abs_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/abs_i32.cairo b/tests/nodes/abs_i32.cairo index 045bff401..a48da9fc6 100644 --- a/tests/nodes/abs_i32.cairo +++ b/tests/nodes/abs_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/abs_i32/input_0.cairo b/tests/nodes/abs_i32/input_0.cairo index f5ff5fe12..81eec58e8 100644 --- a/tests/nodes/abs_i32/input_0.cairo +++ b/tests/nodes/abs_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/abs_i32/output_0.cairo b/tests/nodes/abs_i32/output_0.cairo index 7bbe9d164..f11d16637 100644 --- a/tests/nodes/abs_i32/output_0.cairo +++ b/tests/nodes/abs_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/abs_i8.cairo b/tests/nodes/abs_i8.cairo index c36440f00..4ed52a38c 100644 --- a/tests/nodes/abs_i8.cairo +++ b/tests/nodes/abs_i8.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/abs_i8/input_0.cairo b/tests/nodes/abs_i8/input_0.cairo index 97368c478..e80cba1b9 100644 --- a/tests/nodes/abs_i8/input_0.cairo +++ b/tests/nodes/abs_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/abs_i8/output_0.cairo b/tests/nodes/abs_i8/output_0.cairo index ce164d0bb..9aa25b00e 100644 --- a/tests/nodes/abs_i8/output_0.cairo +++ b/tests/nodes/abs_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/acos_fp16x16.cairo b/tests/nodes/acos_fp16x16.cairo index 375d08677..ef610ffd8 100644 --- a/tests/nodes/acos_fp16x16.cairo +++ b/tests/nodes/acos_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/acos_fp16x16/input_0.cairo b/tests/nodes/acos_fp16x16/input_0.cairo index 2ef8ce3f5..e82ec0a13 100644 --- a/tests/nodes/acos_fp16x16/input_0.cairo +++ b/tests/nodes/acos_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/acos_fp16x16/output_0.cairo b/tests/nodes/acos_fp16x16/output_0.cairo index fecf22451..44e0845e5 100644 --- a/tests/nodes/acos_fp16x16/output_0.cairo +++ b/tests/nodes/acos_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/acos_fp8x23.cairo b/tests/nodes/acos_fp8x23.cairo index 3efe7353a..586ec403a 100644 --- a/tests/nodes/acos_fp8x23.cairo +++ b/tests/nodes/acos_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/acos_fp8x23/input_0.cairo b/tests/nodes/acos_fp8x23/input_0.cairo index 573369967..c576b9d0d 100644 --- a/tests/nodes/acos_fp8x23/input_0.cairo +++ b/tests/nodes/acos_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/acos_fp8x23/output_0.cairo b/tests/nodes/acos_fp8x23/output_0.cairo index 1736c7ea6..bb0247c25 100644 --- a/tests/nodes/acos_fp8x23/output_0.cairo +++ b/tests/nodes/acos_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/acosh_fp16x16.cairo b/tests/nodes/acosh_fp16x16.cairo index 9b27c59f9..029e33ae3 100644 --- a/tests/nodes/acosh_fp16x16.cairo +++ b/tests/nodes/acosh_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/acosh_fp16x16/input_0.cairo b/tests/nodes/acosh_fp16x16/input_0.cairo index 10f84dd6d..b0afc87dc 100644 --- a/tests/nodes/acosh_fp16x16/input_0.cairo +++ b/tests/nodes/acosh_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/acosh_fp16x16/output_0.cairo b/tests/nodes/acosh_fp16x16/output_0.cairo index 8e6b009bd..6b7b151b9 100644 --- a/tests/nodes/acosh_fp16x16/output_0.cairo +++ b/tests/nodes/acosh_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/acosh_fp8x23.cairo b/tests/nodes/acosh_fp8x23.cairo index a8e1dd744..7fc08d2c5 100644 --- a/tests/nodes/acosh_fp8x23.cairo +++ b/tests/nodes/acosh_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/acosh_fp8x23/input_0.cairo b/tests/nodes/acosh_fp8x23/input_0.cairo index 1db3634f2..82866a091 100644 --- a/tests/nodes/acosh_fp8x23/input_0.cairo +++ b/tests/nodes/acosh_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/acosh_fp8x23/output_0.cairo b/tests/nodes/acosh_fp8x23/output_0.cairo index 16808d14a..0ac26e986 100644 --- a/tests/nodes/acosh_fp8x23/output_0.cairo +++ b/tests/nodes/acosh_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp16x16.cairo b/tests/nodes/add_fp16x16.cairo index 1800156b1..3d919c7b3 100644 --- a/tests/nodes/add_fp16x16.cairo +++ b/tests/nodes/add_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/add_fp16x16/input_0.cairo b/tests/nodes/add_fp16x16/input_0.cairo index 5f506f51d..da5896eb9 100644 --- a/tests/nodes/add_fp16x16/input_0.cairo +++ b/tests/nodes/add_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp16x16/input_1.cairo b/tests/nodes/add_fp16x16/input_1.cairo index 2352eba18..583a9a091 100644 --- a/tests/nodes/add_fp16x16/input_1.cairo +++ b/tests/nodes/add_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp16x16/output_0.cairo b/tests/nodes/add_fp16x16/output_0.cairo index 2a4d478be..f08fdac69 100644 --- a/tests/nodes/add_fp16x16/output_0.cairo +++ b/tests/nodes/add_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp16x16_broadcast.cairo b/tests/nodes/add_fp16x16_broadcast.cairo index 2d29ef030..a0a1e9dbf 100644 --- a/tests/nodes/add_fp16x16_broadcast.cairo +++ b/tests/nodes/add_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/add_fp16x16_broadcast/input_0.cairo b/tests/nodes/add_fp16x16_broadcast/input_0.cairo index fd4a7444b..66c8a0858 100644 --- a/tests/nodes/add_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/add_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp16x16_broadcast/input_1.cairo b/tests/nodes/add_fp16x16_broadcast/input_1.cairo index 4b0c672d3..2aec11537 100644 --- a/tests/nodes/add_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/add_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp16x16_broadcast/output_0.cairo b/tests/nodes/add_fp16x16_broadcast/output_0.cairo index 9abe78079..1d56a5b00 100644 --- a/tests/nodes/add_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/add_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp8x23.cairo b/tests/nodes/add_fp8x23.cairo index d8821155e..18ff3f5a8 100644 --- a/tests/nodes/add_fp8x23.cairo +++ b/tests/nodes/add_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/add_fp8x23/input_0.cairo b/tests/nodes/add_fp8x23/input_0.cairo index 6a925f921..9dba4c568 100644 --- a/tests/nodes/add_fp8x23/input_0.cairo +++ b/tests/nodes/add_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp8x23/input_1.cairo b/tests/nodes/add_fp8x23/input_1.cairo index 73b57e089..bb3d993c1 100644 --- a/tests/nodes/add_fp8x23/input_1.cairo +++ b/tests/nodes/add_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp8x23/output_0.cairo b/tests/nodes/add_fp8x23/output_0.cairo index c4bcf5827..54dbe7b85 100644 --- a/tests/nodes/add_fp8x23/output_0.cairo +++ b/tests/nodes/add_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp8x23_broadcast.cairo b/tests/nodes/add_fp8x23_broadcast.cairo index be1d3f286..6710b47cc 100644 --- a/tests/nodes/add_fp8x23_broadcast.cairo +++ b/tests/nodes/add_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/add_fp8x23_broadcast/input_0.cairo b/tests/nodes/add_fp8x23_broadcast/input_0.cairo index 28d2adc34..ce75edfd5 100644 --- a/tests/nodes/add_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/add_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp8x23_broadcast/input_1.cairo b/tests/nodes/add_fp8x23_broadcast/input_1.cairo index ca4f8797e..02974d48d 100644 --- a/tests/nodes/add_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/add_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_fp8x23_broadcast/output_0.cairo b/tests/nodes/add_fp8x23_broadcast/output_0.cairo index cfd03b9ac..b3ba9fcc3 100644 --- a/tests/nodes/add_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/add_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/add_i32.cairo b/tests/nodes/add_i32.cairo index 0f0144e03..a5375bc0d 100644 --- a/tests/nodes/add_i32.cairo +++ b/tests/nodes/add_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/add_i32/input_0.cairo b/tests/nodes/add_i32/input_0.cairo index 0a4de6776..65a9899f3 100644 --- a/tests/nodes/add_i32/input_0.cairo +++ b/tests/nodes/add_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/add_i32/input_1.cairo b/tests/nodes/add_i32/input_1.cairo index 525c735ba..57dc1eba5 100644 --- a/tests/nodes/add_i32/input_1.cairo +++ b/tests/nodes/add_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/add_i32/output_0.cairo b/tests/nodes/add_i32/output_0.cairo index 1b520f683..6af111480 100644 --- a/tests/nodes/add_i32/output_0.cairo +++ b/tests/nodes/add_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/add_i32_broadcast.cairo b/tests/nodes/add_i32_broadcast.cairo index a0273811f..2ef133f07 100644 --- a/tests/nodes/add_i32_broadcast.cairo +++ b/tests/nodes/add_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/add_i32_broadcast/input_0.cairo b/tests/nodes/add_i32_broadcast/input_0.cairo index e0d8de75a..798ec1148 100644 --- a/tests/nodes/add_i32_broadcast/input_0.cairo +++ b/tests/nodes/add_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/add_i32_broadcast/input_1.cairo b/tests/nodes/add_i32_broadcast/input_1.cairo index 676b24a1e..c5058a387 100644 --- a/tests/nodes/add_i32_broadcast/input_1.cairo +++ b/tests/nodes/add_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/add_i32_broadcast/output_0.cairo b/tests/nodes/add_i32_broadcast/output_0.cairo index 3a1451bff..f67a0d8f0 100644 --- a/tests/nodes/add_i32_broadcast/output_0.cairo +++ b/tests/nodes/add_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/add_i8.cairo b/tests/nodes/add_i8.cairo index a44189f3a..0bd7b30a9 100644 --- a/tests/nodes/add_i8.cairo +++ b/tests/nodes/add_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/add_i8/input_0.cairo b/tests/nodes/add_i8/input_0.cairo index 5b091dcc2..3a12f520e 100644 --- a/tests/nodes/add_i8/input_0.cairo +++ b/tests/nodes/add_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/add_i8/input_1.cairo b/tests/nodes/add_i8/input_1.cairo index 8b8f7c79d..6b4bda3f3 100644 --- a/tests/nodes/add_i8/input_1.cairo +++ b/tests/nodes/add_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/add_i8/output_0.cairo b/tests/nodes/add_i8/output_0.cairo index 160698db3..fd72478ab 100644 --- a/tests/nodes/add_i8/output_0.cairo +++ b/tests/nodes/add_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/add_i8_broadcast.cairo b/tests/nodes/add_i8_broadcast.cairo index ff85a32cf..a6c3d2233 100644 --- a/tests/nodes/add_i8_broadcast.cairo +++ b/tests/nodes/add_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/add_i8_broadcast/input_0.cairo b/tests/nodes/add_i8_broadcast/input_0.cairo index 146c8a9a0..6edba4069 100644 --- a/tests/nodes/add_i8_broadcast/input_0.cairo +++ b/tests/nodes/add_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/add_i8_broadcast/input_1.cairo b/tests/nodes/add_i8_broadcast/input_1.cairo index e1cedbb09..b6c2b6351 100644 --- a/tests/nodes/add_i8_broadcast/input_1.cairo +++ b/tests/nodes/add_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/add_i8_broadcast/output_0.cairo b/tests/nodes/add_i8_broadcast/output_0.cairo index a912a45a5..c174866e8 100644 --- a/tests/nodes/add_i8_broadcast/output_0.cairo +++ b/tests/nodes/add_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/add_u32.cairo b/tests/nodes/add_u32.cairo index 5149baefb..78977acd8 100644 --- a/tests/nodes/add_u32.cairo +++ b/tests/nodes/add_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/add_u32/input_0.cairo b/tests/nodes/add_u32/input_0.cairo index c891bf082..de0e8c8a5 100644 --- a/tests/nodes/add_u32/input_0.cairo +++ b/tests/nodes/add_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/add_u32/input_1.cairo b/tests/nodes/add_u32/input_1.cairo index 10d98df4f..e06eff828 100644 --- a/tests/nodes/add_u32/input_1.cairo +++ b/tests/nodes/add_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/add_u32/output_0.cairo b/tests/nodes/add_u32/output_0.cairo index 53e813837..6c2bff922 100644 --- a/tests/nodes/add_u32/output_0.cairo +++ b/tests/nodes/add_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/add_u32_broadcast.cairo b/tests/nodes/add_u32_broadcast.cairo index 447dba22f..56388b6e5 100644 --- a/tests/nodes/add_u32_broadcast.cairo +++ b/tests/nodes/add_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/add_u32_broadcast/input_0.cairo b/tests/nodes/add_u32_broadcast/input_0.cairo index fb47f3d01..78d737847 100644 --- a/tests/nodes/add_u32_broadcast/input_0.cairo +++ b/tests/nodes/add_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/add_u32_broadcast/input_1.cairo b/tests/nodes/add_u32_broadcast/input_1.cairo index 21bb6ebe8..e6c6a0131 100644 --- a/tests/nodes/add_u32_broadcast/input_1.cairo +++ b/tests/nodes/add_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/add_u32_broadcast/output_0.cairo b/tests/nodes/add_u32_broadcast/output_0.cairo index c23737f48..544c65b9e 100644 --- a/tests/nodes/add_u32_broadcast/output_0.cairo +++ b/tests/nodes/add_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/and_bool.cairo b/tests/nodes/and_bool.cairo index d858d66bc..21b2f042f 100644 --- a/tests/nodes/and_bool.cairo +++ b/tests/nodes/and_bool.cairo @@ -7,7 +7,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/and_bool/input_0.cairo b/tests/nodes/and_bool/input_0.cairo index 4c8339cbc..0ffac7d66 100644 --- a/tests/nodes/and_bool/input_0.cairo +++ b/tests/nodes/and_bool/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/and_bool/input_1.cairo b/tests/nodes/and_bool/input_1.cairo index 1a0058463..e420ca43d 100644 --- a/tests/nodes/and_bool/input_1.cairo +++ b/tests/nodes/and_bool/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/and_bool/output_0.cairo b/tests/nodes/and_bool/output_0.cairo index b094436db..88fd7a1e8 100644 --- a/tests/nodes/and_bool/output_0.cairo +++ b/tests/nodes/and_bool/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/and_bool_broadcast.cairo b/tests/nodes/and_bool_broadcast.cairo index fba23fd79..15efda6be 100644 --- a/tests/nodes/and_bool_broadcast.cairo +++ b/tests/nodes/and_bool_broadcast.cairo @@ -7,7 +7,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_1D_default.cairo b/tests/nodes/argmax_fp16x16_1D_default.cairo index 18b503e6c..fa63628d5 100644 --- a/tests/nodes/argmax_fp16x16_1D_default.cairo +++ b/tests/nodes/argmax_fp16x16_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo b/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo index 943f18d16..6bfe5e894 100644 --- a/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo b/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo index f712be164..4a377d050 100644 --- a/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo b/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo index 807cd916c..ec20d165d 100644 --- a/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 ae70adb0d..c52feb518 100644 --- a/tests/nodes/argmax_fp16x16_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmax_fp16x16_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_1D_last_index.cairo b/tests/nodes/argmax_fp16x16_1D_last_index.cairo index 7c443bbef..3a87e4d30 100644 --- a/tests/nodes/argmax_fp16x16_1D_last_index.cairo +++ b/tests/nodes/argmax_fp16x16_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 7073db119..1be090a24 100644 --- a/tests/nodes/argmax_fp16x16_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmax_fp16x16_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_2D_default.cairo b/tests/nodes/argmax_fp16x16_2D_default.cairo index 3370ebca2..cacc73f3b 100644 --- a/tests/nodes/argmax_fp16x16_2D_default.cairo +++ b/tests/nodes/argmax_fp16x16_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo b/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo index 1a644466a..ca89b361d 100644 --- a/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo b/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo index 9b8238f07..03e4272da 100644 --- a/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo b/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo index cd236b21f..cdd071698 100644 --- a/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 5905727bf..59eb88a9e 100644 --- a/tests/nodes/argmax_fp16x16_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 b7133e0ed..60d86b990 100644 --- a/tests/nodes/argmax_fp16x16_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_2D_last_index.cairo b/tests/nodes/argmax_fp16x16_2D_last_index.cairo index 421a38368..f842a1d59 100644 --- a/tests/nodes/argmax_fp16x16_2D_last_index.cairo +++ b/tests/nodes/argmax_fp16x16_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 bc8ca6520..603a5662b 100644 --- a/tests/nodes/argmax_fp16x16_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 660c39bca..96c5ee26d 100644 --- a/tests/nodes/argmax_fp16x16_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_3D_default.cairo b/tests/nodes/argmax_fp16x16_3D_default.cairo index 1f8e7f9e0..5fb555efa 100644 --- a/tests/nodes/argmax_fp16x16_3D_default.cairo +++ b/tests/nodes/argmax_fp16x16_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo b/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo index 29853c85a..2652d4391 100644 --- a/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo b/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo index a2257b780..e7d5e2e20 100644 --- a/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo b/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo index b26044134..47dbdbabb 100644 --- a/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 baeb0f3b9..bb3e1dd69 100644 --- a/tests/nodes/argmax_fp16x16_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 74b0be527..6bcb5ce4a 100644 --- a/tests/nodes/argmax_fp16x16_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp16x16_3D_last_index.cairo b/tests/nodes/argmax_fp16x16_3D_last_index.cairo index 782d34055..668340d76 100644 --- a/tests/nodes/argmax_fp16x16_3D_last_index.cairo +++ b/tests/nodes/argmax_fp16x16_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 032c84813..8560dcbf6 100644 --- a/tests/nodes/argmax_fp16x16_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 306ec843e..a027e8e44 100644 --- a/tests/nodes/argmax_fp16x16_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_1D_default.cairo b/tests/nodes/argmax_fp8x23_1D_default.cairo index 1a33518d6..b34c394c1 100644 --- a/tests/nodes/argmax_fp8x23_1D_default.cairo +++ b/tests/nodes/argmax_fp8x23_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo b/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo index c04050daf..f3c01a659 100644 --- a/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo b/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo index 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo b/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo index e035ef5d8..de250c355 100644 --- a/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 425f636b1..236268e17 100644 --- a/tests/nodes/argmax_fp8x23_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmax_fp8x23_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_1D_last_index.cairo b/tests/nodes/argmax_fp8x23_1D_last_index.cairo index 33fd437ca..48670b47b 100644 --- a/tests/nodes/argmax_fp8x23_1D_last_index.cairo +++ b/tests/nodes/argmax_fp8x23_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 a108ea299..e4292fa23 100644 --- a/tests/nodes/argmax_fp8x23_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 f712be164..4a377d050 100644 --- a/tests/nodes/argmax_fp8x23_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_2D_default.cairo b/tests/nodes/argmax_fp8x23_2D_default.cairo index 9fdc8cf51..d99ca0bfd 100644 --- a/tests/nodes/argmax_fp8x23_2D_default.cairo +++ b/tests/nodes/argmax_fp8x23_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo b/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo index b737b618a..55f662a32 100644 --- a/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo b/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo index 1915a5148..f7286dbbb 100644 --- a/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo b/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo index 835ea6d21..3a606d140 100644 --- a/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 a95f8d06a..a307f7256 100644 --- a/tests/nodes/argmax_fp8x23_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 d4a7a1123..321c81958 100644 --- a/tests/nodes/argmax_fp8x23_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_2D_last_index.cairo b/tests/nodes/argmax_fp8x23_2D_last_index.cairo index ecbc6973a..d45a8ef7d 100644 --- a/tests/nodes/argmax_fp8x23_2D_last_index.cairo +++ b/tests/nodes/argmax_fp8x23_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 98f097ead..ae97871c0 100644 --- a/tests/nodes/argmax_fp8x23_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 660c39bca..96c5ee26d 100644 --- a/tests/nodes/argmax_fp8x23_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_3D_default.cairo b/tests/nodes/argmax_fp8x23_3D_default.cairo index 4dbd61bc9..4a547583d 100644 --- a/tests/nodes/argmax_fp8x23_3D_default.cairo +++ b/tests/nodes/argmax_fp8x23_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo b/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo index 79227a3a9..c63201618 100644 --- a/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo b/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo index 965900386..9eabbe2ba 100644 --- a/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo b/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo index abd653b05..25285d9ab 100644 --- a/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 ea0b567b3..f327128a9 100644 --- a/tests/nodes/argmax_fp8x23_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 12e081541..eb0deaedb 100644 --- a/tests/nodes/argmax_fp8x23_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_fp8x23_3D_last_index.cairo b/tests/nodes/argmax_fp8x23_3D_last_index.cairo index b663edd8a..97bf7d4b2 100644 --- a/tests/nodes/argmax_fp8x23_3D_last_index.cairo +++ b/tests/nodes/argmax_fp8x23_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 e4e8cc427..3bd4d132f 100644 --- a/tests/nodes/argmax_fp8x23_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 f52830961..faaf6ccbe 100644 --- a/tests/nodes/argmax_fp8x23_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_1D_default.cairo b/tests/nodes/argmax_i32_1D_default.cairo index 44c42b6ac..eaf42f034 100644 --- a/tests/nodes/argmax_i32_1D_default.cairo +++ b/tests/nodes/argmax_i32_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_i32_1D_default/input_0.cairo b/tests/nodes/argmax_i32_1D_default/input_0.cairo index d06001a38..456dcc7b2 100644 --- a/tests/nodes/argmax_i32_1D_default/input_0.cairo +++ b/tests/nodes/argmax_i32_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/argmax_i32_1D_default/output_0.cairo b/tests/nodes/argmax_i32_1D_default/output_0.cairo index 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmax_i32_1D_default/output_0.cairo +++ b/tests/nodes/argmax_i32_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_1D_keepdims_false.cairo b/tests/nodes/argmax_i32_1D_keepdims_false.cairo index 5944c18dd..599b4d6ea 100644 --- a/tests/nodes/argmax_i32_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_i32_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 751901051..1bdc98cb2 100644 --- a/tests/nodes/argmax_i32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i32_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmax_i32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i32_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_1D_last_index.cairo b/tests/nodes/argmax_i32_1D_last_index.cairo index 7427734ff..9ea51f605 100644 --- a/tests/nodes/argmax_i32_1D_last_index.cairo +++ b/tests/nodes/argmax_i32_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 da2bc6d9a..1ec41a67b 100644 --- a/tests/nodes/argmax_i32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i32_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmax_i32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i32_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_2D_default.cairo b/tests/nodes/argmax_i32_2D_default.cairo index 28ee2a676..4376bdfb2 100644 --- a/tests/nodes/argmax_i32_2D_default.cairo +++ b/tests/nodes/argmax_i32_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_i32_2D_default/input_0.cairo b/tests/nodes/argmax_i32_2D_default/input_0.cairo index b898a41e2..8cac2beed 100644 --- a/tests/nodes/argmax_i32_2D_default/input_0.cairo +++ b/tests/nodes/argmax_i32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/argmax_i32_2D_default/output_0.cairo b/tests/nodes/argmax_i32_2D_default/output_0.cairo index 660c39bca..96c5ee26d 100644 --- a/tests/nodes/argmax_i32_2D_default/output_0.cairo +++ b/tests/nodes/argmax_i32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_2D_keepdims_false.cairo b/tests/nodes/argmax_i32_2D_keepdims_false.cairo index 7a9ee638c..33004e5d4 100644 --- a/tests/nodes/argmax_i32_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_i32_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 4c996444b..28f83b1b8 100644 --- a/tests/nodes/argmax_i32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i32_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 d4a7a1123..321c81958 100644 --- a/tests/nodes/argmax_i32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i32_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_2D_last_index.cairo b/tests/nodes/argmax_i32_2D_last_index.cairo index c48dcd478..b0e0dcfd5 100644 --- a/tests/nodes/argmax_i32_2D_last_index.cairo +++ b/tests/nodes/argmax_i32_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 6f2ada7ad..15c17716b 100644 --- a/tests/nodes/argmax_i32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i32_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 c584e16bb..5603a4cbe 100644 --- a/tests/nodes/argmax_i32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i32_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_3D_default.cairo b/tests/nodes/argmax_i32_3D_default.cairo index e221ffc2f..918f21490 100644 --- a/tests/nodes/argmax_i32_3D_default.cairo +++ b/tests/nodes/argmax_i32_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_i32_3D_default/input_0.cairo b/tests/nodes/argmax_i32_3D_default/input_0.cairo index e445073c5..9325c3902 100644 --- a/tests/nodes/argmax_i32_3D_default/input_0.cairo +++ b/tests/nodes/argmax_i32_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/argmax_i32_3D_default/output_0.cairo b/tests/nodes/argmax_i32_3D_default/output_0.cairo index 44195a532..cb26295db 100644 --- a/tests/nodes/argmax_i32_3D_default/output_0.cairo +++ b/tests/nodes/argmax_i32_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_3D_keepdims_false.cairo b/tests/nodes/argmax_i32_3D_keepdims_false.cairo index bc0ce5d90..d11dd0605 100644 --- a/tests/nodes/argmax_i32_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_i32_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 f6cc19ae8..dc5e3cff1 100644 --- a/tests/nodes/argmax_i32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i32_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 8c5c23655..5f2035f24 100644 --- a/tests/nodes/argmax_i32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i32_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i32_3D_last_index.cairo b/tests/nodes/argmax_i32_3D_last_index.cairo index 370ecc5a9..b5a084dfe 100644 --- a/tests/nodes/argmax_i32_3D_last_index.cairo +++ b/tests/nodes/argmax_i32_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 afe8c2b43..48f835d82 100644 --- a/tests/nodes/argmax_i32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i32_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 da4b8c5e5..7db2dbebd 100644 --- a/tests/nodes/argmax_i32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i32_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_1D_default.cairo b/tests/nodes/argmax_i8_1D_default.cairo index 28b7cbdcf..bfc732316 100644 --- a/tests/nodes/argmax_i8_1D_default.cairo +++ b/tests/nodes/argmax_i8_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_i8_1D_default/input_0.cairo b/tests/nodes/argmax_i8_1D_default/input_0.cairo index 4778fd49b..54fa23142 100644 --- a/tests/nodes/argmax_i8_1D_default/input_0.cairo +++ b/tests/nodes/argmax_i8_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/argmax_i8_1D_default/output_0.cairo b/tests/nodes/argmax_i8_1D_default/output_0.cairo index 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmax_i8_1D_default/output_0.cairo +++ b/tests/nodes/argmax_i8_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_1D_keepdims_false.cairo b/tests/nodes/argmax_i8_1D_keepdims_false.cairo index 514a0dc3e..cea1c3a7c 100644 --- a/tests/nodes/argmax_i8_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_i8_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 46bb23b2f..eb4f1a4d9 100644 --- a/tests/nodes/argmax_i8_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i8_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmax_i8_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i8_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_1D_last_index.cairo b/tests/nodes/argmax_i8_1D_last_index.cairo index 6d3b4fe94..284987163 100644 --- a/tests/nodes/argmax_i8_1D_last_index.cairo +++ b/tests/nodes/argmax_i8_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 aefce06a5..c0d04bd2a 100644 --- a/tests/nodes/argmax_i8_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i8_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmax_i8_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i8_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_2D_default.cairo b/tests/nodes/argmax_i8_2D_default.cairo index 54841f935..744927b4b 100644 --- a/tests/nodes/argmax_i8_2D_default.cairo +++ b/tests/nodes/argmax_i8_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_i8_2D_default/input_0.cairo b/tests/nodes/argmax_i8_2D_default/input_0.cairo index 9150cace2..164a3db90 100644 --- a/tests/nodes/argmax_i8_2D_default/input_0.cairo +++ b/tests/nodes/argmax_i8_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/argmax_i8_2D_default/output_0.cairo b/tests/nodes/argmax_i8_2D_default/output_0.cairo index c584e16bb..5603a4cbe 100644 --- a/tests/nodes/argmax_i8_2D_default/output_0.cairo +++ b/tests/nodes/argmax_i8_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_2D_keepdims_false.cairo b/tests/nodes/argmax_i8_2D_keepdims_false.cairo index dbc77d70d..763c54db7 100644 --- a/tests/nodes/argmax_i8_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_i8_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 857a8907d..5af9757df 100644 --- a/tests/nodes/argmax_i8_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i8_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 a79174d8c..1e01eb240 100644 --- a/tests/nodes/argmax_i8_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i8_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_2D_last_index.cairo b/tests/nodes/argmax_i8_2D_last_index.cairo index 8a30b99bb..b54760a2e 100644 --- a/tests/nodes/argmax_i8_2D_last_index.cairo +++ b/tests/nodes/argmax_i8_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 fd23162bb..8e4e37bd0 100644 --- a/tests/nodes/argmax_i8_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i8_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 1915a5148..f7286dbbb 100644 --- a/tests/nodes/argmax_i8_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i8_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_3D_default.cairo b/tests/nodes/argmax_i8_3D_default.cairo index 6a296256b..e64a24d41 100644 --- a/tests/nodes/argmax_i8_3D_default.cairo +++ b/tests/nodes/argmax_i8_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_i8_3D_default/input_0.cairo b/tests/nodes/argmax_i8_3D_default/input_0.cairo index 1b24ba730..ae0aa6d42 100644 --- a/tests/nodes/argmax_i8_3D_default/input_0.cairo +++ b/tests/nodes/argmax_i8_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/argmax_i8_3D_default/output_0.cairo b/tests/nodes/argmax_i8_3D_default/output_0.cairo index 09fb863ed..5f4080377 100644 --- a/tests/nodes/argmax_i8_3D_default/output_0.cairo +++ b/tests/nodes/argmax_i8_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_3D_keepdims_false.cairo b/tests/nodes/argmax_i8_3D_keepdims_false.cairo index 5710e6ffc..0c9719853 100644 --- a/tests/nodes/argmax_i8_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_i8_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 abb4c8618..46eac779a 100644 --- a/tests/nodes/argmax_i8_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i8_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 535094c96..226ba2d48 100644 --- a/tests/nodes/argmax_i8_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i8_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_i8_3D_last_index.cairo b/tests/nodes/argmax_i8_3D_last_index.cairo index 162911987..3b6761752 100644 --- a/tests/nodes/argmax_i8_3D_last_index.cairo +++ b/tests/nodes/argmax_i8_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 cfbcb2cd9..5d10e3e1a 100644 --- a/tests/nodes/argmax_i8_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i8_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 965900386..9eabbe2ba 100644 --- a/tests/nodes/argmax_i8_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i8_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_1D_default.cairo b/tests/nodes/argmax_u32_1D_default.cairo index 901fdeb13..dff56c590 100644 --- a/tests/nodes/argmax_u32_1D_default.cairo +++ b/tests/nodes/argmax_u32_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_u32_1D_default/input_0.cairo b/tests/nodes/argmax_u32_1D_default/input_0.cairo index 40a3ad9db..59504741b 100644 --- a/tests/nodes/argmax_u32_1D_default/input_0.cairo +++ b/tests/nodes/argmax_u32_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_1D_default/output_0.cairo b/tests/nodes/argmax_u32_1D_default/output_0.cairo index f712be164..4a377d050 100644 --- a/tests/nodes/argmax_u32_1D_default/output_0.cairo +++ b/tests/nodes/argmax_u32_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_1D_keepdims_false.cairo b/tests/nodes/argmax_u32_1D_keepdims_false.cairo index a8db05302..9494acb75 100644 --- a/tests/nodes/argmax_u32_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_u32_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 66bed3f69..b87a17d2e 100644 --- a/tests/nodes/argmax_u32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_u32_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 f712be164..4a377d050 100644 --- a/tests/nodes/argmax_u32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_u32_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_1D_last_index.cairo b/tests/nodes/argmax_u32_1D_last_index.cairo index 31f9a845d..87bc93a0e 100644 --- a/tests/nodes/argmax_u32_1D_last_index.cairo +++ b/tests/nodes/argmax_u32_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 82218bdb5..c1c9c5c67 100644 --- a/tests/nodes/argmax_u32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_u32_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 f712be164..4a377d050 100644 --- a/tests/nodes/argmax_u32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_u32_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_2D_default.cairo b/tests/nodes/argmax_u32_2D_default.cairo index d455a4a84..365021433 100644 --- a/tests/nodes/argmax_u32_2D_default.cairo +++ b/tests/nodes/argmax_u32_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_u32_2D_default/input_0.cairo b/tests/nodes/argmax_u32_2D_default/input_0.cairo index f54759d7f..83866d960 100644 --- a/tests/nodes/argmax_u32_2D_default/input_0.cairo +++ b/tests/nodes/argmax_u32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_2D_default/output_0.cairo b/tests/nodes/argmax_u32_2D_default/output_0.cairo index 1915a5148..f7286dbbb 100644 --- a/tests/nodes/argmax_u32_2D_default/output_0.cairo +++ b/tests/nodes/argmax_u32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_2D_keepdims_false.cairo b/tests/nodes/argmax_u32_2D_keepdims_false.cairo index 0e7b0e6a4..4d4f9c55f 100644 --- a/tests/nodes/argmax_u32_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_u32_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 c9cd7d41f..c913f746a 100644 --- a/tests/nodes/argmax_u32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_u32_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 b7133e0ed..60d86b990 100644 --- a/tests/nodes/argmax_u32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_u32_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_2D_last_index.cairo b/tests/nodes/argmax_u32_2D_last_index.cairo index f58d10c9e..909ed6af1 100644 --- a/tests/nodes/argmax_u32_2D_last_index.cairo +++ b/tests/nodes/argmax_u32_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 a26265c4e..d6950965a 100644 --- a/tests/nodes/argmax_u32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_u32_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 1915a5148..f7286dbbb 100644 --- a/tests/nodes/argmax_u32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_u32_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_3D_default.cairo b/tests/nodes/argmax_u32_3D_default.cairo index b7c25bc63..f33134529 100644 --- a/tests/nodes/argmax_u32_3D_default.cairo +++ b/tests/nodes/argmax_u32_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmax_u32_3D_default/input_0.cairo b/tests/nodes/argmax_u32_3D_default/input_0.cairo index 8890f35fd..117291e8f 100644 --- a/tests/nodes/argmax_u32_3D_default/input_0.cairo +++ b/tests/nodes/argmax_u32_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_3D_default/output_0.cairo b/tests/nodes/argmax_u32_3D_default/output_0.cairo index 254044ca5..06e4b054c 100644 --- a/tests/nodes/argmax_u32_3D_default/output_0.cairo +++ b/tests/nodes/argmax_u32_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_3D_keepdims_false.cairo b/tests/nodes/argmax_u32_3D_keepdims_false.cairo index 7012edf5c..028b85010 100644 --- a/tests/nodes/argmax_u32_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_u32_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 e2009ae16..53bd183d8 100644 --- a/tests/nodes/argmax_u32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_u32_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 f7205c752..e9d17d59b 100644 --- a/tests/nodes/argmax_u32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_u32_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmax_u32_3D_last_index.cairo b/tests/nodes/argmax_u32_3D_last_index.cairo index f5c0248ba..988dbae36 100644 --- a/tests/nodes/argmax_u32_3D_last_index.cairo +++ b/tests/nodes/argmax_u32_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 44b7593cd..86a06d354 100644 --- a/tests/nodes/argmax_u32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_u32_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 30080b968..30eec9d73 100644 --- a/tests/nodes/argmax_u32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_u32_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_1D_default.cairo b/tests/nodes/argmin_fp16x16_1D_default.cairo index 9bc585e77..59e920f88 100644 --- a/tests/nodes/argmin_fp16x16_1D_default.cairo +++ b/tests/nodes/argmin_fp16x16_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo b/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo index cbcdf1762..88e23f8bd 100644 --- a/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo b/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo index 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo b/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo index d4e6e8367..e9f8f87b5 100644 --- a/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 3ebfd693a..ec822985e 100644 --- a/tests/nodes/argmin_fp16x16_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 f712be164..4a377d050 100644 --- a/tests/nodes/argmin_fp16x16_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_1D_last_index.cairo b/tests/nodes/argmin_fp16x16_1D_last_index.cairo index b0c5dc03e..c0cd81d82 100644 --- a/tests/nodes/argmin_fp16x16_1D_last_index.cairo +++ b/tests/nodes/argmin_fp16x16_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 12745b1f7..17716af8c 100644 --- a/tests/nodes/argmin_fp16x16_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmin_fp16x16_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_2D_default.cairo b/tests/nodes/argmin_fp16x16_2D_default.cairo index ca3522dab..efcc4f4ae 100644 --- a/tests/nodes/argmin_fp16x16_2D_default.cairo +++ b/tests/nodes/argmin_fp16x16_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo b/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo index c41088309..142b1ab11 100644 --- a/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo b/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo index 9b8238f07..03e4272da 100644 --- a/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo b/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo index 181568317..2f7ca7bcd 100644 --- a/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 46d933cbb..7aef82048 100644 --- a/tests/nodes/argmin_fp16x16_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 d4a7a1123..321c81958 100644 --- a/tests/nodes/argmin_fp16x16_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_2D_last_index.cairo b/tests/nodes/argmin_fp16x16_2D_last_index.cairo index c55a52938..dcca71d98 100644 --- a/tests/nodes/argmin_fp16x16_2D_last_index.cairo +++ b/tests/nodes/argmin_fp16x16_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 0d7495fe6..88085a113 100644 --- a/tests/nodes/argmin_fp16x16_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 1915a5148..f7286dbbb 100644 --- a/tests/nodes/argmin_fp16x16_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_3D_default.cairo b/tests/nodes/argmin_fp16x16_3D_default.cairo index 462906433..1a4a11bf4 100644 --- a/tests/nodes/argmin_fp16x16_3D_default.cairo +++ b/tests/nodes/argmin_fp16x16_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo b/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo index 71a316a43..e17bb41dc 100644 --- a/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo b/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo index a0fef9e9c..4be3b6c2c 100644 --- a/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo b/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo index f0dbfe918..84065859a 100644 --- a/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 4dedc8f69..537887b29 100644 --- a/tests/nodes/argmin_fp16x16_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 745afb892..fd76eea05 100644 --- a/tests/nodes/argmin_fp16x16_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp16x16_3D_last_index.cairo b/tests/nodes/argmin_fp16x16_3D_last_index.cairo index c666706be..27bda209b 100644 --- a/tests/nodes/argmin_fp16x16_3D_last_index.cairo +++ b/tests/nodes/argmin_fp16x16_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 a7fe544d9..6b8e09078 100644 --- a/tests/nodes/argmin_fp16x16_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 965900386..9eabbe2ba 100644 --- a/tests/nodes/argmin_fp16x16_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_1D_default.cairo b/tests/nodes/argmin_fp8x23_1D_default.cairo index 40e9dbd82..e83185b89 100644 --- a/tests/nodes/argmin_fp8x23_1D_default.cairo +++ b/tests/nodes/argmin_fp8x23_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo b/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo index 6d897f5c3..04078f69d 100644 --- a/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo b/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo index f712be164..4a377d050 100644 --- a/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo b/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo index 26c58217c..70228e8f7 100644 --- a/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 5807b24d1..d2ffe2461 100644 --- a/tests/nodes/argmin_fp8x23_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmin_fp8x23_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_1D_last_index.cairo b/tests/nodes/argmin_fp8x23_1D_last_index.cairo index a7efa4d08..d7519f28b 100644 --- a/tests/nodes/argmin_fp8x23_1D_last_index.cairo +++ b/tests/nodes/argmin_fp8x23_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 5f440d156..c5722b902 100644 --- a/tests/nodes/argmin_fp8x23_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmin_fp8x23_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_2D_default.cairo b/tests/nodes/argmin_fp8x23_2D_default.cairo index 01307d128..d63d30d79 100644 --- a/tests/nodes/argmin_fp8x23_2D_default.cairo +++ b/tests/nodes/argmin_fp8x23_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo b/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo index b9c32e216..56b592549 100644 --- a/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo b/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo index 9b8238f07..03e4272da 100644 --- a/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo b/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo index 82d9960c9..275f798da 100644 --- a/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 8c0c8330c..9aed14da5 100644 --- a/tests/nodes/argmin_fp8x23_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 a6dae18bd..6149789b1 100644 --- a/tests/nodes/argmin_fp8x23_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_2D_last_index.cairo b/tests/nodes/argmin_fp8x23_2D_last_index.cairo index 7a94b6b80..4b1f8976e 100644 --- a/tests/nodes/argmin_fp8x23_2D_last_index.cairo +++ b/tests/nodes/argmin_fp8x23_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 1a1f009f8..a0b4b87fe 100644 --- a/tests/nodes/argmin_fp8x23_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 1915a5148..f7286dbbb 100644 --- a/tests/nodes/argmin_fp8x23_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_3D_default.cairo b/tests/nodes/argmin_fp8x23_3D_default.cairo index f14f290a8..c166d9ce0 100644 --- a/tests/nodes/argmin_fp8x23_3D_default.cairo +++ b/tests/nodes/argmin_fp8x23_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo b/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo index ed654c6a2..08116e5e3 100644 --- a/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo b/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo index 0babca322..9c12d0182 100644 --- a/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo b/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo index a862678e9..f8e67f760 100644 --- a/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 1f7d2dd32..11a64aac1 100644 --- a/tests/nodes/argmin_fp8x23_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 f7205c752..e9d17d59b 100644 --- a/tests/nodes/argmin_fp8x23_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_fp8x23_3D_last_index.cairo b/tests/nodes/argmin_fp8x23_3D_last_index.cairo index f823bb056..cdef429d0 100644 --- a/tests/nodes/argmin_fp8x23_3D_last_index.cairo +++ b/tests/nodes/argmin_fp8x23_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 83cb9225c..b11c95111 100644 --- a/tests/nodes/argmin_fp8x23_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 0babca322..9c12d0182 100644 --- a/tests/nodes/argmin_fp8x23_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_1D_default.cairo b/tests/nodes/argmin_i32_1D_default.cairo index 9faf9b024..2be4827cc 100644 --- a/tests/nodes/argmin_i32_1D_default.cairo +++ b/tests/nodes/argmin_i32_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_i32_1D_default/input_0.cairo b/tests/nodes/argmin_i32_1D_default/input_0.cairo index 277f60bdd..1367b7729 100644 --- a/tests/nodes/argmin_i32_1D_default/input_0.cairo +++ b/tests/nodes/argmin_i32_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/argmin_i32_1D_default/output_0.cairo b/tests/nodes/argmin_i32_1D_default/output_0.cairo index f712be164..4a377d050 100644 --- a/tests/nodes/argmin_i32_1D_default/output_0.cairo +++ b/tests/nodes/argmin_i32_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_1D_keepdims_false.cairo b/tests/nodes/argmin_i32_1D_keepdims_false.cairo index 262a6ae69..21a24a06e 100644 --- a/tests/nodes/argmin_i32_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_i32_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 15556951b..d04c67ef2 100644 --- a/tests/nodes/argmin_i32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i32_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 f712be164..4a377d050 100644 --- a/tests/nodes/argmin_i32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i32_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_1D_last_index.cairo b/tests/nodes/argmin_i32_1D_last_index.cairo index 0459f837c..599e7901d 100644 --- a/tests/nodes/argmin_i32_1D_last_index.cairo +++ b/tests/nodes/argmin_i32_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 17c9f8145..e3592a8a8 100644 --- a/tests/nodes/argmin_i32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i32_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmin_i32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i32_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_2D_default.cairo b/tests/nodes/argmin_i32_2D_default.cairo index 5f9875ec2..cfcb2faad 100644 --- a/tests/nodes/argmin_i32_2D_default.cairo +++ b/tests/nodes/argmin_i32_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_i32_2D_default/input_0.cairo b/tests/nodes/argmin_i32_2D_default/input_0.cairo index 906c3d041..26dfdcbad 100644 --- a/tests/nodes/argmin_i32_2D_default/input_0.cairo +++ b/tests/nodes/argmin_i32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/argmin_i32_2D_default/output_0.cairo b/tests/nodes/argmin_i32_2D_default/output_0.cairo index 660c39bca..96c5ee26d 100644 --- a/tests/nodes/argmin_i32_2D_default/output_0.cairo +++ b/tests/nodes/argmin_i32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_2D_keepdims_false.cairo b/tests/nodes/argmin_i32_2D_keepdims_false.cairo index 498bcc361..61b5ccf1a 100644 --- a/tests/nodes/argmin_i32_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_i32_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 8938002d8..0c493bce0 100644 --- a/tests/nodes/argmin_i32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i32_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 b7133e0ed..60d86b990 100644 --- a/tests/nodes/argmin_i32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i32_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_2D_last_index.cairo b/tests/nodes/argmin_i32_2D_last_index.cairo index f2096c4f7..a2ceb82f7 100644 --- a/tests/nodes/argmin_i32_2D_last_index.cairo +++ b/tests/nodes/argmin_i32_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 c9fa39c34..a0141371e 100644 --- a/tests/nodes/argmin_i32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i32_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 9b8238f07..03e4272da 100644 --- a/tests/nodes/argmin_i32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i32_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_3D_default.cairo b/tests/nodes/argmin_i32_3D_default.cairo index 3b8c17f52..39b703faa 100644 --- a/tests/nodes/argmin_i32_3D_default.cairo +++ b/tests/nodes/argmin_i32_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_i32_3D_default/input_0.cairo b/tests/nodes/argmin_i32_3D_default/input_0.cairo index 0a4d5882a..ad541c4c4 100644 --- a/tests/nodes/argmin_i32_3D_default/input_0.cairo +++ b/tests/nodes/argmin_i32_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/argmin_i32_3D_default/output_0.cairo b/tests/nodes/argmin_i32_3D_default/output_0.cairo index 0babca322..9c12d0182 100644 --- a/tests/nodes/argmin_i32_3D_default/output_0.cairo +++ b/tests/nodes/argmin_i32_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_3D_keepdims_false.cairo b/tests/nodes/argmin_i32_3D_keepdims_false.cairo index 91dca0ba4..6f02e79aa 100644 --- a/tests/nodes/argmin_i32_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_i32_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 acd571efe..329b175ff 100644 --- a/tests/nodes/argmin_i32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i32_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 d1ec9ce5f..f857a56ac 100644 --- a/tests/nodes/argmin_i32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i32_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i32_3D_last_index.cairo b/tests/nodes/argmin_i32_3D_last_index.cairo index c86ff77e2..65f683781 100644 --- a/tests/nodes/argmin_i32_3D_last_index.cairo +++ b/tests/nodes/argmin_i32_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 5f3b7389f..bdfca81e4 100644 --- a/tests/nodes/argmin_i32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i32_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 44195a532..cb26295db 100644 --- a/tests/nodes/argmin_i32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i32_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_1D_default.cairo b/tests/nodes/argmin_i8_1D_default.cairo index 6cd9bf226..9cb081c83 100644 --- a/tests/nodes/argmin_i8_1D_default.cairo +++ b/tests/nodes/argmin_i8_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_i8_1D_default/input_0.cairo b/tests/nodes/argmin_i8_1D_default/input_0.cairo index f93e79a73..efcdcd32e 100644 --- a/tests/nodes/argmin_i8_1D_default/input_0.cairo +++ b/tests/nodes/argmin_i8_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/argmin_i8_1D_default/output_0.cairo b/tests/nodes/argmin_i8_1D_default/output_0.cairo index 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmin_i8_1D_default/output_0.cairo +++ b/tests/nodes/argmin_i8_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_1D_keepdims_false.cairo b/tests/nodes/argmin_i8_1D_keepdims_false.cairo index 3955e6879..8d73ea2fa 100644 --- a/tests/nodes/argmin_i8_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_i8_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 0263aa8eb..1385f1436 100644 --- a/tests/nodes/argmin_i8_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i8_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmin_i8_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i8_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_1D_last_index.cairo b/tests/nodes/argmin_i8_1D_last_index.cairo index 16c37bd82..876fa5387 100644 --- a/tests/nodes/argmin_i8_1D_last_index.cairo +++ b/tests/nodes/argmin_i8_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 511c6c9c5..54bc1e68c 100644 --- a/tests/nodes/argmin_i8_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i8_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmin_i8_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i8_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_2D_default.cairo b/tests/nodes/argmin_i8_2D_default.cairo index 0b41a0340..62366753e 100644 --- a/tests/nodes/argmin_i8_2D_default.cairo +++ b/tests/nodes/argmin_i8_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_i8_2D_default/input_0.cairo b/tests/nodes/argmin_i8_2D_default/input_0.cairo index 3601dfa3e..21c9f554f 100644 --- a/tests/nodes/argmin_i8_2D_default/input_0.cairo +++ b/tests/nodes/argmin_i8_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/argmin_i8_2D_default/output_0.cairo b/tests/nodes/argmin_i8_2D_default/output_0.cairo index 1915a5148..f7286dbbb 100644 --- a/tests/nodes/argmin_i8_2D_default/output_0.cairo +++ b/tests/nodes/argmin_i8_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_2D_keepdims_false.cairo b/tests/nodes/argmin_i8_2D_keepdims_false.cairo index 18ff7fb28..f1ebbc8c1 100644 --- a/tests/nodes/argmin_i8_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_i8_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 2527200ea..8bb14bb29 100644 --- a/tests/nodes/argmin_i8_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i8_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 a6dae18bd..6149789b1 100644 --- a/tests/nodes/argmin_i8_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i8_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_2D_last_index.cairo b/tests/nodes/argmin_i8_2D_last_index.cairo index 919af798b..7d3a1468c 100644 --- a/tests/nodes/argmin_i8_2D_last_index.cairo +++ b/tests/nodes/argmin_i8_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 215988ea4..724fa7b07 100644 --- a/tests/nodes/argmin_i8_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i8_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 9b8238f07..03e4272da 100644 --- a/tests/nodes/argmin_i8_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i8_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_3D_default.cairo b/tests/nodes/argmin_i8_3D_default.cairo index b83fb4db0..dad985179 100644 --- a/tests/nodes/argmin_i8_3D_default.cairo +++ b/tests/nodes/argmin_i8_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_i8_3D_default/input_0.cairo b/tests/nodes/argmin_i8_3D_default/input_0.cairo index 89bd2ed43..36dfc1792 100644 --- a/tests/nodes/argmin_i8_3D_default/input_0.cairo +++ b/tests/nodes/argmin_i8_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/argmin_i8_3D_default/output_0.cairo b/tests/nodes/argmin_i8_3D_default/output_0.cairo index 254044ca5..06e4b054c 100644 --- a/tests/nodes/argmin_i8_3D_default/output_0.cairo +++ b/tests/nodes/argmin_i8_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_3D_keepdims_false.cairo b/tests/nodes/argmin_i8_3D_keepdims_false.cairo index 3901caf7b..f3141dc74 100644 --- a/tests/nodes/argmin_i8_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_i8_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 4cbfb4b5f..e31df40f8 100644 --- a/tests/nodes/argmin_i8_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i8_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 d1ec9ce5f..f857a56ac 100644 --- a/tests/nodes/argmin_i8_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i8_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_i8_3D_last_index.cairo b/tests/nodes/argmin_i8_3D_last_index.cairo index 50b3cbf9b..e763fc201 100644 --- a/tests/nodes/argmin_i8_3D_last_index.cairo +++ b/tests/nodes/argmin_i8_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 8c25243c9..f8fa1bcdd 100644 --- a/tests/nodes/argmin_i8_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i8_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 e82f1902c..b4564072a 100644 --- a/tests/nodes/argmin_i8_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i8_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_1D_default.cairo b/tests/nodes/argmin_u32_1D_default.cairo index 7796e064b..4e2ade622 100644 --- a/tests/nodes/argmin_u32_1D_default.cairo +++ b/tests/nodes/argmin_u32_1D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_u32_1D_default/input_0.cairo b/tests/nodes/argmin_u32_1D_default/input_0.cairo index 25d6b8238..53069cc3a 100644 --- a/tests/nodes/argmin_u32_1D_default/input_0.cairo +++ b/tests/nodes/argmin_u32_1D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_1D_default/output_0.cairo b/tests/nodes/argmin_u32_1D_default/output_0.cairo index 2374279b0..b37eb7383 100644 --- a/tests/nodes/argmin_u32_1D_default/output_0.cairo +++ b/tests/nodes/argmin_u32_1D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_1D_keepdims_false.cairo b/tests/nodes/argmin_u32_1D_keepdims_false.cairo index 2583caafd..e777c4230 100644 --- a/tests/nodes/argmin_u32_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_u32_1D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 c801ec0ca..5faea560e 100644 --- a/tests/nodes/argmin_u32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_u32_1D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmin_u32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_u32_1D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_1D_last_index.cairo b/tests/nodes/argmin_u32_1D_last_index.cairo index 049b57f9f..c0ba3afb7 100644 --- a/tests/nodes/argmin_u32_1D_last_index.cairo +++ b/tests/nodes/argmin_u32_1D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 d25d1bd0e..070d08c34 100644 --- a/tests/nodes/argmin_u32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_u32_1D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/argmin_u32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_u32_1D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_2D_default.cairo b/tests/nodes/argmin_u32_2D_default.cairo index 253856e0f..ec0429612 100644 --- a/tests/nodes/argmin_u32_2D_default.cairo +++ b/tests/nodes/argmin_u32_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_u32_2D_default/input_0.cairo b/tests/nodes/argmin_u32_2D_default/input_0.cairo index 2a2362569..ef8e66b3b 100644 --- a/tests/nodes/argmin_u32_2D_default/input_0.cairo +++ b/tests/nodes/argmin_u32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_2D_default/output_0.cairo b/tests/nodes/argmin_u32_2D_default/output_0.cairo index c584e16bb..5603a4cbe 100644 --- a/tests/nodes/argmin_u32_2D_default/output_0.cairo +++ b/tests/nodes/argmin_u32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_2D_keepdims_false.cairo b/tests/nodes/argmin_u32_2D_keepdims_false.cairo index 16cc76f56..78bdd9589 100644 --- a/tests/nodes/argmin_u32_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_u32_2D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 5516f06e0..172949227 100644 --- a/tests/nodes/argmin_u32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_u32_2D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 b7133e0ed..60d86b990 100644 --- a/tests/nodes/argmin_u32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_u32_2D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_2D_last_index.cairo b/tests/nodes/argmin_u32_2D_last_index.cairo index ccd1be6fc..08c004431 100644 --- a/tests/nodes/argmin_u32_2D_last_index.cairo +++ b/tests/nodes/argmin_u32_2D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 0e2cde275..a7189438f 100644 --- a/tests/nodes/argmin_u32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_u32_2D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 c584e16bb..5603a4cbe 100644 --- a/tests/nodes/argmin_u32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_u32_2D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_3D_default.cairo b/tests/nodes/argmin_u32_3D_default.cairo index 80a18398a..31e527c1d 100644 --- a/tests/nodes/argmin_u32_3D_default.cairo +++ b/tests/nodes/argmin_u32_3D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/argmin_u32_3D_default/input_0.cairo b/tests/nodes/argmin_u32_3D_default/input_0.cairo index 15a97f24c..319189cdf 100644 --- a/tests/nodes/argmin_u32_3D_default/input_0.cairo +++ b/tests/nodes/argmin_u32_3D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_3D_default/output_0.cairo b/tests/nodes/argmin_u32_3D_default/output_0.cairo index 254044ca5..06e4b054c 100644 --- a/tests/nodes/argmin_u32_3D_default/output_0.cairo +++ b/tests/nodes/argmin_u32_3D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_3D_keepdims_false.cairo b/tests/nodes/argmin_u32_3D_keepdims_false.cairo index 6eb778984..7b55d82c7 100644 --- a/tests/nodes/argmin_u32_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_u32_3D_keepdims_false.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 036743e77..6d1a9b1d2 100644 --- a/tests/nodes/argmin_u32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_u32_3D_keepdims_false/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 74b0be527..6bcb5ce4a 100644 --- a/tests/nodes/argmin_u32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_u32_3D_keepdims_false/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/argmin_u32_3D_last_index.cairo b/tests/nodes/argmin_u32_3D_last_index.cairo index 605162da3..bcbb4705c 100644 --- a/tests/nodes/argmin_u32_3D_last_index.cairo +++ b/tests/nodes/argmin_u32_3D_last_index.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 84410ec0d..509df9e2b 100644 --- a/tests/nodes/argmin_u32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_u32_3D_last_index/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 254044ca5..06e4b054c 100644 --- a/tests/nodes/argmin_u32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_u32_3D_last_index/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/array_feature_extractor_1D_fp16x16.cairo b/tests/nodes/array_feature_extractor_1D_fp16x16.cairo index 0dd7c5316..db302b594 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 f9acf6ef4..5176ca714 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16/input_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16/input_1.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 85c53d04f..8154904fb 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16/output_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/array_feature_extractor_1D_fp8x23.cairo b/tests/nodes/array_feature_extractor_1D_fp8x23.cairo index 324db7177..944125fe1 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 bd7c3dccd..2688cb03f 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23/input_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23/input_1.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 da4e8d825..2ae2c1847 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23/output_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/array_feature_extractor_1D_i32.cairo b/tests/nodes/array_feature_extractor_1D_i32.cairo index 15b7d39c3..0b6c34a81 100644 --- a/tests/nodes/array_feature_extractor_1D_i32.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 780a73780..3b3b00e9e 100644 --- a/tests/nodes/array_feature_extractor_1D_i32/input_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_1D_i32/input_1.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 e503408e9..ba3887c33 100644 --- a/tests/nodes/array_feature_extractor_1D_i32/output_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/array_feature_extractor_2D_fp16x16.cairo b/tests/nodes/array_feature_extractor_2D_fp16x16.cairo index 94cfa0009..711b83dc9 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 f9dd3a2ed..fa328460c 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16/input_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16/input_1.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 239df58be..10de55cd5 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16/output_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/array_feature_extractor_2D_fp8x23.cairo b/tests/nodes/array_feature_extractor_2D_fp8x23.cairo index 923418064..543a7df6d 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 a00ffaaa6..684a638eb 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23/input_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23/input_1.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 c782ae873..d6d52b4ac 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23/output_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/array_feature_extractor_2D_i32.cairo b/tests/nodes/array_feature_extractor_2D_i32.cairo index ccbeb10dc..3c4cc9813 100644 --- a/tests/nodes/array_feature_extractor_2D_i32.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 8ebfdd9d7..de9951a26 100644 --- a/tests/nodes/array_feature_extractor_2D_i32/input_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_2D_i32/input_1.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 944dd7e3b..1f5bd7562 100644 --- a/tests/nodes/array_feature_extractor_2D_i32/output_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/array_feature_extractor_3D_fp16x16.cairo b/tests/nodes/array_feature_extractor_3D_fp16x16.cairo index eb9efd824..502604f23 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 5424be3ef..8e822d3d5 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16/input_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16/input_1.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 30519ac61..88194d9d6 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16/output_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/array_feature_extractor_3D_fp8x23.cairo b/tests/nodes/array_feature_extractor_3D_fp8x23.cairo index 07dbf6383..6e93e5a5b 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 ad209c9a9..63f032ab2 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23/input_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23/input_1.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 59aac2329..50af35bdb 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23/output_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/array_feature_extractor_3D_i32.cairo b/tests/nodes/array_feature_extractor_3D_i32.cairo index 092b5ff9d..7b1cacc3c 100644 --- a/tests/nodes/array_feature_extractor_3D_i32.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 6c37cf5af..818dd15cc 100644 --- a/tests/nodes/array_feature_extractor_3D_i32/input_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 1f8166137..7b523e95b 100644 --- a/tests/nodes/array_feature_extractor_3D_i32/input_1.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 6e25fdfd9..c7f1edd98 100644 --- a/tests/nodes/array_feature_extractor_3D_i32/output_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/asin_fp16x16.cairo b/tests/nodes/asin_fp16x16.cairo index 99aef1c69..b8b33af57 100644 --- a/tests/nodes/asin_fp16x16.cairo +++ b/tests/nodes/asin_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/asin_fp16x16/input_0.cairo b/tests/nodes/asin_fp16x16/input_0.cairo index 9039b5cb8..7330c083f 100644 --- a/tests/nodes/asin_fp16x16/input_0.cairo +++ b/tests/nodes/asin_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/asin_fp16x16/output_0.cairo b/tests/nodes/asin_fp16x16/output_0.cairo index 08ce4fe7f..f8af13f0d 100644 --- a/tests/nodes/asin_fp16x16/output_0.cairo +++ b/tests/nodes/asin_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/asin_fp8x23.cairo b/tests/nodes/asin_fp8x23.cairo index 803c1d73d..ce7cb2dc0 100644 --- a/tests/nodes/asin_fp8x23.cairo +++ b/tests/nodes/asin_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/asin_fp8x23/input_0.cairo b/tests/nodes/asin_fp8x23/input_0.cairo index b0e0c1999..2512a232c 100644 --- a/tests/nodes/asin_fp8x23/input_0.cairo +++ b/tests/nodes/asin_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/asin_fp8x23/output_0.cairo b/tests/nodes/asin_fp8x23/output_0.cairo index a29643c81..a1a346f74 100644 --- a/tests/nodes/asin_fp8x23/output_0.cairo +++ b/tests/nodes/asin_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/asinh_fp16x16.cairo b/tests/nodes/asinh_fp16x16.cairo index 1b6ed223d..63eb091f0 100644 --- a/tests/nodes/asinh_fp16x16.cairo +++ b/tests/nodes/asinh_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/asinh_fp16x16/input_0.cairo b/tests/nodes/asinh_fp16x16/input_0.cairo index 4c4ad1ac4..7bea078a6 100644 --- a/tests/nodes/asinh_fp16x16/input_0.cairo +++ b/tests/nodes/asinh_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/asinh_fp16x16/output_0.cairo b/tests/nodes/asinh_fp16x16/output_0.cairo index 9ac449cca..a2bae49b9 100644 --- a/tests/nodes/asinh_fp16x16/output_0.cairo +++ b/tests/nodes/asinh_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/asinh_fp8x23.cairo b/tests/nodes/asinh_fp8x23.cairo index 58667ad54..108704e66 100644 --- a/tests/nodes/asinh_fp8x23.cairo +++ b/tests/nodes/asinh_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/asinh_fp8x23/input_0.cairo b/tests/nodes/asinh_fp8x23/input_0.cairo index e906cb108..825c58984 100644 --- a/tests/nodes/asinh_fp8x23/input_0.cairo +++ b/tests/nodes/asinh_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/asinh_fp8x23/output_0.cairo b/tests/nodes/asinh_fp8x23/output_0.cairo index 2082b29ef..1cbc61caf 100644 --- a/tests/nodes/asinh_fp8x23/output_0.cairo +++ b/tests/nodes/asinh_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/atan_fp16x16.cairo b/tests/nodes/atan_fp16x16.cairo index b33dafbe3..4de5933ba 100644 --- a/tests/nodes/atan_fp16x16.cairo +++ b/tests/nodes/atan_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/atan_fp16x16/input_0.cairo b/tests/nodes/atan_fp16x16/input_0.cairo index 17eff17c1..751a51699 100644 --- a/tests/nodes/atan_fp16x16/input_0.cairo +++ b/tests/nodes/atan_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/atan_fp16x16/output_0.cairo b/tests/nodes/atan_fp16x16/output_0.cairo index 584f33d50..78c0c49b2 100644 --- a/tests/nodes/atan_fp16x16/output_0.cairo +++ b/tests/nodes/atan_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/atan_fp8x23.cairo b/tests/nodes/atan_fp8x23.cairo index 318f969be..9491593b4 100644 --- a/tests/nodes/atan_fp8x23.cairo +++ b/tests/nodes/atan_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/atan_fp8x23/input_0.cairo b/tests/nodes/atan_fp8x23/input_0.cairo index 1e2d573cf..d090c59bd 100644 --- a/tests/nodes/atan_fp8x23/input_0.cairo +++ b/tests/nodes/atan_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/atan_fp8x23/output_0.cairo b/tests/nodes/atan_fp8x23/output_0.cairo index 05d0bbf36..07260fa8b 100644 --- a/tests/nodes/atan_fp8x23/output_0.cairo +++ b/tests/nodes/atan_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/binarizer_fp16x16.cairo b/tests/nodes/binarizer_fp16x16.cairo index d23d27c3e..ce34248b9 100644 --- a/tests/nodes/binarizer_fp16x16.cairo +++ b/tests/nodes/binarizer_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::FixedTrait; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; diff --git a/tests/nodes/binarizer_fp16x16/input_0.cairo b/tests/nodes/binarizer_fp16x16/input_0.cairo index 9fac068e6..e273381d6 100644 --- a/tests/nodes/binarizer_fp16x16/input_0.cairo +++ b/tests/nodes/binarizer_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/binarizer_fp16x16/output_0.cairo b/tests/nodes/binarizer_fp16x16/output_0.cairo index d3f54efb4..565d7e0e8 100644 --- a/tests/nodes/binarizer_fp16x16/output_0.cairo +++ b/tests/nodes/binarizer_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/binarizer_fp8x23.cairo b/tests/nodes/binarizer_fp8x23.cairo index c5d1190dd..30bccebcb 100644 --- a/tests/nodes/binarizer_fp8x23.cairo +++ b/tests/nodes/binarizer_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::FixedTrait; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; diff --git a/tests/nodes/binarizer_fp8x23/input_0.cairo b/tests/nodes/binarizer_fp8x23/input_0.cairo index 680882f20..90cac5998 100644 --- a/tests/nodes/binarizer_fp8x23/input_0.cairo +++ b/tests/nodes/binarizer_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/binarizer_fp8x23/output_0.cairo b/tests/nodes/binarizer_fp8x23/output_0.cairo index a6c5e5513..36555b751 100644 --- a/tests/nodes/binarizer_fp8x23/output_0.cairo +++ b/tests/nodes/binarizer_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/ceil_fp16x16.cairo b/tests/nodes/ceil_fp16x16.cairo index 6f1aec020..cd5953a20 100644 --- a/tests/nodes/ceil_fp16x16.cairo +++ b/tests/nodes/ceil_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/ceil_fp16x16/input_0.cairo b/tests/nodes/ceil_fp16x16/input_0.cairo index f906c686d..41bc87e4d 100644 --- a/tests/nodes/ceil_fp16x16/input_0.cairo +++ b/tests/nodes/ceil_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/ceil_fp16x16/output_0.cairo b/tests/nodes/ceil_fp16x16/output_0.cairo index 801be77ce..55ba8fba5 100644 --- a/tests/nodes/ceil_fp16x16/output_0.cairo +++ b/tests/nodes/ceil_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/ceil_fp8x23.cairo b/tests/nodes/ceil_fp8x23.cairo index bd545ca09..937c4ee61 100644 --- a/tests/nodes/ceil_fp8x23.cairo +++ b/tests/nodes/ceil_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/ceil_fp8x23/input_0.cairo b/tests/nodes/ceil_fp8x23/input_0.cairo index 735356732..61423c21d 100644 --- a/tests/nodes/ceil_fp8x23/input_0.cairo +++ b/tests/nodes/ceil_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/ceil_fp8x23/output_0.cairo b/tests/nodes/ceil_fp8x23/output_0.cairo index 7fedfc037..ee64b714f 100644 --- a/tests/nodes/ceil_fp8x23/output_0.cairo +++ b/tests/nodes/ceil_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp16x16_2d.cairo b/tests/nodes/clip_fp16x16_2d.cairo index f4d0399d3..341c008d3 100644 --- a/tests/nodes/clip_fp16x16_2d.cairo +++ b/tests/nodes/clip_fp16x16_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/clip_fp16x16_2d/input_0.cairo b/tests/nodes/clip_fp16x16_2d/input_0.cairo index ee138b7a0..b5d41aff4 100644 --- a/tests/nodes/clip_fp16x16_2d/input_0.cairo +++ b/tests/nodes/clip_fp16x16_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp16x16_2d/output_0.cairo b/tests/nodes/clip_fp16x16_2d/output_0.cairo index 4a38cf224..14266839f 100644 --- a/tests/nodes/clip_fp16x16_2d/output_0.cairo +++ b/tests/nodes/clip_fp16x16_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp16x16_3d.cairo b/tests/nodes/clip_fp16x16_3d.cairo index f295971fa..c9150bfdf 100644 --- a/tests/nodes/clip_fp16x16_3d.cairo +++ b/tests/nodes/clip_fp16x16_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/clip_fp16x16_3d/input_0.cairo b/tests/nodes/clip_fp16x16_3d/input_0.cairo index afa804f1c..fbdff764a 100644 --- a/tests/nodes/clip_fp16x16_3d/input_0.cairo +++ b/tests/nodes/clip_fp16x16_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp16x16_3d/output_0.cairo b/tests/nodes/clip_fp16x16_3d/output_0.cairo index 88a3cb744..1ef170695 100644 --- a/tests/nodes/clip_fp16x16_3d/output_0.cairo +++ b/tests/nodes/clip_fp16x16_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp8x23_2d.cairo b/tests/nodes/clip_fp8x23_2d.cairo index d7f998915..4999f1c4a 100644 --- a/tests/nodes/clip_fp8x23_2d.cairo +++ b/tests/nodes/clip_fp8x23_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/clip_fp8x23_2d/input_0.cairo b/tests/nodes/clip_fp8x23_2d/input_0.cairo index ba2582902..6b1261a19 100644 --- a/tests/nodes/clip_fp8x23_2d/input_0.cairo +++ b/tests/nodes/clip_fp8x23_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp8x23_2d/output_0.cairo b/tests/nodes/clip_fp8x23_2d/output_0.cairo index 4774dc946..bf242ae2a 100644 --- a/tests/nodes/clip_fp8x23_2d/output_0.cairo +++ b/tests/nodes/clip_fp8x23_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp8x23_3d.cairo b/tests/nodes/clip_fp8x23_3d.cairo index 8e4bed420..db5d7d060 100644 --- a/tests/nodes/clip_fp8x23_3d.cairo +++ b/tests/nodes/clip_fp8x23_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/clip_fp8x23_3d/input_0.cairo b/tests/nodes/clip_fp8x23_3d/input_0.cairo index ae4891b0f..f2959d1db 100644 --- a/tests/nodes/clip_fp8x23_3d/input_0.cairo +++ b/tests/nodes/clip_fp8x23_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_fp8x23_3d/output_0.cairo b/tests/nodes/clip_fp8x23_3d/output_0.cairo index 954228550..f31d6c2cd 100644 --- a/tests/nodes/clip_fp8x23_3d/output_0.cairo +++ b/tests/nodes/clip_fp8x23_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/clip_i32_2d.cairo b/tests/nodes/clip_i32_2d.cairo index d8d9f8fcd..b944b1b88 100644 --- a/tests/nodes/clip_i32_2d.cairo +++ b/tests/nodes/clip_i32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/clip_i32_2d/input_0.cairo b/tests/nodes/clip_i32_2d/input_0.cairo index 07143e266..16acc7261 100644 --- a/tests/nodes/clip_i32_2d/input_0.cairo +++ b/tests/nodes/clip_i32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/clip_i32_2d/output_0.cairo b/tests/nodes/clip_i32_2d/output_0.cairo index 76dc3c408..2d6840ba8 100644 --- a/tests/nodes/clip_i32_2d/output_0.cairo +++ b/tests/nodes/clip_i32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/clip_i32_3d.cairo b/tests/nodes/clip_i32_3d.cairo index 962f5b498..258c3d3a3 100644 --- a/tests/nodes/clip_i32_3d.cairo +++ b/tests/nodes/clip_i32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/clip_i32_3d/input_0.cairo b/tests/nodes/clip_i32_3d/input_0.cairo index 396e8f64c..4e6b78331 100644 --- a/tests/nodes/clip_i32_3d/input_0.cairo +++ b/tests/nodes/clip_i32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/clip_i32_3d/output_0.cairo b/tests/nodes/clip_i32_3d/output_0.cairo index cc59f64d6..01a364645 100644 --- a/tests/nodes/clip_i32_3d/output_0.cairo +++ b/tests/nodes/clip_i32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/clip_i8_2d.cairo b/tests/nodes/clip_i8_2d.cairo index bf565413a..84ac1f458 100644 --- a/tests/nodes/clip_i8_2d.cairo +++ b/tests/nodes/clip_i8_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/clip_i8_2d/input_0.cairo b/tests/nodes/clip_i8_2d/input_0.cairo index 2aaf9ffca..acd32dd3e 100644 --- a/tests/nodes/clip_i8_2d/input_0.cairo +++ b/tests/nodes/clip_i8_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/clip_i8_2d/output_0.cairo b/tests/nodes/clip_i8_2d/output_0.cairo index 8f2ef681f..82e96092f 100644 --- a/tests/nodes/clip_i8_2d/output_0.cairo +++ b/tests/nodes/clip_i8_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/clip_i8_3d.cairo b/tests/nodes/clip_i8_3d.cairo index d83da2d7d..f03d818c4 100644 --- a/tests/nodes/clip_i8_3d.cairo +++ b/tests/nodes/clip_i8_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/clip_i8_3d/input_0.cairo b/tests/nodes/clip_i8_3d/input_0.cairo index e3e5bd77a..8adbdb021 100644 --- a/tests/nodes/clip_i8_3d/input_0.cairo +++ b/tests/nodes/clip_i8_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/clip_i8_3d/output_0.cairo b/tests/nodes/clip_i8_3d/output_0.cairo index 47ca5f3b6..c5fbd41f4 100644 --- a/tests/nodes/clip_i8_3d/output_0.cairo +++ b/tests/nodes/clip_i8_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/clip_u32_2d.cairo b/tests/nodes/clip_u32_2d.cairo index 95e1ecd4f..006f6d914 100644 --- a/tests/nodes/clip_u32_2d.cairo +++ b/tests/nodes/clip_u32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/clip_u32_2d/input_0.cairo b/tests/nodes/clip_u32_2d/input_0.cairo index baa929ad2..d0527cfd3 100644 --- a/tests/nodes/clip_u32_2d/input_0.cairo +++ b/tests/nodes/clip_u32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/clip_u32_2d/output_0.cairo b/tests/nodes/clip_u32_2d/output_0.cairo index 1ce98aca3..844f79380 100644 --- a/tests/nodes/clip_u32_2d/output_0.cairo +++ b/tests/nodes/clip_u32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/clip_u32_3d.cairo b/tests/nodes/clip_u32_3d.cairo index d92a7f59a..a61838de3 100644 --- a/tests/nodes/clip_u32_3d.cairo +++ b/tests/nodes/clip_u32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/clip_u32_3d/input_0.cairo b/tests/nodes/clip_u32_3d/input_0.cairo index 9fbe0db3e..67f15cdb6 100644 --- a/tests/nodes/clip_u32_3d/input_0.cairo +++ b/tests/nodes/clip_u32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/clip_u32_3d/output_0.cairo b/tests/nodes/clip_u32_3d/output_0.cairo index cdb2866fd..f30db9767 100644 --- a/tests/nodes/clip_u32_3d/output_0.cairo +++ b/tests/nodes/clip_u32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_fp16x16_1d.cairo b/tests/nodes/concat_fp16x16_1d.cairo index 158e7a423..e066db6ed 100644 --- a/tests/nodes/concat_fp16x16_1d.cairo +++ b/tests/nodes/concat_fp16x16_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/concat_fp16x16_1d/input_0.cairo b/tests/nodes/concat_fp16x16_1d/input_0.cairo index d0f18fd7b..af090f1ab 100644 --- a/tests/nodes/concat_fp16x16_1d/input_0.cairo +++ b/tests/nodes/concat_fp16x16_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_1d/input_1.cairo b/tests/nodes/concat_fp16x16_1d/input_1.cairo index 5dcc9dd8a..044796656 100644 --- a/tests/nodes/concat_fp16x16_1d/input_1.cairo +++ b/tests/nodes/concat_fp16x16_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_1d/output_0.cairo b/tests/nodes/concat_fp16x16_1d/output_0.cairo index 6ea835cd7..f788a537c 100644 --- a/tests/nodes/concat_fp16x16_1d/output_0.cairo +++ b/tests/nodes/concat_fp16x16_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_2d.cairo b/tests/nodes/concat_fp16x16_2d.cairo index 7b2931f91..681cc7d66 100644 --- a/tests/nodes/concat_fp16x16_2d.cairo +++ b/tests/nodes/concat_fp16x16_2d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/concat_fp16x16_2d/input_0.cairo b/tests/nodes/concat_fp16x16_2d/input_0.cairo index fa5b07f39..c35b76cbe 100644 --- a/tests/nodes/concat_fp16x16_2d/input_0.cairo +++ b/tests/nodes/concat_fp16x16_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_2d/input_1.cairo b/tests/nodes/concat_fp16x16_2d/input_1.cairo index 0edd32d56..3a1f015fe 100644 --- a/tests/nodes/concat_fp16x16_2d/input_1.cairo +++ b/tests/nodes/concat_fp16x16_2d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_2d/output_0.cairo b/tests/nodes/concat_fp16x16_2d/output_0.cairo index 58a8f0d6f..8ddb8c05b 100644 --- a/tests/nodes/concat_fp16x16_2d/output_0.cairo +++ b/tests/nodes/concat_fp16x16_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_3d_axis_1.cairo b/tests/nodes/concat_fp16x16_3d_axis_1.cairo index 7648766b7..a9825fd59 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 a9e149517..9b1aade12 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 0f4ac5283..3fe3a2f81 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 3430b77f6..bcc0768e4 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_3d_axis_2.cairo b/tests/nodes/concat_fp16x16_3d_axis_2.cairo index a5129d195..f04a78bb4 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 a9e149517..9b1aade12 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 0f4ac5283..3fe3a2f81 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 cc4a4baff..8aa2ba0d0 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_3d_default.cairo b/tests/nodes/concat_fp16x16_3d_default.cairo index 96b8d6c45..088da120a 100644 --- a/tests/nodes/concat_fp16x16_3d_default.cairo +++ b/tests/nodes/concat_fp16x16_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/concat_fp16x16_3d_default/input_0.cairo b/tests/nodes/concat_fp16x16_3d_default/input_0.cairo index a9e149517..9b1aade12 100644 --- a/tests/nodes/concat_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_3d_default/input_1.cairo b/tests/nodes/concat_fp16x16_3d_default/input_1.cairo index 0f4ac5283..3fe3a2f81 100644 --- a/tests/nodes/concat_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp16x16_3d_default/output_0.cairo b/tests/nodes/concat_fp16x16_3d_default/output_0.cairo index 2f3d753ef..0acafd005 100644 --- a/tests/nodes/concat_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 29b38d736..28c7e10bb 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 a9e149517..9b1aade12 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 0f4ac5283..3fe3a2f81 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 d6b49dfd4..fe8525d15 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 95ac6d0cb..402cbc7c9 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 ee8a5efac..563536371 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 a9e149517..9b1aade12 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 0f4ac5283..3fe3a2f81 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 d6b49dfd4..fe8525d15 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 bd71945b4..b6dd91e5a 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_1d.cairo b/tests/nodes/concat_fp8x23_1d.cairo index 1be41655e..83060822c 100644 --- a/tests/nodes/concat_fp8x23_1d.cairo +++ b/tests/nodes/concat_fp8x23_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/concat_fp8x23_1d/input_0.cairo b/tests/nodes/concat_fp8x23_1d/input_0.cairo index 7f38436ec..c20bb8620 100644 --- a/tests/nodes/concat_fp8x23_1d/input_0.cairo +++ b/tests/nodes/concat_fp8x23_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_1d/input_1.cairo b/tests/nodes/concat_fp8x23_1d/input_1.cairo index ce233df85..0d0f46b18 100644 --- a/tests/nodes/concat_fp8x23_1d/input_1.cairo +++ b/tests/nodes/concat_fp8x23_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_1d/output_0.cairo b/tests/nodes/concat_fp8x23_1d/output_0.cairo index 0d745302d..49e0b13fa 100644 --- a/tests/nodes/concat_fp8x23_1d/output_0.cairo +++ b/tests/nodes/concat_fp8x23_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_2d.cairo b/tests/nodes/concat_fp8x23_2d.cairo index aef679706..d63e9c95e 100644 --- a/tests/nodes/concat_fp8x23_2d.cairo +++ b/tests/nodes/concat_fp8x23_2d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/concat_fp8x23_2d/input_0.cairo b/tests/nodes/concat_fp8x23_2d/input_0.cairo index b1c81ef54..74098aa94 100644 --- a/tests/nodes/concat_fp8x23_2d/input_0.cairo +++ b/tests/nodes/concat_fp8x23_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_2d/input_1.cairo b/tests/nodes/concat_fp8x23_2d/input_1.cairo index 7700ad514..b589fb147 100644 --- a/tests/nodes/concat_fp8x23_2d/input_1.cairo +++ b/tests/nodes/concat_fp8x23_2d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_2d/output_0.cairo b/tests/nodes/concat_fp8x23_2d/output_0.cairo index 0da183091..3a5071e64 100644 --- a/tests/nodes/concat_fp8x23_2d/output_0.cairo +++ b/tests/nodes/concat_fp8x23_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_3d_axis_1.cairo b/tests/nodes/concat_fp8x23_3d_axis_1.cairo index ca35e1f19..5a630b51f 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 91a3548b3..f540d616f 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 3eacffc85..bffca1dcb 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 fceb81444..86b740bbb 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_3d_axis_2.cairo b/tests/nodes/concat_fp8x23_3d_axis_2.cairo index 6be1f52b0..7c7364830 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 91a3548b3..f540d616f 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 3eacffc85..bffca1dcb 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 de6361287..9437d8f65 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_3d_default.cairo b/tests/nodes/concat_fp8x23_3d_default.cairo index b8995af52..cb5a98e18 100644 --- a/tests/nodes/concat_fp8x23_3d_default.cairo +++ b/tests/nodes/concat_fp8x23_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/concat_fp8x23_3d_default/input_0.cairo b/tests/nodes/concat_fp8x23_3d_default/input_0.cairo index 91a3548b3..f540d616f 100644 --- a/tests/nodes/concat_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_3d_default/input_1.cairo b/tests/nodes/concat_fp8x23_3d_default/input_1.cairo index 3eacffc85..bffca1dcb 100644 --- a/tests/nodes/concat_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_fp8x23_3d_default/output_0.cairo b/tests/nodes/concat_fp8x23_3d_default/output_0.cairo index d717369ba..4f43c9813 100644 --- a/tests/nodes/concat_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 a74f8bdad..59860a1d2 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 91a3548b3..f540d616f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 3eacffc85..bffca1dcb 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 394d2a642..85dcc8e10 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 667968f35..18ed9a224 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 ee61feeb4..e7fee675e 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 91a3548b3..f540d616f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 3eacffc85..bffca1dcb 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 394d2a642..85dcc8e10 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 7b58eedf1..559de5e98 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 073f4e1ad..c1b0bd466 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_default.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 b1738ccfb..0d49026f6 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 261590303..786584ce8 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 7f96b8a2b..01433366d 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_one.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 3c307d0f5..9b139a4fd 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 a750d97ad..0f2c2a772 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 faa5c7c32..95dcbab39 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 4c313e272..afceeb375 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 c4cfbd234..da0475401 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 780bfff55..3a7a12230 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_default.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 ffb2a84e6..bfafea724 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 168cc8ac2..23731f983 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 281abbd99..237026a61 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_one.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 d4efa62bd..ac5f0d0d7 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 fb7f7be12..1551cb700 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 bce4effd6..e34c89da5 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 09afee204..6ca8c3dbd 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 778edfeea..1c9baca55 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 aab6b6728..1829e386d 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_default.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 10f61f58b..5a81c06bb 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 84f58e4cc..a25812198 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 68de76897..e18d2007a 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_one.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 cf85bb16a..c34f3f093 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 9850fdd78..d3995155e 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 db7eb5234..2abd37613 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_zero.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 900e8291e..abb6c3114 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 a2fb2f76f..bd56b9460 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 7dadc7eb0..f9369d2ea 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_default.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +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}; 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 a5b98acc0..25dc4f765 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 e38284c2b..0b66fed69 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 5f9840525..445102ae2 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_one.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +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}; 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 e2efb065f..3bc6fa6a0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 ec6ba48b6..37a6bb120 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 8280ec8b1..7d25b7625 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_zero.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +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}; 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 b7b745cf4..80769e468 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 c0642cb46..876fe474b 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 c14c74210..53337ccce 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_default.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 44ce910ce..e8c4f22c5 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 5b4cb64ab..0409acc1d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 daf7a36d4..51b1c5a77 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_one.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 d712408ad..aa4d1d347 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 56c2eec1b..424bb4cd4 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 a1ba9dee2..45550fc53 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_zero.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; 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 ff84c60db..36d51ee79 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 0d8ab7519..2f96c7ce3 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_i32_1d.cairo b/tests/nodes/concat_i32_1d.cairo index c896e2654..f0b423d30 100644 --- a/tests/nodes/concat_i32_1d.cairo +++ b/tests/nodes/concat_i32_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/concat_i32_1d/input_0.cairo b/tests/nodes/concat_i32_1d/input_0.cairo index 0f01c1e62..c2d41d222 100644 --- a/tests/nodes/concat_i32_1d/input_0.cairo +++ b/tests/nodes/concat_i32_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_1d/input_1.cairo b/tests/nodes/concat_i32_1d/input_1.cairo index 80c745eb0..cd9ec087e 100644 --- a/tests/nodes/concat_i32_1d/input_1.cairo +++ b/tests/nodes/concat_i32_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_1d/output_0.cairo b/tests/nodes/concat_i32_1d/output_0.cairo index c2ef3a65f..beee3cf1d 100644 --- a/tests/nodes/concat_i32_1d/output_0.cairo +++ b/tests/nodes/concat_i32_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_2d.cairo b/tests/nodes/concat_i32_2d.cairo index 8d8133a5c..6c84098da 100644 --- a/tests/nodes/concat_i32_2d.cairo +++ b/tests/nodes/concat_i32_2d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/concat_i32_2d/input_0.cairo b/tests/nodes/concat_i32_2d/input_0.cairo index 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/concat_i32_2d/input_0.cairo +++ b/tests/nodes/concat_i32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_2d/input_1.cairo b/tests/nodes/concat_i32_2d/input_1.cairo index b07b801d3..d2be43c39 100644 --- a/tests/nodes/concat_i32_2d/input_1.cairo +++ b/tests/nodes/concat_i32_2d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_2d/output_0.cairo b/tests/nodes/concat_i32_2d/output_0.cairo index 816966aae..b41411d85 100644 --- a/tests/nodes/concat_i32_2d/output_0.cairo +++ b/tests/nodes/concat_i32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_3d_axis_1.cairo b/tests/nodes/concat_i32_3d_axis_1.cairo index 425527739..c0bca1b30 100644 --- a/tests/nodes/concat_i32_3d_axis_1.cairo +++ b/tests/nodes/concat_i32_3d_axis_1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 01676fd61..9b4392c28 100644 --- a/tests/nodes/concat_i32_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 76472410a..08e9a3054 100644 --- a/tests/nodes/concat_i32_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_i32_3d_axis_1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 14cdd2626..d80ef2f04 100644 --- a/tests/nodes/concat_i32_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_3d_axis_2.cairo b/tests/nodes/concat_i32_3d_axis_2.cairo index f51596e80..47f9e64d4 100644 --- a/tests/nodes/concat_i32_3d_axis_2.cairo +++ b/tests/nodes/concat_i32_3d_axis_2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 01676fd61..9b4392c28 100644 --- a/tests/nodes/concat_i32_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 76472410a..08e9a3054 100644 --- a/tests/nodes/concat_i32_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_i32_3d_axis_2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 abd87af01..a82a20ba3 100644 --- a/tests/nodes/concat_i32_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_3d_default.cairo b/tests/nodes/concat_i32_3d_default.cairo index 1e5b75932..56badf0aa 100644 --- a/tests/nodes/concat_i32_3d_default.cairo +++ b/tests/nodes/concat_i32_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/concat_i32_3d_default/input_0.cairo b/tests/nodes/concat_i32_3d_default/input_0.cairo index 01676fd61..9b4392c28 100644 --- a/tests/nodes/concat_i32_3d_default/input_0.cairo +++ b/tests/nodes/concat_i32_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_3d_default/input_1.cairo b/tests/nodes/concat_i32_3d_default/input_1.cairo index 76472410a..08e9a3054 100644 --- a/tests/nodes/concat_i32_3d_default/input_1.cairo +++ b/tests/nodes/concat_i32_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i32_3d_default/output_0.cairo b/tests/nodes/concat_i32_3d_default/output_0.cairo index c235c0f9b..b0e830d95 100644 --- a/tests/nodes/concat_i32_3d_default/output_0.cairo +++ b/tests/nodes/concat_i32_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 94912e97e..c72e3912b 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 01676fd61..9b4392c28 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 76472410a..08e9a3054 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 4f835d3ee..c7a14d323 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 e4ef73084..5a00f1dc7 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 6097b2ee4..4bd2c2ecc 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_2.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 01676fd61..9b4392c28 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 76472410a..08e9a3054 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 4f835d3ee..c7a14d323 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 d3da21116..6b21794c0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/concat_i8_1d.cairo b/tests/nodes/concat_i8_1d.cairo index eeeabf069..0a2c13fab 100644 --- a/tests/nodes/concat_i8_1d.cairo +++ b/tests/nodes/concat_i8_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/concat_i8_1d/input_0.cairo b/tests/nodes/concat_i8_1d/input_0.cairo index 380a9e34a..400c4e51f 100644 --- a/tests/nodes/concat_i8_1d/input_0.cairo +++ b/tests/nodes/concat_i8_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_1d/input_1.cairo b/tests/nodes/concat_i8_1d/input_1.cairo index 93ce1787b..51ac6e3e6 100644 --- a/tests/nodes/concat_i8_1d/input_1.cairo +++ b/tests/nodes/concat_i8_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_1d/output_0.cairo b/tests/nodes/concat_i8_1d/output_0.cairo index c6d99c4b1..9d0965a8d 100644 --- a/tests/nodes/concat_i8_1d/output_0.cairo +++ b/tests/nodes/concat_i8_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_2d.cairo b/tests/nodes/concat_i8_2d.cairo index cac8e7d94..e2dde6f16 100644 --- a/tests/nodes/concat_i8_2d.cairo +++ b/tests/nodes/concat_i8_2d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/concat_i8_2d/input_0.cairo b/tests/nodes/concat_i8_2d/input_0.cairo index 72e4a8347..308ad1b8f 100644 --- a/tests/nodes/concat_i8_2d/input_0.cairo +++ b/tests/nodes/concat_i8_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_2d/input_1.cairo b/tests/nodes/concat_i8_2d/input_1.cairo index f76b3343b..fb3cc4049 100644 --- a/tests/nodes/concat_i8_2d/input_1.cairo +++ b/tests/nodes/concat_i8_2d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_2d/output_0.cairo b/tests/nodes/concat_i8_2d/output_0.cairo index f2cd1bb25..783ff5cbe 100644 --- a/tests/nodes/concat_i8_2d/output_0.cairo +++ b/tests/nodes/concat_i8_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_3d_axis_1.cairo b/tests/nodes/concat_i8_3d_axis_1.cairo index 2594fb6ac..46fd595eb 100644 --- a/tests/nodes/concat_i8_3d_axis_1.cairo +++ b/tests/nodes/concat_i8_3d_axis_1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 870eda782..51f8105c1 100644 --- a/tests/nodes/concat_i8_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 9c04a2994..65735566e 100644 --- a/tests/nodes/concat_i8_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_i8_3d_axis_1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 6a02acc77..92cf78441 100644 --- a/tests/nodes/concat_i8_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_3d_axis_2.cairo b/tests/nodes/concat_i8_3d_axis_2.cairo index 72d9dbf92..ba6110fbd 100644 --- a/tests/nodes/concat_i8_3d_axis_2.cairo +++ b/tests/nodes/concat_i8_3d_axis_2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 870eda782..51f8105c1 100644 --- a/tests/nodes/concat_i8_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 9c04a2994..65735566e 100644 --- a/tests/nodes/concat_i8_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_i8_3d_axis_2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 6ac56ef5a..51f75e5e4 100644 --- a/tests/nodes/concat_i8_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_3d_default.cairo b/tests/nodes/concat_i8_3d_default.cairo index 11dd51907..711d6c47e 100644 --- a/tests/nodes/concat_i8_3d_default.cairo +++ b/tests/nodes/concat_i8_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/concat_i8_3d_default/input_0.cairo b/tests/nodes/concat_i8_3d_default/input_0.cairo index 870eda782..51f8105c1 100644 --- a/tests/nodes/concat_i8_3d_default/input_0.cairo +++ b/tests/nodes/concat_i8_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_3d_default/input_1.cairo b/tests/nodes/concat_i8_3d_default/input_1.cairo index 9c04a2994..65735566e 100644 --- a/tests/nodes/concat_i8_3d_default/input_1.cairo +++ b/tests/nodes/concat_i8_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_i8_3d_default/output_0.cairo b/tests/nodes/concat_i8_3d_default/output_0.cairo index 50307cd8c..118cea15c 100644 --- a/tests/nodes/concat_i8_3d_default/output_0.cairo +++ b/tests/nodes/concat_i8_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 8ff990c48..0b6534f6b 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 870eda782..51f8105c1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 9c04a2994..65735566e 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 2f54a7a4a..da2b2f03f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 ec8e90e15..5e2579338 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 7d55ce6d5..862e3c438 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_2.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 870eda782..51f8105c1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 9c04a2994..65735566e 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 2f54a7a4a..da2b2f03f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 08cb7f74e..fb7f72003 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/concat_u32_1d.cairo b/tests/nodes/concat_u32_1d.cairo index c67878803..abe3b34f6 100644 --- a/tests/nodes/concat_u32_1d.cairo +++ b/tests/nodes/concat_u32_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/concat_u32_1d/input_0.cairo b/tests/nodes/concat_u32_1d/input_0.cairo index 60317db10..0c4cb9786 100644 --- a/tests/nodes/concat_u32_1d/input_0.cairo +++ b/tests/nodes/concat_u32_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_1d/input_1.cairo b/tests/nodes/concat_u32_1d/input_1.cairo index 380eed86d..1f30cc967 100644 --- a/tests/nodes/concat_u32_1d/input_1.cairo +++ b/tests/nodes/concat_u32_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_1d/output_0.cairo b/tests/nodes/concat_u32_1d/output_0.cairo index 6021a205f..3006ee5da 100644 --- a/tests/nodes/concat_u32_1d/output_0.cairo +++ b/tests/nodes/concat_u32_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_2d.cairo b/tests/nodes/concat_u32_2d.cairo index 0af222384..2cc1efee8 100644 --- a/tests/nodes/concat_u32_2d.cairo +++ b/tests/nodes/concat_u32_2d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/concat_u32_2d/input_0.cairo b/tests/nodes/concat_u32_2d/input_0.cairo index 8e3c51970..3de7330b0 100644 --- a/tests/nodes/concat_u32_2d/input_0.cairo +++ b/tests/nodes/concat_u32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_2d/input_1.cairo b/tests/nodes/concat_u32_2d/input_1.cairo index 42b1ff561..c7c503952 100644 --- a/tests/nodes/concat_u32_2d/input_1.cairo +++ b/tests/nodes/concat_u32_2d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_2d/output_0.cairo b/tests/nodes/concat_u32_2d/output_0.cairo index 451725cf2..c61981a58 100644 --- a/tests/nodes/concat_u32_2d/output_0.cairo +++ b/tests/nodes/concat_u32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_3d_axis_1.cairo b/tests/nodes/concat_u32_3d_axis_1.cairo index f46d6f569..305cefc7f 100644 --- a/tests/nodes/concat_u32_3d_axis_1.cairo +++ b/tests/nodes/concat_u32_3d_axis_1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 de2db692f..8910b6117 100644 --- a/tests/nodes/concat_u32_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 d3cf804f3..5f65e08e1 100644 --- a/tests/nodes/concat_u32_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_u32_3d_axis_1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 71411a64a..a07aae236 100644 --- a/tests/nodes/concat_u32_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_3d_axis_2.cairo b/tests/nodes/concat_u32_3d_axis_2.cairo index c3b31cada..d3bbc692a 100644 --- a/tests/nodes/concat_u32_3d_axis_2.cairo +++ b/tests/nodes/concat_u32_3d_axis_2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 de2db692f..8910b6117 100644 --- a/tests/nodes/concat_u32_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 d3cf804f3..5f65e08e1 100644 --- a/tests/nodes/concat_u32_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_u32_3d_axis_2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 572beb23a..f68d4b9b3 100644 --- a/tests/nodes/concat_u32_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_3d_default.cairo b/tests/nodes/concat_u32_3d_default.cairo index f690f55f1..6916bfefc 100644 --- a/tests/nodes/concat_u32_3d_default.cairo +++ b/tests/nodes/concat_u32_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/concat_u32_3d_default/input_0.cairo b/tests/nodes/concat_u32_3d_default/input_0.cairo index de2db692f..8910b6117 100644 --- a/tests/nodes/concat_u32_3d_default/input_0.cairo +++ b/tests/nodes/concat_u32_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_3d_default/input_1.cairo b/tests/nodes/concat_u32_3d_default/input_1.cairo index d3cf804f3..5f65e08e1 100644 --- a/tests/nodes/concat_u32_3d_default/input_1.cairo +++ b/tests/nodes/concat_u32_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/concat_u32_3d_default/output_0.cairo b/tests/nodes/concat_u32_3d_default/output_0.cairo index e5ae2b5c3..fe612533f 100644 --- a/tests/nodes/concat_u32_3d_default/output_0.cairo +++ b/tests/nodes/concat_u32_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 4390da7c0..669c10f88 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 de2db692f..8910b6117 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 d3cf804f3..5f65e08e1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 b687223cf..7ab4d3aa5 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 30de89cf7..15765be05 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 5ae704332..1b569175c 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_2.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 de2db692f..8910b6117 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 d3cf804f3..5f65e08e1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 b687223cf..7ab4d3aa5 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 1b1f8daa1..ce2fccdf5 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cos_fp16x16.cairo b/tests/nodes/cos_fp16x16.cairo index 75927f7c3..48517ffb1 100644 --- a/tests/nodes/cos_fp16x16.cairo +++ b/tests/nodes/cos_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/cos_fp16x16/input_0.cairo b/tests/nodes/cos_fp16x16/input_0.cairo index f1c2a48a8..2c3bf86dd 100644 --- a/tests/nodes/cos_fp16x16/input_0.cairo +++ b/tests/nodes/cos_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cos_fp16x16/output_0.cairo b/tests/nodes/cos_fp16x16/output_0.cairo index 50ea0b2ac..68072a304 100644 --- a/tests/nodes/cos_fp16x16/output_0.cairo +++ b/tests/nodes/cos_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cos_fp8x23.cairo b/tests/nodes/cos_fp8x23.cairo index 1652476fc..3086612b6 100644 --- a/tests/nodes/cos_fp8x23.cairo +++ b/tests/nodes/cos_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/cos_fp8x23/input_0.cairo b/tests/nodes/cos_fp8x23/input_0.cairo index b972d07bd..334c4fcf4 100644 --- a/tests/nodes/cos_fp8x23/input_0.cairo +++ b/tests/nodes/cos_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cos_fp8x23/output_0.cairo b/tests/nodes/cos_fp8x23/output_0.cairo index 2a2610abb..1ae5c7c59 100644 --- a/tests/nodes/cos_fp8x23/output_0.cairo +++ b/tests/nodes/cos_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cosh_fp16x16.cairo b/tests/nodes/cosh_fp16x16.cairo index fd4c80091..45624901c 100644 --- a/tests/nodes/cosh_fp16x16.cairo +++ b/tests/nodes/cosh_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/cosh_fp16x16/input_0.cairo b/tests/nodes/cosh_fp16x16/input_0.cairo index b00f7f2b5..0021eb3b1 100644 --- a/tests/nodes/cosh_fp16x16/input_0.cairo +++ b/tests/nodes/cosh_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cosh_fp16x16/output_0.cairo b/tests/nodes/cosh_fp16x16/output_0.cairo index 177e3aead..5fe5837aa 100644 --- a/tests/nodes/cosh_fp16x16/output_0.cairo +++ b/tests/nodes/cosh_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cosh_fp8x23.cairo b/tests/nodes/cosh_fp8x23.cairo index 04254ac12..cd802dba1 100644 --- a/tests/nodes/cosh_fp8x23.cairo +++ b/tests/nodes/cosh_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/cosh_fp8x23/input_0.cairo b/tests/nodes/cosh_fp8x23/input_0.cairo index 72bab23b1..96ce7cd00 100644 --- a/tests/nodes/cosh_fp8x23/input_0.cairo +++ b/tests/nodes/cosh_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cosh_fp8x23/output_0.cairo b/tests/nodes/cosh_fp8x23/output_0.cairo index 4016e5595..5d4775a64 100644 --- a/tests/nodes/cosh_fp8x23/output_0.cairo +++ b/tests/nodes/cosh_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_1d_default.cairo b/tests/nodes/cumsum_fp16x16_1d_default.cairo index f75ed8b36..d78cf9baa 100644 --- a/tests/nodes/cumsum_fp16x16_1d_default.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo b/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo index 3c415248d..3c813c70b 100644 --- a/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo b/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo index bec9933cf..2ae78e058 100644 --- a/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo b/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo index 2a80f52e0..97aa860d6 100644 --- a/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo index 3c415248d..3c813c70b 100644 --- a/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo index 6aff9f1fb..2fdc2489a 100644 --- a/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse.cairo index aa1e3938a..02f03d242 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo index 3c415248d..3c813c70b 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo index 07cfc325b..969ff4bf7 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo index dd3dfde94..e9c2dba47 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 3c415248d..3c813c70b 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 d7f7766c8..cfa123e92 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo index 2b72221fe..02b5eac5e 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 e9bf59ba8..a44af1639 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_0/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 2b9b2130d..1a3e322b5 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_0/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo index 074199994..27d5b3a89 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 e9bf59ba8..a44af1639 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 903bfcc2a..fe7f1e877 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_1d_default.cairo b/tests/nodes/cumsum_fp8x23_1d_default.cairo index bd9aeca76..053a51196 100644 --- a/tests/nodes/cumsum_fp8x23_1d_default.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo b/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo index a9fd826b5..27f55ad1d 100644 --- a/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo b/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo index 6c8f33fbf..bbaf7038f 100644 --- a/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo b/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo index 68f79ccc6..663def6dc 100644 --- a/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo index a9fd826b5..27f55ad1d 100644 --- a/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo index 8192cada6..e27eb3ba5 100644 --- a/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse.cairo index 15c101b9f..b31baa7bd 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo index a9fd826b5..27f55ad1d 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo index 48095fce1..6f5232678 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo index 3b14c1c22..63aa660af 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 a9fd826b5..27f55ad1d 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 11dc80634..af55c56ff 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo index 30f3bcd85..9282bf2d2 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 deee28553..c0c5951d6 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_0/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 6a323786b..3de76ac17 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_0/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo index e89dd2445..73b842e2d 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 deee28553..c0c5951d6 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 4eac82360..0a1f27123 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/cumsum_i32_1d_default.cairo b/tests/nodes/cumsum_i32_1d_default.cairo index 413d82011..de3216b5f 100644 --- a/tests/nodes/cumsum_i32_1d_default.cairo +++ b/tests/nodes/cumsum_i32_1d_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/cumsum_i32_1d_default/input_0.cairo b/tests/nodes/cumsum_i32_1d_default/input_0.cairo index 9a11126fd..5b8c0c32a 100644 --- a/tests/nodes/cumsum_i32_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_1d_default/output_0.cairo b/tests/nodes/cumsum_i32_1d_default/output_0.cairo index 0b9d9002c..51ac4ab02 100644 --- a/tests/nodes/cumsum_i32_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_1d_exclusive.cairo b/tests/nodes/cumsum_i32_1d_exclusive.cairo index 6f020a607..2e90949a8 100644 --- a/tests/nodes/cumsum_i32_1d_exclusive.cairo +++ b/tests/nodes/cumsum_i32_1d_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo index 9a11126fd..5b8c0c32a 100644 --- a/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo index f4b055917..13b933b14 100644 --- a/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_1d_reverse.cairo b/tests/nodes/cumsum_i32_1d_reverse.cairo index 39c8848ec..3dd090f11 100644 --- a/tests/nodes/cumsum_i32_1d_reverse.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo b/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo index 9a11126fd..5b8c0c32a 100644 --- a/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo b/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo index 542f28806..3afc1c9b2 100644 --- a/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo index 7431c8594..4aa79f7d2 100644 --- a/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 9a11126fd..5b8c0c32a 100644 --- a/tests/nodes/cumsum_i32_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 298fcf9d6..5c5e5eaff 100644 --- a/tests/nodes/cumsum_i32_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_2d_axis_0.cairo b/tests/nodes/cumsum_i32_2d_axis_0.cairo index 018081ca0..9124ab1a8 100644 --- a/tests/nodes/cumsum_i32_2d_axis_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_0.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 e99c14c1a..7edd342be 100644 --- a/tests/nodes/cumsum_i32_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_0/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 f1748416a..875252fa0 100644 --- a/tests/nodes/cumsum_i32_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_0/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i32_2d_axis_1.cairo b/tests/nodes/cumsum_i32_2d_axis_1.cairo index c27acf289..8f52ab4be 100644 --- a/tests/nodes/cumsum_i32_2d_axis_1.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 e99c14c1a..7edd342be 100644 --- a/tests/nodes/cumsum_i32_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 7b2af893f..40d62e410 100644 --- a/tests/nodes/cumsum_i32_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/cumsum_i8_1d_default.cairo b/tests/nodes/cumsum_i8_1d_default.cairo index e5b4e7af7..513d76fc8 100644 --- a/tests/nodes/cumsum_i8_1d_default.cairo +++ b/tests/nodes/cumsum_i8_1d_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/cumsum_i8_1d_default/input_0.cairo b/tests/nodes/cumsum_i8_1d_default/input_0.cairo index 6bbf8c286..b69490e01 100644 --- a/tests/nodes/cumsum_i8_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_1d_default/output_0.cairo b/tests/nodes/cumsum_i8_1d_default/output_0.cairo index 65ec38d69..2025f5b3a 100644 --- a/tests/nodes/cumsum_i8_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_1d_exclusive.cairo b/tests/nodes/cumsum_i8_1d_exclusive.cairo index ca3ecf857..d58e7530e 100644 --- a/tests/nodes/cumsum_i8_1d_exclusive.cairo +++ b/tests/nodes/cumsum_i8_1d_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo index 6bbf8c286..b69490e01 100644 --- a/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo index d45332267..14e3dcdcb 100644 --- a/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_1d_reverse.cairo b/tests/nodes/cumsum_i8_1d_reverse.cairo index 66c25f4da..f30b2e121 100644 --- a/tests/nodes/cumsum_i8_1d_reverse.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo b/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo index 6bbf8c286..b69490e01 100644 --- a/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo b/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo index 59459da06..97db40de7 100644 --- a/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo index c3e439528..45a5d97f0 100644 --- a/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 6bbf8c286..b69490e01 100644 --- a/tests/nodes/cumsum_i8_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 91b2f903a..fb167dc81 100644 --- a/tests/nodes/cumsum_i8_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_2d_axis_0.cairo b/tests/nodes/cumsum_i8_2d_axis_0.cairo index fe4cd397a..dc3ad17fa 100644 --- a/tests/nodes/cumsum_i8_2d_axis_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_0.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 5bce8b3bd..444b57c92 100644 --- a/tests/nodes/cumsum_i8_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_0/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 bfa115751..dd273c2f9 100644 --- a/tests/nodes/cumsum_i8_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_0/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_i8_2d_axis_1.cairo b/tests/nodes/cumsum_i8_2d_axis_1.cairo index 5aa7c1802..f41be1874 100644 --- a/tests/nodes/cumsum_i8_2d_axis_1.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 5bce8b3bd..444b57c92 100644 --- a/tests/nodes/cumsum_i8_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 b7bfb0a0f..2792f844e 100644 --- a/tests/nodes/cumsum_i8_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/cumsum_u32_1d_default.cairo b/tests/nodes/cumsum_u32_1d_default.cairo index 4a712a7f0..494b6693a 100644 --- a/tests/nodes/cumsum_u32_1d_default.cairo +++ b/tests/nodes/cumsum_u32_1d_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/cumsum_u32_1d_default/input_0.cairo b/tests/nodes/cumsum_u32_1d_default/input_0.cairo index dc80f449c..69a426f7a 100644 --- a/tests/nodes/cumsum_u32_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_1d_default/output_0.cairo b/tests/nodes/cumsum_u32_1d_default/output_0.cairo index ed984104e..0e3e52139 100644 --- a/tests/nodes/cumsum_u32_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_1d_exclusive.cairo b/tests/nodes/cumsum_u32_1d_exclusive.cairo index 30fb0b2cf..de94a0e7c 100644 --- a/tests/nodes/cumsum_u32_1d_exclusive.cairo +++ b/tests/nodes/cumsum_u32_1d_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo index dc80f449c..69a426f7a 100644 --- a/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo index d783734ce..4c16421cf 100644 --- a/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_1d_reverse.cairo b/tests/nodes/cumsum_u32_1d_reverse.cairo index 94baab739..48036e618 100644 --- a/tests/nodes/cumsum_u32_1d_reverse.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo b/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo index dc80f449c..69a426f7a 100644 --- a/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo b/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo index f6678f3a4..795a0f31f 100644 --- a/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo index e759eba1f..afb002ee2 100644 --- a/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 dc80f449c..69a426f7a 100644 --- a/tests/nodes/cumsum_u32_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse_exclusive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 1a76399e5..c93fbf430 100644 --- a/tests/nodes/cumsum_u32_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse_exclusive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_2d_axis_0.cairo b/tests/nodes/cumsum_u32_2d_axis_0.cairo index 26e53cde1..7e9e2ec1e 100644 --- a/tests/nodes/cumsum_u32_2d_axis_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_0.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 719456b1b..acf2fce57 100644 --- a/tests/nodes/cumsum_u32_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_0/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 45edda38a..69821ff0b 100644 --- a/tests/nodes/cumsum_u32_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_0/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/cumsum_u32_2d_axis_1.cairo b/tests/nodes/cumsum_u32_2d_axis_1.cairo index 1f0d37527..9289c766f 100644 --- a/tests/nodes/cumsum_u32_2d_axis_1.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 719456b1b..acf2fce57 100644 --- a/tests/nodes/cumsum_u32_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 60b99f119..665bf169d 100644 --- a/tests/nodes/cumsum_u32_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/div_fp16x16.cairo b/tests/nodes/div_fp16x16.cairo index eabee334c..a11c604cc 100644 --- a/tests/nodes/div_fp16x16.cairo +++ b/tests/nodes/div_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/div_fp16x16/input_0.cairo b/tests/nodes/div_fp16x16/input_0.cairo index e2786d79c..12c6c8c17 100644 --- a/tests/nodes/div_fp16x16/input_0.cairo +++ b/tests/nodes/div_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp16x16/input_1.cairo b/tests/nodes/div_fp16x16/input_1.cairo index 819985b0b..1fd919f5c 100644 --- a/tests/nodes/div_fp16x16/input_1.cairo +++ b/tests/nodes/div_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp16x16/output_0.cairo b/tests/nodes/div_fp16x16/output_0.cairo index 843f3f0a9..9c2c3ff66 100644 --- a/tests/nodes/div_fp16x16/output_0.cairo +++ b/tests/nodes/div_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp16x16_broadcast.cairo b/tests/nodes/div_fp16x16_broadcast.cairo index 9cbb2d348..1e3c1c494 100644 --- a/tests/nodes/div_fp16x16_broadcast.cairo +++ b/tests/nodes/div_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/div_fp16x16_broadcast/input_0.cairo b/tests/nodes/div_fp16x16_broadcast/input_0.cairo index 5be7ddc60..e68ede88a 100644 --- a/tests/nodes/div_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/div_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp16x16_broadcast/input_1.cairo b/tests/nodes/div_fp16x16_broadcast/input_1.cairo index 05d04004d..49900a410 100644 --- a/tests/nodes/div_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/div_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp16x16_broadcast/output_0.cairo b/tests/nodes/div_fp16x16_broadcast/output_0.cairo index 5104b1625..1c8d85565 100644 --- a/tests/nodes/div_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/div_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp8x23.cairo b/tests/nodes/div_fp8x23.cairo index 94d0cc5d5..f60c9e894 100644 --- a/tests/nodes/div_fp8x23.cairo +++ b/tests/nodes/div_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/div_fp8x23/input_0.cairo b/tests/nodes/div_fp8x23/input_0.cairo index c85e99554..3ffe5edd5 100644 --- a/tests/nodes/div_fp8x23/input_0.cairo +++ b/tests/nodes/div_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp8x23/input_1.cairo b/tests/nodes/div_fp8x23/input_1.cairo index 93155d159..0a7a4c6b0 100644 --- a/tests/nodes/div_fp8x23/input_1.cairo +++ b/tests/nodes/div_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp8x23/output_0.cairo b/tests/nodes/div_fp8x23/output_0.cairo index c0e5a548f..88b545caa 100644 --- a/tests/nodes/div_fp8x23/output_0.cairo +++ b/tests/nodes/div_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp8x23_broadcast.cairo b/tests/nodes/div_fp8x23_broadcast.cairo index e2788a69a..cb1122d71 100644 --- a/tests/nodes/div_fp8x23_broadcast.cairo +++ b/tests/nodes/div_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/div_fp8x23_broadcast/input_0.cairo b/tests/nodes/div_fp8x23_broadcast/input_0.cairo index 4afc78e08..dacf72805 100644 --- a/tests/nodes/div_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/div_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp8x23_broadcast/input_1.cairo b/tests/nodes/div_fp8x23_broadcast/input_1.cairo index f64f86cfc..9392f2095 100644 --- a/tests/nodes/div_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/div_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_fp8x23_broadcast/output_0.cairo b/tests/nodes/div_fp8x23_broadcast/output_0.cairo index a3652bda7..0ee3ca948 100644 --- a/tests/nodes/div_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/div_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/div_i32.cairo b/tests/nodes/div_i32.cairo index fc4ca14ec..580904754 100644 --- a/tests/nodes/div_i32.cairo +++ b/tests/nodes/div_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/div_i32/input_0.cairo b/tests/nodes/div_i32/input_0.cairo index 199fed139..8fe110b0d 100644 --- a/tests/nodes/div_i32/input_0.cairo +++ b/tests/nodes/div_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/div_i32/input_1.cairo b/tests/nodes/div_i32/input_1.cairo index d7791e0ec..e9d5e5d84 100644 --- a/tests/nodes/div_i32/input_1.cairo +++ b/tests/nodes/div_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/div_i32/output_0.cairo b/tests/nodes/div_i32/output_0.cairo index 1b76d7a08..a9458c8dc 100644 --- a/tests/nodes/div_i32/output_0.cairo +++ b/tests/nodes/div_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/div_i32_broadcast.cairo b/tests/nodes/div_i32_broadcast.cairo index cd73cf520..525da98e6 100644 --- a/tests/nodes/div_i32_broadcast.cairo +++ b/tests/nodes/div_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/div_i32_broadcast/input_0.cairo b/tests/nodes/div_i32_broadcast/input_0.cairo index f40ee0a7a..3784947ca 100644 --- a/tests/nodes/div_i32_broadcast/input_0.cairo +++ b/tests/nodes/div_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/div_i32_broadcast/input_1.cairo b/tests/nodes/div_i32_broadcast/input_1.cairo index ce6199182..f497fb370 100644 --- a/tests/nodes/div_i32_broadcast/input_1.cairo +++ b/tests/nodes/div_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/div_i32_broadcast/output_0.cairo b/tests/nodes/div_i32_broadcast/output_0.cairo index 1be3d4e91..3675ab5ca 100644 --- a/tests/nodes/div_i32_broadcast/output_0.cairo +++ b/tests/nodes/div_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/div_i8.cairo b/tests/nodes/div_i8.cairo index 8789f873f..67c342c96 100644 --- a/tests/nodes/div_i8.cairo +++ b/tests/nodes/div_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/div_i8/input_0.cairo b/tests/nodes/div_i8/input_0.cairo index ab73bf69a..1bc1ac9de 100644 --- a/tests/nodes/div_i8/input_0.cairo +++ b/tests/nodes/div_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/div_i8/input_1.cairo b/tests/nodes/div_i8/input_1.cairo index d8454bc21..74a8210b6 100644 --- a/tests/nodes/div_i8/input_1.cairo +++ b/tests/nodes/div_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/div_i8/output_0.cairo b/tests/nodes/div_i8/output_0.cairo index 2042ceba4..93b47adb5 100644 --- a/tests/nodes/div_i8/output_0.cairo +++ b/tests/nodes/div_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/div_i8_broadcast.cairo b/tests/nodes/div_i8_broadcast.cairo index c2cd7a309..a384ef0a8 100644 --- a/tests/nodes/div_i8_broadcast.cairo +++ b/tests/nodes/div_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/div_i8_broadcast/input_0.cairo b/tests/nodes/div_i8_broadcast/input_0.cairo index b203dd54f..b1a30d0ef 100644 --- a/tests/nodes/div_i8_broadcast/input_0.cairo +++ b/tests/nodes/div_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/div_i8_broadcast/input_1.cairo b/tests/nodes/div_i8_broadcast/input_1.cairo index e745ed43c..ac0a2f11e 100644 --- a/tests/nodes/div_i8_broadcast/input_1.cairo +++ b/tests/nodes/div_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/div_i8_broadcast/output_0.cairo b/tests/nodes/div_i8_broadcast/output_0.cairo index 0c71cab02..97f778d76 100644 --- a/tests/nodes/div_i8_broadcast/output_0.cairo +++ b/tests/nodes/div_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/div_u32.cairo b/tests/nodes/div_u32.cairo index 1d0ff31b6..512054168 100644 --- a/tests/nodes/div_u32.cairo +++ b/tests/nodes/div_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/div_u32/input_0.cairo b/tests/nodes/div_u32/input_0.cairo index 1146ba354..b35195f6a 100644 --- a/tests/nodes/div_u32/input_0.cairo +++ b/tests/nodes/div_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/div_u32/input_1.cairo b/tests/nodes/div_u32/input_1.cairo index 09a489114..02bb7d1e9 100644 --- a/tests/nodes/div_u32/input_1.cairo +++ b/tests/nodes/div_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/div_u32/output_0.cairo b/tests/nodes/div_u32/output_0.cairo index d9b8420ad..d784ee0c9 100644 --- a/tests/nodes/div_u32/output_0.cairo +++ b/tests/nodes/div_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/div_u32_broadcast.cairo b/tests/nodes/div_u32_broadcast.cairo index 2497a7ce6..641c90c8a 100644 --- a/tests/nodes/div_u32_broadcast.cairo +++ b/tests/nodes/div_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/div_u32_broadcast/input_0.cairo b/tests/nodes/div_u32_broadcast/input_0.cairo index c83a24ef3..316403690 100644 --- a/tests/nodes/div_u32_broadcast/input_0.cairo +++ b/tests/nodes/div_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/div_u32_broadcast/input_1.cairo b/tests/nodes/div_u32_broadcast/input_1.cairo index 0494411a0..368f53b0d 100644 --- a/tests/nodes/div_u32_broadcast/input_1.cairo +++ b/tests/nodes/div_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/div_u32_broadcast/output_0.cairo b/tests/nodes/div_u32_broadcast/output_0.cairo index 04e41d780..418a6fb08 100644 --- a/tests/nodes/div_u32_broadcast/output_0.cairo +++ b/tests/nodes/div_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_fp16x16.cairo b/tests/nodes/equal_fp16x16.cairo index b2c755a00..285844fdb 100644 --- a/tests/nodes/equal_fp16x16.cairo +++ b/tests/nodes/equal_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_fp16x16/input_0.cairo b/tests/nodes/equal_fp16x16/input_0.cairo index 06cb59fd2..df120493c 100644 --- a/tests/nodes/equal_fp16x16/input_0.cairo +++ b/tests/nodes/equal_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp16x16/input_1.cairo b/tests/nodes/equal_fp16x16/input_1.cairo index f14ee0609..5d107320a 100644 --- a/tests/nodes/equal_fp16x16/input_1.cairo +++ b/tests/nodes/equal_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp16x16/output_0.cairo b/tests/nodes/equal_fp16x16/output_0.cairo index 11e9ac600..81eb24408 100644 --- a/tests/nodes/equal_fp16x16/output_0.cairo +++ b/tests/nodes/equal_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_fp16x16_broadcast.cairo b/tests/nodes/equal_fp16x16_broadcast.cairo index 4ce929074..a2beb15aa 100644 --- a/tests/nodes/equal_fp16x16_broadcast.cairo +++ b/tests/nodes/equal_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_fp16x16_broadcast/input_0.cairo b/tests/nodes/equal_fp16x16_broadcast/input_0.cairo index 6ae583cf5..40f2f9647 100644 --- a/tests/nodes/equal_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/equal_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp16x16_broadcast/input_1.cairo b/tests/nodes/equal_fp16x16_broadcast/input_1.cairo index 8e3a296be..6e5366ffc 100644 --- a/tests/nodes/equal_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/equal_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp16x16_broadcast/output_0.cairo b/tests/nodes/equal_fp16x16_broadcast/output_0.cairo index f7205c752..e9d17d59b 100644 --- a/tests/nodes/equal_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/equal_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_fp8x23.cairo b/tests/nodes/equal_fp8x23.cairo index 3bfb2ee47..b047c4798 100644 --- a/tests/nodes/equal_fp8x23.cairo +++ b/tests/nodes/equal_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_fp8x23/input_0.cairo b/tests/nodes/equal_fp8x23/input_0.cairo index d93d80a86..2a709fca8 100644 --- a/tests/nodes/equal_fp8x23/input_0.cairo +++ b/tests/nodes/equal_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp8x23/input_1.cairo b/tests/nodes/equal_fp8x23/input_1.cairo index 73996d84f..3c5409028 100644 --- a/tests/nodes/equal_fp8x23/input_1.cairo +++ b/tests/nodes/equal_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp8x23/output_0.cairo b/tests/nodes/equal_fp8x23/output_0.cairo index 207a9b0f9..c4441487e 100644 --- a/tests/nodes/equal_fp8x23/output_0.cairo +++ b/tests/nodes/equal_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_fp8x23_broadcast.cairo b/tests/nodes/equal_fp8x23_broadcast.cairo index bb821c54a..1472b42e7 100644 --- a/tests/nodes/equal_fp8x23_broadcast.cairo +++ b/tests/nodes/equal_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_fp8x23_broadcast/input_0.cairo b/tests/nodes/equal_fp8x23_broadcast/input_0.cairo index ecd855280..789f35972 100644 --- a/tests/nodes/equal_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/equal_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp8x23_broadcast/input_1.cairo b/tests/nodes/equal_fp8x23_broadcast/input_1.cairo index 235adcf69..a40049391 100644 --- a/tests/nodes/equal_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/equal_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/equal_fp8x23_broadcast/output_0.cairo b/tests/nodes/equal_fp8x23_broadcast/output_0.cairo index 8c5c23655..5f2035f24 100644 --- a/tests/nodes/equal_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/equal_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_i32.cairo b/tests/nodes/equal_i32.cairo index 78ad76831..067c7401b 100644 --- a/tests/nodes/equal_i32.cairo +++ b/tests/nodes/equal_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_i32/input_0.cairo b/tests/nodes/equal_i32/input_0.cairo index 49f53fafd..04cfb426d 100644 --- a/tests/nodes/equal_i32/input_0.cairo +++ b/tests/nodes/equal_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/equal_i32/input_1.cairo b/tests/nodes/equal_i32/input_1.cairo index 72382ead2..0550fba19 100644 --- a/tests/nodes/equal_i32/input_1.cairo +++ b/tests/nodes/equal_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/equal_i32/output_0.cairo b/tests/nodes/equal_i32/output_0.cairo index 718d66506..199576979 100644 --- a/tests/nodes/equal_i32/output_0.cairo +++ b/tests/nodes/equal_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_i32_broadcast.cairo b/tests/nodes/equal_i32_broadcast.cairo index d0ed737b8..9d4740d47 100644 --- a/tests/nodes/equal_i32_broadcast.cairo +++ b/tests/nodes/equal_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_i32_broadcast/input_0.cairo b/tests/nodes/equal_i32_broadcast/input_0.cairo index a4b42bcb8..5b671bf20 100644 --- a/tests/nodes/equal_i32_broadcast/input_0.cairo +++ b/tests/nodes/equal_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/equal_i32_broadcast/input_1.cairo b/tests/nodes/equal_i32_broadcast/input_1.cairo index f254b84b0..d66690250 100644 --- a/tests/nodes/equal_i32_broadcast/input_1.cairo +++ b/tests/nodes/equal_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/equal_i32_broadcast/output_0.cairo b/tests/nodes/equal_i32_broadcast/output_0.cairo index 486b39f3d..8087fceab 100644 --- a/tests/nodes/equal_i32_broadcast/output_0.cairo +++ b/tests/nodes/equal_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_i8.cairo b/tests/nodes/equal_i8.cairo index eec2aad27..0541eee2a 100644 --- a/tests/nodes/equal_i8.cairo +++ b/tests/nodes/equal_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_i8/input_0.cairo b/tests/nodes/equal_i8/input_0.cairo index 8b3af6cb7..ad463a767 100644 --- a/tests/nodes/equal_i8/input_0.cairo +++ b/tests/nodes/equal_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/equal_i8/input_1.cairo b/tests/nodes/equal_i8/input_1.cairo index 306c7f9a0..5ced514f1 100644 --- a/tests/nodes/equal_i8/input_1.cairo +++ b/tests/nodes/equal_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/equal_i8/output_0.cairo b/tests/nodes/equal_i8/output_0.cairo index 0368c88dd..e13418e3f 100644 --- a/tests/nodes/equal_i8/output_0.cairo +++ b/tests/nodes/equal_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_i8_broadcast.cairo b/tests/nodes/equal_i8_broadcast.cairo index c10d47c7f..34eca619e 100644 --- a/tests/nodes/equal_i8_broadcast.cairo +++ b/tests/nodes/equal_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_i8_broadcast/input_0.cairo b/tests/nodes/equal_i8_broadcast/input_0.cairo index c289e3375..587e8bcab 100644 --- a/tests/nodes/equal_i8_broadcast/input_0.cairo +++ b/tests/nodes/equal_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/equal_i8_broadcast/input_1.cairo b/tests/nodes/equal_i8_broadcast/input_1.cairo index 6b11828c4..155adebdb 100644 --- a/tests/nodes/equal_i8_broadcast/input_1.cairo +++ b/tests/nodes/equal_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/equal_i8_broadcast/output_0.cairo b/tests/nodes/equal_i8_broadcast/output_0.cairo index 06bc44409..6a5b87888 100644 --- a/tests/nodes/equal_i8_broadcast/output_0.cairo +++ b/tests/nodes/equal_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_u32.cairo b/tests/nodes/equal_u32.cairo index 4e444e5d5..489560a84 100644 --- a/tests/nodes/equal_u32.cairo +++ b/tests/nodes/equal_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_u32/input_0.cairo b/tests/nodes/equal_u32/input_0.cairo index 3e3417b89..8db3fec81 100644 --- a/tests/nodes/equal_u32/input_0.cairo +++ b/tests/nodes/equal_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_u32/input_1.cairo b/tests/nodes/equal_u32/input_1.cairo index adea2e17f..699f9cbee 100644 --- a/tests/nodes/equal_u32/input_1.cairo +++ b/tests/nodes/equal_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_u32/output_0.cairo b/tests/nodes/equal_u32/output_0.cairo index 8fbca58de..c3c7e50aa 100644 --- a/tests/nodes/equal_u32/output_0.cairo +++ b/tests/nodes/equal_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_u32_broadcast.cairo b/tests/nodes/equal_u32_broadcast.cairo index 31563d06e..3597ac91c 100644 --- a/tests/nodes/equal_u32_broadcast.cairo +++ b/tests/nodes/equal_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/equal_u32_broadcast/input_0.cairo b/tests/nodes/equal_u32_broadcast/input_0.cairo index 83b5ac8fd..d1b8809de 100644 --- a/tests/nodes/equal_u32_broadcast/input_0.cairo +++ b/tests/nodes/equal_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_u32_broadcast/input_1.cairo b/tests/nodes/equal_u32_broadcast/input_1.cairo index f014dc791..1dcee8880 100644 --- a/tests/nodes/equal_u32_broadcast/input_1.cairo +++ b/tests/nodes/equal_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/equal_u32_broadcast/output_0.cairo b/tests/nodes/equal_u32_broadcast/output_0.cairo index a73546c37..3f29a4799 100644 --- a/tests/nodes/equal_u32_broadcast/output_0.cairo +++ b/tests/nodes/equal_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/exp_fp16x16.cairo b/tests/nodes/exp_fp16x16.cairo index da4bab85f..5d665c941 100644 --- a/tests/nodes/exp_fp16x16.cairo +++ b/tests/nodes/exp_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/exp_fp16x16/input_0.cairo b/tests/nodes/exp_fp16x16/input_0.cairo index 1ca5d58bf..26c7970af 100644 --- a/tests/nodes/exp_fp16x16/input_0.cairo +++ b/tests/nodes/exp_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/exp_fp16x16/output_0.cairo b/tests/nodes/exp_fp16x16/output_0.cairo index 8c8f6c352..73c2df575 100644 --- a/tests/nodes/exp_fp16x16/output_0.cairo +++ b/tests/nodes/exp_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/exp_fp8x23.cairo b/tests/nodes/exp_fp8x23.cairo index d1547a7b4..d1b025b32 100644 --- a/tests/nodes/exp_fp8x23.cairo +++ b/tests/nodes/exp_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/exp_fp8x23/input_0.cairo b/tests/nodes/exp_fp8x23/input_0.cairo index a4398e376..14a35eb04 100644 --- a/tests/nodes/exp_fp8x23/input_0.cairo +++ b/tests/nodes/exp_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/exp_fp8x23/output_0.cairo b/tests/nodes/exp_fp8x23/output_0.cairo index d426c02fb..06ef8a7b7 100644 --- a/tests/nodes/exp_fp8x23/output_0.cairo +++ b/tests/nodes/exp_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo index b7fbad90b..2afad0443 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 e6f14fe6d..22bb148eb 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 965fb55b7..94df8fa06 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 e275ba45c..4a53c6fb9 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo index f1a37f468..1f85eefc7 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 e6f14fe6d..22bb148eb 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 f0b0ecc4d..80db66f91 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 d3c4bc465..ec4cbc330 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/gather_elements_fp16x16_3d_default.cairo b/tests/nodes/gather_elements_fp16x16_3d_default.cairo index b622d16c4..b8e927081 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; #[test] 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 e6f14fe6d..22bb148eb 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 783d2169a..2ca546e5f 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 9c94a9532..c6be1a852 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo index b705ecdcc..f31041ee5 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +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 de5867b1f..158782e65 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 5630eb6cb..818062d28 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 5fa2a148c..580985635 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo index 4296693df..deb41b14e 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +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 de5867b1f..158782e65 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 f029f0f5e..83126b791 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 93c6c209e..f91ddb575 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/gather_elements_fp8x23_3d_default.cairo b/tests/nodes/gather_elements_fp8x23_3d_default.cairo index 564715093..75098af27 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +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 de5867b1f..158782e65 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 fe0c62031..bb7494182 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 2fa7ffd60..f448230af 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/gather_elements_i32_3d_axis1.cairo b/tests/nodes/gather_elements_i32_3d_axis1.cairo index 1c0e01766..38562aea0 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1.cairo @@ -7,7 +7,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; 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 e96796beb..230c76bfc 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 4f3a314c3..f752b9773 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 4aa418f8f..8b2a519f5 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_elements_i32_3d_axis2.cairo b/tests/nodes/gather_elements_i32_3d_axis2.cairo index ff06e84b8..a30803206 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2.cairo @@ -7,7 +7,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; 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 e96796beb..230c76bfc 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 ed889b349..d4ab2db5d 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 1aac2bec6..39172c920 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_elements_i32_3d_default.cairo b/tests/nodes/gather_elements_i32_3d_default.cairo index 28180a16d..b518f78d6 100644 --- a/tests/nodes/gather_elements_i32_3d_default.cairo +++ b/tests/nodes/gather_elements_i32_3d_default.cairo @@ -7,7 +7,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; 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 e96796beb..230c76bfc 100644 --- a/tests/nodes/gather_elements_i32_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 2567d760a..5ee5d48d4 100644 --- a/tests/nodes/gather_elements_i32_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_i32_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 0f8443c80..33e626f6e 100644 --- a/tests/nodes/gather_elements_i32_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_elements_i8_3d_axis1.cairo b/tests/nodes/gather_elements_i8_3d_axis1.cairo index 41807acad..283601233 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1.cairo @@ -7,7 +7,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; 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 500932fc7..069bade56 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 a8c72abbd..94f8982d6 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 0188dc836..f77a7e5ad 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_elements_i8_3d_default.cairo b/tests/nodes/gather_elements_i8_3d_default.cairo index 422f418bb..ed280e873 100644 --- a/tests/nodes/gather_elements_i8_3d_default.cairo +++ b/tests/nodes/gather_elements_i8_3d_default.cairo @@ -7,7 +7,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; 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 500932fc7..069bade56 100644 --- a/tests/nodes/gather_elements_i8_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 f2db2fc85..86d13d02b 100644 --- a/tests/nodes/gather_elements_i8_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_i8_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 efd3a5621..ed1d7ae41 100644 --- a/tests/nodes/gather_elements_i8_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_elements_u32_axis1.cairo b/tests/nodes/gather_elements_u32_axis1.cairo index 4b8269991..209834966 100644 --- a/tests/nodes/gather_elements_u32_axis1.cairo +++ b/tests/nodes/gather_elements_u32_axis1.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; 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 409b07da6..f0f05cab0 100644 --- a/tests/nodes/gather_elements_u32_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_u32_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis1/input_1.cairo b/tests/nodes/gather_elements_u32_axis1/input_1.cairo index 8c4f4d59f..091b0a46d 100644 --- a/tests/nodes/gather_elements_u32_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_u32_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis1/output_0.cairo b/tests/nodes/gather_elements_u32_axis1/output_0.cairo index 7efd8fecf..12a313c48 100644 --- a/tests/nodes/gather_elements_u32_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_u32_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis2.cairo b/tests/nodes/gather_elements_u32_axis2.cairo index 84f3927fc..9334dd164 100644 --- a/tests/nodes/gather_elements_u32_axis2.cairo +++ b/tests/nodes/gather_elements_u32_axis2.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; 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 409b07da6..f0f05cab0 100644 --- a/tests/nodes/gather_elements_u32_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_u32_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis2/input_1.cairo b/tests/nodes/gather_elements_u32_axis2/input_1.cairo index aa4e75528..ed6b732c2 100644 --- a/tests/nodes/gather_elements_u32_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_u32_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis2/output_0.cairo b/tests/nodes/gather_elements_u32_axis2/output_0.cairo index a27abae4f..4da259b43 100644 --- a/tests/nodes/gather_elements_u32_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_u32_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis3.cairo b/tests/nodes/gather_elements_u32_axis3.cairo index 7dc511980..437a90c70 100644 --- a/tests/nodes/gather_elements_u32_axis3.cairo +++ b/tests/nodes/gather_elements_u32_axis3.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; 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 409b07da6..f0f05cab0 100644 --- a/tests/nodes/gather_elements_u32_axis3/input_0.cairo +++ b/tests/nodes/gather_elements_u32_axis3/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis3/input_1.cairo b/tests/nodes/gather_elements_u32_axis3/input_1.cairo index 76d27a0ff..d3264ece9 100644 --- a/tests/nodes/gather_elements_u32_axis3/input_1.cairo +++ b/tests/nodes/gather_elements_u32_axis3/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_axis3/output_0.cairo b/tests/nodes/gather_elements_u32_axis3/output_0.cairo index 106c0d20f..d3bc40b05 100644 --- a/tests/nodes/gather_elements_u32_axis3/output_0.cairo +++ b/tests/nodes/gather_elements_u32_axis3/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_default.cairo b/tests/nodes/gather_elements_u32_default.cairo index f5fe7c1e9..2351bdf7a 100644 --- a/tests/nodes/gather_elements_u32_default.cairo +++ b/tests/nodes/gather_elements_u32_default.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; 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 409b07da6..f0f05cab0 100644 --- a/tests/nodes/gather_elements_u32_default/input_0.cairo +++ b/tests/nodes/gather_elements_u32_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_default/input_1.cairo b/tests/nodes/gather_elements_u32_default/input_1.cairo index d1d98f1da..2a7a91732 100644 --- a/tests/nodes/gather_elements_u32_default/input_1.cairo +++ b/tests/nodes/gather_elements_u32_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_elements_u32_default/output_0.cairo b/tests/nodes/gather_elements_u32_default/output_0.cairo index 5bd86a8bd..a7fac7d73 100644 --- a/tests/nodes/gather_elements_u32_default/output_0.cairo +++ b/tests/nodes/gather_elements_u32_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_fp16x16_3d_axis1.cairo b/tests/nodes/gather_fp16x16_3d_axis1.cairo index 9245794b2..7c858643f 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo b/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo index a9e149517..9b1aade12 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo b/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo b/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo index dfc0b1fc4..fa8227ef8 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp16x16_3d_axis2.cairo b/tests/nodes/gather_fp16x16_3d_axis2.cairo index 0f0f0927a..1f3caf207 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo b/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo index a9e149517..9b1aade12 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo b/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo b/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo index 8ce0ca9ec..e75fc5c3d 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp16x16_3d_default.cairo b/tests/nodes/gather_fp16x16_3d_default.cairo index 421e87649..7d6675e58 100644 --- a/tests/nodes/gather_fp16x16_3d_default.cairo +++ b/tests/nodes/gather_fp16x16_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/gather_fp16x16_3d_default/input_0.cairo b/tests/nodes/gather_fp16x16_3d_default/input_0.cairo index a9e149517..9b1aade12 100644 --- a/tests/nodes/gather_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp16x16_3d_default/input_1.cairo b/tests/nodes/gather_fp16x16_3d_default/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/gather_fp16x16_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_fp16x16_3d_default/output_0.cairo b/tests/nodes/gather_fp16x16_3d_default/output_0.cairo index 2a1cbaf6e..4e253143e 100644 --- a/tests/nodes/gather_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp8x23_3d_axis1.cairo b/tests/nodes/gather_fp8x23_3d_axis1.cairo index f680934d0..b90510ebc 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo b/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo index 91a3548b3..f540d616f 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo b/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo b/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo index 61cdc9bcc..d6e13f708 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp8x23_3d_axis2.cairo b/tests/nodes/gather_fp8x23_3d_axis2.cairo index 063a4dd3f..ddc06ccf4 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo b/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo index 91a3548b3..f540d616f 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo b/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo b/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo index c2699dd21..43ee8c1c8 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp8x23_3d_default.cairo b/tests/nodes/gather_fp8x23_3d_default.cairo index b8aac4ac7..bee5daa07 100644 --- a/tests/nodes/gather_fp8x23_3d_default.cairo +++ b/tests/nodes/gather_fp8x23_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/gather_fp8x23_3d_default/input_0.cairo b/tests/nodes/gather_fp8x23_3d_default/input_0.cairo index 91a3548b3..f540d616f 100644 --- a/tests/nodes/gather_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_fp8x23_3d_default/input_1.cairo b/tests/nodes/gather_fp8x23_3d_default/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/gather_fp8x23_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_fp8x23_3d_default/output_0.cairo b/tests/nodes/gather_fp8x23_3d_default/output_0.cairo index 018a2f496..d42f2e608 100644 --- a/tests/nodes/gather_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gather_i32_3d_axis1.cairo b/tests/nodes/gather_i32_3d_axis1.cairo index d62d3dd23..d0ef7ae1c 100644 --- a/tests/nodes/gather_i32_3d_axis1.cairo +++ b/tests/nodes/gather_i32_3d_axis1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/gather_i32_3d_axis1/input_0.cairo b/tests/nodes/gather_i32_3d_axis1/input_0.cairo index 01676fd61..9b4392c28 100644 --- a/tests/nodes/gather_i32_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_i32_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_i32_3d_axis1/input_1.cairo b/tests/nodes/gather_i32_3d_axis1/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_i32_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_i32_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_i32_3d_axis1/output_0.cairo b/tests/nodes/gather_i32_3d_axis1/output_0.cairo index 0d64ff680..84a10cc46 100644 --- a/tests/nodes/gather_i32_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_i32_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_i32_3d_axis2.cairo b/tests/nodes/gather_i32_3d_axis2.cairo index d8a98ff0a..378f13d5e 100644 --- a/tests/nodes/gather_i32_3d_axis2.cairo +++ b/tests/nodes/gather_i32_3d_axis2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/gather_i32_3d_axis2/input_0.cairo b/tests/nodes/gather_i32_3d_axis2/input_0.cairo index 01676fd61..9b4392c28 100644 --- a/tests/nodes/gather_i32_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_i32_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_i32_3d_axis2/input_1.cairo b/tests/nodes/gather_i32_3d_axis2/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_i32_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_i32_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_i32_3d_axis2/output_0.cairo b/tests/nodes/gather_i32_3d_axis2/output_0.cairo index 9a6a2115e..8854252dc 100644 --- a/tests/nodes/gather_i32_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_i32_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_i32_3d_default.cairo b/tests/nodes/gather_i32_3d_default.cairo index 10adfcc0f..af02e4680 100644 --- a/tests/nodes/gather_i32_3d_default.cairo +++ b/tests/nodes/gather_i32_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/gather_i32_3d_default/input_0.cairo b/tests/nodes/gather_i32_3d_default/input_0.cairo index 01676fd61..9b4392c28 100644 --- a/tests/nodes/gather_i32_3d_default/input_0.cairo +++ b/tests/nodes/gather_i32_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_i32_3d_default/input_1.cairo b/tests/nodes/gather_i32_3d_default/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_i32_3d_default/input_1.cairo +++ b/tests/nodes/gather_i32_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_i32_3d_default/output_0.cairo b/tests/nodes/gather_i32_3d_default/output_0.cairo index 273b40736..9f01c6ab4 100644 --- a/tests/nodes/gather_i32_3d_default/output_0.cairo +++ b/tests/nodes/gather_i32_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/gather_i8_3d_axis1.cairo b/tests/nodes/gather_i8_3d_axis1.cairo index 3b16409c1..837742cd4 100644 --- a/tests/nodes/gather_i8_3d_axis1.cairo +++ b/tests/nodes/gather_i8_3d_axis1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/gather_i8_3d_axis1/input_0.cairo b/tests/nodes/gather_i8_3d_axis1/input_0.cairo index 4d8778b04..c095ab988 100644 --- a/tests/nodes/gather_i8_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_i8_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_i8_3d_axis1/input_1.cairo b/tests/nodes/gather_i8_3d_axis1/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_i8_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_i8_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_i8_3d_axis1/output_0.cairo b/tests/nodes/gather_i8_3d_axis1/output_0.cairo index 510655421..99004a0ae 100644 --- a/tests/nodes/gather_i8_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_i8_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_i8_3d_axis2.cairo b/tests/nodes/gather_i8_3d_axis2.cairo index dae6edb0c..9af20219f 100644 --- a/tests/nodes/gather_i8_3d_axis2.cairo +++ b/tests/nodes/gather_i8_3d_axis2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/gather_i8_3d_axis2/input_0.cairo b/tests/nodes/gather_i8_3d_axis2/input_0.cairo index 4d8778b04..c095ab988 100644 --- a/tests/nodes/gather_i8_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_i8_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_i8_3d_axis2/input_1.cairo b/tests/nodes/gather_i8_3d_axis2/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_i8_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_i8_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_i8_3d_axis2/output_0.cairo b/tests/nodes/gather_i8_3d_axis2/output_0.cairo index 652537e65..c78637c46 100644 --- a/tests/nodes/gather_i8_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_i8_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_i8_3d_default.cairo b/tests/nodes/gather_i8_3d_default.cairo index 809d3aa55..adbda11c7 100644 --- a/tests/nodes/gather_i8_3d_default.cairo +++ b/tests/nodes/gather_i8_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/gather_i8_3d_default/input_0.cairo b/tests/nodes/gather_i8_3d_default/input_0.cairo index 4d8778b04..c095ab988 100644 --- a/tests/nodes/gather_i8_3d_default/input_0.cairo +++ b/tests/nodes/gather_i8_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_i8_3d_default/input_1.cairo b/tests/nodes/gather_i8_3d_default/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_i8_3d_default/input_1.cairo +++ b/tests/nodes/gather_i8_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_i8_3d_default/output_0.cairo b/tests/nodes/gather_i8_3d_default/output_0.cairo index 3de2e431a..dc2e0bb26 100644 --- a/tests/nodes/gather_i8_3d_default/output_0.cairo +++ b/tests/nodes/gather_i8_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/gather_u32_3d_axis1.cairo b/tests/nodes/gather_u32_3d_axis1.cairo index c4c75ddde..4c3a9259b 100644 --- a/tests/nodes/gather_u32_3d_axis1.cairo +++ b/tests/nodes/gather_u32_3d_axis1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/gather_u32_3d_axis1/input_0.cairo b/tests/nodes/gather_u32_3d_axis1/input_0.cairo index 207a2d821..3b921bc94 100644 --- a/tests/nodes/gather_u32_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_u32_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_axis1/input_1.cairo b/tests/nodes/gather_u32_3d_axis1/input_1.cairo index f4aafa6db..56a6ceda4 100644 --- a/tests/nodes/gather_u32_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_u32_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_axis1/output_0.cairo b/tests/nodes/gather_u32_3d_axis1/output_0.cairo index f65677043..7cf818c71 100644 --- a/tests/nodes/gather_u32_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_u32_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_axis2.cairo b/tests/nodes/gather_u32_3d_axis2.cairo index 43a64fa84..9697a03c0 100644 --- a/tests/nodes/gather_u32_3d_axis2.cairo +++ b/tests/nodes/gather_u32_3d_axis2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/gather_u32_3d_axis2/input_0.cairo b/tests/nodes/gather_u32_3d_axis2/input_0.cairo index 207a2d821..3b921bc94 100644 --- a/tests/nodes/gather_u32_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_u32_3d_axis2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_axis2/input_1.cairo b/tests/nodes/gather_u32_3d_axis2/input_1.cairo index 54bf7431a..f20d23efe 100644 --- a/tests/nodes/gather_u32_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_u32_3d_axis2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_axis2/output_0.cairo b/tests/nodes/gather_u32_3d_axis2/output_0.cairo index bcb94aac0..cdfe8b90c 100644 --- a/tests/nodes/gather_u32_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_u32_3d_axis2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_default.cairo b/tests/nodes/gather_u32_3d_default.cairo index be5f0f762..f2f991d97 100644 --- a/tests/nodes/gather_u32_3d_default.cairo +++ b/tests/nodes/gather_u32_3d_default.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/gather_u32_3d_default/input_0.cairo b/tests/nodes/gather_u32_3d_default/input_0.cairo index 207a2d821..3b921bc94 100644 --- a/tests/nodes/gather_u32_3d_default/input_0.cairo +++ b/tests/nodes/gather_u32_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_default/input_1.cairo b/tests/nodes/gather_u32_3d_default/input_1.cairo index d7ce787c9..98f7a588b 100644 --- a/tests/nodes/gather_u32_3d_default/input_1.cairo +++ b/tests/nodes/gather_u32_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gather_u32_3d_default/output_0.cairo b/tests/nodes/gather_u32_3d_default/output_0.cairo index 0aa638e1d..5caf50155 100644 --- a/tests/nodes/gather_u32_3d_default/output_0.cairo +++ b/tests/nodes/gather_u32_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/gemm_all_attributes/input_0.cairo b/tests/nodes/gemm_all_attributes/input_0.cairo index 2c7e91b7f..8810dfc2d 100644 --- a/tests/nodes/gemm_all_attributes/input_0.cairo +++ b/tests/nodes/gemm_all_attributes/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_all_attributes/input_1.cairo b/tests/nodes/gemm_all_attributes/input_1.cairo index 1e66acb98..f9b1d1f04 100644 --- a/tests/nodes/gemm_all_attributes/input_1.cairo +++ b/tests/nodes/gemm_all_attributes/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_all_attributes/input_2.cairo b/tests/nodes/gemm_all_attributes/input_2.cairo index 7339b5f95..41f54452e 100644 --- a/tests/nodes/gemm_all_attributes/input_2.cairo +++ b/tests/nodes/gemm_all_attributes/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_all_attributes/output_0.cairo b/tests/nodes/gemm_all_attributes/output_0.cairo index b8ed0cb53..4ca92e456 100644 --- a/tests/nodes/gemm_all_attributes/output_0.cairo +++ b/tests/nodes/gemm_all_attributes/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_alpha/input_0.cairo b/tests/nodes/gemm_alpha/input_0.cairo index c0d4ff0f3..700948852 100644 --- a/tests/nodes/gemm_alpha/input_0.cairo +++ b/tests/nodes/gemm_alpha/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_alpha/input_1.cairo b/tests/nodes/gemm_alpha/input_1.cairo index f37539ec8..15b93687b 100644 --- a/tests/nodes/gemm_alpha/input_1.cairo +++ b/tests/nodes/gemm_alpha/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_alpha/output_0.cairo b/tests/nodes/gemm_alpha/output_0.cairo index 2f7b7cd31..cfbb1d88d 100644 --- a/tests/nodes/gemm_alpha/output_0.cairo +++ b/tests/nodes/gemm_alpha/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_beta/input_0.cairo b/tests/nodes/gemm_beta/input_0.cairo index 4a61c26b9..8acce4d11 100644 --- a/tests/nodes/gemm_beta/input_0.cairo +++ b/tests/nodes/gemm_beta/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_beta/input_1.cairo b/tests/nodes/gemm_beta/input_1.cairo index 3da60ea52..6ab31f6b0 100644 --- a/tests/nodes/gemm_beta/input_1.cairo +++ b/tests/nodes/gemm_beta/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_beta/input_2.cairo b/tests/nodes/gemm_beta/input_2.cairo index 1f3cb57f9..9c1cc8509 100644 --- a/tests/nodes/gemm_beta/input_2.cairo +++ b/tests/nodes/gemm_beta/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_beta/output_0.cairo b/tests/nodes/gemm_beta/output_0.cairo index 47a714ff9..295b9de71 100644 --- a/tests/nodes/gemm_beta/output_0.cairo +++ b/tests/nodes/gemm_beta/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_matrix_bias/input_0.cairo b/tests/nodes/gemm_default_matrix_bias/input_0.cairo index ec07544ee..5c482e9a3 100644 --- a/tests/nodes/gemm_default_matrix_bias/input_0.cairo +++ b/tests/nodes/gemm_default_matrix_bias/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_matrix_bias/input_1.cairo b/tests/nodes/gemm_default_matrix_bias/input_1.cairo index f1382d582..89a47b95d 100644 --- a/tests/nodes/gemm_default_matrix_bias/input_1.cairo +++ b/tests/nodes/gemm_default_matrix_bias/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_matrix_bias/input_2.cairo b/tests/nodes/gemm_default_matrix_bias/input_2.cairo index fd6b344af..b5fd44b77 100644 --- a/tests/nodes/gemm_default_matrix_bias/input_2.cairo +++ b/tests/nodes/gemm_default_matrix_bias/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_matrix_bias/output_0.cairo b/tests/nodes/gemm_default_matrix_bias/output_0.cairo index cd78b473b..2e84cbca1 100644 --- a/tests/nodes/gemm_default_matrix_bias/output_0.cairo +++ b/tests/nodes/gemm_default_matrix_bias/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_no_bias/input_0.cairo b/tests/nodes/gemm_default_no_bias/input_0.cairo index 91505db07..83ef9a0bb 100644 --- a/tests/nodes/gemm_default_no_bias/input_0.cairo +++ b/tests/nodes/gemm_default_no_bias/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_no_bias/input_1.cairo b/tests/nodes/gemm_default_no_bias/input_1.cairo index 9e3f4ab18..3012f1288 100644 --- a/tests/nodes/gemm_default_no_bias/input_1.cairo +++ b/tests/nodes/gemm_default_no_bias/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_no_bias/output_0.cairo b/tests/nodes/gemm_default_no_bias/output_0.cairo index a6ea619ed..51702c1b8 100644 --- a/tests/nodes/gemm_default_no_bias/output_0.cairo +++ b/tests/nodes/gemm_default_no_bias/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_vector_bias/input_0.cairo b/tests/nodes/gemm_default_vector_bias/input_0.cairo index 012d57462..e2ffbb8f9 100644 --- a/tests/nodes/gemm_default_vector_bias/input_0.cairo +++ b/tests/nodes/gemm_default_vector_bias/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_vector_bias/input_1.cairo b/tests/nodes/gemm_default_vector_bias/input_1.cairo index 51711b3bc..026350f95 100644 --- a/tests/nodes/gemm_default_vector_bias/input_1.cairo +++ b/tests/nodes/gemm_default_vector_bias/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_vector_bias/input_2.cairo b/tests/nodes/gemm_default_vector_bias/input_2.cairo index a9cc07f33..c34063a3e 100644 --- a/tests/nodes/gemm_default_vector_bias/input_2.cairo +++ b/tests/nodes/gemm_default_vector_bias/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_default_vector_bias/output_0.cairo b/tests/nodes/gemm_default_vector_bias/output_0.cairo index 1a1a06845..2e3368481 100644 --- a/tests/nodes/gemm_default_vector_bias/output_0.cairo +++ b/tests/nodes/gemm_default_vector_bias/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_transposeA/input_0.cairo b/tests/nodes/gemm_transposeA/input_0.cairo index 16d07812e..1e4b64c09 100644 --- a/tests/nodes/gemm_transposeA/input_0.cairo +++ b/tests/nodes/gemm_transposeA/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_transposeA/input_1.cairo b/tests/nodes/gemm_transposeA/input_1.cairo index bc0ad1d87..dc66548d4 100644 --- a/tests/nodes/gemm_transposeA/input_1.cairo +++ b/tests/nodes/gemm_transposeA/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_transposeA/output_0.cairo b/tests/nodes/gemm_transposeA/output_0.cairo index c898157f7..47ea16509 100644 --- a/tests/nodes/gemm_transposeA/output_0.cairo +++ b/tests/nodes/gemm_transposeA/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_transposeB/input_0.cairo b/tests/nodes/gemm_transposeB/input_0.cairo index fdef456a4..625594ceb 100644 --- a/tests/nodes/gemm_transposeB/input_0.cairo +++ b/tests/nodes/gemm_transposeB/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_transposeB/input_1.cairo b/tests/nodes/gemm_transposeB/input_1.cairo index 571cabcc0..7fbc01149 100644 --- a/tests/nodes/gemm_transposeB/input_1.cairo +++ b/tests/nodes/gemm_transposeB/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/gemm_transposeB/output_0.cairo b/tests/nodes/gemm_transposeB/output_0.cairo index aef897233..1b90bfaf5 100644 --- a/tests/nodes/gemm_transposeB/output_0.cairo +++ b/tests/nodes/gemm_transposeB/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp16x16.cairo b/tests/nodes/greater_equal_fp16x16.cairo index cb7ae785a..f0afda063 100644 --- a/tests/nodes/greater_equal_fp16x16.cairo +++ b/tests/nodes/greater_equal_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_fp16x16/input_0.cairo b/tests/nodes/greater_equal_fp16x16/input_0.cairo index 00226ef98..bf198fd66 100644 --- a/tests/nodes/greater_equal_fp16x16/input_0.cairo +++ b/tests/nodes/greater_equal_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp16x16/input_1.cairo b/tests/nodes/greater_equal_fp16x16/input_1.cairo index 3f3ffdd19..784b0c5d9 100644 --- a/tests/nodes/greater_equal_fp16x16/input_1.cairo +++ b/tests/nodes/greater_equal_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp16x16/output_0.cairo b/tests/nodes/greater_equal_fp16x16/output_0.cairo index 9f6fc0164..8828bc76c 100644 --- a/tests/nodes/greater_equal_fp16x16/output_0.cairo +++ b/tests/nodes/greater_equal_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_fp16x16_broadcast.cairo b/tests/nodes/greater_equal_fp16x16_broadcast.cairo index e4d108d63..a71fdf540 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo b/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo index 97af122b1..a1781af54 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo b/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo index 029ca0372..547c3f98e 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo b/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo index 0aa52282b..1ed1b435e 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_fp8x23.cairo b/tests/nodes/greater_equal_fp8x23.cairo index 2909e67a3..da0618960 100644 --- a/tests/nodes/greater_equal_fp8x23.cairo +++ b/tests/nodes/greater_equal_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_fp8x23/input_0.cairo b/tests/nodes/greater_equal_fp8x23/input_0.cairo index c338574c6..5322df0a4 100644 --- a/tests/nodes/greater_equal_fp8x23/input_0.cairo +++ b/tests/nodes/greater_equal_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp8x23/input_1.cairo b/tests/nodes/greater_equal_fp8x23/input_1.cairo index 22a122c4b..10a309690 100644 --- a/tests/nodes/greater_equal_fp8x23/input_1.cairo +++ b/tests/nodes/greater_equal_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp8x23/output_0.cairo b/tests/nodes/greater_equal_fp8x23/output_0.cairo index 1ea8a1ddf..f108a3c15 100644 --- a/tests/nodes/greater_equal_fp8x23/output_0.cairo +++ b/tests/nodes/greater_equal_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_fp8x23_broadcast.cairo b/tests/nodes/greater_equal_fp8x23_broadcast.cairo index 9773faa8e..d5f0c8dc2 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo b/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo index 2f9b11c3e..9cc08936c 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo b/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo index 433c6c776..835e80b43 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo b/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo index d5cfb9da3..e9677b9cd 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_i32.cairo b/tests/nodes/greater_equal_i32.cairo index 8fe97c355..06ebdd1b4 100644 --- a/tests/nodes/greater_equal_i32.cairo +++ b/tests/nodes/greater_equal_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_i32/input_0.cairo b/tests/nodes/greater_equal_i32/input_0.cairo index a5cda5ff5..ff43552f9 100644 --- a/tests/nodes/greater_equal_i32/input_0.cairo +++ b/tests/nodes/greater_equal_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_equal_i32/input_1.cairo b/tests/nodes/greater_equal_i32/input_1.cairo index d42393593..f423235a3 100644 --- a/tests/nodes/greater_equal_i32/input_1.cairo +++ b/tests/nodes/greater_equal_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_equal_i32/output_0.cairo b/tests/nodes/greater_equal_i32/output_0.cairo index c76ecdd7c..023449525 100644 --- a/tests/nodes/greater_equal_i32/output_0.cairo +++ b/tests/nodes/greater_equal_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_i32_broadcast.cairo b/tests/nodes/greater_equal_i32_broadcast.cairo index f71101415..595ea408c 100644 --- a/tests/nodes/greater_equal_i32_broadcast.cairo +++ b/tests/nodes/greater_equal_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_i32_broadcast/input_0.cairo b/tests/nodes/greater_equal_i32_broadcast/input_0.cairo index c8602edbf..027701044 100644 --- a/tests/nodes/greater_equal_i32_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_equal_i32_broadcast/input_1.cairo b/tests/nodes/greater_equal_i32_broadcast/input_1.cairo index 1524def22..4794a737c 100644 --- a/tests/nodes/greater_equal_i32_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_equal_i32_broadcast/output_0.cairo b/tests/nodes/greater_equal_i32_broadcast/output_0.cairo index a7bd65277..6bb4fc5a6 100644 --- a/tests/nodes/greater_equal_i32_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_i8.cairo b/tests/nodes/greater_equal_i8.cairo index 339656956..5c498c9e1 100644 --- a/tests/nodes/greater_equal_i8.cairo +++ b/tests/nodes/greater_equal_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_i8/input_0.cairo b/tests/nodes/greater_equal_i8/input_0.cairo index 89b4454a6..8a99052f8 100644 --- a/tests/nodes/greater_equal_i8/input_0.cairo +++ b/tests/nodes/greater_equal_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_equal_i8/input_1.cairo b/tests/nodes/greater_equal_i8/input_1.cairo index 62e7a2e6e..a73260702 100644 --- a/tests/nodes/greater_equal_i8/input_1.cairo +++ b/tests/nodes/greater_equal_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_equal_i8/output_0.cairo b/tests/nodes/greater_equal_i8/output_0.cairo index e7ef2524b..71533d4e8 100644 --- a/tests/nodes/greater_equal_i8/output_0.cairo +++ b/tests/nodes/greater_equal_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_i8_broadcast.cairo b/tests/nodes/greater_equal_i8_broadcast.cairo index 01fee04a5..33f029d9c 100644 --- a/tests/nodes/greater_equal_i8_broadcast.cairo +++ b/tests/nodes/greater_equal_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_i8_broadcast/input_0.cairo b/tests/nodes/greater_equal_i8_broadcast/input_0.cairo index 2fbf128b5..a78a13ff4 100644 --- a/tests/nodes/greater_equal_i8_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_equal_i8_broadcast/input_1.cairo b/tests/nodes/greater_equal_i8_broadcast/input_1.cairo index 293249bee..91ddd0113 100644 --- a/tests/nodes/greater_equal_i8_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_equal_i8_broadcast/output_0.cairo b/tests/nodes/greater_equal_i8_broadcast/output_0.cairo index 072a37d86..00a04e9f6 100644 --- a/tests/nodes/greater_equal_i8_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_u32.cairo b/tests/nodes/greater_equal_u32.cairo index 44a5f621a..721287386 100644 --- a/tests/nodes/greater_equal_u32.cairo +++ b/tests/nodes/greater_equal_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_u32/input_0.cairo b/tests/nodes/greater_equal_u32/input_0.cairo index 255900087..014766b6f 100644 --- a/tests/nodes/greater_equal_u32/input_0.cairo +++ b/tests/nodes/greater_equal_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_u32/input_1.cairo b/tests/nodes/greater_equal_u32/input_1.cairo index c79744328..f8774b011 100644 --- a/tests/nodes/greater_equal_u32/input_1.cairo +++ b/tests/nodes/greater_equal_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_u32/output_0.cairo b/tests/nodes/greater_equal_u32/output_0.cairo index 8f4f7cec6..920661d52 100644 --- a/tests/nodes/greater_equal_u32/output_0.cairo +++ b/tests/nodes/greater_equal_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_u32_broadcast.cairo b/tests/nodes/greater_equal_u32_broadcast.cairo index 990b8dc6c..7a072502d 100644 --- a/tests/nodes/greater_equal_u32_broadcast.cairo +++ b/tests/nodes/greater_equal_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_equal_u32_broadcast/input_0.cairo b/tests/nodes/greater_equal_u32_broadcast/input_0.cairo index cfbebf003..c8f994926 100644 --- a/tests/nodes/greater_equal_u32_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_u32_broadcast/input_1.cairo b/tests/nodes/greater_equal_u32_broadcast/input_1.cairo index 7adeb5092..960403d36 100644 --- a/tests/nodes/greater_equal_u32_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_equal_u32_broadcast/output_0.cairo b/tests/nodes/greater_equal_u32_broadcast/output_0.cairo index 371b24a67..d1b3a9aa7 100644 --- a/tests/nodes/greater_equal_u32_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_fp16x16.cairo b/tests/nodes/greater_fp16x16.cairo index 4a135b57e..9e6d726b1 100644 --- a/tests/nodes/greater_fp16x16.cairo +++ b/tests/nodes/greater_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_fp16x16/input_0.cairo b/tests/nodes/greater_fp16x16/input_0.cairo index be3745528..5fed1595c 100644 --- a/tests/nodes/greater_fp16x16/input_0.cairo +++ b/tests/nodes/greater_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp16x16/input_1.cairo b/tests/nodes/greater_fp16x16/input_1.cairo index ba362c7ff..6e1b3c77b 100644 --- a/tests/nodes/greater_fp16x16/input_1.cairo +++ b/tests/nodes/greater_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp16x16/output_0.cairo b/tests/nodes/greater_fp16x16/output_0.cairo index 5522fcf93..f7a0f835b 100644 --- a/tests/nodes/greater_fp16x16/output_0.cairo +++ b/tests/nodes/greater_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_fp16x16_broadcast.cairo b/tests/nodes/greater_fp16x16_broadcast.cairo index d284eb887..ff481e482 100644 --- a/tests/nodes/greater_fp16x16_broadcast.cairo +++ b/tests/nodes/greater_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_fp16x16_broadcast/input_0.cairo b/tests/nodes/greater_fp16x16_broadcast/input_0.cairo index 84cd4cc6f..e34a4bb96 100644 --- a/tests/nodes/greater_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/greater_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp16x16_broadcast/input_1.cairo b/tests/nodes/greater_fp16x16_broadcast/input_1.cairo index 703e60b55..7e4a95f0b 100644 --- a/tests/nodes/greater_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/greater_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp16x16_broadcast/output_0.cairo b/tests/nodes/greater_fp16x16_broadcast/output_0.cairo index 3883dcaf3..66356e88d 100644 --- a/tests/nodes/greater_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/greater_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_fp8x23.cairo b/tests/nodes/greater_fp8x23.cairo index 106015756..d67674cb4 100644 --- a/tests/nodes/greater_fp8x23.cairo +++ b/tests/nodes/greater_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_fp8x23/input_0.cairo b/tests/nodes/greater_fp8x23/input_0.cairo index cdc2ffa55..db84e47c5 100644 --- a/tests/nodes/greater_fp8x23/input_0.cairo +++ b/tests/nodes/greater_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp8x23/input_1.cairo b/tests/nodes/greater_fp8x23/input_1.cairo index 2cabadf42..a7005bd49 100644 --- a/tests/nodes/greater_fp8x23/input_1.cairo +++ b/tests/nodes/greater_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp8x23/output_0.cairo b/tests/nodes/greater_fp8x23/output_0.cairo index 0fef3557e..e8d3597bd 100644 --- a/tests/nodes/greater_fp8x23/output_0.cairo +++ b/tests/nodes/greater_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_fp8x23_broadcast.cairo b/tests/nodes/greater_fp8x23_broadcast.cairo index 07a2fac78..a2282273a 100644 --- a/tests/nodes/greater_fp8x23_broadcast.cairo +++ b/tests/nodes/greater_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_fp8x23_broadcast/input_0.cairo b/tests/nodes/greater_fp8x23_broadcast/input_0.cairo index ce227c211..730c36016 100644 --- a/tests/nodes/greater_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/greater_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp8x23_broadcast/input_1.cairo b/tests/nodes/greater_fp8x23_broadcast/input_1.cairo index fe5b08c6e..33263df32 100644 --- a/tests/nodes/greater_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/greater_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/greater_fp8x23_broadcast/output_0.cairo b/tests/nodes/greater_fp8x23_broadcast/output_0.cairo index 8c5c23655..5f2035f24 100644 --- a/tests/nodes/greater_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/greater_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_i32.cairo b/tests/nodes/greater_i32.cairo index e08d4c9aa..c0dac661d 100644 --- a/tests/nodes/greater_i32.cairo +++ b/tests/nodes/greater_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_i32/input_0.cairo b/tests/nodes/greater_i32/input_0.cairo index 62d69cd16..0fede5882 100644 --- a/tests/nodes/greater_i32/input_0.cairo +++ b/tests/nodes/greater_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_i32/input_1.cairo b/tests/nodes/greater_i32/input_1.cairo index bde2c1170..3b485ba6a 100644 --- a/tests/nodes/greater_i32/input_1.cairo +++ b/tests/nodes/greater_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_i32/output_0.cairo b/tests/nodes/greater_i32/output_0.cairo index f034a2dd2..fb7656dc0 100644 --- a/tests/nodes/greater_i32/output_0.cairo +++ b/tests/nodes/greater_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_i32_broadcast.cairo b/tests/nodes/greater_i32_broadcast.cairo index 1cd6dabe8..8df600802 100644 --- a/tests/nodes/greater_i32_broadcast.cairo +++ b/tests/nodes/greater_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_i32_broadcast/input_0.cairo b/tests/nodes/greater_i32_broadcast/input_0.cairo index b1191038c..6dafe7fed 100644 --- a/tests/nodes/greater_i32_broadcast/input_0.cairo +++ b/tests/nodes/greater_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_i32_broadcast/input_1.cairo b/tests/nodes/greater_i32_broadcast/input_1.cairo index 6090f81a5..902cae30d 100644 --- a/tests/nodes/greater_i32_broadcast/input_1.cairo +++ b/tests/nodes/greater_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/greater_i32_broadcast/output_0.cairo b/tests/nodes/greater_i32_broadcast/output_0.cairo index f90728ddd..5991fffde 100644 --- a/tests/nodes/greater_i32_broadcast/output_0.cairo +++ b/tests/nodes/greater_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_i8.cairo b/tests/nodes/greater_i8.cairo index a9ee7a2da..c6e6f53ec 100644 --- a/tests/nodes/greater_i8.cairo +++ b/tests/nodes/greater_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_i8/input_0.cairo b/tests/nodes/greater_i8/input_0.cairo index a3114de9f..8a8773b46 100644 --- a/tests/nodes/greater_i8/input_0.cairo +++ b/tests/nodes/greater_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_i8/input_1.cairo b/tests/nodes/greater_i8/input_1.cairo index 3485593d4..2f55ab836 100644 --- a/tests/nodes/greater_i8/input_1.cairo +++ b/tests/nodes/greater_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_i8/output_0.cairo b/tests/nodes/greater_i8/output_0.cairo index 33288bbc5..43460ce44 100644 --- a/tests/nodes/greater_i8/output_0.cairo +++ b/tests/nodes/greater_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_i8_broadcast.cairo b/tests/nodes/greater_i8_broadcast.cairo index d74cda921..f0ea676c8 100644 --- a/tests/nodes/greater_i8_broadcast.cairo +++ b/tests/nodes/greater_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_i8_broadcast/input_0.cairo b/tests/nodes/greater_i8_broadcast/input_0.cairo index 2a6168f69..3943d537c 100644 --- a/tests/nodes/greater_i8_broadcast/input_0.cairo +++ b/tests/nodes/greater_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_i8_broadcast/input_1.cairo b/tests/nodes/greater_i8_broadcast/input_1.cairo index 74d79049e..c51fea406 100644 --- a/tests/nodes/greater_i8_broadcast/input_1.cairo +++ b/tests/nodes/greater_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/greater_i8_broadcast/output_0.cairo b/tests/nodes/greater_i8_broadcast/output_0.cairo index f90728ddd..5991fffde 100644 --- a/tests/nodes/greater_i8_broadcast/output_0.cairo +++ b/tests/nodes/greater_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_u32.cairo b/tests/nodes/greater_u32.cairo index 723363b15..3f170092e 100644 --- a/tests/nodes/greater_u32.cairo +++ b/tests/nodes/greater_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_u32/input_0.cairo b/tests/nodes/greater_u32/input_0.cairo index a4f6767d4..fe30f5766 100644 --- a/tests/nodes/greater_u32/input_0.cairo +++ b/tests/nodes/greater_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_u32/input_1.cairo b/tests/nodes/greater_u32/input_1.cairo index 13956d2c4..1ee85b9d5 100644 --- a/tests/nodes/greater_u32/input_1.cairo +++ b/tests/nodes/greater_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_u32/output_0.cairo b/tests/nodes/greater_u32/output_0.cairo index 12919dfcc..9db256ca7 100644 --- a/tests/nodes/greater_u32/output_0.cairo +++ b/tests/nodes/greater_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_u32_broadcast.cairo b/tests/nodes/greater_u32_broadcast.cairo index 5fd8b1afe..3ab016018 100644 --- a/tests/nodes/greater_u32_broadcast.cairo +++ b/tests/nodes/greater_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/greater_u32_broadcast/input_0.cairo b/tests/nodes/greater_u32_broadcast/input_0.cairo index 975ce3490..a9d98723b 100644 --- a/tests/nodes/greater_u32_broadcast/input_0.cairo +++ b/tests/nodes/greater_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_u32_broadcast/input_1.cairo b/tests/nodes/greater_u32_broadcast/input_1.cairo index 30723d97d..331a82610 100644 --- a/tests/nodes/greater_u32_broadcast/input_1.cairo +++ b/tests/nodes/greater_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/greater_u32_broadcast/output_0.cairo b/tests/nodes/greater_u32_broadcast/output_0.cairo index 06bc44409..6a5b87888 100644 --- a/tests/nodes/greater_u32_broadcast/output_0.cairo +++ b/tests/nodes/greater_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo b/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo index 8e1fb9ea6..2a094e84c 100644 --- a/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo +++ b/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo b/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo index 6996b1089..b8a91a7bb 100644 --- a/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo +++ b/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo b/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo index 0a960f676..03b9af996 100644 --- a/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo +++ b/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo b/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo index 8ed6579a9..2deedd4b9 100644 --- a/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo +++ b/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/identity_fP16x16.cairo b/tests/nodes/identity_fP16x16.cairo index de9d9d4e0..448a029f5 100644 --- a/tests/nodes/identity_fP16x16.cairo +++ b/tests/nodes/identity_fP16x16.cairo @@ -1,7 +1,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/identity_fP16x16/input_0.cairo b/tests/nodes/identity_fP16x16/input_0.cairo index 8e56273f8..be028fbab 100644 --- a/tests/nodes/identity_fP16x16/input_0.cairo +++ b/tests/nodes/identity_fP16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/identity_fP16x16/output_0.cairo b/tests/nodes/identity_fP16x16/output_0.cairo index 939e2f43a..1cb9fc882 100644 --- a/tests/nodes/identity_fP16x16/output_0.cairo +++ b/tests/nodes/identity_fP16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/identity_fP8x23.cairo b/tests/nodes/identity_fP8x23.cairo index f11d32451..55fa92a01 100644 --- a/tests/nodes/identity_fP8x23.cairo +++ b/tests/nodes/identity_fP8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/identity_fP8x23/input_0.cairo b/tests/nodes/identity_fP8x23/input_0.cairo index 22d5aad06..19764c2d3 100644 --- a/tests/nodes/identity_fP8x23/input_0.cairo +++ b/tests/nodes/identity_fP8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/identity_fP8x23/output_0.cairo b/tests/nodes/identity_fP8x23/output_0.cairo index bc9b93c9d..c92690f6f 100644 --- a/tests/nodes/identity_fP8x23/output_0.cairo +++ b/tests/nodes/identity_fP8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/identity_i32.cairo b/tests/nodes/identity_i32.cairo index 8fac3e958..44396f29c 100644 --- a/tests/nodes/identity_i32.cairo +++ b/tests/nodes/identity_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/identity_i32/input_0.cairo b/tests/nodes/identity_i32/input_0.cairo index aba4d7eb5..c6da77722 100644 --- a/tests/nodes/identity_i32/input_0.cairo +++ b/tests/nodes/identity_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/identity_i32/output_0.cairo b/tests/nodes/identity_i32/output_0.cairo index 5a67e6f0a..3470023c2 100644 --- a/tests/nodes/identity_i32/output_0.cairo +++ b/tests/nodes/identity_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/identity_i8.cairo b/tests/nodes/identity_i8.cairo index e45de42a5..00584d028 100644 --- a/tests/nodes/identity_i8.cairo +++ b/tests/nodes/identity_i8.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/identity_i8/input_0.cairo b/tests/nodes/identity_i8/input_0.cairo index 9e149f16d..39f8f4878 100644 --- a/tests/nodes/identity_i8/input_0.cairo +++ b/tests/nodes/identity_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/identity_i8/output_0.cairo b/tests/nodes/identity_i8/output_0.cairo index 455aa03be..5da3d2515 100644 --- a/tests/nodes/identity_i8/output_0.cairo +++ b/tests/nodes/identity_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/identity_u32.cairo b/tests/nodes/identity_u32.cairo index 9ccbe538a..22a57dc1e 100644 --- a/tests/nodes/identity_u32.cairo +++ b/tests/nodes/identity_u32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/identity_u32/input_0.cairo b/tests/nodes/identity_u32/input_0.cairo index 4fbd16da0..6bd55636d 100644 --- a/tests/nodes/identity_u32/input_0.cairo +++ b/tests/nodes/identity_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/identity_u32/output_0.cairo b/tests/nodes/identity_u32/output_0.cairo index e8f0d2acd..d6c564a09 100644 --- a/tests/nodes/identity_u32/output_0.cairo +++ b/tests/nodes/identity_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/is_inf_fp16x16.cairo b/tests/nodes/is_inf_fp16x16.cairo index 10c0d82a5..14b40bc70 100644 --- a/tests/nodes/is_inf_fp16x16.cairo +++ b/tests/nodes/is_inf_fp16x16.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_inf_fp16x16/input_0.cairo b/tests/nodes/is_inf_fp16x16/input_0.cairo index 1914f1d8e..d186b795c 100644 --- a/tests/nodes/is_inf_fp16x16/input_0.cairo +++ b/tests/nodes/is_inf_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/is_inf_fp16x16/output_0.cairo b/tests/nodes/is_inf_fp16x16/output_0.cairo index c7e7851fe..059edbf71 100644 --- a/tests/nodes/is_inf_fp16x16/output_0.cairo +++ b/tests/nodes/is_inf_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_inf_fp8x23.cairo b/tests/nodes/is_inf_fp8x23.cairo index a471a6b5c..065bce555 100644 --- a/tests/nodes/is_inf_fp8x23.cairo +++ b/tests/nodes/is_inf_fp8x23.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_inf_fp8x23/input_0.cairo b/tests/nodes/is_inf_fp8x23/input_0.cairo index 652dcf3d8..68da15efd 100644 --- a/tests/nodes/is_inf_fp8x23/input_0.cairo +++ b/tests/nodes/is_inf_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/is_inf_fp8x23/output_0.cairo b/tests/nodes/is_inf_fp8x23/output_0.cairo index c7e7851fe..059edbf71 100644 --- a/tests/nodes/is_inf_fp8x23/output_0.cairo +++ b/tests/nodes/is_inf_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_inf_i32.cairo b/tests/nodes/is_inf_i32.cairo index be97cb7be..4fbda80b2 100644 --- a/tests/nodes/is_inf_i32.cairo +++ b/tests/nodes/is_inf_i32.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_inf_i32/input_0.cairo b/tests/nodes/is_inf_i32/input_0.cairo index 9ae5a9580..3fec998f5 100644 --- a/tests/nodes/is_inf_i32/input_0.cairo +++ b/tests/nodes/is_inf_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/is_inf_i32/output_0.cairo b/tests/nodes/is_inf_i32/output_0.cairo index c7e7851fe..059edbf71 100644 --- a/tests/nodes/is_inf_i32/output_0.cairo +++ b/tests/nodes/is_inf_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_inf_i8.cairo b/tests/nodes/is_inf_i8.cairo index dc606757d..7d665562c 100644 --- a/tests/nodes/is_inf_i8.cairo +++ b/tests/nodes/is_inf_i8.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/is_inf_i8/input_0.cairo b/tests/nodes/is_inf_i8/input_0.cairo index c476d38de..dfed54f82 100644 --- a/tests/nodes/is_inf_i8/input_0.cairo +++ b/tests/nodes/is_inf_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/is_inf_i8/output_0.cairo b/tests/nodes/is_inf_i8/output_0.cairo index c7e7851fe..059edbf71 100644 --- a/tests/nodes/is_inf_i8/output_0.cairo +++ b/tests/nodes/is_inf_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_inf_u32.cairo b/tests/nodes/is_inf_u32.cairo index 393146e9f..4fceb67ad 100644 --- a/tests/nodes/is_inf_u32.cairo +++ b/tests/nodes/is_inf_u32.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/is_inf_u32/input_0.cairo b/tests/nodes/is_inf_u32/input_0.cairo index d948a400f..ff38cb066 100644 --- a/tests/nodes/is_inf_u32/input_0.cairo +++ b/tests/nodes/is_inf_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::numbers::NumberTrait; diff --git a/tests/nodes/is_inf_u32/output_0.cairo b/tests/nodes/is_inf_u32/output_0.cairo index c7e7851fe..059edbf71 100644 --- a/tests/nodes/is_inf_u32/output_0.cairo +++ b/tests/nodes/is_inf_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_nan_fp16x16.cairo b/tests/nodes/is_nan_fp16x16.cairo index 41d7a734e..14f8269c1 100644 --- a/tests/nodes/is_nan_fp16x16.cairo +++ b/tests/nodes/is_nan_fp16x16.cairo @@ -7,7 +7,7 @@ use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::BoolTensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::BoolTensorPartialEq; #[test] diff --git a/tests/nodes/is_nan_fp16x16/input_0.cairo b/tests/nodes/is_nan_fp16x16/input_0.cairo index 9977494b7..b7ff36a92 100644 --- a/tests/nodes/is_nan_fp16x16/input_0.cairo +++ b/tests/nodes/is_nan_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/is_nan_fp16x16/output_0.cairo b/tests/nodes/is_nan_fp16x16/output_0.cairo index c7e7851fe..059edbf71 100644 --- a/tests/nodes/is_nan_fp16x16/output_0.cairo +++ b/tests/nodes/is_nan_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_nan_fp8x23.cairo b/tests/nodes/is_nan_fp8x23.cairo index 4d2e27882..bbfc883a9 100644 --- a/tests/nodes/is_nan_fp8x23.cairo +++ b/tests/nodes/is_nan_fp8x23.cairo @@ -6,7 +6,7 @@ use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::BoolTensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_nan_fp8x23/input_0.cairo b/tests/nodes/is_nan_fp8x23/input_0.cairo index 5f2b3a1cc..97c45ac8f 100644 --- a/tests/nodes/is_nan_fp8x23/input_0.cairo +++ b/tests/nodes/is_nan_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/is_nan_fp8x23/output_0.cairo b/tests/nodes/is_nan_fp8x23/output_0.cairo index c7e7851fe..059edbf71 100644 --- a/tests/nodes/is_nan_fp8x23/output_0.cairo +++ b/tests/nodes/is_nan_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_neg_inf_fp16x16.cairo b/tests/nodes/is_neg_inf_fp16x16.cairo index 85e7a0f24..d0096bf54 100644 --- a/tests/nodes/is_neg_inf_fp16x16.cairo +++ b/tests/nodes/is_neg_inf_fp16x16.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_neg_inf_fp16x16/input_0.cairo b/tests/nodes/is_neg_inf_fp16x16/input_0.cairo index e2039eee7..d575773d6 100644 --- a/tests/nodes/is_neg_inf_fp16x16/input_0.cairo +++ b/tests/nodes/is_neg_inf_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/is_neg_inf_fp16x16/output_0.cairo b/tests/nodes/is_neg_inf_fp16x16/output_0.cairo index 48bea29a2..0e3c52449 100644 --- a/tests/nodes/is_neg_inf_fp16x16/output_0.cairo +++ b/tests/nodes/is_neg_inf_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_neg_inf_fp8x23.cairo b/tests/nodes/is_neg_inf_fp8x23.cairo index eac5cb1a6..de6e66b23 100644 --- a/tests/nodes/is_neg_inf_fp8x23.cairo +++ b/tests/nodes/is_neg_inf_fp8x23.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_neg_inf_fp8x23/input_0.cairo b/tests/nodes/is_neg_inf_fp8x23/input_0.cairo index 7316601fb..b458676a1 100644 --- a/tests/nodes/is_neg_inf_fp8x23/input_0.cairo +++ b/tests/nodes/is_neg_inf_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/is_neg_inf_fp8x23/output_0.cairo b/tests/nodes/is_neg_inf_fp8x23/output_0.cairo index 48bea29a2..0e3c52449 100644 --- a/tests/nodes/is_neg_inf_fp8x23/output_0.cairo +++ b/tests/nodes/is_neg_inf_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_neg_inf_i32.cairo b/tests/nodes/is_neg_inf_i32.cairo index 9c01eeac2..91119510a 100644 --- a/tests/nodes/is_neg_inf_i32.cairo +++ b/tests/nodes/is_neg_inf_i32.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_neg_inf_i32/input_0.cairo b/tests/nodes/is_neg_inf_i32/input_0.cairo index 9ae5a9580..3fec998f5 100644 --- a/tests/nodes/is_neg_inf_i32/input_0.cairo +++ b/tests/nodes/is_neg_inf_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/is_neg_inf_i32/output_0.cairo b/tests/nodes/is_neg_inf_i32/output_0.cairo index 67513d0d6..08be59d64 100644 --- a/tests/nodes/is_neg_inf_i32/output_0.cairo +++ b/tests/nodes/is_neg_inf_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_neg_inf_i8.cairo b/tests/nodes/is_neg_inf_i8.cairo index 084b4a639..937f27d52 100644 --- a/tests/nodes/is_neg_inf_i8.cairo +++ b/tests/nodes/is_neg_inf_i8.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/is_neg_inf_i8/input_0.cairo b/tests/nodes/is_neg_inf_i8/input_0.cairo index c476d38de..dfed54f82 100644 --- a/tests/nodes/is_neg_inf_i8/input_0.cairo +++ b/tests/nodes/is_neg_inf_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/is_neg_inf_i8/output_0.cairo b/tests/nodes/is_neg_inf_i8/output_0.cairo index 67513d0d6..08be59d64 100644 --- a/tests/nodes/is_neg_inf_i8/output_0.cairo +++ b/tests/nodes/is_neg_inf_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_pos_inf_fp16x16.cairo b/tests/nodes/is_pos_inf_fp16x16.cairo index d5a9d43f0..aa3eb2e1b 100644 --- a/tests/nodes/is_pos_inf_fp16x16.cairo +++ b/tests/nodes/is_pos_inf_fp16x16.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_pos_inf_fp16x16/input_0.cairo b/tests/nodes/is_pos_inf_fp16x16/input_0.cairo index e2039eee7..d575773d6 100644 --- a/tests/nodes/is_pos_inf_fp16x16/input_0.cairo +++ b/tests/nodes/is_pos_inf_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/is_pos_inf_fp16x16/output_0.cairo b/tests/nodes/is_pos_inf_fp16x16/output_0.cairo index 67513d0d6..08be59d64 100644 --- a/tests/nodes/is_pos_inf_fp16x16/output_0.cairo +++ b/tests/nodes/is_pos_inf_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_pos_inf_fp8x23.cairo b/tests/nodes/is_pos_inf_fp8x23.cairo index a1b6888bb..43fa59e37 100644 --- a/tests/nodes/is_pos_inf_fp8x23.cairo +++ b/tests/nodes/is_pos_inf_fp8x23.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_pos_inf_fp8x23/input_0.cairo b/tests/nodes/is_pos_inf_fp8x23/input_0.cairo index 7316601fb..b458676a1 100644 --- a/tests/nodes/is_pos_inf_fp8x23/input_0.cairo +++ b/tests/nodes/is_pos_inf_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/is_pos_inf_fp8x23/output_0.cairo b/tests/nodes/is_pos_inf_fp8x23/output_0.cairo index 67513d0d6..08be59d64 100644 --- a/tests/nodes/is_pos_inf_fp8x23/output_0.cairo +++ b/tests/nodes/is_pos_inf_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_pos_inf_i32.cairo b/tests/nodes/is_pos_inf_i32.cairo index 819472be1..ab388b941 100644 --- a/tests/nodes/is_pos_inf_i32.cairo +++ b/tests/nodes/is_pos_inf_i32.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/is_pos_inf_i32/input_0.cairo b/tests/nodes/is_pos_inf_i32/input_0.cairo index 9ae5a9580..3fec998f5 100644 --- a/tests/nodes/is_pos_inf_i32/input_0.cairo +++ b/tests/nodes/is_pos_inf_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/is_pos_inf_i32/output_0.cairo b/tests/nodes/is_pos_inf_i32/output_0.cairo index 48bea29a2..0e3c52449 100644 --- a/tests/nodes/is_pos_inf_i32/output_0.cairo +++ b/tests/nodes/is_pos_inf_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/is_pos_inf_i8.cairo b/tests/nodes/is_pos_inf_i8.cairo index 74612f181..552ced787 100644 --- a/tests/nodes/is_pos_inf_i8.cairo +++ b/tests/nodes/is_pos_inf_i8.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/is_pos_inf_i8/input_0.cairo b/tests/nodes/is_pos_inf_i8/input_0.cairo index c476d38de..dfed54f82 100644 --- a/tests/nodes/is_pos_inf_i8/input_0.cairo +++ b/tests/nodes/is_pos_inf_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/is_pos_inf_i8/output_0.cairo b/tests/nodes/is_pos_inf_i8/output_0.cairo index 48bea29a2..0e3c52449 100644 --- a/tests/nodes/is_pos_inf_i8/output_0.cairo +++ b/tests/nodes/is_pos_inf_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/leaky_relu_fp16x16/input_0.cairo b/tests/nodes/leaky_relu_fp16x16/input_0.cairo index 9bc4fe1f4..df9cc6b05 100644 --- a/tests/nodes/leaky_relu_fp16x16/input_0.cairo +++ b/tests/nodes/leaky_relu_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/leaky_relu_fp16x16/output_0.cairo b/tests/nodes/leaky_relu_fp16x16/output_0.cairo index 523ccaca4..08a7a8249 100644 --- a/tests/nodes/leaky_relu_fp16x16/output_0.cairo +++ b/tests/nodes/leaky_relu_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/leaky_relu_fp8x23/input_0.cairo b/tests/nodes/leaky_relu_fp8x23/input_0.cairo index 8c2a717fc..2daf30233 100644 --- a/tests/nodes/leaky_relu_fp8x23/input_0.cairo +++ b/tests/nodes/leaky_relu_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/leaky_relu_fp8x23/output_0.cairo b/tests/nodes/leaky_relu_fp8x23/output_0.cairo index 4f15ee950..138290006 100644 --- a/tests/nodes/leaky_relu_fp8x23/output_0.cairo +++ b/tests/nodes/leaky_relu_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp16x16.cairo b/tests/nodes/less_equal_fp16x16.cairo index 7b8c9b58b..01dd44c74 100644 --- a/tests/nodes/less_equal_fp16x16.cairo +++ b/tests/nodes/less_equal_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_fp16x16/input_0.cairo b/tests/nodes/less_equal_fp16x16/input_0.cairo index 32b87b312..90e4b909f 100644 --- a/tests/nodes/less_equal_fp16x16/input_0.cairo +++ b/tests/nodes/less_equal_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp16x16/input_1.cairo b/tests/nodes/less_equal_fp16x16/input_1.cairo index 805adb161..0a40b9159 100644 --- a/tests/nodes/less_equal_fp16x16/input_1.cairo +++ b/tests/nodes/less_equal_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp16x16/output_0.cairo b/tests/nodes/less_equal_fp16x16/output_0.cairo index 74b0be527..6bcb5ce4a 100644 --- a/tests/nodes/less_equal_fp16x16/output_0.cairo +++ b/tests/nodes/less_equal_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_fp16x16_broadcast.cairo b/tests/nodes/less_equal_fp16x16_broadcast.cairo index 52dc922a8..4cc567d85 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo b/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo index 70f960fa5..04ca1a696 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo b/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo index 4c0902ce1..ffd9b9389 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo b/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo index 74b0be527..6bcb5ce4a 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_fp8x23.cairo b/tests/nodes/less_equal_fp8x23.cairo index 4a6966022..ddb34f50b 100644 --- a/tests/nodes/less_equal_fp8x23.cairo +++ b/tests/nodes/less_equal_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_fp8x23/input_0.cairo b/tests/nodes/less_equal_fp8x23/input_0.cairo index a27293e98..0893c087b 100644 --- a/tests/nodes/less_equal_fp8x23/input_0.cairo +++ b/tests/nodes/less_equal_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp8x23/input_1.cairo b/tests/nodes/less_equal_fp8x23/input_1.cairo index 4c6072339..bc0b0ffac 100644 --- a/tests/nodes/less_equal_fp8x23/input_1.cairo +++ b/tests/nodes/less_equal_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp8x23/output_0.cairo b/tests/nodes/less_equal_fp8x23/output_0.cairo index f90728ddd..5991fffde 100644 --- a/tests/nodes/less_equal_fp8x23/output_0.cairo +++ b/tests/nodes/less_equal_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_fp8x23_broadcast.cairo b/tests/nodes/less_equal_fp8x23_broadcast.cairo index 6d99de218..3262dc089 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo b/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo index 7c11cf109..4e6aa0fe6 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo b/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo index 3941d2b7e..f8a80f8f8 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo b/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo index 535094c96..226ba2d48 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_i32.cairo b/tests/nodes/less_equal_i32.cairo index da5f73eee..bafb26070 100644 --- a/tests/nodes/less_equal_i32.cairo +++ b/tests/nodes/less_equal_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_i32/input_0.cairo b/tests/nodes/less_equal_i32/input_0.cairo index 034309af2..3f46b1b05 100644 --- a/tests/nodes/less_equal_i32/input_0.cairo +++ b/tests/nodes/less_equal_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_equal_i32/input_1.cairo b/tests/nodes/less_equal_i32/input_1.cairo index 09ca9bce9..429120ed2 100644 --- a/tests/nodes/less_equal_i32/input_1.cairo +++ b/tests/nodes/less_equal_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_equal_i32/output_0.cairo b/tests/nodes/less_equal_i32/output_0.cairo index 06bc44409..6a5b87888 100644 --- a/tests/nodes/less_equal_i32/output_0.cairo +++ b/tests/nodes/less_equal_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_i32_broadcast.cairo b/tests/nodes/less_equal_i32_broadcast.cairo index b8cc8e615..69c4edd7f 100644 --- a/tests/nodes/less_equal_i32_broadcast.cairo +++ b/tests/nodes/less_equal_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_i32_broadcast/input_0.cairo b/tests/nodes/less_equal_i32_broadcast/input_0.cairo index 31da809c0..d5c2fe6d9 100644 --- a/tests/nodes/less_equal_i32_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_equal_i32_broadcast/input_1.cairo b/tests/nodes/less_equal_i32_broadcast/input_1.cairo index 530c67900..42212b3d2 100644 --- a/tests/nodes/less_equal_i32_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_equal_i32_broadcast/output_0.cairo b/tests/nodes/less_equal_i32_broadcast/output_0.cairo index d55f2d106..938538d87 100644 --- a/tests/nodes/less_equal_i32_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_i8.cairo b/tests/nodes/less_equal_i8.cairo index 45999f669..829ef26c3 100644 --- a/tests/nodes/less_equal_i8.cairo +++ b/tests/nodes/less_equal_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_i8/input_0.cairo b/tests/nodes/less_equal_i8/input_0.cairo index 6b8e4d6a1..32fd5cd0e 100644 --- a/tests/nodes/less_equal_i8/input_0.cairo +++ b/tests/nodes/less_equal_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_equal_i8/input_1.cairo b/tests/nodes/less_equal_i8/input_1.cairo index 11f72cb60..42cb662c2 100644 --- a/tests/nodes/less_equal_i8/input_1.cairo +++ b/tests/nodes/less_equal_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_equal_i8/output_0.cairo b/tests/nodes/less_equal_i8/output_0.cairo index 12e081541..eb0deaedb 100644 --- a/tests/nodes/less_equal_i8/output_0.cairo +++ b/tests/nodes/less_equal_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_i8_broadcast.cairo b/tests/nodes/less_equal_i8_broadcast.cairo index 99724cfd1..ba6bee9e1 100644 --- a/tests/nodes/less_equal_i8_broadcast.cairo +++ b/tests/nodes/less_equal_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_i8_broadcast/input_0.cairo b/tests/nodes/less_equal_i8_broadcast/input_0.cairo index 0d81edc01..ccd3e624f 100644 --- a/tests/nodes/less_equal_i8_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_equal_i8_broadcast/input_1.cairo b/tests/nodes/less_equal_i8_broadcast/input_1.cairo index b8bf8f918..3c2300f86 100644 --- a/tests/nodes/less_equal_i8_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_equal_i8_broadcast/output_0.cairo b/tests/nodes/less_equal_i8_broadcast/output_0.cairo index f7205c752..e9d17d59b 100644 --- a/tests/nodes/less_equal_i8_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_u32.cairo b/tests/nodes/less_equal_u32.cairo index ec0c10f40..57f6be4fe 100644 --- a/tests/nodes/less_equal_u32.cairo +++ b/tests/nodes/less_equal_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_u32/input_0.cairo b/tests/nodes/less_equal_u32/input_0.cairo index 55505b0b3..c7ae27243 100644 --- a/tests/nodes/less_equal_u32/input_0.cairo +++ b/tests/nodes/less_equal_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_u32/input_1.cairo b/tests/nodes/less_equal_u32/input_1.cairo index 015a54c09..2632540eb 100644 --- a/tests/nodes/less_equal_u32/input_1.cairo +++ b/tests/nodes/less_equal_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_u32/output_0.cairo b/tests/nodes/less_equal_u32/output_0.cairo index 74b0be527..6bcb5ce4a 100644 --- a/tests/nodes/less_equal_u32/output_0.cairo +++ b/tests/nodes/less_equal_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_u32_broadcast.cairo b/tests/nodes/less_equal_u32_broadcast.cairo index bdc59aef8..b9186607d 100644 --- a/tests/nodes/less_equal_u32_broadcast.cairo +++ b/tests/nodes/less_equal_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_equal_u32_broadcast/input_0.cairo b/tests/nodes/less_equal_u32_broadcast/input_0.cairo index c2a882191..60ef951e2 100644 --- a/tests/nodes/less_equal_u32_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_u32_broadcast/input_1.cairo b/tests/nodes/less_equal_u32_broadcast/input_1.cairo index a9492141d..56ffa8a3e 100644 --- a/tests/nodes/less_equal_u32_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_equal_u32_broadcast/output_0.cairo b/tests/nodes/less_equal_u32_broadcast/output_0.cairo index 535094c96..226ba2d48 100644 --- a/tests/nodes/less_equal_u32_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_fp16x16.cairo b/tests/nodes/less_fp16x16.cairo index 0edcbd8de..e6262a01a 100644 --- a/tests/nodes/less_fp16x16.cairo +++ b/tests/nodes/less_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_fp16x16/input_0.cairo b/tests/nodes/less_fp16x16/input_0.cairo index 6c6853f87..0cb8927fe 100644 --- a/tests/nodes/less_fp16x16/input_0.cairo +++ b/tests/nodes/less_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp16x16/input_1.cairo b/tests/nodes/less_fp16x16/input_1.cairo index ae78e76d8..7d3e6fd4a 100644 --- a/tests/nodes/less_fp16x16/input_1.cairo +++ b/tests/nodes/less_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp16x16/output_0.cairo b/tests/nodes/less_fp16x16/output_0.cairo index 4cf7fdaf4..c9c25288a 100644 --- a/tests/nodes/less_fp16x16/output_0.cairo +++ b/tests/nodes/less_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_fp16x16_broadcast.cairo b/tests/nodes/less_fp16x16_broadcast.cairo index 5aef5ae31..e605c84df 100644 --- a/tests/nodes/less_fp16x16_broadcast.cairo +++ b/tests/nodes/less_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_fp16x16_broadcast/input_0.cairo b/tests/nodes/less_fp16x16_broadcast/input_0.cairo index 921d55da9..0f16faa9f 100644 --- a/tests/nodes/less_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/less_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp16x16_broadcast/input_1.cairo b/tests/nodes/less_fp16x16_broadcast/input_1.cairo index b4ef5e730..07b1ed014 100644 --- a/tests/nodes/less_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/less_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp16x16_broadcast/output_0.cairo b/tests/nodes/less_fp16x16_broadcast/output_0.cairo index 847a9308a..ee02d6d22 100644 --- a/tests/nodes/less_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/less_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_fp8x23.cairo b/tests/nodes/less_fp8x23.cairo index e5a9a9e62..d8c9a1add 100644 --- a/tests/nodes/less_fp8x23.cairo +++ b/tests/nodes/less_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_fp8x23/input_0.cairo b/tests/nodes/less_fp8x23/input_0.cairo index 5c68eb00d..f3777b615 100644 --- a/tests/nodes/less_fp8x23/input_0.cairo +++ b/tests/nodes/less_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp8x23/input_1.cairo b/tests/nodes/less_fp8x23/input_1.cairo index 207baedae..9624d1e8f 100644 --- a/tests/nodes/less_fp8x23/input_1.cairo +++ b/tests/nodes/less_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp8x23/output_0.cairo b/tests/nodes/less_fp8x23/output_0.cairo index e3ed97495..61ee608d5 100644 --- a/tests/nodes/less_fp8x23/output_0.cairo +++ b/tests/nodes/less_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_fp8x23_broadcast.cairo b/tests/nodes/less_fp8x23_broadcast.cairo index 097530e9f..ad408c4e1 100644 --- a/tests/nodes/less_fp8x23_broadcast.cairo +++ b/tests/nodes/less_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_fp8x23_broadcast/input_0.cairo b/tests/nodes/less_fp8x23_broadcast/input_0.cairo index b51640484..abaa6d523 100644 --- a/tests/nodes/less_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/less_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp8x23_broadcast/input_1.cairo b/tests/nodes/less_fp8x23_broadcast/input_1.cairo index 19b66bd3b..c13dc39dd 100644 --- a/tests/nodes/less_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/less_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/less_fp8x23_broadcast/output_0.cairo b/tests/nodes/less_fp8x23_broadcast/output_0.cairo index 0e577bd30..766a8a4e2 100644 --- a/tests/nodes/less_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/less_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_i32.cairo b/tests/nodes/less_i32.cairo index eccae6505..c73bdb338 100644 --- a/tests/nodes/less_i32.cairo +++ b/tests/nodes/less_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_i32/input_0.cairo b/tests/nodes/less_i32/input_0.cairo index 3f6fd027c..ce1333168 100644 --- a/tests/nodes/less_i32/input_0.cairo +++ b/tests/nodes/less_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_i32/input_1.cairo b/tests/nodes/less_i32/input_1.cairo index b42a5faa8..4644f8747 100644 --- a/tests/nodes/less_i32/input_1.cairo +++ b/tests/nodes/less_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_i32/output_0.cairo b/tests/nodes/less_i32/output_0.cairo index 3bd0ddde1..6e419643b 100644 --- a/tests/nodes/less_i32/output_0.cairo +++ b/tests/nodes/less_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_i32_broadcast.cairo b/tests/nodes/less_i32_broadcast.cairo index b6b6cce40..3c4dc9f84 100644 --- a/tests/nodes/less_i32_broadcast.cairo +++ b/tests/nodes/less_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_i32_broadcast/input_0.cairo b/tests/nodes/less_i32_broadcast/input_0.cairo index c01fe35ab..bdc05d398 100644 --- a/tests/nodes/less_i32_broadcast/input_0.cairo +++ b/tests/nodes/less_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_i32_broadcast/input_1.cairo b/tests/nodes/less_i32_broadcast/input_1.cairo index 2651a1512..8ef33a862 100644 --- a/tests/nodes/less_i32_broadcast/input_1.cairo +++ b/tests/nodes/less_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/less_i32_broadcast/output_0.cairo b/tests/nodes/less_i32_broadcast/output_0.cairo index ed75d30e7..d46252adb 100644 --- a/tests/nodes/less_i32_broadcast/output_0.cairo +++ b/tests/nodes/less_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_i8.cairo b/tests/nodes/less_i8.cairo index 59792e26a..29b72afdd 100644 --- a/tests/nodes/less_i8.cairo +++ b/tests/nodes/less_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_i8/input_0.cairo b/tests/nodes/less_i8/input_0.cairo index de5dd5310..66c5d7d25 100644 --- a/tests/nodes/less_i8/input_0.cairo +++ b/tests/nodes/less_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_i8/input_1.cairo b/tests/nodes/less_i8/input_1.cairo index 698254861..2bc709b4f 100644 --- a/tests/nodes/less_i8/input_1.cairo +++ b/tests/nodes/less_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_i8/output_0.cairo b/tests/nodes/less_i8/output_0.cairo index e66771058..d212fd030 100644 --- a/tests/nodes/less_i8/output_0.cairo +++ b/tests/nodes/less_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_i8_broadcast.cairo b/tests/nodes/less_i8_broadcast.cairo index 1bcf31241..2dfae5b8d 100644 --- a/tests/nodes/less_i8_broadcast.cairo +++ b/tests/nodes/less_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_i8_broadcast/input_0.cairo b/tests/nodes/less_i8_broadcast/input_0.cairo index 5ba4f0c2b..9c74f07f9 100644 --- a/tests/nodes/less_i8_broadcast/input_0.cairo +++ b/tests/nodes/less_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_i8_broadcast/input_1.cairo b/tests/nodes/less_i8_broadcast/input_1.cairo index 175ba5e9d..2d8e6c2ac 100644 --- a/tests/nodes/less_i8_broadcast/input_1.cairo +++ b/tests/nodes/less_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/less_i8_broadcast/output_0.cairo b/tests/nodes/less_i8_broadcast/output_0.cairo index cf20134aa..1634319a2 100644 --- a/tests/nodes/less_i8_broadcast/output_0.cairo +++ b/tests/nodes/less_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_u32.cairo b/tests/nodes/less_u32.cairo index b5711c23b..7421b5252 100644 --- a/tests/nodes/less_u32.cairo +++ b/tests/nodes/less_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_u32/input_0.cairo b/tests/nodes/less_u32/input_0.cairo index 65cbc113d..6104d8e2e 100644 --- a/tests/nodes/less_u32/input_0.cairo +++ b/tests/nodes/less_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_u32/input_1.cairo b/tests/nodes/less_u32/input_1.cairo index 9b2c5a638..0f0b6823d 100644 --- a/tests/nodes/less_u32/input_1.cairo +++ b/tests/nodes/less_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_u32/output_0.cairo b/tests/nodes/less_u32/output_0.cairo index 506d8004e..b0e256d44 100644 --- a/tests/nodes/less_u32/output_0.cairo +++ b/tests/nodes/less_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_u32_broadcast.cairo b/tests/nodes/less_u32_broadcast.cairo index 81d27dd50..7154a5420 100644 --- a/tests/nodes/less_u32_broadcast.cairo +++ b/tests/nodes/less_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/less_u32_broadcast/input_0.cairo b/tests/nodes/less_u32_broadcast/input_0.cairo index 8d71ec9ea..2c5da0ac6 100644 --- a/tests/nodes/less_u32_broadcast/input_0.cairo +++ b/tests/nodes/less_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_u32_broadcast/input_1.cairo b/tests/nodes/less_u32_broadcast/input_1.cairo index 2b8231622..f49c5cd0f 100644 --- a/tests/nodes/less_u32_broadcast/input_1.cairo +++ b/tests/nodes/less_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/less_u32_broadcast/output_0.cairo b/tests/nodes/less_u32_broadcast/output_0.cairo index a2eedcfbc..7c34ff09d 100644 --- a/tests/nodes/less_u32_broadcast/output_0.cairo +++ b/tests/nodes/less_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/linear_fp16x16/input_0.cairo b/tests/nodes/linear_fp16x16/input_0.cairo index 9980c067f..5533c3513 100644 --- a/tests/nodes/linear_fp16x16/input_0.cairo +++ b/tests/nodes/linear_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_fp16x16/input_1.cairo b/tests/nodes/linear_fp16x16/input_1.cairo index 02a48a191..d18d10575 100644 --- a/tests/nodes/linear_fp16x16/input_1.cairo +++ b/tests/nodes/linear_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_fp16x16/input_2.cairo b/tests/nodes/linear_fp16x16/input_2.cairo index 0673e9b62..b25e7df95 100644 --- a/tests/nodes/linear_fp16x16/input_2.cairo +++ b/tests/nodes/linear_fp16x16/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_fp16x16/output_0.cairo b/tests/nodes/linear_fp16x16/output_0.cairo index 5bd369560..b2d46e903 100644 --- a/tests/nodes/linear_fp16x16/output_0.cairo +++ b/tests/nodes/linear_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_fp8x23/input_0.cairo b/tests/nodes/linear_fp8x23/input_0.cairo index 83327cb97..a68c9965f 100644 --- a/tests/nodes/linear_fp8x23/input_0.cairo +++ b/tests/nodes/linear_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_fp8x23/input_1.cairo b/tests/nodes/linear_fp8x23/input_1.cairo index 4d3d386aa..ca5ac8c52 100644 --- a/tests/nodes/linear_fp8x23/input_1.cairo +++ b/tests/nodes/linear_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_fp8x23/input_2.cairo b/tests/nodes/linear_fp8x23/input_2.cairo index 715c23192..a2bc072da 100644 --- a/tests/nodes/linear_fp8x23/input_2.cairo +++ b/tests/nodes/linear_fp8x23/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_fp8x23/output_0.cairo b/tests/nodes/linear_fp8x23/output_0.cairo index 11d1b975f..2211e90af 100644 --- a/tests/nodes/linear_fp8x23/output_0.cairo +++ b/tests/nodes/linear_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/linear_i32/input_0.cairo b/tests/nodes/linear_i32/input_0.cairo index d69faf014..2d264809a 100644 --- a/tests/nodes/linear_i32/input_0.cairo +++ b/tests/nodes/linear_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/linear_i32/input_1.cairo b/tests/nodes/linear_i32/input_1.cairo index 0f3161300..d1d66fc4f 100644 --- a/tests/nodes/linear_i32/input_1.cairo +++ b/tests/nodes/linear_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/linear_i32/input_2.cairo b/tests/nodes/linear_i32/input_2.cairo index 0a2d44783..861e5f245 100644 --- a/tests/nodes/linear_i32/input_2.cairo +++ b/tests/nodes/linear_i32/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/linear_i32/output_0.cairo b/tests/nodes/linear_i32/output_0.cairo index 5bcfacd60..1575672d1 100644 --- a/tests/nodes/linear_i32/output_0.cairo +++ b/tests/nodes/linear_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/linear_i8/input_0.cairo b/tests/nodes/linear_i8/input_0.cairo index cb26f1af3..0db917d17 100644 --- a/tests/nodes/linear_i8/input_0.cairo +++ b/tests/nodes/linear_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/linear_i8/input_1.cairo b/tests/nodes/linear_i8/input_1.cairo index abc06291b..d79fb3b74 100644 --- a/tests/nodes/linear_i8/input_1.cairo +++ b/tests/nodes/linear_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/linear_i8/input_2.cairo b/tests/nodes/linear_i8/input_2.cairo index eb5f46f61..77ee2f571 100644 --- a/tests/nodes/linear_i8/input_2.cairo +++ b/tests/nodes/linear_i8/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/linear_i8/output_0.cairo b/tests/nodes/linear_i8/output_0.cairo index 6ce42bd33..fc3374e64 100644 --- a/tests/nodes/linear_i8/output_0.cairo +++ b/tests/nodes/linear_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/linear_u32/input_0.cairo b/tests/nodes/linear_u32/input_0.cairo index ae93fe1a7..7db1bbbe0 100644 --- a/tests/nodes/linear_u32/input_0.cairo +++ b/tests/nodes/linear_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/linear_u32/input_1.cairo b/tests/nodes/linear_u32/input_1.cairo index 3fe0e5236..6a84bb9f3 100644 --- a/tests/nodes/linear_u32/input_1.cairo +++ b/tests/nodes/linear_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/linear_u32/input_2.cairo b/tests/nodes/linear_u32/input_2.cairo index 91cecfbe9..6a2177e75 100644 --- a/tests/nodes/linear_u32/input_2.cairo +++ b/tests/nodes/linear_u32/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/linear_u32/output_0.cairo b/tests/nodes/linear_u32/output_0.cairo index 4e9c50429..4c5134a8e 100644 --- a/tests/nodes/linear_u32/output_0.cairo +++ b/tests/nodes/linear_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/log_fp16x16.cairo b/tests/nodes/log_fp16x16.cairo index 250bb2d4a..c44a3f057 100644 --- a/tests/nodes/log_fp16x16.cairo +++ b/tests/nodes/log_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/log_fp16x16/input_0.cairo b/tests/nodes/log_fp16x16/input_0.cairo index b3e12cc61..2383c9a1b 100644 --- a/tests/nodes/log_fp16x16/input_0.cairo +++ b/tests/nodes/log_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/log_fp16x16/output_0.cairo b/tests/nodes/log_fp16x16/output_0.cairo index 587223a05..371e3a7c9 100644 --- a/tests/nodes/log_fp16x16/output_0.cairo +++ b/tests/nodes/log_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/log_fp8x23.cairo b/tests/nodes/log_fp8x23.cairo index 4741d076e..929d6bd6b 100644 --- a/tests/nodes/log_fp8x23.cairo +++ b/tests/nodes/log_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/log_fp8x23/input_0.cairo b/tests/nodes/log_fp8x23/input_0.cairo index 36fbd6a65..cb7acfe75 100644 --- a/tests/nodes/log_fp8x23/input_0.cairo +++ b/tests/nodes/log_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/log_fp8x23/output_0.cairo b/tests/nodes/log_fp8x23/output_0.cairo index 41d145e22..0a850c105 100644 --- a/tests/nodes/log_fp8x23/output_0.cairo +++ b/tests/nodes/log_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo index 59abda2dd..95d243629 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo index eb50ecd0d..b94ea8b48 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo index 9f38a5117..750cf9f0f 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo index e51562484..2a1abf33b 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo index 230d3d20b..0cb3f524b 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo index 35341d9f1..ecea2a496 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo index 7e5495d75..e500d0f30 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo index 627f79b57..c17cd7403 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_1d.cairo b/tests/nodes/matmul_fp16x16_1d.cairo index 84d98b800..2aaa7425e 100644 --- a/tests/nodes/matmul_fp16x16_1d.cairo +++ b/tests/nodes/matmul_fp16x16_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/matmul_fp16x16_1d/input_0.cairo b/tests/nodes/matmul_fp16x16_1d/input_0.cairo index b88a235ed..308e2fc18 100644 --- a/tests/nodes/matmul_fp16x16_1d/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_1d/input_1.cairo b/tests/nodes/matmul_fp16x16_1d/input_1.cairo index 5541cb270..d73613662 100644 --- a/tests/nodes/matmul_fp16x16_1d/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_1d/output_0.cairo b/tests/nodes/matmul_fp16x16_1d/output_0.cairo index 19eac54bc..e6161d2f3 100644 --- a/tests/nodes/matmul_fp16x16_1d/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_1x2.cairo b/tests/nodes/matmul_fp16x16_1x2.cairo index 769d55c3a..a018242cd 100644 --- a/tests/nodes/matmul_fp16x16_1x2.cairo +++ b/tests/nodes/matmul_fp16x16_1x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/matmul_fp16x16_1x2/input_0.cairo b/tests/nodes/matmul_fp16x16_1x2/input_0.cairo index f6e05d32e..56451ce73 100644 --- a/tests/nodes/matmul_fp16x16_1x2/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_1x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_1x2/input_1.cairo b/tests/nodes/matmul_fp16x16_1x2/input_1.cairo index edc3c99c5..8866c3fe4 100644 --- a/tests/nodes/matmul_fp16x16_1x2/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_1x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_1x2/output_0.cairo b/tests/nodes/matmul_fp16x16_1x2/output_0.cairo index ea10612ab..bb16c27aa 100644 --- a/tests/nodes/matmul_fp16x16_1x2/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_1x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_2x1.cairo b/tests/nodes/matmul_fp16x16_2x1.cairo index 063513aa1..54924d306 100644 --- a/tests/nodes/matmul_fp16x16_2x1.cairo +++ b/tests/nodes/matmul_fp16x16_2x1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/matmul_fp16x16_2x1/input_0.cairo b/tests/nodes/matmul_fp16x16_2x1/input_0.cairo index c5384de14..8f6c1e425 100644 --- a/tests/nodes/matmul_fp16x16_2x1/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_2x1/input_1.cairo b/tests/nodes/matmul_fp16x16_2x1/input_1.cairo index a42963339..0e2b28d46 100644 --- a/tests/nodes/matmul_fp16x16_2x1/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_2x1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_2x1/output_0.cairo b/tests/nodes/matmul_fp16x16_2x1/output_0.cairo index 727023f5b..eb180786a 100644 --- a/tests/nodes/matmul_fp16x16_2x1/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_2x2.cairo b/tests/nodes/matmul_fp16x16_2x2.cairo index bf7efa158..5d9ad3bee 100644 --- a/tests/nodes/matmul_fp16x16_2x2.cairo +++ b/tests/nodes/matmul_fp16x16_2x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/matmul_fp16x16_2x2/input_0.cairo b/tests/nodes/matmul_fp16x16_2x2/input_0.cairo index 1c2314275..622cae9d8 100644 --- a/tests/nodes/matmul_fp16x16_2x2/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_2x2/input_1.cairo b/tests/nodes/matmul_fp16x16_2x2/input_1.cairo index 016e8584f..73dee7735 100644 --- a/tests/nodes/matmul_fp16x16_2x2/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_2x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp16x16_2x2/output_0.cairo b/tests/nodes/matmul_fp16x16_2x2/output_0.cairo index f401507cd..65342c3e7 100644 --- a/tests/nodes/matmul_fp16x16_2x2/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_1d.cairo b/tests/nodes/matmul_fp8x23_1d.cairo index e986a7bcf..4e70adfa2 100644 --- a/tests/nodes/matmul_fp8x23_1d.cairo +++ b/tests/nodes/matmul_fp8x23_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/matmul_fp8x23_1d/input_0.cairo b/tests/nodes/matmul_fp8x23_1d/input_0.cairo index dc9948e27..e3c2f2751 100644 --- a/tests/nodes/matmul_fp8x23_1d/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_1d/input_1.cairo b/tests/nodes/matmul_fp8x23_1d/input_1.cairo index e0169aa84..8fdf2b933 100644 --- a/tests/nodes/matmul_fp8x23_1d/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_1d/output_0.cairo b/tests/nodes/matmul_fp8x23_1d/output_0.cairo index 4e612736a..13ebba401 100644 --- a/tests/nodes/matmul_fp8x23_1d/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_1x2.cairo b/tests/nodes/matmul_fp8x23_1x2.cairo index 5dc9961dd..0bc4e3296 100644 --- a/tests/nodes/matmul_fp8x23_1x2.cairo +++ b/tests/nodes/matmul_fp8x23_1x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/matmul_fp8x23_1x2/input_0.cairo b/tests/nodes/matmul_fp8x23_1x2/input_0.cairo index 53852bd0e..ee3117c1d 100644 --- a/tests/nodes/matmul_fp8x23_1x2/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_1x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_1x2/input_1.cairo b/tests/nodes/matmul_fp8x23_1x2/input_1.cairo index 5498a3bb4..afbfcc62b 100644 --- a/tests/nodes/matmul_fp8x23_1x2/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_1x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_1x2/output_0.cairo b/tests/nodes/matmul_fp8x23_1x2/output_0.cairo index 3475ef906..573b1d12b 100644 --- a/tests/nodes/matmul_fp8x23_1x2/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_1x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_2x1.cairo b/tests/nodes/matmul_fp8x23_2x1.cairo index 3814c503f..a770c3daf 100644 --- a/tests/nodes/matmul_fp8x23_2x1.cairo +++ b/tests/nodes/matmul_fp8x23_2x1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/matmul_fp8x23_2x1/input_0.cairo b/tests/nodes/matmul_fp8x23_2x1/input_0.cairo index 2544b7ba6..1f4b836bf 100644 --- a/tests/nodes/matmul_fp8x23_2x1/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_2x1/input_1.cairo b/tests/nodes/matmul_fp8x23_2x1/input_1.cairo index 7804b40fe..1976cc3ab 100644 --- a/tests/nodes/matmul_fp8x23_2x1/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_2x1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_2x1/output_0.cairo b/tests/nodes/matmul_fp8x23_2x1/output_0.cairo index e06a8dfc9..d61218aa8 100644 --- a/tests/nodes/matmul_fp8x23_2x1/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_2x2.cairo b/tests/nodes/matmul_fp8x23_2x2.cairo index 1bb7a6650..c797b19fa 100644 --- a/tests/nodes/matmul_fp8x23_2x2.cairo +++ b/tests/nodes/matmul_fp8x23_2x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/matmul_fp8x23_2x2/input_0.cairo b/tests/nodes/matmul_fp8x23_2x2/input_0.cairo index 3aa116c5f..7ab1057cb 100644 --- a/tests/nodes/matmul_fp8x23_2x2/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_2x2/input_1.cairo b/tests/nodes/matmul_fp8x23_2x2/input_1.cairo index fbc1dbf55..f330d31d5 100644 --- a/tests/nodes/matmul_fp8x23_2x2/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_2x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_fp8x23_2x2/output_0.cairo b/tests/nodes/matmul_fp8x23_2x2/output_0.cairo index 57b39918a..df051d978 100644 --- a/tests/nodes/matmul_fp8x23_2x2/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/matmul_i32_1d.cairo b/tests/nodes/matmul_i32_1d.cairo index cef3f73e0..34d324ec3 100644 --- a/tests/nodes/matmul_i32_1d.cairo +++ b/tests/nodes/matmul_i32_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/matmul_i32_1d/input_0.cairo b/tests/nodes/matmul_i32_1d/input_0.cairo index 8d946c6ec..b63b5af03 100644 --- a/tests/nodes/matmul_i32_1d/input_0.cairo +++ b/tests/nodes/matmul_i32_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_1d/input_1.cairo b/tests/nodes/matmul_i32_1d/input_1.cairo index c4521172a..3ca3cdb7b 100644 --- a/tests/nodes/matmul_i32_1d/input_1.cairo +++ b/tests/nodes/matmul_i32_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_1d/output_0.cairo b/tests/nodes/matmul_i32_1d/output_0.cairo index d9c7261e9..80be75229 100644 --- a/tests/nodes/matmul_i32_1d/output_0.cairo +++ b/tests/nodes/matmul_i32_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_1x2.cairo b/tests/nodes/matmul_i32_1x2.cairo index 3d54420a1..52f857d00 100644 --- a/tests/nodes/matmul_i32_1x2.cairo +++ b/tests/nodes/matmul_i32_1x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/matmul_i32_1x2/input_0.cairo b/tests/nodes/matmul_i32_1x2/input_0.cairo index 7acabeb6f..25e032fe5 100644 --- a/tests/nodes/matmul_i32_1x2/input_0.cairo +++ b/tests/nodes/matmul_i32_1x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_1x2/input_1.cairo b/tests/nodes/matmul_i32_1x2/input_1.cairo index 70c2e11ce..215101501 100644 --- a/tests/nodes/matmul_i32_1x2/input_1.cairo +++ b/tests/nodes/matmul_i32_1x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_1x2/output_0.cairo b/tests/nodes/matmul_i32_1x2/output_0.cairo index befd59945..62cb8bf2e 100644 --- a/tests/nodes/matmul_i32_1x2/output_0.cairo +++ b/tests/nodes/matmul_i32_1x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_2x1.cairo b/tests/nodes/matmul_i32_2x1.cairo index 97b071225..8c85513b7 100644 --- a/tests/nodes/matmul_i32_2x1.cairo +++ b/tests/nodes/matmul_i32_2x1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/matmul_i32_2x1/input_0.cairo b/tests/nodes/matmul_i32_2x1/input_0.cairo index f9842cec3..54ce53dfc 100644 --- a/tests/nodes/matmul_i32_2x1/input_0.cairo +++ b/tests/nodes/matmul_i32_2x1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_2x1/input_1.cairo b/tests/nodes/matmul_i32_2x1/input_1.cairo index 206a9dc5d..a47a6b9a7 100644 --- a/tests/nodes/matmul_i32_2x1/input_1.cairo +++ b/tests/nodes/matmul_i32_2x1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_2x1/output_0.cairo b/tests/nodes/matmul_i32_2x1/output_0.cairo index 67e06cc68..7c4540530 100644 --- a/tests/nodes/matmul_i32_2x1/output_0.cairo +++ b/tests/nodes/matmul_i32_2x1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_2x2.cairo b/tests/nodes/matmul_i32_2x2.cairo index 574369921..c10cd13c0 100644 --- a/tests/nodes/matmul_i32_2x2.cairo +++ b/tests/nodes/matmul_i32_2x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/matmul_i32_2x2/input_0.cairo b/tests/nodes/matmul_i32_2x2/input_0.cairo index 69c15e969..c6aee9811 100644 --- a/tests/nodes/matmul_i32_2x2/input_0.cairo +++ b/tests/nodes/matmul_i32_2x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_2x2/input_1.cairo b/tests/nodes/matmul_i32_2x2/input_1.cairo index 2d4bd93b4..07c822d28 100644 --- a/tests/nodes/matmul_i32_2x2/input_1.cairo +++ b/tests/nodes/matmul_i32_2x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i32_2x2/output_0.cairo b/tests/nodes/matmul_i32_2x2/output_0.cairo index f5bd8dc3a..abd8b7d39 100644 --- a/tests/nodes/matmul_i32_2x2/output_0.cairo +++ b/tests/nodes/matmul_i32_2x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/matmul_i8_1d.cairo b/tests/nodes/matmul_i8_1d.cairo index bb9efc1e4..54b9367ba 100644 --- a/tests/nodes/matmul_i8_1d.cairo +++ b/tests/nodes/matmul_i8_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/matmul_i8_1d/input_0.cairo b/tests/nodes/matmul_i8_1d/input_0.cairo index 4c0c1a2f1..832dda701 100644 --- a/tests/nodes/matmul_i8_1d/input_0.cairo +++ b/tests/nodes/matmul_i8_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_1d/input_1.cairo b/tests/nodes/matmul_i8_1d/input_1.cairo index bc11ecbb8..f81c184f8 100644 --- a/tests/nodes/matmul_i8_1d/input_1.cairo +++ b/tests/nodes/matmul_i8_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_1d/output_0.cairo b/tests/nodes/matmul_i8_1d/output_0.cairo index 8dd97a83d..5c69ebadf 100644 --- a/tests/nodes/matmul_i8_1d/output_0.cairo +++ b/tests/nodes/matmul_i8_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_1x2.cairo b/tests/nodes/matmul_i8_1x2.cairo index 764135b8f..42eba3f7e 100644 --- a/tests/nodes/matmul_i8_1x2.cairo +++ b/tests/nodes/matmul_i8_1x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/matmul_i8_1x2/input_0.cairo b/tests/nodes/matmul_i8_1x2/input_0.cairo index 9f5359cf8..c66e96b84 100644 --- a/tests/nodes/matmul_i8_1x2/input_0.cairo +++ b/tests/nodes/matmul_i8_1x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_1x2/input_1.cairo b/tests/nodes/matmul_i8_1x2/input_1.cairo index af6a68b89..dd53db9c3 100644 --- a/tests/nodes/matmul_i8_1x2/input_1.cairo +++ b/tests/nodes/matmul_i8_1x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_1x2/output_0.cairo b/tests/nodes/matmul_i8_1x2/output_0.cairo index a6ebacc65..f56c64ae1 100644 --- a/tests/nodes/matmul_i8_1x2/output_0.cairo +++ b/tests/nodes/matmul_i8_1x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_2x1.cairo b/tests/nodes/matmul_i8_2x1.cairo index dbf8452c6..6e3f472ea 100644 --- a/tests/nodes/matmul_i8_2x1.cairo +++ b/tests/nodes/matmul_i8_2x1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/matmul_i8_2x1/input_0.cairo b/tests/nodes/matmul_i8_2x1/input_0.cairo index dd5067d06..2d30585eb 100644 --- a/tests/nodes/matmul_i8_2x1/input_0.cairo +++ b/tests/nodes/matmul_i8_2x1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_2x1/input_1.cairo b/tests/nodes/matmul_i8_2x1/input_1.cairo index a6d0ad9c8..f845cfe88 100644 --- a/tests/nodes/matmul_i8_2x1/input_1.cairo +++ b/tests/nodes/matmul_i8_2x1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_2x1/output_0.cairo b/tests/nodes/matmul_i8_2x1/output_0.cairo index e90a8de40..3c1151535 100644 --- a/tests/nodes/matmul_i8_2x1/output_0.cairo +++ b/tests/nodes/matmul_i8_2x1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_2x2.cairo b/tests/nodes/matmul_i8_2x2.cairo index d5811fa04..3ba287daa 100644 --- a/tests/nodes/matmul_i8_2x2.cairo +++ b/tests/nodes/matmul_i8_2x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/matmul_i8_2x2/input_0.cairo b/tests/nodes/matmul_i8_2x2/input_0.cairo index 3457e406b..37e2a8e61 100644 --- a/tests/nodes/matmul_i8_2x2/input_0.cairo +++ b/tests/nodes/matmul_i8_2x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_2x2/input_1.cairo b/tests/nodes/matmul_i8_2x2/input_1.cairo index f750c2dc6..850f314e4 100644 --- a/tests/nodes/matmul_i8_2x2/input_1.cairo +++ b/tests/nodes/matmul_i8_2x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_i8_2x2/output_0.cairo b/tests/nodes/matmul_i8_2x2/output_0.cairo index 216ed3531..b850fe611 100644 --- a/tests/nodes/matmul_i8_2x2/output_0.cairo +++ b/tests/nodes/matmul_i8_2x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/matmul_u32_1d.cairo b/tests/nodes/matmul_u32_1d.cairo index 10db41ad1..f3173367b 100644 --- a/tests/nodes/matmul_u32_1d.cairo +++ b/tests/nodes/matmul_u32_1d.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/matmul_u32_1d/input_0.cairo b/tests/nodes/matmul_u32_1d/input_0.cairo index 04990cd44..8c74691e3 100644 --- a/tests/nodes/matmul_u32_1d/input_0.cairo +++ b/tests/nodes/matmul_u32_1d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_1d/input_1.cairo b/tests/nodes/matmul_u32_1d/input_1.cairo index bed726399..52fb2fc9f 100644 --- a/tests/nodes/matmul_u32_1d/input_1.cairo +++ b/tests/nodes/matmul_u32_1d/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_1d/output_0.cairo b/tests/nodes/matmul_u32_1d/output_0.cairo index 7654f973b..4b9db64d3 100644 --- a/tests/nodes/matmul_u32_1d/output_0.cairo +++ b/tests/nodes/matmul_u32_1d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_1x2.cairo b/tests/nodes/matmul_u32_1x2.cairo index 8670afc53..033b31c35 100644 --- a/tests/nodes/matmul_u32_1x2.cairo +++ b/tests/nodes/matmul_u32_1x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/matmul_u32_1x2/input_0.cairo b/tests/nodes/matmul_u32_1x2/input_0.cairo index fbd7ac701..8f45ef5a6 100644 --- a/tests/nodes/matmul_u32_1x2/input_0.cairo +++ b/tests/nodes/matmul_u32_1x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_1x2/input_1.cairo b/tests/nodes/matmul_u32_1x2/input_1.cairo index 8cc01d8e3..50c61c6fb 100644 --- a/tests/nodes/matmul_u32_1x2/input_1.cairo +++ b/tests/nodes/matmul_u32_1x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_1x2/output_0.cairo b/tests/nodes/matmul_u32_1x2/output_0.cairo index e7df6f329..2da232334 100644 --- a/tests/nodes/matmul_u32_1x2/output_0.cairo +++ b/tests/nodes/matmul_u32_1x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_2x1.cairo b/tests/nodes/matmul_u32_2x1.cairo index a16c15ce8..33f410332 100644 --- a/tests/nodes/matmul_u32_2x1.cairo +++ b/tests/nodes/matmul_u32_2x1.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/matmul_u32_2x1/input_0.cairo b/tests/nodes/matmul_u32_2x1/input_0.cairo index 2f56a2efc..f06a7820f 100644 --- a/tests/nodes/matmul_u32_2x1/input_0.cairo +++ b/tests/nodes/matmul_u32_2x1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_2x1/input_1.cairo b/tests/nodes/matmul_u32_2x1/input_1.cairo index 2316fd87b..8d178126c 100644 --- a/tests/nodes/matmul_u32_2x1/input_1.cairo +++ b/tests/nodes/matmul_u32_2x1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_2x1/output_0.cairo b/tests/nodes/matmul_u32_2x1/output_0.cairo index 7b5cb91b2..e40d583e9 100644 --- a/tests/nodes/matmul_u32_2x1/output_0.cairo +++ b/tests/nodes/matmul_u32_2x1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_2x2.cairo b/tests/nodes/matmul_u32_2x2.cairo index 6c1939e93..c3da2d556 100644 --- a/tests/nodes/matmul_u32_2x2.cairo +++ b/tests/nodes/matmul_u32_2x2.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/matmul_u32_2x2/input_0.cairo b/tests/nodes/matmul_u32_2x2/input_0.cairo index 2810059f0..850fe9254 100644 --- a/tests/nodes/matmul_u32_2x2/input_0.cairo +++ b/tests/nodes/matmul_u32_2x2/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_2x2/input_1.cairo b/tests/nodes/matmul_u32_2x2/input_1.cairo index a81f21bb4..06dc41064 100644 --- a/tests/nodes/matmul_u32_2x2/input_1.cairo +++ b/tests/nodes/matmul_u32_2x2/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/matmul_u32_2x2/output_0.cairo b/tests/nodes/matmul_u32_2x2/output_0.cairo index fa921e274..fbf2fbb15 100644 --- a/tests/nodes/matmul_u32_2x2/output_0.cairo +++ b/tests/nodes/matmul_u32_2x2/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo b/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo index e6a9a5db0..d55e44ec9 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 15950d596..778aab8a3 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 ad2c130c9..baf18ebfe 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 903d76d4d..ea0a758aa 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 2a9d359fe..bc9139e4e 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo b/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo index b738aeee5..1666abaa3 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 8caad904d..24e8f8b8e 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 369a5c13f..d072d75b1 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 e47fcecfe..484b2249a 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_three_tensors.cairo b/tests/nodes/max_fp16x16_three_tensors.cairo index c81211037..7a26e6ead 100644 --- a/tests/nodes/max_fp16x16_three_tensors.cairo +++ b/tests/nodes/max_fp16x16_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/max_fp16x16_three_tensors/input_0.cairo b/tests/nodes/max_fp16x16_three_tensors/input_0.cairo index 33bfc9dac..3d48611ef 100644 --- a/tests/nodes/max_fp16x16_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_three_tensors/input_1.cairo b/tests/nodes/max_fp16x16_three_tensors/input_1.cairo index 4690905db..ac3dc7f2f 100644 --- a/tests/nodes/max_fp16x16_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_three_tensors/input_2.cairo b/tests/nodes/max_fp16x16_three_tensors/input_2.cairo index 51a6c9f52..1e43ebad3 100644 --- a/tests/nodes/max_fp16x16_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_three_tensors/output_0.cairo b/tests/nodes/max_fp16x16_three_tensors/output_0.cairo index d8b8ce390..04516ebdc 100644 --- a/tests/nodes/max_fp16x16_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_two_tensors.cairo b/tests/nodes/max_fp16x16_two_tensors.cairo index cdf7e83e6..45e3dae90 100644 --- a/tests/nodes/max_fp16x16_two_tensors.cairo +++ b/tests/nodes/max_fp16x16_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/max_fp16x16_two_tensors/input_0.cairo b/tests/nodes/max_fp16x16_two_tensors/input_0.cairo index 368a064d7..fcd9192a7 100644 --- a/tests/nodes/max_fp16x16_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_two_tensors/input_1.cairo b/tests/nodes/max_fp16x16_two_tensors/input_1.cairo index fe6280643..6c66ba133 100644 --- a/tests/nodes/max_fp16x16_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp16x16_two_tensors/output_0.cairo b/tests/nodes/max_fp16x16_two_tensors/output_0.cairo index 07fd7443c..e931d954e 100644 --- a/tests/nodes/max_fp16x16_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo b/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo index ab1082160..d419434a8 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 1de6875da..c52eb203d 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 3941d2b7e..f8a80f8f8 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 e17548190..e147b7161 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 10e0960d6..dac992481 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo b/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo index b77fbfbf6..ba4939674 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 132278138..a0b2eb92d 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 27a35e3b1..933377541 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 e7d95b6f6..c2a761925 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_three_tensors.cairo b/tests/nodes/max_fp8x23_three_tensors.cairo index b503bf177..10561482b 100644 --- a/tests/nodes/max_fp8x23_three_tensors.cairo +++ b/tests/nodes/max_fp8x23_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/max_fp8x23_three_tensors/input_0.cairo b/tests/nodes/max_fp8x23_three_tensors/input_0.cairo index 5d8539d1d..bbbb1044b 100644 --- a/tests/nodes/max_fp8x23_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_three_tensors/input_1.cairo b/tests/nodes/max_fp8x23_three_tensors/input_1.cairo index 2e4abdf49..73e643666 100644 --- a/tests/nodes/max_fp8x23_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_three_tensors/input_2.cairo b/tests/nodes/max_fp8x23_three_tensors/input_2.cairo index b51cf0f13..121df7c0b 100644 --- a/tests/nodes/max_fp8x23_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_three_tensors/output_0.cairo b/tests/nodes/max_fp8x23_three_tensors/output_0.cairo index ebb70503a..5eb68ff1b 100644 --- a/tests/nodes/max_fp8x23_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_two_tensors.cairo b/tests/nodes/max_fp8x23_two_tensors.cairo index 8d5ca3c74..4c8b5d68a 100644 --- a/tests/nodes/max_fp8x23_two_tensors.cairo +++ b/tests/nodes/max_fp8x23_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/max_fp8x23_two_tensors/input_0.cairo b/tests/nodes/max_fp8x23_two_tensors/input_0.cairo index d16c6a053..084c015c4 100644 --- a/tests/nodes/max_fp8x23_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_two_tensors/input_1.cairo b/tests/nodes/max_fp8x23_two_tensors/input_1.cairo index a766fbb91..2220ef4d0 100644 --- a/tests/nodes/max_fp8x23_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_fp8x23_two_tensors/output_0.cairo b/tests/nodes/max_fp8x23_two_tensors/output_0.cairo index 86eaeb478..e82faa6dc 100644 --- a/tests/nodes/max_fp8x23_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/max_i32_broadcast_three_tensors.cairo b/tests/nodes/max_i32_broadcast_three_tensors.cairo index 91476cad9..188dc0842 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 36c7bbba6..807141e20 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 f8f8fbca4..8764c5239 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 edb64de85..ce77c4586 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 f997397d7..386aa9a01 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_broadcast_two_tensors.cairo b/tests/nodes/max_i32_broadcast_two_tensors.cairo index 63f46ff9f..a6a534854 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 47591a648..22c769b82 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 f2b5abec2..7ce31b724 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 5fa192944..3f5ecdd31 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_three_tensors.cairo b/tests/nodes/max_i32_three_tensors.cairo index c72a56cdf..f88934b30 100644 --- a/tests/nodes/max_i32_three_tensors.cairo +++ b/tests/nodes/max_i32_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/max_i32_three_tensors/input_0.cairo b/tests/nodes/max_i32_three_tensors/input_0.cairo index be1f3c151..6a6d72350 100644 --- a/tests/nodes/max_i32_three_tensors/input_0.cairo +++ b/tests/nodes/max_i32_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_three_tensors/input_1.cairo b/tests/nodes/max_i32_three_tensors/input_1.cairo index 778aba1a0..1941030b1 100644 --- a/tests/nodes/max_i32_three_tensors/input_1.cairo +++ b/tests/nodes/max_i32_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_three_tensors/input_2.cairo b/tests/nodes/max_i32_three_tensors/input_2.cairo index 00a20e43b..6eb3170b0 100644 --- a/tests/nodes/max_i32_three_tensors/input_2.cairo +++ b/tests/nodes/max_i32_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_three_tensors/output_0.cairo b/tests/nodes/max_i32_three_tensors/output_0.cairo index 10d697501..2272f495e 100644 --- a/tests/nodes/max_i32_three_tensors/output_0.cairo +++ b/tests/nodes/max_i32_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_two_tensors.cairo b/tests/nodes/max_i32_two_tensors.cairo index c2ddc1b51..3dbe292df 100644 --- a/tests/nodes/max_i32_two_tensors.cairo +++ b/tests/nodes/max_i32_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/max_i32_two_tensors/input_0.cairo b/tests/nodes/max_i32_two_tensors/input_0.cairo index 0c5e37593..0492dca0f 100644 --- a/tests/nodes/max_i32_two_tensors/input_0.cairo +++ b/tests/nodes/max_i32_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_two_tensors/input_1.cairo b/tests/nodes/max_i32_two_tensors/input_1.cairo index efd1ec5a2..2b8efc418 100644 --- a/tests/nodes/max_i32_two_tensors/input_1.cairo +++ b/tests/nodes/max_i32_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i32_two_tensors/output_0.cairo b/tests/nodes/max_i32_two_tensors/output_0.cairo index 31eca8b5f..4b5273dc6 100644 --- a/tests/nodes/max_i32_two_tensors/output_0.cairo +++ b/tests/nodes/max_i32_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/max_i8_broadcast_three_tensors.cairo b/tests/nodes/max_i8_broadcast_three_tensors.cairo index d73af1f9e..53fb8a66e 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 6569361bf..c87ef840d 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 7ddca8ad7..a192579b6 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 4f71b1d6f..e11b8c948 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 ba14221ab..00d79d15b 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_broadcast_two_tensors.cairo b/tests/nodes/max_i8_broadcast_two_tensors.cairo index af4a99d9f..f38611ad2 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 ab27c2d6a..3b8516e09 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 7ddca8ad7..a192579b6 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 11068ef7a..14254b2b9 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_three_tensors.cairo b/tests/nodes/max_i8_three_tensors.cairo index b88c9459b..6bb0dce85 100644 --- a/tests/nodes/max_i8_three_tensors.cairo +++ b/tests/nodes/max_i8_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/max_i8_three_tensors/input_0.cairo b/tests/nodes/max_i8_three_tensors/input_0.cairo index 69d671087..b41615b80 100644 --- a/tests/nodes/max_i8_three_tensors/input_0.cairo +++ b/tests/nodes/max_i8_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_three_tensors/input_1.cairo b/tests/nodes/max_i8_three_tensors/input_1.cairo index 67ba2e3ed..930d9fc66 100644 --- a/tests/nodes/max_i8_three_tensors/input_1.cairo +++ b/tests/nodes/max_i8_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_three_tensors/input_2.cairo b/tests/nodes/max_i8_three_tensors/input_2.cairo index ab0f01d88..b95518572 100644 --- a/tests/nodes/max_i8_three_tensors/input_2.cairo +++ b/tests/nodes/max_i8_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_three_tensors/output_0.cairo b/tests/nodes/max_i8_three_tensors/output_0.cairo index 4f7334f20..ecafa2dd1 100644 --- a/tests/nodes/max_i8_three_tensors/output_0.cairo +++ b/tests/nodes/max_i8_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_two_tensors.cairo b/tests/nodes/max_i8_two_tensors.cairo index d3ad09730..d6ddf4acb 100644 --- a/tests/nodes/max_i8_two_tensors.cairo +++ b/tests/nodes/max_i8_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/max_i8_two_tensors/input_0.cairo b/tests/nodes/max_i8_two_tensors/input_0.cairo index 0d4c5397e..0fd03f27c 100644 --- a/tests/nodes/max_i8_two_tensors/input_0.cairo +++ b/tests/nodes/max_i8_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_two_tensors/input_1.cairo b/tests/nodes/max_i8_two_tensors/input_1.cairo index 55509fb6d..93a09a056 100644 --- a/tests/nodes/max_i8_two_tensors/input_1.cairo +++ b/tests/nodes/max_i8_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_i8_two_tensors/output_0.cairo b/tests/nodes/max_i8_two_tensors/output_0.cairo index 4025af717..5fa0d9db3 100644 --- a/tests/nodes/max_i8_two_tensors/output_0.cairo +++ b/tests/nodes/max_i8_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/max_u32_broadcast_three_tensors.cairo b/tests/nodes/max_u32_broadcast_three_tensors.cairo index 241a2fc8f..896c52f17 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 6c083ffa7..8d7f30b6f 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 ea8734bae..dc27d6d6a 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 68dfae000..682aeeedb 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 a0bd55df8..62ad4c6a0 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_broadcast_two_tensors.cairo b/tests/nodes/max_u32_broadcast_two_tensors.cairo index b32369429..dbc319195 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 9e24dfb3b..2e29a50ae 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 19d7a2a17..c8994c824 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 71b7b07b4..a6c39f13f 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_three_tensors.cairo b/tests/nodes/max_u32_three_tensors.cairo index c8fb9dfe1..641a2e348 100644 --- a/tests/nodes/max_u32_three_tensors.cairo +++ b/tests/nodes/max_u32_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/max_u32_three_tensors/input_0.cairo b/tests/nodes/max_u32_three_tensors/input_0.cairo index 15d5eb226..5de1035f0 100644 --- a/tests/nodes/max_u32_three_tensors/input_0.cairo +++ b/tests/nodes/max_u32_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_three_tensors/input_1.cairo b/tests/nodes/max_u32_three_tensors/input_1.cairo index 5e8843449..03f85004e 100644 --- a/tests/nodes/max_u32_three_tensors/input_1.cairo +++ b/tests/nodes/max_u32_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_three_tensors/input_2.cairo b/tests/nodes/max_u32_three_tensors/input_2.cairo index 220491901..23dc1f601 100644 --- a/tests/nodes/max_u32_three_tensors/input_2.cairo +++ b/tests/nodes/max_u32_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_three_tensors/output_0.cairo b/tests/nodes/max_u32_three_tensors/output_0.cairo index 75fb08e26..9a5a1a396 100644 --- a/tests/nodes/max_u32_three_tensors/output_0.cairo +++ b/tests/nodes/max_u32_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_two_tensors.cairo b/tests/nodes/max_u32_two_tensors.cairo index b4fbf9e02..4f4a9dc7a 100644 --- a/tests/nodes/max_u32_two_tensors.cairo +++ b/tests/nodes/max_u32_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/max_u32_two_tensors/input_0.cairo b/tests/nodes/max_u32_two_tensors/input_0.cairo index 6f1f617cd..68140d304 100644 --- a/tests/nodes/max_u32_two_tensors/input_0.cairo +++ b/tests/nodes/max_u32_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_two_tensors/input_1.cairo b/tests/nodes/max_u32_two_tensors/input_1.cairo index 131ad4f0f..b56dfcb3b 100644 --- a/tests/nodes/max_u32_two_tensors/input_1.cairo +++ b/tests/nodes/max_u32_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/max_u32_two_tensors/output_0.cairo b/tests/nodes/max_u32_two_tensors/output_0.cairo index 4e935e3ea..e95f8d2cf 100644 --- a/tests/nodes/max_u32_two_tensors/output_0.cairo +++ b/tests/nodes/max_u32_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo b/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo index 220395f62..681c906d4 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 4589ab5de..3fa2c2c6b 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 fc6569745..6aeda52b6 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 903d76d4d..ea0a758aa 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 8bb4c575b..0e68c7278 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo b/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo index 9a2d7a980..226a1938e 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 2cccefb8a..f5876c8c7 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 fc6569745..6aeda52b6 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 e6fd1bcce..858ca5425 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_three_tensors.cairo b/tests/nodes/min_fp16x16_three_tensors.cairo index 5501d9f70..d190db9b9 100644 --- a/tests/nodes/min_fp16x16_three_tensors.cairo +++ b/tests/nodes/min_fp16x16_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/min_fp16x16_three_tensors/input_0.cairo b/tests/nodes/min_fp16x16_three_tensors/input_0.cairo index b5db9e4f1..98c6b286d 100644 --- a/tests/nodes/min_fp16x16_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_three_tensors/input_1.cairo b/tests/nodes/min_fp16x16_three_tensors/input_1.cairo index 4aa7ab102..953ed2d64 100644 --- a/tests/nodes/min_fp16x16_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_three_tensors/input_2.cairo b/tests/nodes/min_fp16x16_three_tensors/input_2.cairo index 1488424a5..73e1d695d 100644 --- a/tests/nodes/min_fp16x16_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_three_tensors/output_0.cairo b/tests/nodes/min_fp16x16_three_tensors/output_0.cairo index 6db8c5c68..9dae1f16a 100644 --- a/tests/nodes/min_fp16x16_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_two_tensors.cairo b/tests/nodes/min_fp16x16_two_tensors.cairo index a0c99e5a5..ed7566755 100644 --- a/tests/nodes/min_fp16x16_two_tensors.cairo +++ b/tests/nodes/min_fp16x16_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/min_fp16x16_two_tensors/input_0.cairo b/tests/nodes/min_fp16x16_two_tensors/input_0.cairo index c827d6229..fa886d09d 100644 --- a/tests/nodes/min_fp16x16_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_two_tensors/input_1.cairo b/tests/nodes/min_fp16x16_two_tensors/input_1.cairo index 9f62c5305..f8cb9693b 100644 --- a/tests/nodes/min_fp16x16_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp16x16_two_tensors/output_0.cairo b/tests/nodes/min_fp16x16_two_tensors/output_0.cairo index 9e4c65919..6dab5b05b 100644 --- a/tests/nodes/min_fp16x16_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo b/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo index 7a66521a5..e9d2d2c01 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 f45ededce..e74e24d26 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 709d521a4..773c24aa4 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 5759d134b..f8b390a97 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 3b2410704..1ac12903a 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo b/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo index babc5664d..bb99c30ab 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 764036b1c..c5bc72933 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 35cf05e4e..bca8d7b70 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 6279adb4a..a0ddd3518 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_three_tensors.cairo b/tests/nodes/min_fp8x23_three_tensors.cairo index 9a4880f3e..2f77c14ae 100644 --- a/tests/nodes/min_fp8x23_three_tensors.cairo +++ b/tests/nodes/min_fp8x23_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/min_fp8x23_three_tensors/input_0.cairo b/tests/nodes/min_fp8x23_three_tensors/input_0.cairo index 1a1046aa6..d04773e36 100644 --- a/tests/nodes/min_fp8x23_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_three_tensors/input_1.cairo b/tests/nodes/min_fp8x23_three_tensors/input_1.cairo index a90022ac9..26d180a0a 100644 --- a/tests/nodes/min_fp8x23_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_three_tensors/input_2.cairo b/tests/nodes/min_fp8x23_three_tensors/input_2.cairo index 87a644d4e..634e42922 100644 --- a/tests/nodes/min_fp8x23_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_three_tensors/output_0.cairo b/tests/nodes/min_fp8x23_three_tensors/output_0.cairo index 15f4b94ea..f6b31671e 100644 --- a/tests/nodes/min_fp8x23_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_two_tensors.cairo b/tests/nodes/min_fp8x23_two_tensors.cairo index dbc7345e4..2e8aaf22b 100644 --- a/tests/nodes/min_fp8x23_two_tensors.cairo +++ b/tests/nodes/min_fp8x23_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/min_fp8x23_two_tensors/input_0.cairo b/tests/nodes/min_fp8x23_two_tensors/input_0.cairo index e0caca041..ecd91f893 100644 --- a/tests/nodes/min_fp8x23_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_two_tensors/input_1.cairo b/tests/nodes/min_fp8x23_two_tensors/input_1.cairo index 3eb98567d..aca68ba9d 100644 --- a/tests/nodes/min_fp8x23_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_fp8x23_two_tensors/output_0.cairo b/tests/nodes/min_fp8x23_two_tensors/output_0.cairo index 89214df41..c64d3820e 100644 --- a/tests/nodes/min_fp8x23_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/min_i32_broadcast_three_tensors.cairo b/tests/nodes/min_i32_broadcast_three_tensors.cairo index e1eb8036b..7539bc61c 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 df439f61e..69aedbfa0 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 b1b65261f..1563e8648 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 edb64de85..ce77c4586 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 a81378685..5a58adce6 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_broadcast_two_tensors.cairo b/tests/nodes/min_i32_broadcast_two_tensors.cairo index 56f474b6d..f291c42a5 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 324736c63..c7d1e23a5 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 bf2fecba4..3e70266c5 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 9728ec700..ce36f7d55 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_three_tensors.cairo b/tests/nodes/min_i32_three_tensors.cairo index 332b00c62..22a6d7efb 100644 --- a/tests/nodes/min_i32_three_tensors.cairo +++ b/tests/nodes/min_i32_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/min_i32_three_tensors/input_0.cairo b/tests/nodes/min_i32_three_tensors/input_0.cairo index d7c51ab8d..197ac9f02 100644 --- a/tests/nodes/min_i32_three_tensors/input_0.cairo +++ b/tests/nodes/min_i32_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_three_tensors/input_1.cairo b/tests/nodes/min_i32_three_tensors/input_1.cairo index 0c25e152d..a226ab71f 100644 --- a/tests/nodes/min_i32_three_tensors/input_1.cairo +++ b/tests/nodes/min_i32_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_three_tensors/input_2.cairo b/tests/nodes/min_i32_three_tensors/input_2.cairo index f8d3071be..a405b7048 100644 --- a/tests/nodes/min_i32_three_tensors/input_2.cairo +++ b/tests/nodes/min_i32_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_three_tensors/output_0.cairo b/tests/nodes/min_i32_three_tensors/output_0.cairo index 3f93c789b..13a3b7243 100644 --- a/tests/nodes/min_i32_three_tensors/output_0.cairo +++ b/tests/nodes/min_i32_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_two_tensors.cairo b/tests/nodes/min_i32_two_tensors.cairo index 36bff1cd3..08f902cbc 100644 --- a/tests/nodes/min_i32_two_tensors.cairo +++ b/tests/nodes/min_i32_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/min_i32_two_tensors/input_0.cairo b/tests/nodes/min_i32_two_tensors/input_0.cairo index 53c2fcaa5..703b5b37e 100644 --- a/tests/nodes/min_i32_two_tensors/input_0.cairo +++ b/tests/nodes/min_i32_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_two_tensors/input_1.cairo b/tests/nodes/min_i32_two_tensors/input_1.cairo index 92a12ff67..287a804bc 100644 --- a/tests/nodes/min_i32_two_tensors/input_1.cairo +++ b/tests/nodes/min_i32_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i32_two_tensors/output_0.cairo b/tests/nodes/min_i32_two_tensors/output_0.cairo index d3e493a26..6ad05eb89 100644 --- a/tests/nodes/min_i32_two_tensors/output_0.cairo +++ b/tests/nodes/min_i32_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/min_i8_broadcast_three_tensors.cairo b/tests/nodes/min_i8_broadcast_three_tensors.cairo index 2256c0b62..126f45448 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 031cd3791..2cb5ffee7 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 b7f890f64..e2e9c07a9 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 72888bf4c..671df03b1 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 289d4ad87..fa2baf349 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_broadcast_two_tensors.cairo b/tests/nodes/min_i8_broadcast_two_tensors.cairo index d6344af77..d43be3a67 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 0966277be..398239796 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 1748d763f..12eb51d26 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 8bedae7e1..beec07f4d 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_three_tensors.cairo b/tests/nodes/min_i8_three_tensors.cairo index 5d41e2551..c4b107f10 100644 --- a/tests/nodes/min_i8_three_tensors.cairo +++ b/tests/nodes/min_i8_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/min_i8_three_tensors/input_0.cairo b/tests/nodes/min_i8_three_tensors/input_0.cairo index d29670a9f..03eceda85 100644 --- a/tests/nodes/min_i8_three_tensors/input_0.cairo +++ b/tests/nodes/min_i8_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_three_tensors/input_1.cairo b/tests/nodes/min_i8_three_tensors/input_1.cairo index d33e241c1..edf116b13 100644 --- a/tests/nodes/min_i8_three_tensors/input_1.cairo +++ b/tests/nodes/min_i8_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_three_tensors/input_2.cairo b/tests/nodes/min_i8_three_tensors/input_2.cairo index 9f66c1a8c..70400abc8 100644 --- a/tests/nodes/min_i8_three_tensors/input_2.cairo +++ b/tests/nodes/min_i8_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_three_tensors/output_0.cairo b/tests/nodes/min_i8_three_tensors/output_0.cairo index 729e61ba1..8d2f27115 100644 --- a/tests/nodes/min_i8_three_tensors/output_0.cairo +++ b/tests/nodes/min_i8_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_two_tensors.cairo b/tests/nodes/min_i8_two_tensors.cairo index ffb3dd382..4428987dd 100644 --- a/tests/nodes/min_i8_two_tensors.cairo +++ b/tests/nodes/min_i8_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/min_i8_two_tensors/input_0.cairo b/tests/nodes/min_i8_two_tensors/input_0.cairo index dfb122bf3..99d93944b 100644 --- a/tests/nodes/min_i8_two_tensors/input_0.cairo +++ b/tests/nodes/min_i8_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_two_tensors/input_1.cairo b/tests/nodes/min_i8_two_tensors/input_1.cairo index 9a088d52a..e92b743bb 100644 --- a/tests/nodes/min_i8_two_tensors/input_1.cairo +++ b/tests/nodes/min_i8_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_i8_two_tensors/output_0.cairo b/tests/nodes/min_i8_two_tensors/output_0.cairo index 35e0b1112..8ec178b15 100644 --- a/tests/nodes/min_i8_two_tensors/output_0.cairo +++ b/tests/nodes/min_i8_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/min_u32_broadcast_three_tensors.cairo b/tests/nodes/min_u32_broadcast_three_tensors.cairo index 3f90de3a0..881c50143 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 ab5743e17..6180db796 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 eb67448d2..915db9561 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 9ffbb5a5c..e4b2b6145 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 5586a7f29..aea0eefd1 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_broadcast_two_tensors.cairo b/tests/nodes/min_u32_broadcast_two_tensors.cairo index ead761837..d60ea8122 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 79e203e76..5d0cb1aaf 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 8f2990dec..77c862a13 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 67ba1889c..2c23a2f92 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_three_tensors.cairo b/tests/nodes/min_u32_three_tensors.cairo index 82983386f..75c9c14ae 100644 --- a/tests/nodes/min_u32_three_tensors.cairo +++ b/tests/nodes/min_u32_three_tensors.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/min_u32_three_tensors/input_0.cairo b/tests/nodes/min_u32_three_tensors/input_0.cairo index 408871093..9a87029a4 100644 --- a/tests/nodes/min_u32_three_tensors/input_0.cairo +++ b/tests/nodes/min_u32_three_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_three_tensors/input_1.cairo b/tests/nodes/min_u32_three_tensors/input_1.cairo index cbbfc75c3..9394ced5b 100644 --- a/tests/nodes/min_u32_three_tensors/input_1.cairo +++ b/tests/nodes/min_u32_three_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_three_tensors/input_2.cairo b/tests/nodes/min_u32_three_tensors/input_2.cairo index 8e8027f01..dca21f1bd 100644 --- a/tests/nodes/min_u32_three_tensors/input_2.cairo +++ b/tests/nodes/min_u32_three_tensors/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_three_tensors/output_0.cairo b/tests/nodes/min_u32_three_tensors/output_0.cairo index 7e844ee1a..fe9314f39 100644 --- a/tests/nodes/min_u32_three_tensors/output_0.cairo +++ b/tests/nodes/min_u32_three_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_two_tensors.cairo b/tests/nodes/min_u32_two_tensors.cairo index 4b06824b8..be944d2ea 100644 --- a/tests/nodes/min_u32_two_tensors.cairo +++ b/tests/nodes/min_u32_two_tensors.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/min_u32_two_tensors/input_0.cairo b/tests/nodes/min_u32_two_tensors/input_0.cairo index b4de32a93..4bb42d5b6 100644 --- a/tests/nodes/min_u32_two_tensors/input_0.cairo +++ b/tests/nodes/min_u32_two_tensors/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_two_tensors/input_1.cairo b/tests/nodes/min_u32_two_tensors/input_1.cairo index 375910cbf..c8af5f982 100644 --- a/tests/nodes/min_u32_two_tensors/input_1.cairo +++ b/tests/nodes/min_u32_two_tensors/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/min_u32_two_tensors/output_0.cairo b/tests/nodes/min_u32_two_tensors/output_0.cairo index 8fe8219a3..68c5d7d20 100644 --- a/tests/nodes/min_u32_two_tensors/output_0.cairo +++ b/tests/nodes/min_u32_two_tensors/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/mul_fp16x16.cairo b/tests/nodes/mul_fp16x16.cairo index a09c8d4c4..f7f37bd1e 100644 --- a/tests/nodes/mul_fp16x16.cairo +++ b/tests/nodes/mul_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/mul_fp16x16/input_0.cairo b/tests/nodes/mul_fp16x16/input_0.cairo index ee43cc0d4..bdc04703f 100644 --- a/tests/nodes/mul_fp16x16/input_0.cairo +++ b/tests/nodes/mul_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp16x16/input_1.cairo b/tests/nodes/mul_fp16x16/input_1.cairo index 7834b857e..d7e207d4d 100644 --- a/tests/nodes/mul_fp16x16/input_1.cairo +++ b/tests/nodes/mul_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp16x16/output_0.cairo b/tests/nodes/mul_fp16x16/output_0.cairo index 964d43280..a3f6bce43 100644 --- a/tests/nodes/mul_fp16x16/output_0.cairo +++ b/tests/nodes/mul_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp16x16_broadcast.cairo b/tests/nodes/mul_fp16x16_broadcast.cairo index afe154478..d45e68098 100644 --- a/tests/nodes/mul_fp16x16_broadcast.cairo +++ b/tests/nodes/mul_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/mul_fp16x16_broadcast/input_0.cairo b/tests/nodes/mul_fp16x16_broadcast/input_0.cairo index 9734d020f..5b3ef1fc0 100644 --- a/tests/nodes/mul_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/mul_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp16x16_broadcast/input_1.cairo b/tests/nodes/mul_fp16x16_broadcast/input_1.cairo index 064819461..c97c3dc64 100644 --- a/tests/nodes/mul_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/mul_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp16x16_broadcast/output_0.cairo b/tests/nodes/mul_fp16x16_broadcast/output_0.cairo index f0a32f9b3..8479fe2e8 100644 --- a/tests/nodes/mul_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/mul_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp8x23.cairo b/tests/nodes/mul_fp8x23.cairo index 0a9779f22..96832bfd0 100644 --- a/tests/nodes/mul_fp8x23.cairo +++ b/tests/nodes/mul_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/mul_fp8x23/input_0.cairo b/tests/nodes/mul_fp8x23/input_0.cairo index 3273ba5a3..1d297862d 100644 --- a/tests/nodes/mul_fp8x23/input_0.cairo +++ b/tests/nodes/mul_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp8x23/input_1.cairo b/tests/nodes/mul_fp8x23/input_1.cairo index 177136d99..8e31392e6 100644 --- a/tests/nodes/mul_fp8x23/input_1.cairo +++ b/tests/nodes/mul_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp8x23/output_0.cairo b/tests/nodes/mul_fp8x23/output_0.cairo index 69e81b294..0d9a5be01 100644 --- a/tests/nodes/mul_fp8x23/output_0.cairo +++ b/tests/nodes/mul_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp8x23_broadcast.cairo b/tests/nodes/mul_fp8x23_broadcast.cairo index ad77bcf2b..cd63da723 100644 --- a/tests/nodes/mul_fp8x23_broadcast.cairo +++ b/tests/nodes/mul_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/mul_fp8x23_broadcast/input_0.cairo b/tests/nodes/mul_fp8x23_broadcast/input_0.cairo index 4f0d1923a..760d9265c 100644 --- a/tests/nodes/mul_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/mul_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp8x23_broadcast/input_1.cairo b/tests/nodes/mul_fp8x23_broadcast/input_1.cairo index 92af9039a..ba343693f 100644 --- a/tests/nodes/mul_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/mul_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_fp8x23_broadcast/output_0.cairo b/tests/nodes/mul_fp8x23_broadcast/output_0.cairo index 1fba5e773..7426ac6f1 100644 --- a/tests/nodes/mul_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/mul_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/mul_i32.cairo b/tests/nodes/mul_i32.cairo index fec40a12b..df811ac51 100644 --- a/tests/nodes/mul_i32.cairo +++ b/tests/nodes/mul_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorMul}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/mul_i32/input_0.cairo b/tests/nodes/mul_i32/input_0.cairo index 004c28b0a..6427c3a24 100644 --- a/tests/nodes/mul_i32/input_0.cairo +++ b/tests/nodes/mul_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/mul_i32/input_1.cairo b/tests/nodes/mul_i32/input_1.cairo index 7e0aabaff..483f69775 100644 --- a/tests/nodes/mul_i32/input_1.cairo +++ b/tests/nodes/mul_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/mul_i32/output_0.cairo b/tests/nodes/mul_i32/output_0.cairo index 7ec209c5f..744ac5e8c 100644 --- a/tests/nodes/mul_i32/output_0.cairo +++ b/tests/nodes/mul_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/mul_i32_broadcast.cairo b/tests/nodes/mul_i32_broadcast.cairo index 13927d99b..bcc35637a 100644 --- a/tests/nodes/mul_i32_broadcast.cairo +++ b/tests/nodes/mul_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorMul}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/mul_i32_broadcast/input_0.cairo b/tests/nodes/mul_i32_broadcast/input_0.cairo index c20c4499b..04e7ad7cc 100644 --- a/tests/nodes/mul_i32_broadcast/input_0.cairo +++ b/tests/nodes/mul_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/mul_i32_broadcast/input_1.cairo b/tests/nodes/mul_i32_broadcast/input_1.cairo index 1ac6b5503..8f27c7600 100644 --- a/tests/nodes/mul_i32_broadcast/input_1.cairo +++ b/tests/nodes/mul_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/mul_i32_broadcast/output_0.cairo b/tests/nodes/mul_i32_broadcast/output_0.cairo index e61019f6a..566074c4c 100644 --- a/tests/nodes/mul_i32_broadcast/output_0.cairo +++ b/tests/nodes/mul_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/mul_i8.cairo b/tests/nodes/mul_i8.cairo index aebd13f2b..d6ecda742 100644 --- a/tests/nodes/mul_i8.cairo +++ b/tests/nodes/mul_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorMul}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/mul_i8/input_0.cairo b/tests/nodes/mul_i8/input_0.cairo index d24f745a4..d00beb388 100644 --- a/tests/nodes/mul_i8/input_0.cairo +++ b/tests/nodes/mul_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/mul_i8/input_1.cairo b/tests/nodes/mul_i8/input_1.cairo index 89a06a596..b9c15c19b 100644 --- a/tests/nodes/mul_i8/input_1.cairo +++ b/tests/nodes/mul_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/mul_i8/output_0.cairo b/tests/nodes/mul_i8/output_0.cairo index 04133557b..946602695 100644 --- a/tests/nodes/mul_i8/output_0.cairo +++ b/tests/nodes/mul_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/mul_i8_broadcast.cairo b/tests/nodes/mul_i8_broadcast.cairo index 383cb163a..25bd18c5c 100644 --- a/tests/nodes/mul_i8_broadcast.cairo +++ b/tests/nodes/mul_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorMul}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/mul_i8_broadcast/input_0.cairo b/tests/nodes/mul_i8_broadcast/input_0.cairo index 9cad50c94..ebb41e8fe 100644 --- a/tests/nodes/mul_i8_broadcast/input_0.cairo +++ b/tests/nodes/mul_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/mul_i8_broadcast/input_1.cairo b/tests/nodes/mul_i8_broadcast/input_1.cairo index 8ef9634b5..a5d691d0e 100644 --- a/tests/nodes/mul_i8_broadcast/input_1.cairo +++ b/tests/nodes/mul_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/mul_i8_broadcast/output_0.cairo b/tests/nodes/mul_i8_broadcast/output_0.cairo index b1ad6ce48..71949ade4 100644 --- a/tests/nodes/mul_i8_broadcast/output_0.cairo +++ b/tests/nodes/mul_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/mul_u32.cairo b/tests/nodes/mul_u32.cairo index 7ed863568..9d2545dc8 100644 --- a/tests/nodes/mul_u32.cairo +++ b/tests/nodes/mul_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorMul}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/mul_u32/input_0.cairo b/tests/nodes/mul_u32/input_0.cairo index 326c29b3e..8084d0d50 100644 --- a/tests/nodes/mul_u32/input_0.cairo +++ b/tests/nodes/mul_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/mul_u32/input_1.cairo b/tests/nodes/mul_u32/input_1.cairo index 39466d7cc..5163f4f95 100644 --- a/tests/nodes/mul_u32/input_1.cairo +++ b/tests/nodes/mul_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/mul_u32/output_0.cairo b/tests/nodes/mul_u32/output_0.cairo index 2b2d1f39d..d878d73e3 100644 --- a/tests/nodes/mul_u32/output_0.cairo +++ b/tests/nodes/mul_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/mul_u32_broadcast.cairo b/tests/nodes/mul_u32_broadcast.cairo index 670450d1e..bc0052dfb 100644 --- a/tests/nodes/mul_u32_broadcast.cairo +++ b/tests/nodes/mul_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorMul}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/mul_u32_broadcast/input_0.cairo b/tests/nodes/mul_u32_broadcast/input_0.cairo index 0fcbcfff5..a9c9f248a 100644 --- a/tests/nodes/mul_u32_broadcast/input_0.cairo +++ b/tests/nodes/mul_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/mul_u32_broadcast/input_1.cairo b/tests/nodes/mul_u32_broadcast/input_1.cairo index 21bb6ebe8..e6c6a0131 100644 --- a/tests/nodes/mul_u32_broadcast/input_1.cairo +++ b/tests/nodes/mul_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/mul_u32_broadcast/output_0.cairo b/tests/nodes/mul_u32_broadcast/output_0.cairo index ed5fb7635..1e8ca2a95 100644 --- a/tests/nodes/mul_u32_broadcast/output_0.cairo +++ b/tests/nodes/mul_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/neg_fp16x16.cairo b/tests/nodes/neg_fp16x16.cairo index beab5b033..da83b64f7 100644 --- a/tests/nodes/neg_fp16x16.cairo +++ b/tests/nodes/neg_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/neg_fp16x16/input_0.cairo b/tests/nodes/neg_fp16x16/input_0.cairo index 92b65dc73..2c852d5af 100644 --- a/tests/nodes/neg_fp16x16/input_0.cairo +++ b/tests/nodes/neg_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/neg_fp16x16/output_0.cairo b/tests/nodes/neg_fp16x16/output_0.cairo index bb610196d..52f633deb 100644 --- a/tests/nodes/neg_fp16x16/output_0.cairo +++ b/tests/nodes/neg_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/neg_fp8x23.cairo b/tests/nodes/neg_fp8x23.cairo index aefdd1ed5..c250cec1a 100644 --- a/tests/nodes/neg_fp8x23.cairo +++ b/tests/nodes/neg_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/neg_fp8x23/input_0.cairo b/tests/nodes/neg_fp8x23/input_0.cairo index cb5b0161b..ac883f560 100644 --- a/tests/nodes/neg_fp8x23/input_0.cairo +++ b/tests/nodes/neg_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/neg_fp8x23/output_0.cairo b/tests/nodes/neg_fp8x23/output_0.cairo index 0e56f359c..de69608c3 100644 --- a/tests/nodes/neg_fp8x23/output_0.cairo +++ b/tests/nodes/neg_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/neg_i32.cairo b/tests/nodes/neg_i32.cairo index 9e6fdc212..efbdf0c92 100644 --- a/tests/nodes/neg_i32.cairo +++ b/tests/nodes/neg_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/neg_i32/input_0.cairo b/tests/nodes/neg_i32/input_0.cairo index 985826d57..5fb5552bd 100644 --- a/tests/nodes/neg_i32/input_0.cairo +++ b/tests/nodes/neg_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/neg_i32/output_0.cairo b/tests/nodes/neg_i32/output_0.cairo index ed55bfd0b..f2b2482e0 100644 --- a/tests/nodes/neg_i32/output_0.cairo +++ b/tests/nodes/neg_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/neg_i8.cairo b/tests/nodes/neg_i8.cairo index 001a97927..17ed8945d 100644 --- a/tests/nodes/neg_i8.cairo +++ b/tests/nodes/neg_i8.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/neg_i8/input_0.cairo b/tests/nodes/neg_i8/input_0.cairo index f4f1b41fb..f0edb8fcb 100644 --- a/tests/nodes/neg_i8/input_0.cairo +++ b/tests/nodes/neg_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/neg_i8/output_0.cairo b/tests/nodes/neg_i8/output_0.cairo index 1c7131cb4..9b48bb011 100644 --- a/tests/nodes/neg_i8/output_0.cairo +++ b/tests/nodes/neg_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/nonzero_fp16x16_2d.cairo b/tests/nodes/nonzero_fp16x16_2d.cairo index b8f8e68fe..24cc72732 100644 --- a/tests/nodes/nonzero_fp16x16_2d.cairo +++ b/tests/nodes/nonzero_fp16x16_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_fp16x16_2d/input_0.cairo b/tests/nodes/nonzero_fp16x16_2d/input_0.cairo index 22d2f30c1..f9a59cf49 100644 --- a/tests/nodes/nonzero_fp16x16_2d/input_0.cairo +++ b/tests/nodes/nonzero_fp16x16_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/nonzero_fp16x16_2d/output_0.cairo b/tests/nodes/nonzero_fp16x16_2d/output_0.cairo index d5aa03c44..a2071fc22 100644 --- a/tests/nodes/nonzero_fp16x16_2d/output_0.cairo +++ b/tests/nodes/nonzero_fp16x16_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_fp16x16_3d.cairo b/tests/nodes/nonzero_fp16x16_3d.cairo index 8bd25b950..c0dc50fc0 100644 --- a/tests/nodes/nonzero_fp16x16_3d.cairo +++ b/tests/nodes/nonzero_fp16x16_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_fp16x16_3d/input_0.cairo b/tests/nodes/nonzero_fp16x16_3d/input_0.cairo index db36b8255..ffc27e669 100644 --- a/tests/nodes/nonzero_fp16x16_3d/input_0.cairo +++ b/tests/nodes/nonzero_fp16x16_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/nonzero_fp16x16_3d/output_0.cairo b/tests/nodes/nonzero_fp16x16_3d/output_0.cairo index cb3712efa..a387cd5ae 100644 --- a/tests/nodes/nonzero_fp16x16_3d/output_0.cairo +++ b/tests/nodes/nonzero_fp16x16_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_fp8x23_2d.cairo b/tests/nodes/nonzero_fp8x23_2d.cairo index 9df54a16b..01b0d2dc4 100644 --- a/tests/nodes/nonzero_fp8x23_2d.cairo +++ b/tests/nodes/nonzero_fp8x23_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_fp8x23_2d/input_0.cairo b/tests/nodes/nonzero_fp8x23_2d/input_0.cairo index bd7bcf9f3..35e60c703 100644 --- a/tests/nodes/nonzero_fp8x23_2d/input_0.cairo +++ b/tests/nodes/nonzero_fp8x23_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/nonzero_fp8x23_2d/output_0.cairo b/tests/nodes/nonzero_fp8x23_2d/output_0.cairo index d5aa03c44..a2071fc22 100644 --- a/tests/nodes/nonzero_fp8x23_2d/output_0.cairo +++ b/tests/nodes/nonzero_fp8x23_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_fp8x23_3d.cairo b/tests/nodes/nonzero_fp8x23_3d.cairo index 2aa3aa762..69e413a54 100644 --- a/tests/nodes/nonzero_fp8x23_3d.cairo +++ b/tests/nodes/nonzero_fp8x23_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_fp8x23_3d/input_0.cairo b/tests/nodes/nonzero_fp8x23_3d/input_0.cairo index 6b2e05fe1..1f7ea9fae 100644 --- a/tests/nodes/nonzero_fp8x23_3d/input_0.cairo +++ b/tests/nodes/nonzero_fp8x23_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/nonzero_fp8x23_3d/output_0.cairo b/tests/nodes/nonzero_fp8x23_3d/output_0.cairo index c27dd29ed..e3fadc061 100644 --- a/tests/nodes/nonzero_fp8x23_3d/output_0.cairo +++ b/tests/nodes/nonzero_fp8x23_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_i32_2d.cairo b/tests/nodes/nonzero_i32_2d.cairo index c6a0092fc..1c45f863c 100644 --- a/tests/nodes/nonzero_i32_2d.cairo +++ b/tests/nodes/nonzero_i32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_i32_2d/input_0.cairo b/tests/nodes/nonzero_i32_2d/input_0.cairo index 74dd89286..af21bb5a2 100644 --- a/tests/nodes/nonzero_i32_2d/input_0.cairo +++ b/tests/nodes/nonzero_i32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/nonzero_i32_2d/output_0.cairo b/tests/nodes/nonzero_i32_2d/output_0.cairo index d5aa03c44..a2071fc22 100644 --- a/tests/nodes/nonzero_i32_2d/output_0.cairo +++ b/tests/nodes/nonzero_i32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_i32_3d.cairo b/tests/nodes/nonzero_i32_3d.cairo index ca2248c56..fd8d92ae5 100644 --- a/tests/nodes/nonzero_i32_3d.cairo +++ b/tests/nodes/nonzero_i32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_i32_3d/input_0.cairo b/tests/nodes/nonzero_i32_3d/input_0.cairo index 4e50dc2ec..c8d9c150f 100644 --- a/tests/nodes/nonzero_i32_3d/input_0.cairo +++ b/tests/nodes/nonzero_i32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/nonzero_i32_3d/output_0.cairo b/tests/nodes/nonzero_i32_3d/output_0.cairo index 22f2456ea..ec0c180f8 100644 --- a/tests/nodes/nonzero_i32_3d/output_0.cairo +++ b/tests/nodes/nonzero_i32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_i8_2d.cairo b/tests/nodes/nonzero_i8_2d.cairo index ab5f4da5d..239f71704 100644 --- a/tests/nodes/nonzero_i8_2d.cairo +++ b/tests/nodes/nonzero_i8_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_i8_2d/input_0.cairo b/tests/nodes/nonzero_i8_2d/input_0.cairo index 5563d8a3d..56ad202c7 100644 --- a/tests/nodes/nonzero_i8_2d/input_0.cairo +++ b/tests/nodes/nonzero_i8_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/nonzero_i8_2d/output_0.cairo b/tests/nodes/nonzero_i8_2d/output_0.cairo index d5aa03c44..a2071fc22 100644 --- a/tests/nodes/nonzero_i8_2d/output_0.cairo +++ b/tests/nodes/nonzero_i8_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_i8_3d.cairo b/tests/nodes/nonzero_i8_3d.cairo index 400dfbf79..e839c0dfb 100644 --- a/tests/nodes/nonzero_i8_3d.cairo +++ b/tests/nodes/nonzero_i8_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_i8_3d/input_0.cairo b/tests/nodes/nonzero_i8_3d/input_0.cairo index 62cec782b..9f60b3645 100644 --- a/tests/nodes/nonzero_i8_3d/input_0.cairo +++ b/tests/nodes/nonzero_i8_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/nonzero_i8_3d/output_0.cairo b/tests/nodes/nonzero_i8_3d/output_0.cairo index b4911633c..882adc81e 100644 --- a/tests/nodes/nonzero_i8_3d/output_0.cairo +++ b/tests/nodes/nonzero_i8_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_u32_2d.cairo b/tests/nodes/nonzero_u32_2d.cairo index dea009a85..0932ce05a 100644 --- a/tests/nodes/nonzero_u32_2d.cairo +++ b/tests/nodes/nonzero_u32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_u32_2d/input_0.cairo b/tests/nodes/nonzero_u32_2d/input_0.cairo index a6c2b077b..d425689ed 100644 --- a/tests/nodes/nonzero_u32_2d/input_0.cairo +++ b/tests/nodes/nonzero_u32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_u32_2d/output_0.cairo b/tests/nodes/nonzero_u32_2d/output_0.cairo index d5aa03c44..a2071fc22 100644 --- a/tests/nodes/nonzero_u32_2d/output_0.cairo +++ b/tests/nodes/nonzero_u32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_u32_3d.cairo b/tests/nodes/nonzero_u32_3d.cairo index fd97b701f..9db89541a 100644 --- a/tests/nodes/nonzero_u32_3d.cairo +++ b/tests/nodes/nonzero_u32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/nonzero_u32_3d/input_0.cairo b/tests/nodes/nonzero_u32_3d/input_0.cairo index a4b25aef9..7a0b9636d 100644 --- a/tests/nodes/nonzero_u32_3d/input_0.cairo +++ b/tests/nodes/nonzero_u32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/nonzero_u32_3d/output_0.cairo b/tests/nodes/nonzero_u32_3d/output_0.cairo index d601688cf..2a0463372 100644 --- a/tests/nodes/nonzero_u32_3d/output_0.cairo +++ b/tests/nodes/nonzero_u32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/not_bool.cairo b/tests/nodes/not_bool.cairo index eec0d20ca..65d2cfea6 100644 --- a/tests/nodes/not_bool.cairo +++ b/tests/nodes/not_bool.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::BoolTensor; use orion::operators::tensor::BoolTensorPartialEq; diff --git a/tests/nodes/not_bool/input_0.cairo b/tests/nodes/not_bool/input_0.cairo index 54ca73dbe..25222167b 100644 --- a/tests/nodes/not_bool/input_0.cairo +++ b/tests/nodes/not_bool/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/not_bool/output_0.cairo b/tests/nodes/not_bool/output_0.cairo index 73de3117f..24047b93e 100644 --- a/tests/nodes/not_bool/output_0.cairo +++ b/tests/nodes/not_bool/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensor; diff --git a/tests/nodes/or_fp16x16.cairo b/tests/nodes/or_fp16x16.cairo index b87ccd352..63e884aaa 100644 --- a/tests/nodes/or_fp16x16.cairo +++ b/tests/nodes/or_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_fp16x16/input_0.cairo b/tests/nodes/or_fp16x16/input_0.cairo index 39271a20a..bae4db4b2 100644 --- a/tests/nodes/or_fp16x16/input_0.cairo +++ b/tests/nodes/or_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp16x16/input_1.cairo b/tests/nodes/or_fp16x16/input_1.cairo index 32742590c..0b094c5bc 100644 --- a/tests/nodes/or_fp16x16/input_1.cairo +++ b/tests/nodes/or_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp16x16/output_0.cairo b/tests/nodes/or_fp16x16/output_0.cairo index ebd674760..ba8d8c4f8 100644 --- a/tests/nodes/or_fp16x16/output_0.cairo +++ b/tests/nodes/or_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_fp16x16_broadcast.cairo b/tests/nodes/or_fp16x16_broadcast.cairo index 048efd21e..8995823b3 100644 --- a/tests/nodes/or_fp16x16_broadcast.cairo +++ b/tests/nodes/or_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_fp16x16_broadcast/input_0.cairo b/tests/nodes/or_fp16x16_broadcast/input_0.cairo index b0871b798..216a40504 100644 --- a/tests/nodes/or_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/or_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp16x16_broadcast/input_1.cairo b/tests/nodes/or_fp16x16_broadcast/input_1.cairo index eaa1dc6f9..c01da9b6c 100644 --- a/tests/nodes/or_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/or_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp16x16_broadcast/output_0.cairo b/tests/nodes/or_fp16x16_broadcast/output_0.cairo index 3883dcaf3..66356e88d 100644 --- a/tests/nodes/or_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/or_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_fp8x23.cairo b/tests/nodes/or_fp8x23.cairo index 5f502d4a9..669b2cd6c 100644 --- a/tests/nodes/or_fp8x23.cairo +++ b/tests/nodes/or_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_fp8x23/input_0.cairo b/tests/nodes/or_fp8x23/input_0.cairo index b15b8a270..062ab50e0 100644 --- a/tests/nodes/or_fp8x23/input_0.cairo +++ b/tests/nodes/or_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp8x23/input_1.cairo b/tests/nodes/or_fp8x23/input_1.cairo index 243c420f2..dd01860bd 100644 --- a/tests/nodes/or_fp8x23/input_1.cairo +++ b/tests/nodes/or_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp8x23/output_0.cairo b/tests/nodes/or_fp8x23/output_0.cairo index 488f2c4c7..a5a3e5760 100644 --- a/tests/nodes/or_fp8x23/output_0.cairo +++ b/tests/nodes/or_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_fp8x23_broadcast.cairo b/tests/nodes/or_fp8x23_broadcast.cairo index 17ffc6fa0..c8bd6df67 100644 --- a/tests/nodes/or_fp8x23_broadcast.cairo +++ b/tests/nodes/or_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_fp8x23_broadcast/input_0.cairo b/tests/nodes/or_fp8x23_broadcast/input_0.cairo index b72939989..42f1a489e 100644 --- a/tests/nodes/or_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/or_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp8x23_broadcast/input_1.cairo b/tests/nodes/or_fp8x23_broadcast/input_1.cairo index 7c87203d4..623758258 100644 --- a/tests/nodes/or_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/or_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/or_fp8x23_broadcast/output_0.cairo b/tests/nodes/or_fp8x23_broadcast/output_0.cairo index 3883dcaf3..66356e88d 100644 --- a/tests/nodes/or_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/or_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_i32.cairo b/tests/nodes/or_i32.cairo index b1aa245e8..3948aaaa4 100644 --- a/tests/nodes/or_i32.cairo +++ b/tests/nodes/or_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_i32/input_0.cairo b/tests/nodes/or_i32/input_0.cairo index c6b1ffeff..847586e5a 100644 --- a/tests/nodes/or_i32/input_0.cairo +++ b/tests/nodes/or_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/or_i32/input_1.cairo b/tests/nodes/or_i32/input_1.cairo index a33450e85..ec5fd650d 100644 --- a/tests/nodes/or_i32/input_1.cairo +++ b/tests/nodes/or_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/or_i32/output_0.cairo b/tests/nodes/or_i32/output_0.cairo index 24b60a81c..049cf0729 100644 --- a/tests/nodes/or_i32/output_0.cairo +++ b/tests/nodes/or_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_i32_broadcast.cairo b/tests/nodes/or_i32_broadcast.cairo index be27831b1..0bd40073d 100644 --- a/tests/nodes/or_i32_broadcast.cairo +++ b/tests/nodes/or_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_i32_broadcast/input_0.cairo b/tests/nodes/or_i32_broadcast/input_0.cairo index 4fa1dc41f..516a3765a 100644 --- a/tests/nodes/or_i32_broadcast/input_0.cairo +++ b/tests/nodes/or_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/or_i32_broadcast/input_1.cairo b/tests/nodes/or_i32_broadcast/input_1.cairo index 6090f81a5..902cae30d 100644 --- a/tests/nodes/or_i32_broadcast/input_1.cairo +++ b/tests/nodes/or_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/or_i32_broadcast/output_0.cairo b/tests/nodes/or_i32_broadcast/output_0.cairo index 3883dcaf3..66356e88d 100644 --- a/tests/nodes/or_i32_broadcast/output_0.cairo +++ b/tests/nodes/or_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_i8.cairo b/tests/nodes/or_i8.cairo index 9a25e2993..eb0042297 100644 --- a/tests/nodes/or_i8.cairo +++ b/tests/nodes/or_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_i8/input_0.cairo b/tests/nodes/or_i8/input_0.cairo index de3f47e02..a41e07739 100644 --- a/tests/nodes/or_i8/input_0.cairo +++ b/tests/nodes/or_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/or_i8/input_1.cairo b/tests/nodes/or_i8/input_1.cairo index 36fb058bd..d46122aa6 100644 --- a/tests/nodes/or_i8/input_1.cairo +++ b/tests/nodes/or_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/or_i8/output_0.cairo b/tests/nodes/or_i8/output_0.cairo index 1d419f6db..9c502f29e 100644 --- a/tests/nodes/or_i8/output_0.cairo +++ b/tests/nodes/or_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_i8_broadcast.cairo b/tests/nodes/or_i8_broadcast.cairo index 562dda347..1617ef17d 100644 --- a/tests/nodes/or_i8_broadcast.cairo +++ b/tests/nodes/or_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_i8_broadcast/input_0.cairo b/tests/nodes/or_i8_broadcast/input_0.cairo index 92264b2fa..ea9f41c88 100644 --- a/tests/nodes/or_i8_broadcast/input_0.cairo +++ b/tests/nodes/or_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/or_i8_broadcast/input_1.cairo b/tests/nodes/or_i8_broadcast/input_1.cairo index 5cd49c4e6..61a18dbc3 100644 --- a/tests/nodes/or_i8_broadcast/input_1.cairo +++ b/tests/nodes/or_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/or_i8_broadcast/output_0.cairo b/tests/nodes/or_i8_broadcast/output_0.cairo index 3883dcaf3..66356e88d 100644 --- a/tests/nodes/or_i8_broadcast/output_0.cairo +++ b/tests/nodes/or_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_u32.cairo b/tests/nodes/or_u32.cairo index 7e1101c4a..089aa57b6 100644 --- a/tests/nodes/or_u32.cairo +++ b/tests/nodes/or_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_u32/input_0.cairo b/tests/nodes/or_u32/input_0.cairo index 8a010c647..af75e0844 100644 --- a/tests/nodes/or_u32/input_0.cairo +++ b/tests/nodes/or_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_u32/input_1.cairo b/tests/nodes/or_u32/input_1.cairo index 01db2f378..8fb5293bd 100644 --- a/tests/nodes/or_u32/input_1.cairo +++ b/tests/nodes/or_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_u32/output_0.cairo b/tests/nodes/or_u32/output_0.cairo index 7819cd1e3..6bc8cbfbc 100644 --- a/tests/nodes/or_u32/output_0.cairo +++ b/tests/nodes/or_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_u32_broadcast.cairo b/tests/nodes/or_u32_broadcast.cairo index 7e1e95330..6cab73044 100644 --- a/tests/nodes/or_u32_broadcast.cairo +++ b/tests/nodes/or_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/or_u32_broadcast/input_0.cairo b/tests/nodes/or_u32_broadcast/input_0.cairo index 804a2a6c1..8e0ec28d2 100644 --- a/tests/nodes/or_u32_broadcast/input_0.cairo +++ b/tests/nodes/or_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_u32_broadcast/input_1.cairo b/tests/nodes/or_u32_broadcast/input_1.cairo index 64e7fef03..6dc047162 100644 --- a/tests/nodes/or_u32_broadcast/input_1.cairo +++ b/tests/nodes/or_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/or_u32_broadcast/output_0.cairo b/tests/nodes/or_u32_broadcast/output_0.cairo index 3883dcaf3..66356e88d 100644 --- a/tests/nodes/or_u32_broadcast/output_0.cairo +++ b/tests/nodes/or_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/pow_fp16x16.cairo b/tests/nodes/pow_fp16x16.cairo index 184fd5d91..925fc0d68 100644 --- a/tests/nodes/pow_fp16x16.cairo +++ b/tests/nodes/pow_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/pow_fp16x16/input_0.cairo b/tests/nodes/pow_fp16x16/input_0.cairo index 5d7b7d5d7..247a24dfe 100644 --- a/tests/nodes/pow_fp16x16/input_0.cairo +++ b/tests/nodes/pow_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/pow_fp16x16/input_1.cairo b/tests/nodes/pow_fp16x16/input_1.cairo index 9bd1cb813..c95cb9ed4 100644 --- a/tests/nodes/pow_fp16x16/input_1.cairo +++ b/tests/nodes/pow_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/pow_fp16x16/output_0.cairo b/tests/nodes/pow_fp16x16/output_0.cairo index aa13aa708..47390eee7 100644 --- a/tests/nodes/pow_fp16x16/output_0.cairo +++ b/tests/nodes/pow_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/pow_fp16x16_broadcast.cairo b/tests/nodes/pow_fp16x16_broadcast.cairo index 65a5e204f..1290d3f94 100644 --- a/tests/nodes/pow_fp16x16_broadcast.cairo +++ b/tests/nodes/pow_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/pow_fp16x16_broadcast/input_0.cairo b/tests/nodes/pow_fp16x16_broadcast/input_0.cairo index 5d7b7d5d7..247a24dfe 100644 --- a/tests/nodes/pow_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/pow_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/pow_fp16x16_broadcast/input_1.cairo b/tests/nodes/pow_fp16x16_broadcast/input_1.cairo index 882d809a9..21ef3ffc7 100644 --- a/tests/nodes/pow_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/pow_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/pow_fp16x16_broadcast/output_0.cairo b/tests/nodes/pow_fp16x16_broadcast/output_0.cairo index 88175ab45..13d69a292 100644 --- a/tests/nodes/pow_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/pow_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/pow_fp8x23.cairo b/tests/nodes/pow_fp8x23.cairo index 232bb68ec..e9c1acac5 100644 --- a/tests/nodes/pow_fp8x23.cairo +++ b/tests/nodes/pow_fp8x23.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; diff --git a/tests/nodes/pow_fp8x23/input_0.cairo b/tests/nodes/pow_fp8x23/input_0.cairo index d1d57cd57..886e58c43 100644 --- a/tests/nodes/pow_fp8x23/input_0.cairo +++ b/tests/nodes/pow_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/pow_fp8x23/input_1.cairo b/tests/nodes/pow_fp8x23/input_1.cairo index 0ae3da8ef..5ba120049 100644 --- a/tests/nodes/pow_fp8x23/input_1.cairo +++ b/tests/nodes/pow_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/pow_fp8x23/output_0.cairo b/tests/nodes/pow_fp8x23/output_0.cairo index c63189380..3a549fa2d 100644 --- a/tests/nodes/pow_fp8x23/output_0.cairo +++ b/tests/nodes/pow_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/pow_fp8x23_broadcast.cairo b/tests/nodes/pow_fp8x23_broadcast.cairo index d698a0b87..748a3304b 100644 --- a/tests/nodes/pow_fp8x23_broadcast.cairo +++ b/tests/nodes/pow_fp8x23_broadcast.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::FP8x23Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; diff --git a/tests/nodes/pow_fp8x23_broadcast/input_0.cairo b/tests/nodes/pow_fp8x23_broadcast/input_0.cairo index d1d57cd57..886e58c43 100644 --- a/tests/nodes/pow_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/pow_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/pow_fp8x23_broadcast/input_1.cairo b/tests/nodes/pow_fp8x23_broadcast/input_1.cairo index 4e33d4a18..935f52f36 100644 --- a/tests/nodes/pow_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/pow_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/pow_fp8x23_broadcast/output_0.cairo b/tests/nodes/pow_fp8x23_broadcast/output_0.cairo index 3d96d6d3e..90dbc4692 100644 --- a/tests/nodes/pow_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/pow_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 f6bb75879..a03320371 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 d65ccc294..c119af06d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 469065dfb..34c25cfdd 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo b/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo index 78fcf0745..6ad11b164 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 d65ccc294..c119af06d 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 9b891a9d8..62ebfdf59 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 06e2979d1..3d5db8ece 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 24b177504..495e3f3bb 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 2c32d5175..ed9773ab9 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 48aad5edc..04fe6d1ed 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 974166ede..649503f71 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 f00310f21..c7488bd35 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo b/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo index 6a8fe3025..1104ec987 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 974166ede..649503f71 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 ed64785b0..3837ba804 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 c34580015..0a611bbaa 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 83083d532..cea6e9a72 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 e63f27eb6..3b38ad281 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 a61abd308..44f6a1d68 100644 --- a/tests/nodes/reduce_l1_i32_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_i32_export_do_not_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 473726054..8a0becc5d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 54b9bb2e2..395ca510d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_l1_i32_export_keepdims.cairo b/tests/nodes/reduce_l1_i32_export_keepdims.cairo index 93c0097fe..3cb390654 100644 --- a/tests/nodes/reduce_l1_i32_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_i32_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 473726054..8a0becc5d 100644 --- a/tests/nodes/reduce_l1_i32_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 0d2a269cc..235e2fb3b 100644 --- a/tests/nodes/reduce_l1_i32_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 401147413..07c858e40 100644 --- a/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 f6679d594..1a0caaebc 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 ee60e4b2d..2e06b6072 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 3c10a98ca..b42a37805 100644 --- a/tests/nodes/reduce_l1_i8_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_i8_export_do_not_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 f0b35dada..f539bc536 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 48759052e..564693d96 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/reduce_l1_i8_export_keepdims.cairo b/tests/nodes/reduce_l1_i8_export_keepdims.cairo index fe78e32b1..964b5795f 100644 --- a/tests/nodes/reduce_l1_i8_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_i8_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 f0b35dada..f539bc536 100644 --- a/tests/nodes/reduce_l1_i8_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 eb47fa2ec..96b0f8e08 100644 --- a/tests/nodes/reduce_l1_i8_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 696b43e57..c023fa4eb 100644 --- a/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 303e14acb..57a15ef6a 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 b6e133c08..e1bed700b 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 19d04b91e..fa8eadd24 100644 --- a/tests/nodes/reduce_l1_u32_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_u32_export_do_not_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 ffe2ae114..874626c95 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 628d60f78..875923369 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_l1_u32_export_keepdims.cairo b/tests/nodes/reduce_l1_u32_export_keepdims.cairo index b7b53a21e..b103c1658 100644 --- a/tests/nodes/reduce_l1_u32_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_u32_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 ffe2ae114..874626c95 100644 --- a/tests/nodes/reduce_l1_u32_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 f9fbfe99b..3beefc6d7 100644 --- a/tests/nodes/reduce_l1_u32_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 d3dc9612c..3ff7f55b3 100644 --- a/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 d24e18d36..64d914cef 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 12c8f37e5..e5754f73c 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims.cairo b/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims.cairo index a8391d898..4220de46c 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/input_0.cairo index d65ccc294..c119af06d 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/output_0.cairo index 2ac178998..c82ac0f84 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_do_not_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp16x16_export_keepdims.cairo b/tests/nodes/reduce_l2_fp16x16_export_keepdims.cairo index 6c9f3ba96..47389a65d 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_keepdims.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/reduce_l2_fp16x16_export_keepdims/input_0.cairo b/tests/nodes/reduce_l2_fp16x16_export_keepdims/input_0.cairo index d65ccc294..c119af06d 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp16x16_export_keepdims/output_0.cairo b/tests/nodes/reduce_l2_fp16x16_export_keepdims/output_0.cairo index f6fb5dcd2..98124c509 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims.cairo index d7fb90de0..de0ab51ee 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/input_0.cairo index 24b177504..495e3f3bb 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/output_0.cairo index da695728b..1ca900d08 100644 --- a/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l2_fp16x16_export_negative_axes_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims.cairo b/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims.cairo index b9a893a55..d2efde995 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/input_0.cairo index 974166ede..649503f71 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/output_0.cairo index a3e1b86e6..6d5a9aa79 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_do_not_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp8x23_export_keepdims.cairo b/tests/nodes/reduce_l2_fp8x23_export_keepdims.cairo index bf4cc316c..b4ec52087 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_keepdims.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/reduce_l2_fp8x23_export_keepdims/input_0.cairo b/tests/nodes/reduce_l2_fp8x23_export_keepdims/input_0.cairo index 974166ede..649503f71 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp8x23_export_keepdims/output_0.cairo b/tests/nodes/reduce_l2_fp8x23_export_keepdims/output_0.cairo index f836af1df..2ced38907 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims.cairo index 8419e0f01..eca0f702a 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/input_0.cairo index 83083d532..cea6e9a72 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/output_0.cairo index 0b24b02b4..0283f359a 100644 --- a/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l2_fp8x23_export_negative_axes_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_mean_fp16x16_1D.cairo b/tests/nodes/reduce_mean_fp16x16_1D.cairo index fff2a717f..0c05f7229 100644 --- a/tests/nodes/reduce_mean_fp16x16_1D.cairo +++ b/tests/nodes/reduce_mean_fp16x16_1D.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo index 4ce1ac478..28f70e72b 100644 --- a/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo index c1a241ef9..a3740865b 100644 --- a/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo index d7ac8e7cc..48a3ced98 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; 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 f930430e8..f28cd9d36 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 c5e778de8..f443e7af0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_mean_fp16x16_2D_default.cairo b/tests/nodes/reduce_mean_fp16x16_2D_default.cairo index 4daa61cb0..ccd09340a 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_default.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; 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 f930430e8..f28cd9d36 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 cb0b45c75..3c3b947e4 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo index aadf6ca8d..f774fb3a9 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; 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 f930430e8..f28cd9d36 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 f49fbed25..58118b012 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_mean_fp8x23_1D.cairo b/tests/nodes/reduce_mean_fp8x23_1D.cairo index 6f0b2fce3..0873270cc 100644 --- a/tests/nodes/reduce_mean_fp8x23_1D.cairo +++ b/tests/nodes/reduce_mean_fp8x23_1D.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; diff --git a/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo index e0b0864ea..72fc64be4 100644 --- a/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo index ce0d44c93..741b3bb34 100644 --- a/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo index 4eb932a74..a16fd089b 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; 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 fe51dd535..4da164c5b 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 11d2f60eb..4c30658b7 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_fp8x23_2D_default.cairo b/tests/nodes/reduce_mean_fp8x23_2D_default.cairo index aba87b8ed..ffe32b3ca 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; 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 fe51dd535..4da164c5b 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 b0971092f..4153109ee 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo index 9aa5ebf31..68ba8b05a 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; 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 fe51dd535..4da164c5b 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 7d6a238a0..b9e062e75 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_i32_1D.cairo b/tests/nodes/reduce_mean_i32_1D.cairo index 1a3ee408f..92bf79235 100644 --- a/tests/nodes/reduce_mean_i32_1D.cairo +++ b/tests/nodes/reduce_mean_i32_1D.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/reduce_mean_i32_1D/input_0.cairo b/tests/nodes/reduce_mean_i32_1D/input_0.cairo index 0f01c1e62..c2d41d222 100644 --- a/tests/nodes/reduce_mean_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_i32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_mean_i32_1D/output_0.cairo b/tests/nodes/reduce_mean_i32_1D/output_0.cairo index 8f879b6fd..bbf25fb87 100644 --- a/tests/nodes/reduce_mean_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_i32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_mean_i32_2D_axis_1.cairo b/tests/nodes/reduce_mean_i32_2D_axis_1.cairo index c0f26b36e..0b4fb2bb6 100644 --- a/tests/nodes/reduce_mean_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_i32_2D_axis_1.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; 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 1af9ec7cc..71e72d9d6 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 33f9f46e3..b8cc59f24 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_mean_i32_2D_default.cairo b/tests/nodes/reduce_mean_i32_2D_default.cairo index 60c974c13..f654410e8 100644 --- a/tests/nodes/reduce_mean_i32_2D_default.cairo +++ b/tests/nodes/reduce_mean_i32_2D_default.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; 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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_mean_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 a2da83559..5af32fad7 100644 --- a/tests/nodes/reduce_mean_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_mean_i32_2D_keepdims.cairo b/tests/nodes/reduce_mean_i32_2D_keepdims.cairo index fa68cbd94..0344d99d9 100644 --- a/tests/nodes/reduce_mean_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_i32_2D_keepdims.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; 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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_mean_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 15657a928..adda59655 100644 --- a/tests/nodes/reduce_mean_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_mean_i8_1D.cairo b/tests/nodes/reduce_mean_i8_1D.cairo index 283a41dac..012f14a89 100644 --- a/tests/nodes/reduce_mean_i8_1D.cairo +++ b/tests/nodes/reduce_mean_i8_1D.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; diff --git a/tests/nodes/reduce_mean_i8_1D/input_0.cairo b/tests/nodes/reduce_mean_i8_1D/input_0.cairo index 1d76655fb..0a7ed41eb 100644 --- a/tests/nodes/reduce_mean_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_i8_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_i8_1D/output_0.cairo b/tests/nodes/reduce_mean_i8_1D/output_0.cairo index 7e87c24f4..a57497bbe 100644 --- a/tests/nodes/reduce_mean_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_i8_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_i8_2D_axis_1.cairo b/tests/nodes/reduce_mean_i8_2D_axis_1.cairo index 0cc13fcd0..5d36350be 100644 --- a/tests/nodes/reduce_mean_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_i8_2D_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; 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 e7a52a260..8fa37da90 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 9689a7aa4..1800189c1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_i8_2D_default.cairo b/tests/nodes/reduce_mean_i8_2D_default.cairo index 88b0c9080..e899d6141 100644 --- a/tests/nodes/reduce_mean_i8_2D_default.cairo +++ b/tests/nodes/reduce_mean_i8_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; 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 e7a52a260..8fa37da90 100644 --- a/tests/nodes/reduce_mean_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 47c647ea8..559674aa0 100644 --- a/tests/nodes/reduce_mean_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_i8_2D_keepdims.cairo b/tests/nodes/reduce_mean_i8_2D_keepdims.cairo index f46833611..01ee0d557 100644 --- a/tests/nodes/reduce_mean_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_i8_2D_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; 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 e7a52a260..8fa37da90 100644 --- a/tests/nodes/reduce_mean_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 3b2ebf796..8c5e08ea6 100644 --- a/tests/nodes/reduce_mean_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_mean_u32_1D.cairo b/tests/nodes/reduce_mean_u32_1D.cairo index 02df97953..d6bf1a7e6 100644 --- a/tests/nodes/reduce_mean_u32_1D.cairo +++ b/tests/nodes/reduce_mean_u32_1D.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_mean_u32_1D/input_0.cairo b/tests/nodes/reduce_mean_u32_1D/input_0.cairo index 60317db10..0c4cb9786 100644 --- a/tests/nodes/reduce_mean_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_u32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_mean_u32_1D/output_0.cairo b/tests/nodes/reduce_mean_u32_1D/output_0.cairo index 35f3cdfce..31cebe9de 100644 --- a/tests/nodes/reduce_mean_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_u32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_mean_u32_2D_axis_1.cairo b/tests/nodes/reduce_mean_u32_2D_axis_1.cairo index 6a5790d28..203efd065 100644 --- a/tests/nodes/reduce_mean_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_u32_2D_axis_1.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; 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 8e3c51970..3de7330b0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 8e871bbfd..054082cce 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_mean_u32_2D_default.cairo b/tests/nodes/reduce_mean_u32_2D_default.cairo index 33ea58412..6d82f083a 100644 --- a/tests/nodes/reduce_mean_u32_2D_default.cairo +++ b/tests/nodes/reduce_mean_u32_2D_default.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_mean_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 54c4dbbc0..44ed1fa4f 100644 --- a/tests/nodes/reduce_mean_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_mean_u32_2D_keepdims.cairo b/tests/nodes/reduce_mean_u32_2D_keepdims.cairo index 82a019f4c..27a8654b2 100644 --- a/tests/nodes/reduce_mean_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_u32_2D_keepdims.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::U32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32Tensor; 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_mean_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 abdf2e9d5..5925c78ea 100644 --- a/tests/nodes/reduce_mean_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_min_fp16x16_1D.cairo b/tests/nodes/reduce_min_fp16x16_1D.cairo index 2fe04eab0..87a7d70e5 100644 --- a/tests/nodes/reduce_min_fp16x16_1D.cairo +++ b/tests/nodes/reduce_min_fp16x16_1D.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo index 4ce1ac478..28f70e72b 100644 --- a/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo index b6702d88e..0dc58a8fd 100644 --- a/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo index c2b02de4f..7bf770062 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 f930430e8..f28cd9d36 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 3a7987ad7..1ebaa1646 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_min_fp16x16_2D_default.cairo b/tests/nodes/reduce_min_fp16x16_2D_default.cairo index e09a43e6b..3b6adf113 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_default.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 f930430e8..f28cd9d36 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 e0814d34d..1b3b8fd5c 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo index f5c70c06b..1300ccf2e 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 f930430e8..f28cd9d36 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 2f6936ccb..07f796ebd 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_min_fp8x23_1D.cairo b/tests/nodes/reduce_min_fp8x23_1D.cairo index 362f99aca..49aa396e2 100644 --- a/tests/nodes/reduce_min_fp8x23_1D.cairo +++ b/tests/nodes/reduce_min_fp8x23_1D.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo index e0b0864ea..72fc64be4 100644 --- a/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo index 7efd27555..0d640885a 100644 --- a/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo index cc23ecd7d..caf386a62 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 fe51dd535..4da164c5b 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 5379c89de..85d1394dc 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_fp8x23_2D_default.cairo b/tests/nodes/reduce_min_fp8x23_2D_default.cairo index f4440ca3b..297e84ba4 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_default.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 fe51dd535..4da164c5b 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 4bbff30a2..f0368a52f 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo index 0164304a4..2a62cc225 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 fe51dd535..4da164c5b 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 a1e9688f6..53cd82225 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_i32_1D.cairo b/tests/nodes/reduce_min_i32_1D.cairo index b4ef5b675..13d8ad8ca 100644 --- a/tests/nodes/reduce_min_i32_1D.cairo +++ b/tests/nodes/reduce_min_i32_1D.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_min_i32_1D/input_0.cairo b/tests/nodes/reduce_min_i32_1D/input_0.cairo index 0f01c1e62..c2d41d222 100644 --- a/tests/nodes/reduce_min_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_min_i32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_min_i32_1D/output_0.cairo b/tests/nodes/reduce_min_i32_1D/output_0.cairo index cc24fe978..cf019e58c 100644 --- a/tests/nodes/reduce_min_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_min_i32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_min_i32_2D_axis_1.cairo b/tests/nodes/reduce_min_i32_2D_axis_1.cairo index 18aac7c13..e9156ec03 100644 --- a/tests/nodes/reduce_min_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_i32_2D_axis_1.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 1af9ec7cc..71e72d9d6 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 33f9f46e3..b8cc59f24 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_min_i32_2D_default.cairo b/tests/nodes/reduce_min_i32_2D_default.cairo index 5f6673bb4..cd724078e 100644 --- a/tests/nodes/reduce_min_i32_2D_default.cairo +++ b/tests/nodes/reduce_min_i32_2D_default.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_min_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 e8178c3ce..6fd5786a0 100644 --- a/tests/nodes/reduce_min_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_min_i32_2D_keepdims.cairo b/tests/nodes/reduce_min_i32_2D_keepdims.cairo index 680c38f7b..2b3c1b580 100644 --- a/tests/nodes/reduce_min_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_i32_2D_keepdims.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_min_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 905606cf2..91765ff8e 100644 --- a/tests/nodes/reduce_min_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_min_i8_1D.cairo b/tests/nodes/reduce_min_i8_1D.cairo index a10609e44..578dd2f59 100644 --- a/tests/nodes/reduce_min_i8_1D.cairo +++ b/tests/nodes/reduce_min_i8_1D.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_min_i8_1D/input_0.cairo b/tests/nodes/reduce_min_i8_1D/input_0.cairo index 1d76655fb..0a7ed41eb 100644 --- a/tests/nodes/reduce_min_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_min_i8_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_i8_1D/output_0.cairo b/tests/nodes/reduce_min_i8_1D/output_0.cairo index 7efd27555..0d640885a 100644 --- a/tests/nodes/reduce_min_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_min_i8_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_i8_2D_axis_1.cairo b/tests/nodes/reduce_min_i8_2D_axis_1.cairo index afc054a84..e633af90e 100644 --- a/tests/nodes/reduce_min_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_i8_2D_axis_1.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 e7a52a260..8fa37da90 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 9689a7aa4..1800189c1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_i8_2D_default.cairo b/tests/nodes/reduce_min_i8_2D_default.cairo index ef9103279..a84d2fb77 100644 --- a/tests/nodes/reduce_min_i8_2D_default.cairo +++ b/tests/nodes/reduce_min_i8_2D_default.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 e7a52a260..8fa37da90 100644 --- a/tests/nodes/reduce_min_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 4bbff30a2..f0368a52f 100644 --- a/tests/nodes/reduce_min_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_i8_2D_keepdims.cairo b/tests/nodes/reduce_min_i8_2D_keepdims.cairo index 7e879c2cb..9196cf0e6 100644 --- a/tests/nodes/reduce_min_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_i8_2D_keepdims.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 e7a52a260..8fa37da90 100644 --- a/tests/nodes/reduce_min_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 a1e9688f6..53cd82225 100644 --- a/tests/nodes/reduce_min_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_min_u32_1D.cairo b/tests/nodes/reduce_min_u32_1D.cairo index 4f5051e52..dd0390d72 100644 --- a/tests/nodes/reduce_min_u32_1D.cairo +++ b/tests/nodes/reduce_min_u32_1D.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_min_u32_1D/input_0.cairo b/tests/nodes/reduce_min_u32_1D/input_0.cairo index 60317db10..0c4cb9786 100644 --- a/tests/nodes/reduce_min_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_min_u32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_min_u32_1D/output_0.cairo b/tests/nodes/reduce_min_u32_1D/output_0.cairo index 2374279b0..b37eb7383 100644 --- a/tests/nodes/reduce_min_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_min_u32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_min_u32_2D_axis_1.cairo b/tests/nodes/reduce_min_u32_2D_axis_1.cairo index d3a6e895f..b43478d43 100644 --- a/tests/nodes/reduce_min_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_u32_2D_axis_1.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 8e3c51970..3de7330b0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 8e871bbfd..054082cce 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_min_u32_2D_default.cairo b/tests/nodes/reduce_min_u32_2D_default.cairo index 40e69e302..5e5b7718a 100644 --- a/tests/nodes/reduce_min_u32_2D_default.cairo +++ b/tests/nodes/reduce_min_u32_2D_default.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_min_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 962f113cb..bebff6817 100644 --- a/tests/nodes/reduce_min_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_min_u32_2D_keepdims.cairo b/tests/nodes/reduce_min_u32_2D_keepdims.cairo index f107c14f4..24d7b4140 100644 --- a/tests/nodes/reduce_min_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_u32_2D_keepdims.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_min_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 8b3006d47..8502ad55f 100644 --- a/tests/nodes/reduce_min_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_prod_fp16x16_1D.cairo b/tests/nodes/reduce_prod_fp16x16_1D.cairo index c0198f388..2e6f69f0e 100644 --- a/tests/nodes/reduce_prod_fp16x16_1D.cairo +++ b/tests/nodes/reduce_prod_fp16x16_1D.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; #[test] diff --git a/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo index 4ce1ac478..28f70e72b 100644 --- a/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo index b6702d88e..0dc58a8fd 100644 --- a/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo index bfa4c0a1a..826c77717 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; #[test] 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 f930430e8..f28cd9d36 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 d3534bfa1..c4502f00a 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_prod_fp16x16_2D_default.cairo b/tests/nodes/reduce_prod_fp16x16_2D_default.cairo index 3191d9255..c078c72ae 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_default.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; #[test] 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 f930430e8..f28cd9d36 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 60697a9ef..aa1c705b2 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo index c51be7d97..a3ec93f4f 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; #[test] 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 f930430e8..f28cd9d36 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; 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 aee50214e..b158db3e5 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/reduce_prod_fp8x23_1D.cairo b/tests/nodes/reduce_prod_fp8x23_1D.cairo index 60043339a..ca19ee80b 100644 --- a/tests/nodes/reduce_prod_fp8x23_1D.cairo +++ b/tests/nodes/reduce_prod_fp8x23_1D.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo index e0b0864ea..72fc64be4 100644 --- a/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo index 7efd27555..0d640885a 100644 --- a/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo index 7aeac2794..6d6b38c40 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 fe51dd535..4da164c5b 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 d83be7b63..28bdc71c8 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_fp8x23_2D_default.cairo b/tests/nodes/reduce_prod_fp8x23_2D_default.cairo index bbb9ad19f..5e0065975 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_default.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 fe51dd535..4da164c5b 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 a7871ca64..c3c979e8b 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo index 85d325fb9..cb07d0227 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 fe51dd535..4da164c5b 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 97f6b9ca0..3a0da03ba 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_i32_1D.cairo b/tests/nodes/reduce_prod_i32_1D.cairo index b7fc26f87..c3944b1de 100644 --- a/tests/nodes/reduce_prod_i32_1D.cairo +++ b/tests/nodes/reduce_prod_i32_1D.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[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 0f01c1e62..c2d41d222 100644 --- a/tests/nodes/reduce_prod_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_i32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_prod_i32_1D/output_0.cairo b/tests/nodes/reduce_prod_i32_1D/output_0.cairo index cc24fe978..cf019e58c 100644 --- a/tests/nodes/reduce_prod_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_i32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_prod_i32_2D_axis_1.cairo b/tests/nodes/reduce_prod_i32_2D_axis_1.cairo index a57d4c716..2732151ee 100644 --- a/tests/nodes/reduce_prod_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_i32_2D_axis_1.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[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 1af9ec7cc..71e72d9d6 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 c52fbd9fc..c5b14e056 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_prod_i32_2D_default.cairo b/tests/nodes/reduce_prod_i32_2D_default.cairo index 3f8df6104..c92c19ca9 100644 --- a/tests/nodes/reduce_prod_i32_2D_default.cairo +++ b/tests/nodes/reduce_prod_i32_2D_default.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_prod_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 556bf4911..b2f7b6372 100644 --- a/tests/nodes/reduce_prod_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_prod_i32_2D_keepdims.cairo b/tests/nodes/reduce_prod_i32_2D_keepdims.cairo index a5b598f69..b71e847ca 100644 --- a/tests/nodes/reduce_prod_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_i32_2D_keepdims.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_prod_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 47e03ae9d..51cb515a1 100644 --- a/tests/nodes/reduce_prod_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_prod_i8_1D.cairo b/tests/nodes/reduce_prod_i8_1D.cairo index b499e10c1..66427af40 100644 --- a/tests/nodes/reduce_prod_i8_1D.cairo +++ b/tests/nodes/reduce_prod_i8_1D.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_i8_1D/input_0.cairo b/tests/nodes/reduce_prod_i8_1D/input_0.cairo index 1d76655fb..0a7ed41eb 100644 --- a/tests/nodes/reduce_prod_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_i8_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_i8_1D/output_0.cairo b/tests/nodes/reduce_prod_i8_1D/output_0.cairo index 7efd27555..0d640885a 100644 --- a/tests/nodes/reduce_prod_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_i8_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_i8_2D_axis_1.cairo b/tests/nodes/reduce_prod_i8_2D_axis_1.cairo index 7cb36553e..c885785b3 100644 --- a/tests/nodes/reduce_prod_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_i8_2D_axis_1.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 e7a52a260..8fa37da90 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 9c630cfed..2002101ac 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_i8_2D_default.cairo b/tests/nodes/reduce_prod_i8_2D_default.cairo index c04b59358..96620bd1f 100644 --- a/tests/nodes/reduce_prod_i8_2D_default.cairo +++ b/tests/nodes/reduce_prod_i8_2D_default.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 e7a52a260..8fa37da90 100644 --- a/tests/nodes/reduce_prod_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 4a13023ba..7cfab7651 100644 --- a/tests/nodes/reduce_prod_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_i8_2D_keepdims.cairo b/tests/nodes/reduce_prod_i8_2D_keepdims.cairo index d822c1ae3..0f290a380 100644 --- a/tests/nodes/reduce_prod_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_i8_2D_keepdims.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 e7a52a260..8fa37da90 100644 --- a/tests/nodes/reduce_prod_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; 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 2244888e7..b4cf78519 100644 --- a/tests/nodes/reduce_prod_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/reduce_prod_u32_1D.cairo b/tests/nodes/reduce_prod_u32_1D.cairo index 11e700531..70f4adfe9 100644 --- a/tests/nodes/reduce_prod_u32_1D.cairo +++ b/tests/nodes/reduce_prod_u32_1D.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_u32_1D/input_0.cairo b/tests/nodes/reduce_prod_u32_1D/input_0.cairo index 60317db10..0c4cb9786 100644 --- a/tests/nodes/reduce_prod_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_u32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_prod_u32_1D/output_0.cairo b/tests/nodes/reduce_prod_u32_1D/output_0.cairo index 2374279b0..b37eb7383 100644 --- a/tests/nodes/reduce_prod_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_u32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_prod_u32_2D_axis_1.cairo b/tests/nodes/reduce_prod_u32_2D_axis_1.cairo index d8830335e..00b9b0385 100644 --- a/tests/nodes/reduce_prod_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_u32_2D_axis_1.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 8e3c51970..3de7330b0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 7aa57e848..057472232 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_prod_u32_2D_default.cairo b/tests/nodes/reduce_prod_u32_2D_default.cairo index 71d61e049..358e1fc79 100644 --- a/tests/nodes/reduce_prod_u32_2D_default.cairo +++ b/tests/nodes/reduce_prod_u32_2D_default.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_prod_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 ab9787693..4d1257f83 100644 --- a/tests/nodes/reduce_prod_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_prod_u32_2D_keepdims.cairo b/tests/nodes/reduce_prod_u32_2D_keepdims.cairo index e1875a313..6ff64daac 100644 --- a/tests/nodes/reduce_prod_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_u32_2D_keepdims.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_prod_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 44ed1a287..d38fc1bb2 100644 --- a/tests/nodes/reduce_prod_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_sum_fp16x16_1D.cairo b/tests/nodes/reduce_sum_fp16x16_1D.cairo index 93ef6029b..f333b21a8 100644 --- a/tests/nodes/reduce_sum_fp16x16_1D.cairo +++ b/tests/nodes/reduce_sum_fp16x16_1D.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo index d0f18fd7b..af090f1ab 100644 --- a/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo index 3626449ec..c8b5757e9 100644 --- a/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo index 57de11682..60cf39d37 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 fa5b07f39..c35b76cbe 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 8eab9e9f2..6ef425d27 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp16x16_2D_default.cairo b/tests/nodes/reduce_sum_fp16x16_2D_default.cairo index 16df954d3..b9e30e5ef 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 fa5b07f39..c35b76cbe 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 9ddaf6bfd..8452a052b 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo index 2044af265..857ed91a8 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 fa5b07f39..c35b76cbe 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 26f8c1c82..0d4c1e414 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp8x23_1D.cairo b/tests/nodes/reduce_sum_fp8x23_1D.cairo index 356391be6..43f3b6725 100644 --- a/tests/nodes/reduce_sum_fp8x23_1D.cairo +++ b/tests/nodes/reduce_sum_fp8x23_1D.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo index 7f38436ec..c20bb8620 100644 --- a/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo index c268b3030..75fbb7dd5 100644 --- a/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo index 2f527cdac..e261a3c3f 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 b1c81ef54..74098aa94 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 d5f2c78d7..376872413 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp8x23_2D_default.cairo b/tests/nodes/reduce_sum_fp8x23_2D_default.cairo index 6fed54652..b5a66d494 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 b1c81ef54..74098aa94 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 2c4059245..0b057bc88 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo index 258af2cf6..eb40efe3c 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 b1c81ef54..74098aa94 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 caf427a96..f8a5087b9 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_i32_1D.cairo b/tests/nodes/reduce_sum_i32_1D.cairo index f5ddd86d3..299c36ba7 100644 --- a/tests/nodes/reduce_sum_i32_1D.cairo +++ b/tests/nodes/reduce_sum_i32_1D.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/reduce_sum_i32_1D/input_0.cairo b/tests/nodes/reduce_sum_i32_1D/input_0.cairo index 0f01c1e62..c2d41d222 100644 --- a/tests/nodes/reduce_sum_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_i32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_sum_i32_1D/output_0.cairo b/tests/nodes/reduce_sum_i32_1D/output_0.cairo index 048cb6942..e295a7005 100644 --- a/tests/nodes/reduce_sum_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_i32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_sum_i32_2D_axis_1.cairo b/tests/nodes/reduce_sum_i32_2D_axis_1.cairo index 378a0eed1..d3bdc2674 100644 --- a/tests/nodes/reduce_sum_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_i32_2D_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 1af9ec7cc..71e72d9d6 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 3706ada45..e8e5a9aa7 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_sum_i32_2D_default.cairo b/tests/nodes/reduce_sum_i32_2D_default.cairo index a90b98aea..69131f33e 100644 --- a/tests/nodes/reduce_sum_i32_2D_default.cairo +++ b/tests/nodes/reduce_sum_i32_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_sum_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 af246ed5c..8b55eac4c 100644 --- a/tests/nodes/reduce_sum_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_sum_i32_2D_keepdims.cairo b/tests/nodes/reduce_sum_i32_2D_keepdims.cairo index 39e4dffb0..3a66c7d22 100644 --- a/tests/nodes/reduce_sum_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_i32_2D_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 1af9ec7cc..71e72d9d6 100644 --- a/tests/nodes/reduce_sum_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 785ed8cec..aa5feaf5f 100644 --- a/tests/nodes/reduce_sum_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_sum_i8_1D.cairo b/tests/nodes/reduce_sum_i8_1D.cairo index b0d6f62f1..18ecb908c 100644 --- a/tests/nodes/reduce_sum_i8_1D.cairo +++ b/tests/nodes/reduce_sum_i8_1D.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/reduce_sum_i8_1D/input_0.cairo b/tests/nodes/reduce_sum_i8_1D/input_0.cairo index 380a9e34a..400c4e51f 100644 --- a/tests/nodes/reduce_sum_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_i8_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_i8_1D/output_0.cairo b/tests/nodes/reduce_sum_i8_1D/output_0.cairo index 64d07bc4b..9857232f6 100644 --- a/tests/nodes/reduce_sum_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_i8_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_i8_2D_axis_1.cairo b/tests/nodes/reduce_sum_i8_2D_axis_1.cairo index 2fecb877e..5494681cb 100644 --- a/tests/nodes/reduce_sum_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_i8_2D_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 72e4a8347..308ad1b8f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 bdb2a2ec2..4f31f76b2 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_i8_2D_default.cairo b/tests/nodes/reduce_sum_i8_2D_default.cairo index cef87ebb0..d0f86e380 100644 --- a/tests/nodes/reduce_sum_i8_2D_default.cairo +++ b/tests/nodes/reduce_sum_i8_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 72e4a8347..308ad1b8f 100644 --- a/tests/nodes/reduce_sum_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 3e5862f0b..d75be628e 100644 --- a/tests/nodes/reduce_sum_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_i8_2D_keepdims.cairo b/tests/nodes/reduce_sum_i8_2D_keepdims.cairo index 82bf6b8f5..cc479ef1d 100644 --- a/tests/nodes/reduce_sum_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_i8_2D_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 72e4a8347..308ad1b8f 100644 --- a/tests/nodes/reduce_sum_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 e5572d940..9739cab30 100644 --- a/tests/nodes/reduce_sum_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 01b66ce55..11d64f685 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 d65ccc294..c119af06d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 27229e38c..dd1fbfa2f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo index b0d58226a..5878bed6e 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 d65ccc294..c119af06d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 746290f27..dd880846a 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 a755cd3c7..d1bf208e5 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 3bf061882..2bb0816b9 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 64235ba5b..70a5b1410 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 455491f61..0734efcd9 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 974166ede..649503f71 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 36829be8a..54aac7c1c 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo index df7587e27..f6220b0d8 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 974166ede..649503f71 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 46558ba27..070881bc0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 70eaa2026..f26a2346f 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; 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 83083d532..cea6e9a72 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 e20695c11..3b2ca7018 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; 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 d3fe70de2..14235c14d 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 473726054..8a0becc5d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 633aaf89a..1d2055c11 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo b/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo index ee20e9705..de64813fb 100644 --- a/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 473726054..8a0becc5d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 8c8496888..3da60075f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 c6568b72e..494f95bee 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; 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 f6679d594..1a0caaebc 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 e5d345b9d..f89002be8 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; 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 6279189fb..a529e8bdb 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 c73e6026f..7c34e96e1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 55ad2f174..f8870bf04 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo b/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo index 339cef0fc..548a58fba 100644 --- a/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 c73e6026f..7c34e96e1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 50ea0db9c..1d394836f 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 545f0b7a9..d948df48e 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; 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 c73e6026f..7c34e96e1 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 65a421543..987d9b46a 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; 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 45f781299..e67e0ebae 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 ffe2ae114..874626c95 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 cb13caf04..344af0e1d 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo b/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo index 51bfc851b..3a681d0c4 100644 --- a/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 ffe2ae114..874626c95 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 0b53bfc0f..063adeeba 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 ad95a1868..8f98bcd29 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,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 d24e18d36..64d914cef 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 01bc3598a..598b13c3a 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_sum_u32_1D.cairo b/tests/nodes/reduce_sum_u32_1D.cairo index 4a3ef3f30..98459c19a 100644 --- a/tests/nodes/reduce_sum_u32_1D.cairo +++ b/tests/nodes/reduce_sum_u32_1D.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/reduce_sum_u32_1D/input_0.cairo b/tests/nodes/reduce_sum_u32_1D/input_0.cairo index 60317db10..0c4cb9786 100644 --- a/tests/nodes/reduce_sum_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_u32_1D/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_sum_u32_1D/output_0.cairo b/tests/nodes/reduce_sum_u32_1D/output_0.cairo index a9203fe9e..fea281b47 100644 --- a/tests/nodes/reduce_sum_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_u32_1D/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_sum_u32_2D_axis_1.cairo b/tests/nodes/reduce_sum_u32_2D_axis_1.cairo index d9cb985a3..fd8521419 100644 --- a/tests/nodes/reduce_sum_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_u32_2D_axis_1.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 8e3c51970..3de7330b0 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 7b409234a..d978fecf4 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,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_sum_u32_2D_default.cairo b/tests/nodes/reduce_sum_u32_2D_default.cairo index abe7b0a37..ea6c0ef59 100644 --- a/tests/nodes/reduce_sum_u32_2D_default.cairo +++ b/tests/nodes/reduce_sum_u32_2D_default.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_sum_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 6cb2ab62d..5cd1a88e9 100644 --- a/tests/nodes/reduce_sum_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/reduce_sum_u32_2D_keepdims.cairo b/tests/nodes/reduce_sum_u32_2D_keepdims.cairo index 7885c6ab1..616b88291 100644 --- a/tests/nodes/reduce_sum_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_u32_2D_keepdims.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; 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 8e3c51970..3de7330b0 100644 --- a/tests/nodes/reduce_sum_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_keepdims/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 b20d6f8b4..dc9ab4149 100644 --- a/tests/nodes/reduce_sum_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_keepdims/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/relu_fp16x16/input_0.cairo b/tests/nodes/relu_fp16x16/input_0.cairo index f9bc5f948..c7491aafe 100644 --- a/tests/nodes/relu_fp16x16/input_0.cairo +++ b/tests/nodes/relu_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/relu_fp16x16/output_0.cairo b/tests/nodes/relu_fp16x16/output_0.cairo index 56dfe4f08..d8f6d8878 100644 --- a/tests/nodes/relu_fp16x16/output_0.cairo +++ b/tests/nodes/relu_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/relu_fp8x23/input_0.cairo b/tests/nodes/relu_fp8x23/input_0.cairo index 8e0f0d798..9bd2b6237 100644 --- a/tests/nodes/relu_fp8x23/input_0.cairo +++ b/tests/nodes/relu_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/relu_fp8x23/output_0.cairo b/tests/nodes/relu_fp8x23/output_0.cairo index f255481c5..f32c114e1 100644 --- a/tests/nodes/relu_fp8x23/output_0.cairo +++ b/tests/nodes/relu_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/relu_i32/input_0.cairo b/tests/nodes/relu_i32/input_0.cairo index 60ddb2034..e8f95e0ac 100644 --- a/tests/nodes/relu_i32/input_0.cairo +++ b/tests/nodes/relu_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/relu_i32/output_0.cairo b/tests/nodes/relu_i32/output_0.cairo index bf0393dd6..54ccd3c1c 100644 --- a/tests/nodes/relu_i32/output_0.cairo +++ b/tests/nodes/relu_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/relu_i8/input_0.cairo b/tests/nodes/relu_i8/input_0.cairo index c079007d8..c8ce281f1 100644 --- a/tests/nodes/relu_i8/input_0.cairo +++ b/tests/nodes/relu_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/relu_i8/output_0.cairo b/tests/nodes/relu_i8/output_0.cairo index 5cffd45cf..ac84ebc9a 100644 --- a/tests/nodes/relu_i8/output_0.cairo +++ b/tests/nodes/relu_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/round_fp16x16.cairo b/tests/nodes/round_fp16x16.cairo index 504ab435d..929604673 100644 --- a/tests/nodes/round_fp16x16.cairo +++ b/tests/nodes/round_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/round_fp16x16/input_0.cairo b/tests/nodes/round_fp16x16/input_0.cairo index 711f27428..ec5513311 100644 --- a/tests/nodes/round_fp16x16/input_0.cairo +++ b/tests/nodes/round_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/round_fp16x16/output_0.cairo b/tests/nodes/round_fp16x16/output_0.cairo index 0a920a6c2..9631071dd 100644 --- a/tests/nodes/round_fp16x16/output_0.cairo +++ b/tests/nodes/round_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/round_fp8x23.cairo b/tests/nodes/round_fp8x23.cairo index 8be8ed312..0c8e55503 100644 --- a/tests/nodes/round_fp8x23.cairo +++ b/tests/nodes/round_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/round_fp8x23/input_0.cairo b/tests/nodes/round_fp8x23/input_0.cairo index 386404257..c7874ac79 100644 --- a/tests/nodes/round_fp8x23/input_0.cairo +++ b/tests/nodes/round_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/round_fp8x23/output_0.cairo b/tests/nodes/round_fp8x23/output_0.cairo index b984ecfe6..453fed16f 100644 --- a/tests/nodes/round_fp8x23/output_0.cairo +++ b/tests/nodes/round_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp16x16_3d_axis1.cairo b/tests/nodes/scatter_fp16x16_3d_axis1.cairo index 10838d6e7..4ba32b925 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo index a11329495..d7800be43 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo index b51facdab..50a7e79fb 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo index cfa417414..28a5f268a 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo b/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo index 87045d082..9371e3aff 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; 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 a11329495..d7800be43 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 b51facdab..50a7e79fb 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; 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 cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_2.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; 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 1b2e7a743..6cdbd049e 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/output_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp16x16_3d_default.cairo b/tests/nodes/scatter_fp16x16_3d_default.cairo index 06cfd4fdd..089861ae2 100644 --- a/tests/nodes/scatter_fp16x16_3d_default.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo b/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo index a11329495..d7800be43 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo b/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo index b51facdab..50a7e79fb 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo b/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo b/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo index fa9f6a8b6..3daa0a2f3 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_axis1.cairo b/tests/nodes/scatter_fp8x23_axis1.cairo index ef903f3ad..fd38528f2 100644 --- a/tests/nodes/scatter_fp8x23_axis1.cairo +++ b/tests/nodes/scatter_fp8x23_axis1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/scatter_fp8x23_axis1/input_0.cairo b/tests/nodes/scatter_fp8x23_axis1/input_0.cairo index 331c6cf88..7df21a791 100644 --- a/tests/nodes/scatter_fp8x23_axis1/input_0.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_axis1/input_1.cairo b/tests/nodes/scatter_fp8x23_axis1/input_1.cairo index 738d5cfaa..a1c3f9a95 100644 --- a/tests/nodes/scatter_fp8x23_axis1/input_1.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_axis1/input_2.cairo b/tests/nodes/scatter_fp8x23_axis1/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_fp8x23_axis1/input_2.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_fp8x23_axis1/output_0.cairo b/tests/nodes/scatter_fp8x23_axis1/output_0.cairo index 46d23fbd5..91a744976 100644 --- a/tests/nodes/scatter_fp8x23_axis1/output_0.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_default.cairo b/tests/nodes/scatter_fp8x23_default.cairo index 0ffd910b4..12171060a 100644 --- a/tests/nodes/scatter_fp8x23_default.cairo +++ b/tests/nodes/scatter_fp8x23_default.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/scatter_fp8x23_default/input_0.cairo b/tests/nodes/scatter_fp8x23_default/input_0.cairo index 331c6cf88..7df21a791 100644 --- a/tests/nodes/scatter_fp8x23_default/input_0.cairo +++ b/tests/nodes/scatter_fp8x23_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_default/input_1.cairo b/tests/nodes/scatter_fp8x23_default/input_1.cairo index 738d5cfaa..a1c3f9a95 100644 --- a/tests/nodes/scatter_fp8x23_default/input_1.cairo +++ b/tests/nodes/scatter_fp8x23_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_default/input_2.cairo b/tests/nodes/scatter_fp8x23_default/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_fp8x23_default/input_2.cairo +++ b/tests/nodes/scatter_fp8x23_default/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_fp8x23_default/output_0.cairo b/tests/nodes/scatter_fp8x23_default/output_0.cairo index c2011e04b..5b6a1aa13 100644 --- a/tests/nodes/scatter_fp8x23_default/output_0.cairo +++ b/tests/nodes/scatter_fp8x23_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_mul.cairo b/tests/nodes/scatter_fp8x23_mul.cairo index dc90cfcbe..4a1eb7ad1 100644 --- a/tests/nodes/scatter_fp8x23_mul.cairo +++ b/tests/nodes/scatter_fp8x23_mul.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/scatter_fp8x23_mul/input_0.cairo b/tests/nodes/scatter_fp8x23_mul/input_0.cairo index 331c6cf88..7df21a791 100644 --- a/tests/nodes/scatter_fp8x23_mul/input_0.cairo +++ b/tests/nodes/scatter_fp8x23_mul/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_mul/input_1.cairo b/tests/nodes/scatter_fp8x23_mul/input_1.cairo index 738d5cfaa..a1c3f9a95 100644 --- a/tests/nodes/scatter_fp8x23_mul/input_1.cairo +++ b/tests/nodes/scatter_fp8x23_mul/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_fp8x23_mul/input_2.cairo b/tests/nodes/scatter_fp8x23_mul/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_fp8x23_mul/input_2.cairo +++ b/tests/nodes/scatter_fp8x23_mul/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_fp8x23_mul/output_0.cairo b/tests/nodes/scatter_fp8x23_mul/output_0.cairo index b0b7353cc..9f67bd8fd 100644 --- a/tests/nodes/scatter_fp8x23_mul/output_0.cairo +++ b/tests/nodes/scatter_fp8x23_mul/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/scatter_i8_axis1.cairo b/tests/nodes/scatter_i8_axis1.cairo index 2374e89c5..46edf024a 100644 --- a/tests/nodes/scatter_i8_axis1.cairo +++ b/tests/nodes/scatter_i8_axis1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/scatter_i8_axis1/input_0.cairo b/tests/nodes/scatter_i8_axis1/input_0.cairo index f5fad9150..99afe8e45 100644 --- a/tests/nodes/scatter_i8_axis1/input_0.cairo +++ b/tests/nodes/scatter_i8_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_axis1/input_1.cairo b/tests/nodes/scatter_i8_axis1/input_1.cairo index 997d08467..e874b5ac6 100644 --- a/tests/nodes/scatter_i8_axis1/input_1.cairo +++ b/tests/nodes/scatter_i8_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_axis1/input_2.cairo b/tests/nodes/scatter_i8_axis1/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_i8_axis1/input_2.cairo +++ b/tests/nodes/scatter_i8_axis1/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_i8_axis1/output_0.cairo b/tests/nodes/scatter_i8_axis1/output_0.cairo index bcbb7d7d0..a7e44cf62 100644 --- a/tests/nodes/scatter_i8_axis1/output_0.cairo +++ b/tests/nodes/scatter_i8_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_axis1_max.cairo b/tests/nodes/scatter_i8_axis1_max.cairo index b4d1a8799..eba74a91d 100644 --- a/tests/nodes/scatter_i8_axis1_max.cairo +++ b/tests/nodes/scatter_i8_axis1_max.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/scatter_i8_axis1_max/input_0.cairo b/tests/nodes/scatter_i8_axis1_max/input_0.cairo index f5fad9150..99afe8e45 100644 --- a/tests/nodes/scatter_i8_axis1_max/input_0.cairo +++ b/tests/nodes/scatter_i8_axis1_max/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_axis1_max/input_1.cairo b/tests/nodes/scatter_i8_axis1_max/input_1.cairo index 997d08467..e874b5ac6 100644 --- a/tests/nodes/scatter_i8_axis1_max/input_1.cairo +++ b/tests/nodes/scatter_i8_axis1_max/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_axis1_max/input_2.cairo b/tests/nodes/scatter_i8_axis1_max/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_i8_axis1_max/input_2.cairo +++ b/tests/nodes/scatter_i8_axis1_max/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_i8_axis1_max/output_0.cairo b/tests/nodes/scatter_i8_axis1_max/output_0.cairo index bcbb7d7d0..a7e44cf62 100644 --- a/tests/nodes/scatter_i8_axis1_max/output_0.cairo +++ b/tests/nodes/scatter_i8_axis1_max/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_default.cairo b/tests/nodes/scatter_i8_default.cairo index e28a0549c..35e99a74f 100644 --- a/tests/nodes/scatter_i8_default.cairo +++ b/tests/nodes/scatter_i8_default.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/scatter_i8_default/input_0.cairo b/tests/nodes/scatter_i8_default/input_0.cairo index f5fad9150..99afe8e45 100644 --- a/tests/nodes/scatter_i8_default/input_0.cairo +++ b/tests/nodes/scatter_i8_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_default/input_1.cairo b/tests/nodes/scatter_i8_default/input_1.cairo index 997d08467..e874b5ac6 100644 --- a/tests/nodes/scatter_i8_default/input_1.cairo +++ b/tests/nodes/scatter_i8_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_i8_default/input_2.cairo b/tests/nodes/scatter_i8_default/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_i8_default/input_2.cairo +++ b/tests/nodes/scatter_i8_default/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_i8_default/output_0.cairo b/tests/nodes/scatter_i8_default/output_0.cairo index dfc02ca20..83cc4ccea 100644 --- a/tests/nodes/scatter_i8_default/output_0.cairo +++ b/tests/nodes/scatter_i8_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/scatter_u32_add.cairo b/tests/nodes/scatter_u32_add.cairo index 3d1a8a0a9..f3d18ef9d 100644 --- a/tests/nodes/scatter_u32_add.cairo +++ b/tests/nodes/scatter_u32_add.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/scatter_u32_add/input_0.cairo b/tests/nodes/scatter_u32_add/input_0.cairo index 27b0af6c3..e1542d854 100644 --- a/tests/nodes/scatter_u32_add/input_0.cairo +++ b/tests/nodes/scatter_u32_add/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_add/input_1.cairo b/tests/nodes/scatter_u32_add/input_1.cairo index 07fea4098..0645d0d31 100644 --- a/tests/nodes/scatter_u32_add/input_1.cairo +++ b/tests/nodes/scatter_u32_add/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_add/input_2.cairo b/tests/nodes/scatter_u32_add/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_u32_add/input_2.cairo +++ b/tests/nodes/scatter_u32_add/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_add/output_0.cairo b/tests/nodes/scatter_u32_add/output_0.cairo index e892f73f8..36a69b28c 100644 --- a/tests/nodes/scatter_u32_add/output_0.cairo +++ b/tests/nodes/scatter_u32_add/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_axis1.cairo b/tests/nodes/scatter_u32_axis1.cairo index da79a252c..5a8ac02da 100644 --- a/tests/nodes/scatter_u32_axis1.cairo +++ b/tests/nodes/scatter_u32_axis1.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/scatter_u32_axis1/input_0.cairo b/tests/nodes/scatter_u32_axis1/input_0.cairo index 27b0af6c3..e1542d854 100644 --- a/tests/nodes/scatter_u32_axis1/input_0.cairo +++ b/tests/nodes/scatter_u32_axis1/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_axis1/input_1.cairo b/tests/nodes/scatter_u32_axis1/input_1.cairo index 07fea4098..0645d0d31 100644 --- a/tests/nodes/scatter_u32_axis1/input_1.cairo +++ b/tests/nodes/scatter_u32_axis1/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_axis1/input_2.cairo b/tests/nodes/scatter_u32_axis1/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_u32_axis1/input_2.cairo +++ b/tests/nodes/scatter_u32_axis1/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_axis1/output_0.cairo b/tests/nodes/scatter_u32_axis1/output_0.cairo index 85db8a36f..b27c846a6 100644 --- a/tests/nodes/scatter_u32_axis1/output_0.cairo +++ b/tests/nodes/scatter_u32_axis1/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_default.cairo b/tests/nodes/scatter_u32_default.cairo index 5cf0e53d7..d45d6606e 100644 --- a/tests/nodes/scatter_u32_default.cairo +++ b/tests/nodes/scatter_u32_default.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/scatter_u32_default/input_0.cairo b/tests/nodes/scatter_u32_default/input_0.cairo index 27b0af6c3..e1542d854 100644 --- a/tests/nodes/scatter_u32_default/input_0.cairo +++ b/tests/nodes/scatter_u32_default/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_default/input_1.cairo b/tests/nodes/scatter_u32_default/input_1.cairo index 07fea4098..0645d0d31 100644 --- a/tests/nodes/scatter_u32_default/input_1.cairo +++ b/tests/nodes/scatter_u32_default/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_default/input_2.cairo b/tests/nodes/scatter_u32_default/input_2.cairo index cbe1322a6..d474a7622 100644 --- a/tests/nodes/scatter_u32_default/input_2.cairo +++ b/tests/nodes/scatter_u32_default/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/scatter_u32_default/output_0.cairo b/tests/nodes/scatter_u32_default/output_0.cairo index 09bc154f4..d114c10aa 100644 --- a/tests/nodes/scatter_u32_default/output_0.cairo +++ b/tests/nodes/scatter_u32_default/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_at_fp16x16_negative.cairo b/tests/nodes/sequence_at_fp16x16_negative.cairo index 2532340c1..d65c1e56f 100644 --- a/tests/nodes/sequence_at_fp16x16_negative.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo b/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo index 10cb3190b..7940f94bd 100644 --- a/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo b/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo b/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo index 1b31e8b1a..1e9d6f3d2 100644 --- a/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_at_fp16x16_positive.cairo b/tests/nodes/sequence_at_fp16x16_positive.cairo index 6fae1ca87..be329f13a 100644 --- a/tests/nodes/sequence_at_fp16x16_positive.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo b/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo index d088467fc..50800a85f 100644 --- a/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo b/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo b/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo index b019cfdcf..66e8b8be9 100644 --- a/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_at_fp8x23_negative.cairo b/tests/nodes/sequence_at_fp8x23_negative.cairo index 5fd377633..e222aad40 100644 --- a/tests/nodes/sequence_at_fp8x23_negative.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo b/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo index f1011dd19..203e2b538 100644 --- a/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo b/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo b/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo index 2931ad2cf..cf51db60d 100644 --- a/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_at_fp8x23_positive.cairo b/tests/nodes/sequence_at_fp8x23_positive.cairo index 6eda4298d..f1b4b627e 100644 --- a/tests/nodes/sequence_at_fp8x23_positive.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo b/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo index acfa9f0cb..54f5b1bef 100644 --- a/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo b/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo b/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo index 52363bc8f..89cdd433f 100644 --- a/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_at_i32_negative.cairo b/tests/nodes/sequence_at_i32_negative.cairo index 0b76101b9..6ba6b2594 100644 --- a/tests/nodes/sequence_at_i32_negative.cairo +++ b/tests/nodes/sequence_at_i32_negative.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_i32_negative/input_0.cairo b/tests/nodes/sequence_at_i32_negative/input_0.cairo index 043154542..8e83f0131 100644 --- a/tests/nodes/sequence_at_i32_negative/input_0.cairo +++ b/tests/nodes/sequence_at_i32_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i32_negative/input_1.cairo b/tests/nodes/sequence_at_i32_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_at_i32_negative/input_1.cairo +++ b/tests/nodes/sequence_at_i32_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i32_negative/output_0.cairo b/tests/nodes/sequence_at_i32_negative/output_0.cairo index d9972a6c4..1536ca6b7 100644 --- a/tests/nodes/sequence_at_i32_negative/output_0.cairo +++ b/tests/nodes/sequence_at_i32_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i32_positive.cairo b/tests/nodes/sequence_at_i32_positive.cairo index ae9c83772..36647a780 100644 --- a/tests/nodes/sequence_at_i32_positive.cairo +++ b/tests/nodes/sequence_at_i32_positive.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_i32_positive/input_0.cairo b/tests/nodes/sequence_at_i32_positive/input_0.cairo index 733b2e7f0..17b5ef71b 100644 --- a/tests/nodes/sequence_at_i32_positive/input_0.cairo +++ b/tests/nodes/sequence_at_i32_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i32_positive/input_1.cairo b/tests/nodes/sequence_at_i32_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_at_i32_positive/input_1.cairo +++ b/tests/nodes/sequence_at_i32_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i32_positive/output_0.cairo b/tests/nodes/sequence_at_i32_positive/output_0.cairo index a95f1e572..011570348 100644 --- a/tests/nodes/sequence_at_i32_positive/output_0.cairo +++ b/tests/nodes/sequence_at_i32_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i8_negative.cairo b/tests/nodes/sequence_at_i8_negative.cairo index d0e63feaf..1e176feda 100644 --- a/tests/nodes/sequence_at_i8_negative.cairo +++ b/tests/nodes/sequence_at_i8_negative.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_i8_negative/input_0.cairo b/tests/nodes/sequence_at_i8_negative/input_0.cairo index 02483ad10..1d4f61e2c 100644 --- a/tests/nodes/sequence_at_i8_negative/input_0.cairo +++ b/tests/nodes/sequence_at_i8_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_at_i8_negative/input_1.cairo b/tests/nodes/sequence_at_i8_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_at_i8_negative/input_1.cairo +++ b/tests/nodes/sequence_at_i8_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i8_negative/output_0.cairo b/tests/nodes/sequence_at_i8_negative/output_0.cairo index 2bbe5f9d8..9a0efb499 100644 --- a/tests/nodes/sequence_at_i8_negative/output_0.cairo +++ b/tests/nodes/sequence_at_i8_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_at_i8_positive.cairo b/tests/nodes/sequence_at_i8_positive.cairo index c8d94c4be..b45bbe178 100644 --- a/tests/nodes/sequence_at_i8_positive.cairo +++ b/tests/nodes/sequence_at_i8_positive.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; #[test] diff --git a/tests/nodes/sequence_at_i8_positive/input_0.cairo b/tests/nodes/sequence_at_i8_positive/input_0.cairo index ac6c7dcb6..b85ccb99c 100644 --- a/tests/nodes/sequence_at_i8_positive/input_0.cairo +++ b/tests/nodes/sequence_at_i8_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_at_i8_positive/input_1.cairo b/tests/nodes/sequence_at_i8_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_at_i8_positive/input_1.cairo +++ b/tests/nodes/sequence_at_i8_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_i8_positive/output_0.cairo b/tests/nodes/sequence_at_i8_positive/output_0.cairo index 0cc51dfce..d0dd46573 100644 --- a/tests/nodes/sequence_at_i8_positive/output_0.cairo +++ b/tests/nodes/sequence_at_i8_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_at_u32_negative.cairo b/tests/nodes/sequence_at_u32_negative.cairo index 7046b99dc..ae5a20d90 100644 --- a/tests/nodes/sequence_at_u32_negative.cairo +++ b/tests/nodes/sequence_at_u32_negative.cairo @@ -7,7 +7,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/sequence_at_u32_negative/input_0.cairo b/tests/nodes/sequence_at_u32_negative/input_0.cairo index c332e8cda..ed528bbbd 100644 --- a/tests/nodes/sequence_at_u32_negative/input_0.cairo +++ b/tests/nodes/sequence_at_u32_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_at_u32_negative/input_1.cairo b/tests/nodes/sequence_at_u32_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_at_u32_negative/input_1.cairo +++ b/tests/nodes/sequence_at_u32_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_u32_negative/output_0.cairo b/tests/nodes/sequence_at_u32_negative/output_0.cairo index 82b5c7003..ee18cd210 100644 --- a/tests/nodes/sequence_at_u32_negative/output_0.cairo +++ b/tests/nodes/sequence_at_u32_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_at_u32_positive.cairo b/tests/nodes/sequence_at_u32_positive.cairo index 0eca97a5c..6e3922cd1 100644 --- a/tests/nodes/sequence_at_u32_positive.cairo +++ b/tests/nodes/sequence_at_u32_positive.cairo @@ -7,7 +7,7 @@ use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/sequence_at_u32_positive/input_0.cairo b/tests/nodes/sequence_at_u32_positive/input_0.cairo index a4f060c30..5b34b358d 100644 --- a/tests/nodes/sequence_at_u32_positive/input_0.cairo +++ b/tests/nodes/sequence_at_u32_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_at_u32_positive/input_1.cairo b/tests/nodes/sequence_at_u32_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_at_u32_positive/input_1.cairo +++ b/tests/nodes/sequence_at_u32_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_at_u32_positive/output_0.cairo b/tests/nodes/sequence_at_u32_positive/output_0.cairo index f1da37367..261a48101 100644 --- a/tests/nodes/sequence_at_u32_positive/output_0.cairo +++ b/tests/nodes/sequence_at_u32_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_construct_fp16x16.cairo b/tests/nodes/sequence_construct_fp16x16.cairo index 926a57fe2..13f4197d8 100644 --- a/tests/nodes/sequence_construct_fp16x16.cairo +++ b/tests/nodes/sequence_construct_fp16x16.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16Tensor; diff --git a/tests/nodes/sequence_construct_fp16x16/input_0.cairo b/tests/nodes/sequence_construct_fp16x16/input_0.cairo index 770942e5b..046dc143d 100644 --- a/tests/nodes/sequence_construct_fp16x16/input_0.cairo +++ b/tests/nodes/sequence_construct_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_construct_fp16x16/output_0.cairo b/tests/nodes/sequence_construct_fp16x16/output_0.cairo index 1de556154..37e724d77 100644 --- a/tests/nodes/sequence_construct_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_construct_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_construct_fp8x23.cairo b/tests/nodes/sequence_construct_fp8x23.cairo index 9a024885d..216ade001 100644 --- a/tests/nodes/sequence_construct_fp8x23.cairo +++ b/tests/nodes/sequence_construct_fp8x23.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_construct_fp8x23/input_0.cairo b/tests/nodes/sequence_construct_fp8x23/input_0.cairo index 37fb75902..88c11706e 100644 --- a/tests/nodes/sequence_construct_fp8x23/input_0.cairo +++ b/tests/nodes/sequence_construct_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_construct_fp8x23/output_0.cairo b/tests/nodes/sequence_construct_fp8x23/output_0.cairo index 8bae335fe..237ba4d9e 100644 --- a/tests/nodes/sequence_construct_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_construct_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_construct_i32.cairo b/tests/nodes/sequence_construct_i32.cairo index 8c4f6a19f..db083f990 100644 --- a/tests/nodes/sequence_construct_i32.cairo +++ b/tests/nodes/sequence_construct_i32.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/sequence_construct_i32/input_0.cairo b/tests/nodes/sequence_construct_i32/input_0.cairo index 872cd3195..1c994283d 100644 --- a/tests/nodes/sequence_construct_i32/input_0.cairo +++ b/tests/nodes/sequence_construct_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_construct_i32/output_0.cairo b/tests/nodes/sequence_construct_i32/output_0.cairo index 4f246f2d1..f8cab4f6f 100644 --- a/tests/nodes/sequence_construct_i32/output_0.cairo +++ b/tests/nodes/sequence_construct_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_construct_i8.cairo b/tests/nodes/sequence_construct_i8.cairo index 0c0dda805..dbdd49abf 100644 --- a/tests/nodes/sequence_construct_i8.cairo +++ b/tests/nodes/sequence_construct_i8.cairo @@ -4,7 +4,7 @@ mod output_0; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8Tensor; diff --git a/tests/nodes/sequence_construct_i8/input_0.cairo b/tests/nodes/sequence_construct_i8/input_0.cairo index b66c72889..c2c82d57f 100644 --- a/tests/nodes/sequence_construct_i8/input_0.cairo +++ b/tests/nodes/sequence_construct_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_construct_i8/output_0.cairo b/tests/nodes/sequence_construct_i8/output_0.cairo index e048ee27a..70d9197d0 100644 --- a/tests/nodes/sequence_construct_i8/output_0.cairo +++ b/tests/nodes/sequence_construct_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_construct_u32.cairo b/tests/nodes/sequence_construct_u32.cairo index 9301350d7..e7683ad8a 100644 --- a/tests/nodes/sequence_construct_u32.cairo +++ b/tests/nodes/sequence_construct_u32.cairo @@ -3,7 +3,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/sequence_construct_u32/input_0.cairo b/tests/nodes/sequence_construct_u32/input_0.cairo index 6fa9b512b..506c377e7 100644 --- a/tests/nodes/sequence_construct_u32/input_0.cairo +++ b/tests/nodes/sequence_construct_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_construct_u32/output_0.cairo b/tests/nodes/sequence_construct_u32/output_0.cairo index 78e4ce013..110abad73 100644 --- a/tests/nodes/sequence_construct_u32/output_0.cairo +++ b/tests/nodes/sequence_construct_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_empty_fp16x16.cairo b/tests/nodes/sequence_empty_fp16x16.cairo index 745c52c01..3686c1893 100644 --- a/tests/nodes/sequence_empty_fp16x16.cairo +++ b/tests/nodes/sequence_empty_fp16x16.cairo @@ -1,7 +1,7 @@ mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/tests/nodes/sequence_empty_fp16x16/output_0.cairo b/tests/nodes/sequence_empty_fp16x16/output_0.cairo index afa31e131..23e81c93c 100644 --- a/tests/nodes/sequence_empty_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_empty_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_empty_fp8x23.cairo b/tests/nodes/sequence_empty_fp8x23.cairo index 8d8e3f047..ee4bf214b 100644 --- a/tests/nodes/sequence_empty_fp8x23.cairo +++ b/tests/nodes/sequence_empty_fp8x23.cairo @@ -1,7 +1,7 @@ mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; diff --git a/tests/nodes/sequence_empty_fp8x23/output_0.cairo b/tests/nodes/sequence_empty_fp8x23/output_0.cairo index 68ec1797b..1750c0e17 100644 --- a/tests/nodes/sequence_empty_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_empty_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_empty_i32.cairo b/tests/nodes/sequence_empty_i32.cairo index 68b8f1f5e..9029b4c26 100644 --- a/tests/nodes/sequence_empty_i32.cairo +++ b/tests/nodes/sequence_empty_i32.cairo @@ -1,7 +1,7 @@ mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; diff --git a/tests/nodes/sequence_empty_i32/output_0.cairo b/tests/nodes/sequence_empty_i32/output_0.cairo index 9a3cb338b..7361db7ba 100644 --- a/tests/nodes/sequence_empty_i32/output_0.cairo +++ b/tests/nodes/sequence_empty_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_empty_i8.cairo b/tests/nodes/sequence_empty_i8.cairo index c08a9bf45..4074b2ef7 100644 --- a/tests/nodes/sequence_empty_i8.cairo +++ b/tests/nodes/sequence_empty_i8.cairo @@ -1,7 +1,7 @@ mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8Tensor; diff --git a/tests/nodes/sequence_empty_i8/output_0.cairo b/tests/nodes/sequence_empty_i8/output_0.cairo index 123ac1980..d9d70f49b 100644 --- a/tests/nodes/sequence_empty_i8/output_0.cairo +++ b/tests/nodes/sequence_empty_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_empty_u32.cairo b/tests/nodes/sequence_empty_u32.cairo index 0b20e2c65..836c97ff1 100644 --- a/tests/nodes/sequence_empty_u32.cairo +++ b/tests/nodes/sequence_empty_u32.cairo @@ -1,7 +1,7 @@ mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; diff --git a/tests/nodes/sequence_empty_u32/output_0.cairo b/tests/nodes/sequence_empty_u32/output_0.cairo index e2bdd6e71..2173ba154 100644 --- a/tests/nodes/sequence_empty_u32/output_0.cairo +++ b/tests/nodes/sequence_empty_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_erase_fp16x16_empty.cairo b/tests/nodes/sequence_erase_fp16x16_empty.cairo index 2097aa2d8..23f42b7b5 100644 --- a/tests/nodes/sequence_erase_fp16x16_empty.cairo +++ b/tests/nodes/sequence_erase_fp16x16_empty.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo b/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo index f2f4b9dc9..1cc30311e 100644 --- a/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo b/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo index c5a287783..55cd144b7 100644 --- a/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_erase_fp16x16_negative.cairo b/tests/nodes/sequence_erase_fp16x16_negative.cairo index 65c0dd469..183643c99 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo b/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo index 8a43627e8..d412ec13b 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo b/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo b/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo index 349ea4750..90ef78322 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_erase_fp16x16_positive.cairo b/tests/nodes/sequence_erase_fp16x16_positive.cairo index 107a12a0d..dc17a00b3 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo b/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo index a89f27eed..1c0ff9223 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo b/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo b/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo index f0de2f6db..84a7faff5 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_erase_fp8x23_empty.cairo b/tests/nodes/sequence_erase_fp8x23_empty.cairo index 5c9e2703f..86dbf1cdc 100644 --- a/tests/nodes/sequence_erase_fp8x23_empty.cairo +++ b/tests/nodes/sequence_erase_fp8x23_empty.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo b/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo index 7433c08db..0a1b0e21b 100644 --- a/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo b/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo index af939bbd4..f0fd5e99a 100644 --- a/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_erase_fp8x23_negative.cairo b/tests/nodes/sequence_erase_fp8x23_negative.cairo index d338f8939..0a427225b 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I32Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo b/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo index 9216c3962..d6dfa37db 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo b/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo b/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo index 864ee6320..dc702be2d 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_erase_fp8x23_positive.cairo b/tests/nodes/sequence_erase_fp8x23_positive.cairo index d9ab5faeb..ed1ca666d 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I32Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo b/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo index 2abf6ebf2..b44e4dfae 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo b/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo b/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo index 425c0435e..e2c12f0a1 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_erase_i32_empty.cairo b/tests/nodes/sequence_erase_i32_empty.cairo index de47e1521..800a27af0 100644 --- a/tests/nodes/sequence_erase_i32_empty.cairo +++ b/tests/nodes/sequence_erase_i32_empty.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_i32_empty/input_0.cairo b/tests/nodes/sequence_erase_i32_empty/input_0.cairo index 621522696..8c34ebc4f 100644 --- a/tests/nodes/sequence_erase_i32_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_i32_empty/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i32_empty/output_0.cairo b/tests/nodes/sequence_erase_i32_empty/output_0.cairo index 7834c10cd..48e2a31e3 100644 --- a/tests/nodes/sequence_erase_i32_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_i32_empty/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i32_negative.cairo b/tests/nodes/sequence_erase_i32_negative.cairo index 605e4011c..4bff09eb8 100644 --- a/tests/nodes/sequence_erase_i32_negative.cairo +++ b/tests/nodes/sequence_erase_i32_negative.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_i32_negative/input_0.cairo b/tests/nodes/sequence_erase_i32_negative/input_0.cairo index 44f78a59d..319738725 100644 --- a/tests/nodes/sequence_erase_i32_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_i32_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i32_negative/input_1.cairo b/tests/nodes/sequence_erase_i32_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_erase_i32_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_i32_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i32_negative/output_0.cairo b/tests/nodes/sequence_erase_i32_negative/output_0.cairo index 2c820804d..2861c3ba4 100644 --- a/tests/nodes/sequence_erase_i32_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_i32_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i32_positive.cairo b/tests/nodes/sequence_erase_i32_positive.cairo index 42c0482aa..aee5ef58b 100644 --- a/tests/nodes/sequence_erase_i32_positive.cairo +++ b/tests/nodes/sequence_erase_i32_positive.cairo @@ -6,7 +6,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_i32_positive/input_0.cairo b/tests/nodes/sequence_erase_i32_positive/input_0.cairo index e2780346b..d11d3bf7d 100644 --- a/tests/nodes/sequence_erase_i32_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_i32_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i32_positive/input_1.cairo b/tests/nodes/sequence_erase_i32_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_erase_i32_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_i32_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i32_positive/output_0.cairo b/tests/nodes/sequence_erase_i32_positive/output_0.cairo index 32c38ada4..31258ba3f 100644 --- a/tests/nodes/sequence_erase_i32_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_i32_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i8_empty.cairo b/tests/nodes/sequence_erase_i8_empty.cairo index d47106e61..1ad6d9f1b 100644 --- a/tests/nodes/sequence_erase_i8_empty.cairo +++ b/tests/nodes/sequence_erase_i8_empty.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_i8_empty/input_0.cairo b/tests/nodes/sequence_erase_i8_empty/input_0.cairo index 607b8988c..46a591d1c 100644 --- a/tests/nodes/sequence_erase_i8_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_i8_empty/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_erase_i8_empty/output_0.cairo b/tests/nodes/sequence_erase_i8_empty/output_0.cairo index 628243876..376d15b03 100644 --- a/tests/nodes/sequence_erase_i8_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_i8_empty/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_erase_i8_negative.cairo b/tests/nodes/sequence_erase_i8_negative.cairo index 0108f1974..0caad87fa 100644 --- a/tests/nodes/sequence_erase_i8_negative.cairo +++ b/tests/nodes/sequence_erase_i8_negative.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_i8_negative/input_0.cairo b/tests/nodes/sequence_erase_i8_negative/input_0.cairo index 871a3ebc1..c7c966295 100644 --- a/tests/nodes/sequence_erase_i8_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_i8_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_erase_i8_negative/input_1.cairo b/tests/nodes/sequence_erase_i8_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_erase_i8_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_i8_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i8_negative/output_0.cairo b/tests/nodes/sequence_erase_i8_negative/output_0.cairo index 93faab4fb..8963bbfaf 100644 --- a/tests/nodes/sequence_erase_i8_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_i8_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_erase_i8_positive.cairo b/tests/nodes/sequence_erase_i8_positive.cairo index 563dd88dc..52d1a62ee 100644 --- a/tests/nodes/sequence_erase_i8_positive.cairo +++ b/tests/nodes/sequence_erase_i8_positive.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_i8_positive/input_0.cairo b/tests/nodes/sequence_erase_i8_positive/input_0.cairo index 5b133afa4..bf3db7dfb 100644 --- a/tests/nodes/sequence_erase_i8_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_i8_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_erase_i8_positive/input_1.cairo b/tests/nodes/sequence_erase_i8_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_erase_i8_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_i8_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_i8_positive/output_0.cairo b/tests/nodes/sequence_erase_i8_positive/output_0.cairo index e7f4d51bd..765cf80c5 100644 --- a/tests/nodes/sequence_erase_i8_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_i8_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_erase_u32_empty.cairo b/tests/nodes/sequence_erase_u32_empty.cairo index 97e6102ad..915fdfd41 100644 --- a/tests/nodes/sequence_erase_u32_empty.cairo +++ b/tests/nodes/sequence_erase_u32_empty.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_u32_empty/input_0.cairo b/tests/nodes/sequence_erase_u32_empty/input_0.cairo index 46581b7cc..02d85abac 100644 --- a/tests/nodes/sequence_erase_u32_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_u32_empty/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_erase_u32_empty/output_0.cairo b/tests/nodes/sequence_erase_u32_empty/output_0.cairo index 39cd31408..37943a78b 100644 --- a/tests/nodes/sequence_erase_u32_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_u32_empty/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_erase_u32_negative.cairo b/tests/nodes/sequence_erase_u32_negative.cairo index fb216846d..673724468 100644 --- a/tests/nodes/sequence_erase_u32_negative.cairo +++ b/tests/nodes/sequence_erase_u32_negative.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_u32_negative/input_0.cairo b/tests/nodes/sequence_erase_u32_negative/input_0.cairo index ed28ebc8c..72ad07fb7 100644 --- a/tests/nodes/sequence_erase_u32_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_u32_negative/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_erase_u32_negative/input_1.cairo b/tests/nodes/sequence_erase_u32_negative/input_1.cairo index a74b0bb65..87692e397 100644 --- a/tests/nodes/sequence_erase_u32_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_u32_negative/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_u32_negative/output_0.cairo b/tests/nodes/sequence_erase_u32_negative/output_0.cairo index ff88162ca..871e0d4a8 100644 --- a/tests/nodes/sequence_erase_u32_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_u32_negative/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_erase_u32_positive.cairo b/tests/nodes/sequence_erase_u32_positive.cairo index dd2cf149c..d5dc5f353 100644 --- a/tests/nodes/sequence_erase_u32_positive.cairo +++ b/tests/nodes/sequence_erase_u32_positive.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] diff --git a/tests/nodes/sequence_erase_u32_positive/input_0.cairo b/tests/nodes/sequence_erase_u32_positive/input_0.cairo index f8ae0f8a5..3ef9a6b54 100644 --- a/tests/nodes/sequence_erase_u32_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_u32_positive/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_erase_u32_positive/input_1.cairo b/tests/nodes/sequence_erase_u32_positive/input_1.cairo index 11bf62c03..132fbe314 100644 --- a/tests/nodes/sequence_erase_u32_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_u32_positive/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_erase_u32_positive/output_0.cairo b/tests/nodes/sequence_erase_u32_positive/output_0.cairo index 477a20f89..a70f22381 100644 --- a/tests/nodes/sequence_erase_u32_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_u32_positive/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_insert_fp16x16.cairo b/tests/nodes/sequence_insert_fp16x16.cairo index 1fe67ce53..ca636990f 100644 --- a/tests/nodes/sequence_insert_fp16x16.cairo +++ b/tests/nodes/sequence_insert_fp16x16.cairo @@ -9,7 +9,7 @@ use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::FP16x16Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] diff --git a/tests/nodes/sequence_insert_fp16x16/input_0.cairo b/tests/nodes/sequence_insert_fp16x16/input_0.cairo index 1b815e972..49c752d21 100644 --- a/tests/nodes/sequence_insert_fp16x16/input_0.cairo +++ b/tests/nodes/sequence_insert_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_insert_fp16x16/input_1.cairo b/tests/nodes/sequence_insert_fp16x16/input_1.cairo index 002eea182..d9dfe17cf 100644 --- a/tests/nodes/sequence_insert_fp16x16/input_1.cairo +++ b/tests/nodes/sequence_insert_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_insert_fp16x16/input_2.cairo b/tests/nodes/sequence_insert_fp16x16/input_2.cairo index b52094dc8..3d41f6520 100644 --- a/tests/nodes/sequence_insert_fp16x16/input_2.cairo +++ b/tests/nodes/sequence_insert_fp16x16/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_fp16x16/output_0.cairo b/tests/nodes/sequence_insert_fp16x16/output_0.cairo index 9c738ca10..affef0af5 100644 --- a/tests/nodes/sequence_insert_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_insert_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_insert_fp8x23.cairo b/tests/nodes/sequence_insert_fp8x23.cairo index f85b9a0f9..be838402d 100644 --- a/tests/nodes/sequence_insert_fp8x23.cairo +++ b/tests/nodes/sequence_insert_fp8x23.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::FP8x23TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; diff --git a/tests/nodes/sequence_insert_fp8x23/input_0.cairo b/tests/nodes/sequence_insert_fp8x23/input_0.cairo index 93a63e3f6..516565369 100644 --- a/tests/nodes/sequence_insert_fp8x23/input_0.cairo +++ b/tests/nodes/sequence_insert_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_insert_fp8x23/input_1.cairo b/tests/nodes/sequence_insert_fp8x23/input_1.cairo index 5f0641594..6483cd800 100644 --- a/tests/nodes/sequence_insert_fp8x23/input_1.cairo +++ b/tests/nodes/sequence_insert_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_insert_fp8x23/input_2.cairo b/tests/nodes/sequence_insert_fp8x23/input_2.cairo index 14092dfde..443d9db87 100644 --- a/tests/nodes/sequence_insert_fp8x23/input_2.cairo +++ b/tests/nodes/sequence_insert_fp8x23/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_fp8x23/output_0.cairo b/tests/nodes/sequence_insert_fp8x23/output_0.cairo index 6df1190b7..2d8769a0b 100644 --- a/tests/nodes/sequence_insert_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_insert_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_insert_i32.cairo b/tests/nodes/sequence_insert_i32.cairo index fe516d5fd..0eac00d7b 100644 --- a/tests/nodes/sequence_insert_i32.cairo +++ b/tests/nodes/sequence_insert_i32.cairo @@ -7,7 +7,7 @@ mod output_0; use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] diff --git a/tests/nodes/sequence_insert_i32/input_0.cairo b/tests/nodes/sequence_insert_i32/input_0.cairo index d3bb45364..44efad2b3 100644 --- a/tests/nodes/sequence_insert_i32/input_0.cairo +++ b/tests/nodes/sequence_insert_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_i32/input_1.cairo b/tests/nodes/sequence_insert_i32/input_1.cairo index 6acea527d..31f32ef39 100644 --- a/tests/nodes/sequence_insert_i32/input_1.cairo +++ b/tests/nodes/sequence_insert_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_i32/input_2.cairo b/tests/nodes/sequence_insert_i32/input_2.cairo index b52094dc8..3d41f6520 100644 --- a/tests/nodes/sequence_insert_i32/input_2.cairo +++ b/tests/nodes/sequence_insert_i32/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_i32/output_0.cairo b/tests/nodes/sequence_insert_i32/output_0.cairo index aa2a62558..d50a03921 100644 --- a/tests/nodes/sequence_insert_i32/output_0.cairo +++ b/tests/nodes/sequence_insert_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_i8.cairo b/tests/nodes/sequence_insert_i8.cairo index 112790b42..0d25a649b 100644 --- a/tests/nodes/sequence_insert_i8.cairo +++ b/tests/nodes/sequence_insert_i8.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I8Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; diff --git a/tests/nodes/sequence_insert_i8/input_0.cairo b/tests/nodes/sequence_insert_i8/input_0.cairo index 88a8670c5..32a61b6be 100644 --- a/tests/nodes/sequence_insert_i8/input_0.cairo +++ b/tests/nodes/sequence_insert_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_insert_i8/input_1.cairo b/tests/nodes/sequence_insert_i8/input_1.cairo index 1b48f29bb..0f8e8db05 100644 --- a/tests/nodes/sequence_insert_i8/input_1.cairo +++ b/tests/nodes/sequence_insert_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_insert_i8/input_2.cairo b/tests/nodes/sequence_insert_i8/input_2.cairo index 14092dfde..443d9db87 100644 --- a/tests/nodes/sequence_insert_i8/input_2.cairo +++ b/tests/nodes/sequence_insert_i8/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_i8/output_0.cairo b/tests/nodes/sequence_insert_i8/output_0.cairo index 62dd7ff26..6d4c5e259 100644 --- a/tests/nodes/sequence_insert_i8/output_0.cairo +++ b/tests/nodes/sequence_insert_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_insert_u32.cairo b/tests/nodes/sequence_insert_u32.cairo index 7cee89af8..0a8a55f18 100644 --- a/tests/nodes/sequence_insert_u32.cairo +++ b/tests/nodes/sequence_insert_u32.cairo @@ -8,7 +8,7 @@ use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/sequence_insert_u32/input_0.cairo b/tests/nodes/sequence_insert_u32/input_0.cairo index 3dd2ac9af..0071622e7 100644 --- a/tests/nodes/sequence_insert_u32/input_0.cairo +++ b/tests/nodes/sequence_insert_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_insert_u32/input_1.cairo b/tests/nodes/sequence_insert_u32/input_1.cairo index c83ba864e..4a8675a69 100644 --- a/tests/nodes/sequence_insert_u32/input_1.cairo +++ b/tests/nodes/sequence_insert_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_insert_u32/input_2.cairo b/tests/nodes/sequence_insert_u32/input_2.cairo index b52094dc8..3d41f6520 100644 --- a/tests/nodes/sequence_insert_u32/input_2.cairo +++ b/tests/nodes/sequence_insert_u32/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_insert_u32/output_0.cairo b/tests/nodes/sequence_insert_u32/output_0.cairo index 148d80c2b..c41b91cce 100644 --- a/tests/nodes/sequence_insert_u32/output_0.cairo +++ b/tests/nodes/sequence_insert_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_fp16x16.cairo b/tests/nodes/sequence_length_fp16x16.cairo index 44d9cf8b7..5d39a1df6 100644 --- a/tests/nodes/sequence_length_fp16x16.cairo +++ b/tests/nodes/sequence_length_fp16x16.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sequence_length_fp16x16/input_0.cairo b/tests/nodes/sequence_length_fp16x16/input_0.cairo index 1943f2e3a..744df487a 100644 --- a/tests/nodes/sequence_length_fp16x16/input_0.cairo +++ b/tests/nodes/sequence_length_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_length_fp16x16/output_0.cairo b/tests/nodes/sequence_length_fp16x16/output_0.cairo index cc6040e61..0b6948bb8 100644 --- a/tests/nodes/sequence_length_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_length_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_fp16x16_broadcast.cairo b/tests/nodes/sequence_length_fp16x16_broadcast.cairo index 9c3996555..0b7bba50b 100644 --- a/tests/nodes/sequence_length_fp16x16_broadcast.cairo +++ b/tests/nodes/sequence_length_fp16x16_broadcast.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo b/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo index c15af2315..579546c86 100644 --- a/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo b/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo index df7dfed8b..a2f466504 100644 --- a/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_fp8x23.cairo b/tests/nodes/sequence_length_fp8x23.cairo index 232dda071..64c3291c9 100644 --- a/tests/nodes/sequence_length_fp8x23.cairo +++ b/tests/nodes/sequence_length_fp8x23.cairo @@ -7,7 +7,7 @@ use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; #[test] diff --git a/tests/nodes/sequence_length_fp8x23/input_0.cairo b/tests/nodes/sequence_length_fp8x23/input_0.cairo index 5a57eb8e7..b7efb6e62 100644 --- a/tests/nodes/sequence_length_fp8x23/input_0.cairo +++ b/tests/nodes/sequence_length_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_length_fp8x23/output_0.cairo b/tests/nodes/sequence_length_fp8x23/output_0.cairo index fa5db15f8..d85f9557c 100644 --- a/tests/nodes/sequence_length_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_length_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_fp8x23_broadcast.cairo b/tests/nodes/sequence_length_fp8x23_broadcast.cairo index 9e8340e55..f61131b65 100644 --- a/tests/nodes/sequence_length_fp8x23_broadcast.cairo +++ b/tests/nodes/sequence_length_fp8x23_broadcast.cairo @@ -7,7 +7,7 @@ use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; #[test] diff --git a/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo b/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo index 86c579ca0..333ced017 100644 --- a/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo b/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo index abdf2e9d5..5925c78ea 100644 --- a/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_i32.cairo b/tests/nodes/sequence_length_i32.cairo index 005bbc313..412e23dbd 100644 --- a/tests/nodes/sequence_length_i32.cairo +++ b/tests/nodes/sequence_length_i32.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_i32/input_0.cairo b/tests/nodes/sequence_length_i32/input_0.cairo index 970397961..5532e0c5c 100644 --- a/tests/nodes/sequence_length_i32/input_0.cairo +++ b/tests/nodes/sequence_length_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_length_i32/output_0.cairo b/tests/nodes/sequence_length_i32/output_0.cairo index 8df327a8b..a17dabf7a 100644 --- a/tests/nodes/sequence_length_i32/output_0.cairo +++ b/tests/nodes/sequence_length_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_i32_broadcast.cairo b/tests/nodes/sequence_length_i32_broadcast.cairo index 5af2cb7af..d773749eb 100644 --- a/tests/nodes/sequence_length_i32_broadcast.cairo +++ b/tests/nodes/sequence_length_i32_broadcast.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_i32_broadcast/input_0.cairo b/tests/nodes/sequence_length_i32_broadcast/input_0.cairo index 4588ce948..152349758 100644 --- a/tests/nodes/sequence_length_i32_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sequence_length_i32_broadcast/output_0.cairo b/tests/nodes/sequence_length_i32_broadcast/output_0.cairo index 0e770ce74..2b6194754 100644 --- a/tests/nodes/sequence_length_i32_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_i8.cairo b/tests/nodes/sequence_length_i8.cairo index db9b7fbe6..3aba0cfb4 100644 --- a/tests/nodes/sequence_length_i8.cairo +++ b/tests/nodes/sequence_length_i8.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::I8Tensor; diff --git a/tests/nodes/sequence_length_i8/input_0.cairo b/tests/nodes/sequence_length_i8/input_0.cairo index 5a91461ac..be1b45385 100644 --- a/tests/nodes/sequence_length_i8/input_0.cairo +++ b/tests/nodes/sequence_length_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_length_i8/output_0.cairo b/tests/nodes/sequence_length_i8/output_0.cairo index 08a3d1576..bbe021e68 100644 --- a/tests/nodes/sequence_length_i8/output_0.cairo +++ b/tests/nodes/sequence_length_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_i8_broadcast.cairo b/tests/nodes/sequence_length_i8_broadcast.cairo index a67bc0c0f..f8af9b5cf 100644 --- a/tests/nodes/sequence_length_i8_broadcast.cairo +++ b/tests/nodes/sequence_length_i8_broadcast.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::I8Tensor; diff --git a/tests/nodes/sequence_length_i8_broadcast/input_0.cairo b/tests/nodes/sequence_length_i8_broadcast/input_0.cairo index 71aca8901..c6289e487 100644 --- a/tests/nodes/sequence_length_i8_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sequence_length_i8_broadcast/output_0.cairo b/tests/nodes/sequence_length_i8_broadcast/output_0.cairo index 0e770ce74..2b6194754 100644 --- a/tests/nodes/sequence_length_i8_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_u32.cairo b/tests/nodes/sequence_length_u32.cairo index 0ba4c2b79..edf9dced9 100644 --- a/tests/nodes/sequence_length_u32.cairo +++ b/tests/nodes/sequence_length_u32.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; #[test] diff --git a/tests/nodes/sequence_length_u32/input_0.cairo b/tests/nodes/sequence_length_u32/input_0.cairo index f0a5cf3c2..0ce90ec66 100644 --- a/tests/nodes/sequence_length_u32/input_0.cairo +++ b/tests/nodes/sequence_length_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_u32/output_0.cairo b/tests/nodes/sequence_length_u32/output_0.cairo index abdf2e9d5..5925c78ea 100644 --- a/tests/nodes/sequence_length_u32/output_0.cairo +++ b/tests/nodes/sequence_length_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_u32_broadcast.cairo b/tests/nodes/sequence_length_u32_broadcast.cairo index 17f8f3474..b5432cfaf 100644 --- a/tests/nodes/sequence_length_u32_broadcast.cairo +++ b/tests/nodes/sequence_length_u32_broadcast.cairo @@ -5,7 +5,7 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32Tensor; #[test] diff --git a/tests/nodes/sequence_length_u32_broadcast/input_0.cairo b/tests/nodes/sequence_length_u32_broadcast/input_0.cairo index a1ff2ed88..e3e1524dd 100644 --- a/tests/nodes/sequence_length_u32_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sequence_length_u32_broadcast/output_0.cairo b/tests/nodes/sequence_length_u32_broadcast/output_0.cairo index abdf2e9d5..5925c78ea 100644 --- a/tests/nodes/sequence_length_u32_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/shrink_hard_fp16x16.cairo b/tests/nodes/shrink_hard_fp16x16.cairo index bd5635a2f..6d177255b 100644 --- a/tests/nodes/shrink_hard_fp16x16.cairo +++ b/tests/nodes/shrink_hard_fp16x16.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::FixedTrait; #[test] diff --git a/tests/nodes/shrink_hard_fp16x16/input_0.cairo b/tests/nodes/shrink_hard_fp16x16/input_0.cairo index 1c0d4c303..64d741fa3 100644 --- a/tests/nodes/shrink_hard_fp16x16/input_0.cairo +++ b/tests/nodes/shrink_hard_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/shrink_hard_fp16x16/output_0.cairo b/tests/nodes/shrink_hard_fp16x16/output_0.cairo index 056cb881d..2ff82ffae 100644 --- a/tests/nodes/shrink_hard_fp16x16/output_0.cairo +++ b/tests/nodes/shrink_hard_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/shrink_hard_fp8x23.cairo b/tests/nodes/shrink_hard_fp8x23.cairo index 45b743bbd..175357204 100644 --- a/tests/nodes/shrink_hard_fp8x23.cairo +++ b/tests/nodes/shrink_hard_fp8x23.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::FixedTrait; #[test] diff --git a/tests/nodes/shrink_hard_fp8x23/input_0.cairo b/tests/nodes/shrink_hard_fp8x23/input_0.cairo index 9148dbd07..57aaddaa1 100644 --- a/tests/nodes/shrink_hard_fp8x23/input_0.cairo +++ b/tests/nodes/shrink_hard_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/shrink_hard_fp8x23/output_0.cairo b/tests/nodes/shrink_hard_fp8x23/output_0.cairo index 68f66101f..c1a1baee2 100644 --- a/tests/nodes/shrink_hard_fp8x23/output_0.cairo +++ b/tests/nodes/shrink_hard_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/shrink_soft_fp16x16.cairo b/tests/nodes/shrink_soft_fp16x16.cairo index 5c90ef120..74196a9b5 100644 --- a/tests/nodes/shrink_soft_fp16x16.cairo +++ b/tests/nodes/shrink_soft_fp16x16.cairo @@ -6,7 +6,7 @@ use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::FixedTrait; #[test] diff --git a/tests/nodes/shrink_soft_fp16x16/input_0.cairo b/tests/nodes/shrink_soft_fp16x16/input_0.cairo index 5c4f4a480..384760b5a 100644 --- a/tests/nodes/shrink_soft_fp16x16/input_0.cairo +++ b/tests/nodes/shrink_soft_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/shrink_soft_fp16x16/output_0.cairo b/tests/nodes/shrink_soft_fp16x16/output_0.cairo index 6132122d8..5163b0565 100644 --- a/tests/nodes/shrink_soft_fp16x16/output_0.cairo +++ b/tests/nodes/shrink_soft_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::{FixedTrait, FP16x16}; diff --git a/tests/nodes/shrink_soft_fp8x23.cairo b/tests/nodes/shrink_soft_fp8x23.cairo index 3ee05b53d..a1b21f0a3 100644 --- a/tests/nodes/shrink_soft_fp8x23.cairo +++ b/tests/nodes/shrink_soft_fp8x23.cairo @@ -6,7 +6,7 @@ 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 array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::numbers::FixedTrait; #[test] diff --git a/tests/nodes/shrink_soft_fp8x23/input_0.cairo b/tests/nodes/shrink_soft_fp8x23/input_0.cairo index 0189876bb..8fc7a947b 100644 --- a/tests/nodes/shrink_soft_fp8x23/input_0.cairo +++ b/tests/nodes/shrink_soft_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/shrink_soft_fp8x23/output_0.cairo b/tests/nodes/shrink_soft_fp8x23/output_0.cairo index 72dde7a12..286d921c5 100644 --- a/tests/nodes/shrink_soft_fp8x23/output_0.cairo +++ b/tests/nodes/shrink_soft_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/tests/nodes/sigmoid_fp16x16/input_0.cairo b/tests/nodes/sigmoid_fp16x16/input_0.cairo index cdc897f12..eff6c1a79 100644 --- a/tests/nodes/sigmoid_fp16x16/input_0.cairo +++ b/tests/nodes/sigmoid_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sigmoid_fp16x16/output_0.cairo b/tests/nodes/sigmoid_fp16x16/output_0.cairo index 5e8eb66f8..88663e229 100644 --- a/tests/nodes/sigmoid_fp16x16/output_0.cairo +++ b/tests/nodes/sigmoid_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sigmoid_fp8x23/input_0.cairo b/tests/nodes/sigmoid_fp8x23/input_0.cairo index 2fcff616f..394e44613 100644 --- a/tests/nodes/sigmoid_fp8x23/input_0.cairo +++ b/tests/nodes/sigmoid_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sigmoid_fp8x23/output_0.cairo b/tests/nodes/sigmoid_fp8x23/output_0.cairo index 1b21061e6..0d5cca7f1 100644 --- a/tests/nodes/sigmoid_fp8x23/output_0.cairo +++ b/tests/nodes/sigmoid_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sign_fP16x16.cairo b/tests/nodes/sign_fP16x16.cairo index 65355da53..31cde6c80 100644 --- a/tests/nodes/sign_fP16x16.cairo +++ b/tests/nodes/sign_fP16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sign_fP16x16/input_0.cairo b/tests/nodes/sign_fP16x16/input_0.cairo index 6c9557766..2ea7f3ed2 100644 --- a/tests/nodes/sign_fP16x16/input_0.cairo +++ b/tests/nodes/sign_fP16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sign_fP16x16/output_0.cairo b/tests/nodes/sign_fP16x16/output_0.cairo index ce0b98f8a..5ecf13619 100644 --- a/tests/nodes/sign_fP16x16/output_0.cairo +++ b/tests/nodes/sign_fP16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sign_fP8x23.cairo b/tests/nodes/sign_fP8x23.cairo index d100344fb..aeadf93a1 100644 --- a/tests/nodes/sign_fP8x23.cairo +++ b/tests/nodes/sign_fP8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/sign_fP8x23/input_0.cairo b/tests/nodes/sign_fP8x23/input_0.cairo index 69f5ad055..150de5c75 100644 --- a/tests/nodes/sign_fP8x23/input_0.cairo +++ b/tests/nodes/sign_fP8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sign_fP8x23/output_0.cairo b/tests/nodes/sign_fP8x23/output_0.cairo index 69680e6a2..2b1524a49 100644 --- a/tests/nodes/sign_fP8x23/output_0.cairo +++ b/tests/nodes/sign_fP8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sign_fail.cairo b/tests/nodes/sign_fail.cairo index 0bbed8162..dc38a643d 100644 --- a/tests/nodes/sign_fail.cairo +++ b/tests/nodes/sign_fail.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/sign_fail/input_0.cairo b/tests/nodes/sign_fail/input_0.cairo index fa5161a27..aff2c4be7 100644 --- a/tests/nodes/sign_fail/input_0.cairo +++ b/tests/nodes/sign_fail/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sign_fail/output_0.cairo b/tests/nodes/sign_fail/output_0.cairo index 3d64e43d1..ffeb83364 100644 --- a/tests/nodes/sign_fail/output_0.cairo +++ b/tests/nodes/sign_fail/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sign_i32.cairo b/tests/nodes/sign_i32.cairo index a788422f8..b5ed8ef98 100644 --- a/tests/nodes/sign_i32.cairo +++ b/tests/nodes/sign_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/sign_i32/input_0.cairo b/tests/nodes/sign_i32/input_0.cairo index fa5161a27..aff2c4be7 100644 --- a/tests/nodes/sign_i32/input_0.cairo +++ b/tests/nodes/sign_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sign_i32/output_0.cairo b/tests/nodes/sign_i32/output_0.cairo index eb3ce4f1c..eb607adfe 100644 --- a/tests/nodes/sign_i32/output_0.cairo +++ b/tests/nodes/sign_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sign_i8.cairo b/tests/nodes/sign_i8.cairo index 99c64126f..23a974005 100644 --- a/tests/nodes/sign_i8.cairo +++ b/tests/nodes/sign_i8.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/sign_i8/input_0.cairo b/tests/nodes/sign_i8/input_0.cairo index 016847f4a..ea810555b 100644 --- a/tests/nodes/sign_i8/input_0.cairo +++ b/tests/nodes/sign_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sign_i8/output_0.cairo b/tests/nodes/sign_i8/output_0.cairo index e80562766..6221ee240 100644 --- a/tests/nodes/sign_i8/output_0.cairo +++ b/tests/nodes/sign_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sin_fp16x16.cairo b/tests/nodes/sin_fp16x16.cairo index a3d739d34..c6b518460 100644 --- a/tests/nodes/sin_fp16x16.cairo +++ b/tests/nodes/sin_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sin_fp16x16/input_0.cairo b/tests/nodes/sin_fp16x16/input_0.cairo index 59e36275b..87e0efa21 100644 --- a/tests/nodes/sin_fp16x16/input_0.cairo +++ b/tests/nodes/sin_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sin_fp16x16/output_0.cairo b/tests/nodes/sin_fp16x16/output_0.cairo index 365601732..15861e527 100644 --- a/tests/nodes/sin_fp16x16/output_0.cairo +++ b/tests/nodes/sin_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sin_fp8x23.cairo b/tests/nodes/sin_fp8x23.cairo index 70ae46c36..8026a6b26 100644 --- a/tests/nodes/sin_fp8x23.cairo +++ b/tests/nodes/sin_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/sin_fp8x23/input_0.cairo b/tests/nodes/sin_fp8x23/input_0.cairo index 0df738e02..433d4a03c 100644 --- a/tests/nodes/sin_fp8x23/input_0.cairo +++ b/tests/nodes/sin_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sin_fp8x23/output_0.cairo b/tests/nodes/sin_fp8x23/output_0.cairo index 4b26ced9c..ac13db289 100644 --- a/tests/nodes/sin_fp8x23/output_0.cairo +++ b/tests/nodes/sin_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sinh_fp16x16.cairo b/tests/nodes/sinh_fp16x16.cairo index 7f1843e19..3b5079395 100644 --- a/tests/nodes/sinh_fp16x16.cairo +++ b/tests/nodes/sinh_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sinh_fp16x16/input_0.cairo b/tests/nodes/sinh_fp16x16/input_0.cairo index 1c841013a..bbf771c2d 100644 --- a/tests/nodes/sinh_fp16x16/input_0.cairo +++ b/tests/nodes/sinh_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sinh_fp16x16/output_0.cairo b/tests/nodes/sinh_fp16x16/output_0.cairo index eb299646d..c7ac78d98 100644 --- a/tests/nodes/sinh_fp16x16/output_0.cairo +++ b/tests/nodes/sinh_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sinh_fp8x23.cairo b/tests/nodes/sinh_fp8x23.cairo index 509742fd5..a0651106c 100644 --- a/tests/nodes/sinh_fp8x23.cairo +++ b/tests/nodes/sinh_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/sinh_fp8x23/input_0.cairo b/tests/nodes/sinh_fp8x23/input_0.cairo index c15f34221..d6751efd5 100644 --- a/tests/nodes/sinh_fp8x23/input_0.cairo +++ b/tests/nodes/sinh_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sinh_fp8x23/output_0.cairo b/tests/nodes/sinh_fp8x23/output_0.cairo index 872a70136..ec7add440 100644 --- a/tests/nodes/sinh_fp8x23/output_0.cairo +++ b/tests/nodes/sinh_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp16x16_2d.cairo b/tests/nodes/slice_fp16x16_2d.cairo index d317763f9..fd2950e0b 100644 --- a/tests/nodes/slice_fp16x16_2d.cairo +++ b/tests/nodes/slice_fp16x16_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/slice_fp16x16_2d/input_0.cairo b/tests/nodes/slice_fp16x16_2d/input_0.cairo index f15b55899..5c820e63f 100644 --- a/tests/nodes/slice_fp16x16_2d/input_0.cairo +++ b/tests/nodes/slice_fp16x16_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp16x16_2d/output_0.cairo b/tests/nodes/slice_fp16x16_2d/output_0.cairo index ee049dfc8..07269f6ad 100644 --- a/tests/nodes/slice_fp16x16_2d/output_0.cairo +++ b/tests/nodes/slice_fp16x16_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp16x16_3d.cairo b/tests/nodes/slice_fp16x16_3d.cairo index 189811ae0..ecb4e3bb2 100644 --- a/tests/nodes/slice_fp16x16_3d.cairo +++ b/tests/nodes/slice_fp16x16_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/slice_fp16x16_3d/input_0.cairo b/tests/nodes/slice_fp16x16_3d/input_0.cairo index d2f8b2fc3..04bf9b5bc 100644 --- a/tests/nodes/slice_fp16x16_3d/input_0.cairo +++ b/tests/nodes/slice_fp16x16_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp16x16_3d/output_0.cairo b/tests/nodes/slice_fp16x16_3d/output_0.cairo index 2ce7d2685..c319368a8 100644 --- a/tests/nodes/slice_fp16x16_3d/output_0.cairo +++ b/tests/nodes/slice_fp16x16_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp8x23_2d.cairo b/tests/nodes/slice_fp8x23_2d.cairo index cbe97f07d..f03f1b95c 100644 --- a/tests/nodes/slice_fp8x23_2d.cairo +++ b/tests/nodes/slice_fp8x23_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/slice_fp8x23_2d/input_0.cairo b/tests/nodes/slice_fp8x23_2d/input_0.cairo index b64904fa9..3e9753ab5 100644 --- a/tests/nodes/slice_fp8x23_2d/input_0.cairo +++ b/tests/nodes/slice_fp8x23_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp8x23_2d/output_0.cairo b/tests/nodes/slice_fp8x23_2d/output_0.cairo index 6ecf5731c..33a1a760e 100644 --- a/tests/nodes/slice_fp8x23_2d/output_0.cairo +++ b/tests/nodes/slice_fp8x23_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp8x23_3d.cairo b/tests/nodes/slice_fp8x23_3d.cairo index f063b85be..19a40a65e 100644 --- a/tests/nodes/slice_fp8x23_3d.cairo +++ b/tests/nodes/slice_fp8x23_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/slice_fp8x23_3d/input_0.cairo b/tests/nodes/slice_fp8x23_3d/input_0.cairo index cb3514d2c..87d515b5e 100644 --- a/tests/nodes/slice_fp8x23_3d/input_0.cairo +++ b/tests/nodes/slice_fp8x23_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_fp8x23_3d/output_0.cairo b/tests/nodes/slice_fp8x23_3d/output_0.cairo index fc59ea881..e3aef0694 100644 --- a/tests/nodes/slice_fp8x23_3d/output_0.cairo +++ b/tests/nodes/slice_fp8x23_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/slice_i32_2d.cairo b/tests/nodes/slice_i32_2d.cairo index c25cc6fae..4ed18508e 100644 --- a/tests/nodes/slice_i32_2d.cairo +++ b/tests/nodes/slice_i32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/slice_i32_2d/input_0.cairo b/tests/nodes/slice_i32_2d/input_0.cairo index 442e23c58..c199d9adf 100644 --- a/tests/nodes/slice_i32_2d/input_0.cairo +++ b/tests/nodes/slice_i32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/slice_i32_2d/output_0.cairo b/tests/nodes/slice_i32_2d/output_0.cairo index f9419b00c..c46e79e08 100644 --- a/tests/nodes/slice_i32_2d/output_0.cairo +++ b/tests/nodes/slice_i32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/slice_i32_3d.cairo b/tests/nodes/slice_i32_3d.cairo index 0a138db0b..df2cad605 100644 --- a/tests/nodes/slice_i32_3d.cairo +++ b/tests/nodes/slice_i32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/slice_i32_3d/input_0.cairo b/tests/nodes/slice_i32_3d/input_0.cairo index 1608340fd..7bc84e6f2 100644 --- a/tests/nodes/slice_i32_3d/input_0.cairo +++ b/tests/nodes/slice_i32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/slice_i32_3d/output_0.cairo b/tests/nodes/slice_i32_3d/output_0.cairo index 575daf9d5..9addfcbdf 100644 --- a/tests/nodes/slice_i32_3d/output_0.cairo +++ b/tests/nodes/slice_i32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/slice_i8_2d.cairo b/tests/nodes/slice_i8_2d.cairo index 54a135879..0ab311afe 100644 --- a/tests/nodes/slice_i8_2d.cairo +++ b/tests/nodes/slice_i8_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/slice_i8_2d/input_0.cairo b/tests/nodes/slice_i8_2d/input_0.cairo index 419d9a15c..76f652b16 100644 --- a/tests/nodes/slice_i8_2d/input_0.cairo +++ b/tests/nodes/slice_i8_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/slice_i8_2d/output_0.cairo b/tests/nodes/slice_i8_2d/output_0.cairo index 72133edaa..0cfbcfca5 100644 --- a/tests/nodes/slice_i8_2d/output_0.cairo +++ b/tests/nodes/slice_i8_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/slice_i8_3d.cairo b/tests/nodes/slice_i8_3d.cairo index 541014e0f..b6d7df8fd 100644 --- a/tests/nodes/slice_i8_3d.cairo +++ b/tests/nodes/slice_i8_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/slice_i8_3d/input_0.cairo b/tests/nodes/slice_i8_3d/input_0.cairo index bff15b87a..32d5a0466 100644 --- a/tests/nodes/slice_i8_3d/input_0.cairo +++ b/tests/nodes/slice_i8_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/slice_i8_3d/output_0.cairo b/tests/nodes/slice_i8_3d/output_0.cairo index ced53b02f..6fe48c204 100644 --- a/tests/nodes/slice_i8_3d/output_0.cairo +++ b/tests/nodes/slice_i8_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/slice_u32_2d.cairo b/tests/nodes/slice_u32_2d.cairo index 82174f52c..8e13c4054 100644 --- a/tests/nodes/slice_u32_2d.cairo +++ b/tests/nodes/slice_u32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/slice_u32_2d/input_0.cairo b/tests/nodes/slice_u32_2d/input_0.cairo index f86cc06d2..4cb0582a4 100644 --- a/tests/nodes/slice_u32_2d/input_0.cairo +++ b/tests/nodes/slice_u32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/slice_u32_2d/output_0.cairo b/tests/nodes/slice_u32_2d/output_0.cairo index bf034498b..f1ba8a6a0 100644 --- a/tests/nodes/slice_u32_2d/output_0.cairo +++ b/tests/nodes/slice_u32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/slice_u32_3d.cairo b/tests/nodes/slice_u32_3d.cairo index 60e9b6a97..dbeb3b50a 100644 --- a/tests/nodes/slice_u32_3d.cairo +++ b/tests/nodes/slice_u32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/slice_u32_3d/input_0.cairo b/tests/nodes/slice_u32_3d/input_0.cairo index da5a21530..2a0c37ff4 100644 --- a/tests/nodes/slice_u32_3d/input_0.cairo +++ b/tests/nodes/slice_u32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/slice_u32_3d/output_0.cairo b/tests/nodes/slice_u32_3d/output_0.cairo index 928434949..fea255f6a 100644 --- a/tests/nodes/slice_u32_3d/output_0.cairo +++ b/tests/nodes/slice_u32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/softmax_fp16x16/input_0.cairo b/tests/nodes/softmax_fp16x16/input_0.cairo index 4b0424d6a..9c2bd5bb8 100644 --- a/tests/nodes/softmax_fp16x16/input_0.cairo +++ b/tests/nodes/softmax_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softmax_fp16x16/output_0.cairo b/tests/nodes/softmax_fp16x16/output_0.cairo index 8cda2cb42..ffb0d93c0 100644 --- a/tests/nodes/softmax_fp16x16/output_0.cairo +++ b/tests/nodes/softmax_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softmax_fp8x23/input_0.cairo b/tests/nodes/softmax_fp8x23/input_0.cairo index 45561a23e..e28b5fc54 100644 --- a/tests/nodes/softmax_fp8x23/input_0.cairo +++ b/tests/nodes/softmax_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softmax_fp8x23/output_0.cairo b/tests/nodes/softmax_fp8x23/output_0.cairo index 61d0c44c4..ae6c93cc7 100644 --- a/tests/nodes/softmax_fp8x23/output_0.cairo +++ b/tests/nodes/softmax_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softplus_fp16x16/input_0.cairo b/tests/nodes/softplus_fp16x16/input_0.cairo index 4d79ec666..288f7e288 100644 --- a/tests/nodes/softplus_fp16x16/input_0.cairo +++ b/tests/nodes/softplus_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softplus_fp16x16/output_0.cairo b/tests/nodes/softplus_fp16x16/output_0.cairo index de399ee3e..73ed513e9 100644 --- a/tests/nodes/softplus_fp16x16/output_0.cairo +++ b/tests/nodes/softplus_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softplus_fp8x23/input_0.cairo b/tests/nodes/softplus_fp8x23/input_0.cairo index 00a6ef22e..421daca81 100644 --- a/tests/nodes/softplus_fp8x23/input_0.cairo +++ b/tests/nodes/softplus_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softplus_fp8x23/output_0.cairo b/tests/nodes/softplus_fp8x23/output_0.cairo index a08c3d203..0b3351bfc 100644 --- a/tests/nodes/softplus_fp8x23/output_0.cairo +++ b/tests/nodes/softplus_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softsign_fp16x16/input_0.cairo b/tests/nodes/softsign_fp16x16/input_0.cairo index e26e10e73..6814159d6 100644 --- a/tests/nodes/softsign_fp16x16/input_0.cairo +++ b/tests/nodes/softsign_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softsign_fp16x16/output_0.cairo b/tests/nodes/softsign_fp16x16/output_0.cairo index 3f8da9b70..f810d6d2f 100644 --- a/tests/nodes/softsign_fp16x16/output_0.cairo +++ b/tests/nodes/softsign_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softsign_fp8x23/input_0.cairo b/tests/nodes/softsign_fp8x23/input_0.cairo index 7530c228a..0b2be82e9 100644 --- a/tests/nodes/softsign_fp8x23/input_0.cairo +++ b/tests/nodes/softsign_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/softsign_fp8x23/output_0.cairo b/tests/nodes/softsign_fp8x23/output_0.cairo index 99b78766a..1d7f2eecf 100644 --- a/tests/nodes/softsign_fp8x23/output_0.cairo +++ b/tests/nodes/softsign_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sqrt_fp16x16.cairo b/tests/nodes/sqrt_fp16x16.cairo index cf71101dd..cc793e9b6 100644 --- a/tests/nodes/sqrt_fp16x16.cairo +++ b/tests/nodes/sqrt_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sqrt_fp16x16/input_0.cairo b/tests/nodes/sqrt_fp16x16/input_0.cairo index 23d381d79..d81ded5b9 100644 --- a/tests/nodes/sqrt_fp16x16/input_0.cairo +++ b/tests/nodes/sqrt_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sqrt_fp16x16/output_0.cairo b/tests/nodes/sqrt_fp16x16/output_0.cairo index 877974f3d..24dbc38eb 100644 --- a/tests/nodes/sqrt_fp16x16/output_0.cairo +++ b/tests/nodes/sqrt_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sqrt_fp8x23.cairo b/tests/nodes/sqrt_fp8x23.cairo index 2d149186b..36e04fcbb 100644 --- a/tests/nodes/sqrt_fp8x23.cairo +++ b/tests/nodes/sqrt_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/sqrt_fp8x23/input_0.cairo b/tests/nodes/sqrt_fp8x23/input_0.cairo index edcac3d9c..c5dfdd6ab 100644 --- a/tests/nodes/sqrt_fp8x23/input_0.cairo +++ b/tests/nodes/sqrt_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sqrt_fp8x23/output_0.cairo b/tests/nodes/sqrt_fp8x23/output_0.cairo index e06c3a66f..44eab9b45 100644 --- a/tests/nodes/sqrt_fp8x23/output_0.cairo +++ b/tests/nodes/sqrt_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/squeeze_fP16x16.cairo b/tests/nodes/squeeze_fP16x16.cairo index 02bc7800f..f2fbbf319 100644 --- a/tests/nodes/squeeze_fP16x16.cairo +++ b/tests/nodes/squeeze_fP16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/squeeze_fP16x16/input_0.cairo b/tests/nodes/squeeze_fP16x16/input_0.cairo index 71d9e63cd..4cb35e6a3 100644 --- a/tests/nodes/squeeze_fP16x16/input_0.cairo +++ b/tests/nodes/squeeze_fP16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/squeeze_fP16x16/output_0.cairo b/tests/nodes/squeeze_fP16x16/output_0.cairo index d2425d843..eb8e6a290 100644 --- a/tests/nodes/squeeze_fP16x16/output_0.cairo +++ b/tests/nodes/squeeze_fP16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/squeeze_fP8x23.cairo b/tests/nodes/squeeze_fP8x23.cairo index 5078bfda6..703b42047 100644 --- a/tests/nodes/squeeze_fP8x23.cairo +++ b/tests/nodes/squeeze_fP8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/squeeze_fP8x23/input_0.cairo b/tests/nodes/squeeze_fP8x23/input_0.cairo index ce9f1c4ee..8a66d40bb 100644 --- a/tests/nodes/squeeze_fP8x23/input_0.cairo +++ b/tests/nodes/squeeze_fP8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/squeeze_fP8x23/output_0.cairo b/tests/nodes/squeeze_fP8x23/output_0.cairo index 8f42edba3..fd030641c 100644 --- a/tests/nodes/squeeze_fP8x23/output_0.cairo +++ b/tests/nodes/squeeze_fP8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/squeeze_i32.cairo b/tests/nodes/squeeze_i32.cairo index dd5a4ba04..7eeac961b 100644 --- a/tests/nodes/squeeze_i32.cairo +++ b/tests/nodes/squeeze_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/squeeze_i32/input_0.cairo b/tests/nodes/squeeze_i32/input_0.cairo index daae666db..cacbff24d 100644 --- a/tests/nodes/squeeze_i32/input_0.cairo +++ b/tests/nodes/squeeze_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/squeeze_i32/output_0.cairo b/tests/nodes/squeeze_i32/output_0.cairo index 7df96b766..7cdc1af1e 100644 --- a/tests/nodes/squeeze_i32/output_0.cairo +++ b/tests/nodes/squeeze_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/squeeze_i8.cairo b/tests/nodes/squeeze_i8.cairo index db411d395..9b816a9ab 100644 --- a/tests/nodes/squeeze_i8.cairo +++ b/tests/nodes/squeeze_i8.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/squeeze_i8/input_0.cairo b/tests/nodes/squeeze_i8/input_0.cairo index e31ca8f71..33939c960 100644 --- a/tests/nodes/squeeze_i8/input_0.cairo +++ b/tests/nodes/squeeze_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/squeeze_i8/output_0.cairo b/tests/nodes/squeeze_i8/output_0.cairo index 2fb74f60d..fe057a7c8 100644 --- a/tests/nodes/squeeze_i8/output_0.cairo +++ b/tests/nodes/squeeze_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/squeeze_u32.cairo b/tests/nodes/squeeze_u32.cairo index dc6800640..31b951cab 100644 --- a/tests/nodes/squeeze_u32.cairo +++ b/tests/nodes/squeeze_u32.cairo @@ -3,7 +3,7 @@ mod output_0; mod output_non_axes; mod output_negatives; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/squeeze_u32/input_0.cairo b/tests/nodes/squeeze_u32/input_0.cairo index 0d1cd193f..583295a7f 100644 --- a/tests/nodes/squeeze_u32/input_0.cairo +++ b/tests/nodes/squeeze_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/squeeze_u32/output_0.cairo b/tests/nodes/squeeze_u32/output_0.cairo index 1b42f7474..bb197c71e 100644 --- a/tests/nodes/squeeze_u32/output_0.cairo +++ b/tests/nodes/squeeze_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/squeeze_u32/output_negatives.cairo b/tests/nodes/squeeze_u32/output_negatives.cairo index 11625d6d4..8826f4dc6 100644 --- a/tests/nodes/squeeze_u32/output_negatives.cairo +++ b/tests/nodes/squeeze_u32/output_negatives.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/squeeze_u32/output_non_axes.cairo b/tests/nodes/squeeze_u32/output_non_axes.cairo index be3c79c6d..bfb3aabb0 100644 --- a/tests/nodes/squeeze_u32/output_non_axes.cairo +++ b/tests/nodes/squeeze_u32/output_non_axes.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sub_fp16x16.cairo b/tests/nodes/sub_fp16x16.cairo index a8cf7ef36..086be5940 100644 --- a/tests/nodes/sub_fp16x16.cairo +++ b/tests/nodes/sub_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sub_fp16x16/input_0.cairo b/tests/nodes/sub_fp16x16/input_0.cairo index f98a53641..4ad0ec969 100644 --- a/tests/nodes/sub_fp16x16/input_0.cairo +++ b/tests/nodes/sub_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp16x16/input_1.cairo b/tests/nodes/sub_fp16x16/input_1.cairo index b0b282630..655693ceb 100644 --- a/tests/nodes/sub_fp16x16/input_1.cairo +++ b/tests/nodes/sub_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp16x16/output_0.cairo b/tests/nodes/sub_fp16x16/output_0.cairo index 2846c4567..ce2b2b972 100644 --- a/tests/nodes/sub_fp16x16/output_0.cairo +++ b/tests/nodes/sub_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp16x16_broadcast.cairo b/tests/nodes/sub_fp16x16_broadcast.cairo index fc921cef7..e96d0f5c3 100644 --- a/tests/nodes/sub_fp16x16_broadcast.cairo +++ b/tests/nodes/sub_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/sub_fp16x16_broadcast/input_0.cairo b/tests/nodes/sub_fp16x16_broadcast/input_0.cairo index 52c3258a0..38dd0ee84 100644 --- a/tests/nodes/sub_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/sub_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp16x16_broadcast/input_1.cairo b/tests/nodes/sub_fp16x16_broadcast/input_1.cairo index 6d211182a..1f419f7f1 100644 --- a/tests/nodes/sub_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/sub_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp16x16_broadcast/output_0.cairo b/tests/nodes/sub_fp16x16_broadcast/output_0.cairo index c1e08a573..8149d6eb0 100644 --- a/tests/nodes/sub_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/sub_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp8x23.cairo b/tests/nodes/sub_fp8x23.cairo index 3034523f0..8ff6ba6cc 100644 --- a/tests/nodes/sub_fp8x23.cairo +++ b/tests/nodes/sub_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/sub_fp8x23/input_0.cairo b/tests/nodes/sub_fp8x23/input_0.cairo index 93e51204f..16cb46268 100644 --- a/tests/nodes/sub_fp8x23/input_0.cairo +++ b/tests/nodes/sub_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp8x23/input_1.cairo b/tests/nodes/sub_fp8x23/input_1.cairo index 06b045316..69a7bb90b 100644 --- a/tests/nodes/sub_fp8x23/input_1.cairo +++ b/tests/nodes/sub_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp8x23/output_0.cairo b/tests/nodes/sub_fp8x23/output_0.cairo index b39295415..46cc1240b 100644 --- a/tests/nodes/sub_fp8x23/output_0.cairo +++ b/tests/nodes/sub_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp8x23_broadcast.cairo b/tests/nodes/sub_fp8x23_broadcast.cairo index f01f00941..ba1a2369b 100644 --- a/tests/nodes/sub_fp8x23_broadcast.cairo +++ b/tests/nodes/sub_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/sub_fp8x23_broadcast/input_0.cairo b/tests/nodes/sub_fp8x23_broadcast/input_0.cairo index 835b21b87..0913d3674 100644 --- a/tests/nodes/sub_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/sub_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp8x23_broadcast/input_1.cairo b/tests/nodes/sub_fp8x23_broadcast/input_1.cairo index b153366bd..0cb455683 100644 --- a/tests/nodes/sub_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/sub_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_fp8x23_broadcast/output_0.cairo b/tests/nodes/sub_fp8x23_broadcast/output_0.cairo index c5dc63420..f716282f7 100644 --- a/tests/nodes/sub_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/sub_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/sub_i32.cairo b/tests/nodes/sub_i32.cairo index 76dc19c8e..547fe7582 100644 --- a/tests/nodes/sub_i32.cairo +++ b/tests/nodes/sub_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/sub_i32/input_0.cairo b/tests/nodes/sub_i32/input_0.cairo index 4d955076c..2767e0edf 100644 --- a/tests/nodes/sub_i32/input_0.cairo +++ b/tests/nodes/sub_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sub_i32/input_1.cairo b/tests/nodes/sub_i32/input_1.cairo index 4be138c18..3ef0e6f86 100644 --- a/tests/nodes/sub_i32/input_1.cairo +++ b/tests/nodes/sub_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sub_i32/output_0.cairo b/tests/nodes/sub_i32/output_0.cairo index 296528e8d..b4171e4ce 100644 --- a/tests/nodes/sub_i32/output_0.cairo +++ b/tests/nodes/sub_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sub_i32_broadcast.cairo b/tests/nodes/sub_i32_broadcast.cairo index 228b744bd..2ff141da4 100644 --- a/tests/nodes/sub_i32_broadcast.cairo +++ b/tests/nodes/sub_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/sub_i32_broadcast/input_0.cairo b/tests/nodes/sub_i32_broadcast/input_0.cairo index 138909339..90311786f 100644 --- a/tests/nodes/sub_i32_broadcast/input_0.cairo +++ b/tests/nodes/sub_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sub_i32_broadcast/input_1.cairo b/tests/nodes/sub_i32_broadcast/input_1.cairo index a499baebb..80783189a 100644 --- a/tests/nodes/sub_i32_broadcast/input_1.cairo +++ b/tests/nodes/sub_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sub_i32_broadcast/output_0.cairo b/tests/nodes/sub_i32_broadcast/output_0.cairo index 2f63630b6..d45f1f1b2 100644 --- a/tests/nodes/sub_i32_broadcast/output_0.cairo +++ b/tests/nodes/sub_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/sub_i8.cairo b/tests/nodes/sub_i8.cairo index c305db70c..4917592e4 100644 --- a/tests/nodes/sub_i8.cairo +++ b/tests/nodes/sub_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/sub_i8/input_0.cairo b/tests/nodes/sub_i8/input_0.cairo index 72230905c..460f7737f 100644 --- a/tests/nodes/sub_i8/input_0.cairo +++ b/tests/nodes/sub_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sub_i8/input_1.cairo b/tests/nodes/sub_i8/input_1.cairo index f1883cd6b..508d555aa 100644 --- a/tests/nodes/sub_i8/input_1.cairo +++ b/tests/nodes/sub_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sub_i8/output_0.cairo b/tests/nodes/sub_i8/output_0.cairo index 6eed6afdd..aa584a384 100644 --- a/tests/nodes/sub_i8/output_0.cairo +++ b/tests/nodes/sub_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sub_i8_broadcast.cairo b/tests/nodes/sub_i8_broadcast.cairo index 7b0669cc9..1843d1239 100644 --- a/tests/nodes/sub_i8_broadcast.cairo +++ b/tests/nodes/sub_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/sub_i8_broadcast/input_0.cairo b/tests/nodes/sub_i8_broadcast/input_0.cairo index 7b57cd5b2..22a424235 100644 --- a/tests/nodes/sub_i8_broadcast/input_0.cairo +++ b/tests/nodes/sub_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sub_i8_broadcast/input_1.cairo b/tests/nodes/sub_i8_broadcast/input_1.cairo index 98f67386f..dfedb97c9 100644 --- a/tests/nodes/sub_i8_broadcast/input_1.cairo +++ b/tests/nodes/sub_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sub_i8_broadcast/output_0.cairo b/tests/nodes/sub_i8_broadcast/output_0.cairo index f0513a02e..5cd828d1c 100644 --- a/tests/nodes/sub_i8_broadcast/output_0.cairo +++ b/tests/nodes/sub_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/sub_u32.cairo b/tests/nodes/sub_u32.cairo index d26c7449c..334defef2 100644 --- a/tests/nodes/sub_u32.cairo +++ b/tests/nodes/sub_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/sub_u32/input_0.cairo b/tests/nodes/sub_u32/input_0.cairo index 172e80cbf..6dc12f8b7 100644 --- a/tests/nodes/sub_u32/input_0.cairo +++ b/tests/nodes/sub_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sub_u32/input_1.cairo b/tests/nodes/sub_u32/input_1.cairo index 32a8011ff..73d70ad88 100644 --- a/tests/nodes/sub_u32/input_1.cairo +++ b/tests/nodes/sub_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sub_u32/output_0.cairo b/tests/nodes/sub_u32/output_0.cairo index 730adf802..c102ddbe7 100644 --- a/tests/nodes/sub_u32/output_0.cairo +++ b/tests/nodes/sub_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sub_u32_broadcast.cairo b/tests/nodes/sub_u32_broadcast.cairo index fbd8f6b54..8d9044649 100644 --- a/tests/nodes/sub_u32_broadcast.cairo +++ b/tests/nodes/sub_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/sub_u32_broadcast/input_0.cairo b/tests/nodes/sub_u32_broadcast/input_0.cairo index aaa90804d..d43d2aed5 100644 --- a/tests/nodes/sub_u32_broadcast/input_0.cairo +++ b/tests/nodes/sub_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sub_u32_broadcast/input_1.cairo b/tests/nodes/sub_u32_broadcast/input_1.cairo index dfa72650f..db6884e21 100644 --- a/tests/nodes/sub_u32_broadcast/input_1.cairo +++ b/tests/nodes/sub_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/sub_u32_broadcast/output_0.cairo b/tests/nodes/sub_u32_broadcast/output_0.cairo index 1cc90af29..0a62db6f4 100644 --- a/tests/nodes/sub_u32_broadcast/output_0.cairo +++ b/tests/nodes/sub_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tanh_fp16x16.cairo b/tests/nodes/tanh_fp16x16.cairo index ea7efb4b5..f6dde2316 100644 --- a/tests/nodes/tanh_fp16x16.cairo +++ b/tests/nodes/tanh_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tanh_fp16x16/input_0.cairo b/tests/nodes/tanh_fp16x16/input_0.cairo index ac20a0dfb..a11837980 100644 --- a/tests/nodes/tanh_fp16x16/input_0.cairo +++ b/tests/nodes/tanh_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tanh_fp16x16/output_0.cairo b/tests/nodes/tanh_fp16x16/output_0.cairo index 4751860bd..ec18da3a8 100644 --- a/tests/nodes/tanh_fp16x16/output_0.cairo +++ b/tests/nodes/tanh_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tanh_fp8x23.cairo b/tests/nodes/tanh_fp8x23.cairo index fdc6bed47..e44bd043a 100644 --- a/tests/nodes/tanh_fp8x23.cairo +++ b/tests/nodes/tanh_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tanh_fp8x23/input_0.cairo b/tests/nodes/tanh_fp8x23/input_0.cairo index 5da30221d..2a189ed75 100644 --- a/tests/nodes/tanh_fp8x23/input_0.cairo +++ b/tests/nodes/tanh_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tanh_fp8x23/output_0.cairo b/tests/nodes/tanh_fp8x23/output_0.cairo index 86983cdad..e9666f3e8 100644 --- a/tests/nodes/tanh_fp8x23/output_0.cairo +++ b/tests/nodes/tanh_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/thresholded_relu_fp16x16/input_0.cairo b/tests/nodes/thresholded_relu_fp16x16/input_0.cairo index 050c4a2b4..8e455f083 100644 --- a/tests/nodes/thresholded_relu_fp16x16/input_0.cairo +++ b/tests/nodes/thresholded_relu_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/thresholded_relu_fp16x16/output_0.cairo b/tests/nodes/thresholded_relu_fp16x16/output_0.cairo index 460c8544e..62f8f62cd 100644 --- a/tests/nodes/thresholded_relu_fp16x16/output_0.cairo +++ b/tests/nodes/thresholded_relu_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/thresholded_relu_fp8x23/input_0.cairo b/tests/nodes/thresholded_relu_fp8x23/input_0.cairo index 8002f08f2..e0087725f 100644 --- a/tests/nodes/thresholded_relu_fp8x23/input_0.cairo +++ b/tests/nodes/thresholded_relu_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/thresholded_relu_fp8x23/output_0.cairo b/tests/nodes/thresholded_relu_fp8x23/output_0.cairo index a5bb987e3..2a42bc535 100644 --- a/tests/nodes/thresholded_relu_fp8x23/output_0.cairo +++ b/tests/nodes/thresholded_relu_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp16x16_2d.cairo b/tests/nodes/transpose_fp16x16_2d.cairo index 2ccfa9db1..3d3b4e6bf 100644 --- a/tests/nodes/transpose_fp16x16_2d.cairo +++ b/tests/nodes/transpose_fp16x16_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/transpose_fp16x16_2d/input_0.cairo b/tests/nodes/transpose_fp16x16_2d/input_0.cairo index 67ee755a9..f79afec2f 100644 --- a/tests/nodes/transpose_fp16x16_2d/input_0.cairo +++ b/tests/nodes/transpose_fp16x16_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp16x16_2d/output_0.cairo b/tests/nodes/transpose_fp16x16_2d/output_0.cairo index 3c78bc203..1bf86f1fe 100644 --- a/tests/nodes/transpose_fp16x16_2d/output_0.cairo +++ b/tests/nodes/transpose_fp16x16_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp16x16_3d.cairo b/tests/nodes/transpose_fp16x16_3d.cairo index b5534b163..d155fd8f4 100644 --- a/tests/nodes/transpose_fp16x16_3d.cairo +++ b/tests/nodes/transpose_fp16x16_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/transpose_fp16x16_3d/input_0.cairo b/tests/nodes/transpose_fp16x16_3d/input_0.cairo index 689ce6429..954e455a1 100644 --- a/tests/nodes/transpose_fp16x16_3d/input_0.cairo +++ b/tests/nodes/transpose_fp16x16_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp16x16_3d/output_0.cairo b/tests/nodes/transpose_fp16x16_3d/output_0.cairo index 8088a0cbf..7e4b80f11 100644 --- a/tests/nodes/transpose_fp16x16_3d/output_0.cairo +++ b/tests/nodes/transpose_fp16x16_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp8x23_2d.cairo b/tests/nodes/transpose_fp8x23_2d.cairo index bcf5ba7e3..1e2ae2ae0 100644 --- a/tests/nodes/transpose_fp8x23_2d.cairo +++ b/tests/nodes/transpose_fp8x23_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/transpose_fp8x23_2d/input_0.cairo b/tests/nodes/transpose_fp8x23_2d/input_0.cairo index 228e35671..cfd3dc1ea 100644 --- a/tests/nodes/transpose_fp8x23_2d/input_0.cairo +++ b/tests/nodes/transpose_fp8x23_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp8x23_2d/output_0.cairo b/tests/nodes/transpose_fp8x23_2d/output_0.cairo index dc810f06e..1540cf98c 100644 --- a/tests/nodes/transpose_fp8x23_2d/output_0.cairo +++ b/tests/nodes/transpose_fp8x23_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp8x23_3d.cairo b/tests/nodes/transpose_fp8x23_3d.cairo index 1cf4ee826..34cec3af5 100644 --- a/tests/nodes/transpose_fp8x23_3d.cairo +++ b/tests/nodes/transpose_fp8x23_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/transpose_fp8x23_3d/input_0.cairo b/tests/nodes/transpose_fp8x23_3d/input_0.cairo index 4408a579e..9b5b8d83a 100644 --- a/tests/nodes/transpose_fp8x23_3d/input_0.cairo +++ b/tests/nodes/transpose_fp8x23_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_fp8x23_3d/output_0.cairo b/tests/nodes/transpose_fp8x23_3d/output_0.cairo index c8250ce9c..b3c2a1e5d 100644 --- a/tests/nodes/transpose_fp8x23_3d/output_0.cairo +++ b/tests/nodes/transpose_fp8x23_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/transpose_i32_2d.cairo b/tests/nodes/transpose_i32_2d.cairo index db476c2fe..78fc31213 100644 --- a/tests/nodes/transpose_i32_2d.cairo +++ b/tests/nodes/transpose_i32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/transpose_i32_2d/input_0.cairo b/tests/nodes/transpose_i32_2d/input_0.cairo index a92d8cdf7..b0f7208bd 100644 --- a/tests/nodes/transpose_i32_2d/input_0.cairo +++ b/tests/nodes/transpose_i32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/transpose_i32_2d/output_0.cairo b/tests/nodes/transpose_i32_2d/output_0.cairo index 0bf99abd4..987f78ee1 100644 --- a/tests/nodes/transpose_i32_2d/output_0.cairo +++ b/tests/nodes/transpose_i32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/transpose_i32_3d.cairo b/tests/nodes/transpose_i32_3d.cairo index e683ce4d5..b0b956a38 100644 --- a/tests/nodes/transpose_i32_3d.cairo +++ b/tests/nodes/transpose_i32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/transpose_i32_3d/input_0.cairo b/tests/nodes/transpose_i32_3d/input_0.cairo index 74a43f628..9a5420b62 100644 --- a/tests/nodes/transpose_i32_3d/input_0.cairo +++ b/tests/nodes/transpose_i32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/transpose_i32_3d/output_0.cairo b/tests/nodes/transpose_i32_3d/output_0.cairo index 51ea64a80..e011cb516 100644 --- a/tests/nodes/transpose_i32_3d/output_0.cairo +++ b/tests/nodes/transpose_i32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/transpose_i8_2d.cairo b/tests/nodes/transpose_i8_2d.cairo index 4da7ad399..7eb4e1a10 100644 --- a/tests/nodes/transpose_i8_2d.cairo +++ b/tests/nodes/transpose_i8_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/transpose_i8_2d/input_0.cairo b/tests/nodes/transpose_i8_2d/input_0.cairo index 87ec72846..b67b46955 100644 --- a/tests/nodes/transpose_i8_2d/input_0.cairo +++ b/tests/nodes/transpose_i8_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/transpose_i8_2d/output_0.cairo b/tests/nodes/transpose_i8_2d/output_0.cairo index f582ab94c..87084a40e 100644 --- a/tests/nodes/transpose_i8_2d/output_0.cairo +++ b/tests/nodes/transpose_i8_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/transpose_i8_3d.cairo b/tests/nodes/transpose_i8_3d.cairo index 904f54c06..2c6784b2f 100644 --- a/tests/nodes/transpose_i8_3d.cairo +++ b/tests/nodes/transpose_i8_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/transpose_i8_3d/input_0.cairo b/tests/nodes/transpose_i8_3d/input_0.cairo index 4694a0ac4..431d86936 100644 --- a/tests/nodes/transpose_i8_3d/input_0.cairo +++ b/tests/nodes/transpose_i8_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/transpose_i8_3d/output_0.cairo b/tests/nodes/transpose_i8_3d/output_0.cairo index c10432ee3..38e5e39a7 100644 --- a/tests/nodes/transpose_i8_3d/output_0.cairo +++ b/tests/nodes/transpose_i8_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/transpose_u32_2d.cairo b/tests/nodes/transpose_u32_2d.cairo index c8999de6e..697f484d1 100644 --- a/tests/nodes/transpose_u32_2d.cairo +++ b/tests/nodes/transpose_u32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/transpose_u32_2d/input_0.cairo b/tests/nodes/transpose_u32_2d/input_0.cairo index 4755815ba..5784e9bd6 100644 --- a/tests/nodes/transpose_u32_2d/input_0.cairo +++ b/tests/nodes/transpose_u32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/transpose_u32_2d/output_0.cairo b/tests/nodes/transpose_u32_2d/output_0.cairo index 7d7a8f0ae..846a94598 100644 --- a/tests/nodes/transpose_u32_2d/output_0.cairo +++ b/tests/nodes/transpose_u32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/transpose_u32_3d.cairo b/tests/nodes/transpose_u32_3d.cairo index 76b4dd5f4..f757b6d53 100644 --- a/tests/nodes/transpose_u32_3d.cairo +++ b/tests/nodes/transpose_u32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/transpose_u32_3d/input_0.cairo b/tests/nodes/transpose_u32_3d/input_0.cairo index 536783725..3ea575188 100644 --- a/tests/nodes/transpose_u32_3d/input_0.cairo +++ b/tests/nodes/transpose_u32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/transpose_u32_3d/output_0.cairo b/tests/nodes/transpose_u32_3d/output_0.cairo index 3dd764a8f..88eccc8a5 100644 --- a/tests/nodes/transpose_u32_3d/output_0.cairo +++ b/tests/nodes/transpose_u32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_fp16x16.cairo b/tests/nodes/tril_fp16x16.cairo index c1c50a196..2e2da9b02 100644 --- a/tests/nodes/tril_fp16x16.cairo +++ b/tests/nodes/tril_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16/input_0.cairo b/tests/nodes/tril_fp16x16/input_0.cairo index 8606482b4..931cc8701 100644 --- a/tests/nodes/tril_fp16x16/input_0.cairo +++ b/tests/nodes/tril_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16/output_0.cairo b/tests/nodes/tril_fp16x16/output_0.cairo index a7c950daf..bdc3a062d 100644 --- a/tests/nodes/tril_fp16x16/output_0.cairo +++ b/tests/nodes/tril_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_neg.cairo b/tests/nodes/tril_fp16x16_neg.cairo index 0d011403b..29a334ffb 100644 --- a/tests/nodes/tril_fp16x16_neg.cairo +++ b/tests/nodes/tril_fp16x16_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_neg/input_0.cairo b/tests/nodes/tril_fp16x16_neg/input_0.cairo index b8f11eb47..4f65d9044 100644 --- a/tests/nodes/tril_fp16x16_neg/input_0.cairo +++ b/tests/nodes/tril_fp16x16_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_neg/output_0.cairo b/tests/nodes/tril_fp16x16_neg/output_0.cairo index 3c9229023..0a3499474 100644 --- a/tests/nodes/tril_fp16x16_neg/output_0.cairo +++ b/tests/nodes/tril_fp16x16_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_one_row.cairo b/tests/nodes/tril_fp16x16_one_row.cairo index de3bc34fa..21b9185af 100644 --- a/tests/nodes/tril_fp16x16_one_row.cairo +++ b/tests/nodes/tril_fp16x16_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_one_row/input_0.cairo b/tests/nodes/tril_fp16x16_one_row/input_0.cairo index 158392a5c..2a14d7f74 100644 --- a/tests/nodes/tril_fp16x16_one_row/input_0.cairo +++ b/tests/nodes/tril_fp16x16_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_one_row/output_0.cairo b/tests/nodes/tril_fp16x16_one_row/output_0.cairo index b10586a4a..de948f646 100644 --- a/tests/nodes/tril_fp16x16_one_row/output_0.cairo +++ b/tests/nodes/tril_fp16x16_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_out_neg.cairo b/tests/nodes/tril_fp16x16_out_neg.cairo index 8ccb981a1..97920e946 100644 --- a/tests/nodes/tril_fp16x16_out_neg.cairo +++ b/tests/nodes/tril_fp16x16_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_out_neg/input_0.cairo b/tests/nodes/tril_fp16x16_out_neg/input_0.cairo index eb63a1be4..61008c5f6 100644 --- a/tests/nodes/tril_fp16x16_out_neg/input_0.cairo +++ b/tests/nodes/tril_fp16x16_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_out_neg/output_0.cairo b/tests/nodes/tril_fp16x16_out_neg/output_0.cairo index 7bf937a2d..d6e116b53 100644 --- a/tests/nodes/tril_fp16x16_out_neg/output_0.cairo +++ b/tests/nodes/tril_fp16x16_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_out_pos.cairo b/tests/nodes/tril_fp16x16_out_pos.cairo index edc05c02a..85a5841e7 100644 --- a/tests/nodes/tril_fp16x16_out_pos.cairo +++ b/tests/nodes/tril_fp16x16_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_out_pos/input_0.cairo b/tests/nodes/tril_fp16x16_out_pos/input_0.cairo index a2bef2cd5..a4f3db5a7 100644 --- a/tests/nodes/tril_fp16x16_out_pos/input_0.cairo +++ b/tests/nodes/tril_fp16x16_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_out_pos/output_0.cairo b/tests/nodes/tril_fp16x16_out_pos/output_0.cairo index 4d8fd07b7..61b48bb9c 100644 --- a/tests/nodes/tril_fp16x16_out_pos/output_0.cairo +++ b/tests/nodes/tril_fp16x16_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_pos.cairo b/tests/nodes/tril_fp16x16_pos.cairo index b675621be..136c1c2a9 100644 --- a/tests/nodes/tril_fp16x16_pos.cairo +++ b/tests/nodes/tril_fp16x16_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_pos/input_0.cairo b/tests/nodes/tril_fp16x16_pos/input_0.cairo index 0a304441e..a5a22bff0 100644 --- a/tests/nodes/tril_fp16x16_pos/input_0.cairo +++ b/tests/nodes/tril_fp16x16_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_pos/output_0.cairo b/tests/nodes/tril_fp16x16_pos/output_0.cairo index 320c6268a..b970b014e 100644 --- a/tests/nodes/tril_fp16x16_pos/output_0.cairo +++ b/tests/nodes/tril_fp16x16_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_square.cairo b/tests/nodes/tril_fp16x16_square.cairo index 995e91cb2..dfc388e4e 100644 --- a/tests/nodes/tril_fp16x16_square.cairo +++ b/tests/nodes/tril_fp16x16_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_square/input_0.cairo b/tests/nodes/tril_fp16x16_square/input_0.cairo index c60715c57..08bd998ab 100644 --- a/tests/nodes/tril_fp16x16_square/input_0.cairo +++ b/tests/nodes/tril_fp16x16_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_square/output_0.cairo b/tests/nodes/tril_fp16x16_square/output_0.cairo index c6c6d240c..1022ef272 100644 --- a/tests/nodes/tril_fp16x16_square/output_0.cairo +++ b/tests/nodes/tril_fp16x16_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_square_neg.cairo b/tests/nodes/tril_fp16x16_square_neg.cairo index 0f5abcbf1..c9ceaba02 100644 --- a/tests/nodes/tril_fp16x16_square_neg.cairo +++ b/tests/nodes/tril_fp16x16_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_square_neg/input_0.cairo b/tests/nodes/tril_fp16x16_square_neg/input_0.cairo index 1304a26fa..3e3db106a 100644 --- a/tests/nodes/tril_fp16x16_square_neg/input_0.cairo +++ b/tests/nodes/tril_fp16x16_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_square_neg/output_0.cairo b/tests/nodes/tril_fp16x16_square_neg/output_0.cairo index c872f81ee..3d13e2296 100644 --- a/tests/nodes/tril_fp16x16_square_neg/output_0.cairo +++ b/tests/nodes/tril_fp16x16_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_zero.cairo b/tests/nodes/tril_fp16x16_zero.cairo index 93609401a..abaac50dc 100644 --- a/tests/nodes/tril_fp16x16_zero.cairo +++ b/tests/nodes/tril_fp16x16_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/tril_fp16x16_zero/input_0.cairo b/tests/nodes/tril_fp16x16_zero/input_0.cairo index 073b19063..666b5bd2c 100644 --- a/tests/nodes/tril_fp16x16_zero/input_0.cairo +++ b/tests/nodes/tril_fp16x16_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp16x16_zero/output_0.cairo b/tests/nodes/tril_fp16x16_zero/output_0.cairo index d88922e9a..0e6541b94 100644 --- a/tests/nodes/tril_fp16x16_zero/output_0.cairo +++ b/tests/nodes/tril_fp16x16_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23.cairo b/tests/nodes/tril_fp8x23.cairo index 1dfdfb4d1..307008947 100644 --- a/tests/nodes/tril_fp8x23.cairo +++ b/tests/nodes/tril_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23/input_0.cairo b/tests/nodes/tril_fp8x23/input_0.cairo index 52fc7dc5d..c1832f50d 100644 --- a/tests/nodes/tril_fp8x23/input_0.cairo +++ b/tests/nodes/tril_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23/output_0.cairo b/tests/nodes/tril_fp8x23/output_0.cairo index f54e2d0e0..b8a1dd6c2 100644 --- a/tests/nodes/tril_fp8x23/output_0.cairo +++ b/tests/nodes/tril_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_neg.cairo b/tests/nodes/tril_fp8x23_neg.cairo index 241a51118..8cd4b9abc 100644 --- a/tests/nodes/tril_fp8x23_neg.cairo +++ b/tests/nodes/tril_fp8x23_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_neg/input_0.cairo b/tests/nodes/tril_fp8x23_neg/input_0.cairo index 7cc5d9076..b89eb55ba 100644 --- a/tests/nodes/tril_fp8x23_neg/input_0.cairo +++ b/tests/nodes/tril_fp8x23_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_neg/output_0.cairo b/tests/nodes/tril_fp8x23_neg/output_0.cairo index ce7d5c553..bda46b941 100644 --- a/tests/nodes/tril_fp8x23_neg/output_0.cairo +++ b/tests/nodes/tril_fp8x23_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_one_row.cairo b/tests/nodes/tril_fp8x23_one_row.cairo index ae8ea0b19..5c32732ad 100644 --- a/tests/nodes/tril_fp8x23_one_row.cairo +++ b/tests/nodes/tril_fp8x23_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_one_row/input_0.cairo b/tests/nodes/tril_fp8x23_one_row/input_0.cairo index aedc73859..f2a284571 100644 --- a/tests/nodes/tril_fp8x23_one_row/input_0.cairo +++ b/tests/nodes/tril_fp8x23_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_one_row/output_0.cairo b/tests/nodes/tril_fp8x23_one_row/output_0.cairo index 59b20ed24..ae8cfd29e 100644 --- a/tests/nodes/tril_fp8x23_one_row/output_0.cairo +++ b/tests/nodes/tril_fp8x23_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_out_neg.cairo b/tests/nodes/tril_fp8x23_out_neg.cairo index 6158aa992..e8e1368d5 100644 --- a/tests/nodes/tril_fp8x23_out_neg.cairo +++ b/tests/nodes/tril_fp8x23_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_out_neg/input_0.cairo b/tests/nodes/tril_fp8x23_out_neg/input_0.cairo index 0ac218229..089f6cb42 100644 --- a/tests/nodes/tril_fp8x23_out_neg/input_0.cairo +++ b/tests/nodes/tril_fp8x23_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_out_neg/output_0.cairo b/tests/nodes/tril_fp8x23_out_neg/output_0.cairo index 54f2a133b..674beb169 100644 --- a/tests/nodes/tril_fp8x23_out_neg/output_0.cairo +++ b/tests/nodes/tril_fp8x23_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_out_pos.cairo b/tests/nodes/tril_fp8x23_out_pos.cairo index 42b991aa2..f830ccbe7 100644 --- a/tests/nodes/tril_fp8x23_out_pos.cairo +++ b/tests/nodes/tril_fp8x23_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_out_pos/input_0.cairo b/tests/nodes/tril_fp8x23_out_pos/input_0.cairo index c71ba4b12..5adf09d6f 100644 --- a/tests/nodes/tril_fp8x23_out_pos/input_0.cairo +++ b/tests/nodes/tril_fp8x23_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_out_pos/output_0.cairo b/tests/nodes/tril_fp8x23_out_pos/output_0.cairo index 7e9c42c4d..35ce739ae 100644 --- a/tests/nodes/tril_fp8x23_out_pos/output_0.cairo +++ b/tests/nodes/tril_fp8x23_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_pos.cairo b/tests/nodes/tril_fp8x23_pos.cairo index 20cd67f9e..929c91a30 100644 --- a/tests/nodes/tril_fp8x23_pos.cairo +++ b/tests/nodes/tril_fp8x23_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_pos/input_0.cairo b/tests/nodes/tril_fp8x23_pos/input_0.cairo index fad04c120..47e991e43 100644 --- a/tests/nodes/tril_fp8x23_pos/input_0.cairo +++ b/tests/nodes/tril_fp8x23_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_pos/output_0.cairo b/tests/nodes/tril_fp8x23_pos/output_0.cairo index 4135f6308..cf3352f97 100644 --- a/tests/nodes/tril_fp8x23_pos/output_0.cairo +++ b/tests/nodes/tril_fp8x23_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_square.cairo b/tests/nodes/tril_fp8x23_square.cairo index 855fd749c..385e116e5 100644 --- a/tests/nodes/tril_fp8x23_square.cairo +++ b/tests/nodes/tril_fp8x23_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_square/input_0.cairo b/tests/nodes/tril_fp8x23_square/input_0.cairo index 535e4516d..6657cf439 100644 --- a/tests/nodes/tril_fp8x23_square/input_0.cairo +++ b/tests/nodes/tril_fp8x23_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_square/output_0.cairo b/tests/nodes/tril_fp8x23_square/output_0.cairo index e90debfdb..bbbb3366a 100644 --- a/tests/nodes/tril_fp8x23_square/output_0.cairo +++ b/tests/nodes/tril_fp8x23_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_square_neg.cairo b/tests/nodes/tril_fp8x23_square_neg.cairo index 3cb29579b..44617f9fc 100644 --- a/tests/nodes/tril_fp8x23_square_neg.cairo +++ b/tests/nodes/tril_fp8x23_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_square_neg/input_0.cairo b/tests/nodes/tril_fp8x23_square_neg/input_0.cairo index 148b2a3fd..f922b5c84 100644 --- a/tests/nodes/tril_fp8x23_square_neg/input_0.cairo +++ b/tests/nodes/tril_fp8x23_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_square_neg/output_0.cairo b/tests/nodes/tril_fp8x23_square_neg/output_0.cairo index 6b3328517..6e1d1740b 100644 --- a/tests/nodes/tril_fp8x23_square_neg/output_0.cairo +++ b/tests/nodes/tril_fp8x23_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_zero.cairo b/tests/nodes/tril_fp8x23_zero.cairo index e4f9dafbb..ef1fc6981 100644 --- a/tests/nodes/tril_fp8x23_zero.cairo +++ b/tests/nodes/tril_fp8x23_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/tril_fp8x23_zero/input_0.cairo b/tests/nodes/tril_fp8x23_zero/input_0.cairo index 0212a6f2b..61329528f 100644 --- a/tests/nodes/tril_fp8x23_zero/input_0.cairo +++ b/tests/nodes/tril_fp8x23_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_fp8x23_zero/output_0.cairo b/tests/nodes/tril_fp8x23_zero/output_0.cairo index a21173947..c282c2a13 100644 --- a/tests/nodes/tril_fp8x23_zero/output_0.cairo +++ b/tests/nodes/tril_fp8x23_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/tril_i32.cairo b/tests/nodes/tril_i32.cairo index 2ea659012..f762fe7a8 100644 --- a/tests/nodes/tril_i32.cairo +++ b/tests/nodes/tril_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32/input_0.cairo b/tests/nodes/tril_i32/input_0.cairo index 9d6683521..a7ed93857 100644 --- a/tests/nodes/tril_i32/input_0.cairo +++ b/tests/nodes/tril_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32/output_0.cairo b/tests/nodes/tril_i32/output_0.cairo index 6fb4b8cd3..265d08c8c 100644 --- a/tests/nodes/tril_i32/output_0.cairo +++ b/tests/nodes/tril_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_one_row.cairo b/tests/nodes/tril_i32_one_row.cairo index 1e78d565a..ec7a6ff0b 100644 --- a/tests/nodes/tril_i32_one_row.cairo +++ b/tests/nodes/tril_i32_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32_one_row/input_0.cairo b/tests/nodes/tril_i32_one_row/input_0.cairo index d76cc580a..78767b158 100644 --- a/tests/nodes/tril_i32_one_row/input_0.cairo +++ b/tests/nodes/tril_i32_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_one_row/output_0.cairo b/tests/nodes/tril_i32_one_row/output_0.cairo index cdbbe6273..117246623 100644 --- a/tests/nodes/tril_i32_one_row/output_0.cairo +++ b/tests/nodes/tril_i32_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_out_neg.cairo b/tests/nodes/tril_i32_out_neg.cairo index c532a4eb9..ae6c98f3e 100644 --- a/tests/nodes/tril_i32_out_neg.cairo +++ b/tests/nodes/tril_i32_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32_out_neg/input_0.cairo b/tests/nodes/tril_i32_out_neg/input_0.cairo index e25505d7c..4577558d2 100644 --- a/tests/nodes/tril_i32_out_neg/input_0.cairo +++ b/tests/nodes/tril_i32_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_out_neg/output_0.cairo b/tests/nodes/tril_i32_out_neg/output_0.cairo index 9c3c97fbb..335b98f5b 100644 --- a/tests/nodes/tril_i32_out_neg/output_0.cairo +++ b/tests/nodes/tril_i32_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_out_pos.cairo b/tests/nodes/tril_i32_out_pos.cairo index 0666c50d9..38df5aca1 100644 --- a/tests/nodes/tril_i32_out_pos.cairo +++ b/tests/nodes/tril_i32_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32_out_pos/input_0.cairo b/tests/nodes/tril_i32_out_pos/input_0.cairo index 557a5df26..03063076f 100644 --- a/tests/nodes/tril_i32_out_pos/input_0.cairo +++ b/tests/nodes/tril_i32_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_out_pos/output_0.cairo b/tests/nodes/tril_i32_out_pos/output_0.cairo index e12ad85ac..178eb91c6 100644 --- a/tests/nodes/tril_i32_out_pos/output_0.cairo +++ b/tests/nodes/tril_i32_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_pos.cairo b/tests/nodes/tril_i32_pos.cairo index e5ad051a1..2f4cdd21e 100644 --- a/tests/nodes/tril_i32_pos.cairo +++ b/tests/nodes/tril_i32_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32_pos/input_0.cairo b/tests/nodes/tril_i32_pos/input_0.cairo index a12fda178..e7722fc8c 100644 --- a/tests/nodes/tril_i32_pos/input_0.cairo +++ b/tests/nodes/tril_i32_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_pos/output_0.cairo b/tests/nodes/tril_i32_pos/output_0.cairo index c2ae9950b..8d21686c6 100644 --- a/tests/nodes/tril_i32_pos/output_0.cairo +++ b/tests/nodes/tril_i32_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_square.cairo b/tests/nodes/tril_i32_square.cairo index b7c5df14f..e86fdbc28 100644 --- a/tests/nodes/tril_i32_square.cairo +++ b/tests/nodes/tril_i32_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32_square/input_0.cairo b/tests/nodes/tril_i32_square/input_0.cairo index 8056a7b1a..fb2071eb8 100644 --- a/tests/nodes/tril_i32_square/input_0.cairo +++ b/tests/nodes/tril_i32_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_square/output_0.cairo b/tests/nodes/tril_i32_square/output_0.cairo index f7080b89a..4b48aa2c6 100644 --- a/tests/nodes/tril_i32_square/output_0.cairo +++ b/tests/nodes/tril_i32_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_square_neg.cairo b/tests/nodes/tril_i32_square_neg.cairo index 0f4e2e1aa..efee1ac36 100644 --- a/tests/nodes/tril_i32_square_neg.cairo +++ b/tests/nodes/tril_i32_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32_square_neg/input_0.cairo b/tests/nodes/tril_i32_square_neg/input_0.cairo index ec9d40044..76702e8e3 100644 --- a/tests/nodes/tril_i32_square_neg/input_0.cairo +++ b/tests/nodes/tril_i32_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_square_neg/output_0.cairo b/tests/nodes/tril_i32_square_neg/output_0.cairo index 92259ca51..370559295 100644 --- a/tests/nodes/tril_i32_square_neg/output_0.cairo +++ b/tests/nodes/tril_i32_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_zero.cairo b/tests/nodes/tril_i32_zero.cairo index 4c6736a62..ade5db393 100644 --- a/tests/nodes/tril_i32_zero.cairo +++ b/tests/nodes/tril_i32_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_i32_zero/input_0.cairo b/tests/nodes/tril_i32_zero/input_0.cairo index a01ddf661..b991d1f33 100644 --- a/tests/nodes/tril_i32_zero/input_0.cairo +++ b/tests/nodes/tril_i32_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i32_zero/output_0.cairo b/tests/nodes/tril_i32_zero/output_0.cairo index 20f0b375e..3b9e64eff 100644 --- a/tests/nodes/tril_i32_zero/output_0.cairo +++ b/tests/nodes/tril_i32_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_i8.cairo b/tests/nodes/tril_i8.cairo index 14d1e869f..96cd0114d 100644 --- a/tests/nodes/tril_i8.cairo +++ b/tests/nodes/tril_i8.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8/input_0.cairo b/tests/nodes/tril_i8/input_0.cairo index 274403e3d..4b29b4634 100644 --- a/tests/nodes/tril_i8/input_0.cairo +++ b/tests/nodes/tril_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8/output_0.cairo b/tests/nodes/tril_i8/output_0.cairo index 25438086d..e62a60646 100644 --- a/tests/nodes/tril_i8/output_0.cairo +++ b/tests/nodes/tril_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_neg.cairo b/tests/nodes/tril_i8_neg.cairo index 8476087ac..5c24f3f87 100644 --- a/tests/nodes/tril_i8_neg.cairo +++ b/tests/nodes/tril_i8_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_neg/input_0.cairo b/tests/nodes/tril_i8_neg/input_0.cairo index e0fe10199..a28492ea9 100644 --- a/tests/nodes/tril_i8_neg/input_0.cairo +++ b/tests/nodes/tril_i8_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_neg/output_0.cairo b/tests/nodes/tril_i8_neg/output_0.cairo index f6a35d821..8f00a108b 100644 --- a/tests/nodes/tril_i8_neg/output_0.cairo +++ b/tests/nodes/tril_i8_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_one_row.cairo b/tests/nodes/tril_i8_one_row.cairo index 6253e81da..44f6f8fa0 100644 --- a/tests/nodes/tril_i8_one_row.cairo +++ b/tests/nodes/tril_i8_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_one_row/input_0.cairo b/tests/nodes/tril_i8_one_row/input_0.cairo index 86753f932..372c896fe 100644 --- a/tests/nodes/tril_i8_one_row/input_0.cairo +++ b/tests/nodes/tril_i8_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_one_row/output_0.cairo b/tests/nodes/tril_i8_one_row/output_0.cairo index 30cc76297..379e24bb2 100644 --- a/tests/nodes/tril_i8_one_row/output_0.cairo +++ b/tests/nodes/tril_i8_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_out_neg.cairo b/tests/nodes/tril_i8_out_neg.cairo index 491b811ee..e250cc985 100644 --- a/tests/nodes/tril_i8_out_neg.cairo +++ b/tests/nodes/tril_i8_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_out_neg/input_0.cairo b/tests/nodes/tril_i8_out_neg/input_0.cairo index 4186c67c5..ee5d23d4f 100644 --- a/tests/nodes/tril_i8_out_neg/input_0.cairo +++ b/tests/nodes/tril_i8_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_out_neg/output_0.cairo b/tests/nodes/tril_i8_out_neg/output_0.cairo index aa1512f92..7a47f094f 100644 --- a/tests/nodes/tril_i8_out_neg/output_0.cairo +++ b/tests/nodes/tril_i8_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_out_pos.cairo b/tests/nodes/tril_i8_out_pos.cairo index ad8ccdbe7..e4eff04f6 100644 --- a/tests/nodes/tril_i8_out_pos.cairo +++ b/tests/nodes/tril_i8_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_out_pos/input_0.cairo b/tests/nodes/tril_i8_out_pos/input_0.cairo index 3304c0003..40f0897d2 100644 --- a/tests/nodes/tril_i8_out_pos/input_0.cairo +++ b/tests/nodes/tril_i8_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_out_pos/output_0.cairo b/tests/nodes/tril_i8_out_pos/output_0.cairo index f03959153..a7372f21d 100644 --- a/tests/nodes/tril_i8_out_pos/output_0.cairo +++ b/tests/nodes/tril_i8_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_pos.cairo b/tests/nodes/tril_i8_pos.cairo index 4ac910642..b95a5fab9 100644 --- a/tests/nodes/tril_i8_pos.cairo +++ b/tests/nodes/tril_i8_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_pos/input_0.cairo b/tests/nodes/tril_i8_pos/input_0.cairo index 5e3ec5960..e9bd452e2 100644 --- a/tests/nodes/tril_i8_pos/input_0.cairo +++ b/tests/nodes/tril_i8_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_pos/output_0.cairo b/tests/nodes/tril_i8_pos/output_0.cairo index c770d518d..3fa7a9f81 100644 --- a/tests/nodes/tril_i8_pos/output_0.cairo +++ b/tests/nodes/tril_i8_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_square.cairo b/tests/nodes/tril_i8_square.cairo index 9b94e0538..a7ebceac0 100644 --- a/tests/nodes/tril_i8_square.cairo +++ b/tests/nodes/tril_i8_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_square/input_0.cairo b/tests/nodes/tril_i8_square/input_0.cairo index ffbe08a4e..8105dc261 100644 --- a/tests/nodes/tril_i8_square/input_0.cairo +++ b/tests/nodes/tril_i8_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_square/output_0.cairo b/tests/nodes/tril_i8_square/output_0.cairo index 585320c0a..bbdf96b20 100644 --- a/tests/nodes/tril_i8_square/output_0.cairo +++ b/tests/nodes/tril_i8_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_square_neg.cairo b/tests/nodes/tril_i8_square_neg.cairo index 4a503adc2..9feaff1b5 100644 --- a/tests/nodes/tril_i8_square_neg.cairo +++ b/tests/nodes/tril_i8_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_square_neg/input_0.cairo b/tests/nodes/tril_i8_square_neg/input_0.cairo index fa69673e4..784e94dd2 100644 --- a/tests/nodes/tril_i8_square_neg/input_0.cairo +++ b/tests/nodes/tril_i8_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_square_neg/output_0.cairo b/tests/nodes/tril_i8_square_neg/output_0.cairo index 7c29fa4c6..ba79d1391 100644 --- a/tests/nodes/tril_i8_square_neg/output_0.cairo +++ b/tests/nodes/tril_i8_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_zero.cairo b/tests/nodes/tril_i8_zero.cairo index a18a2b5b3..273733e03 100644 --- a/tests/nodes/tril_i8_zero.cairo +++ b/tests/nodes/tril_i8_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/tril_i8_zero/input_0.cairo b/tests/nodes/tril_i8_zero/input_0.cairo index 90e2d4e74..03dc49e3f 100644 --- a/tests/nodes/tril_i8_zero/input_0.cairo +++ b/tests/nodes/tril_i8_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_i8_zero/output_0.cairo b/tests/nodes/tril_i8_zero/output_0.cairo index 07bfa2a91..25b4104aa 100644 --- a/tests/nodes/tril_i8_zero/output_0.cairo +++ b/tests/nodes/tril_i8_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/tril_neg_i32.cairo b/tests/nodes/tril_neg_i32.cairo index 094d6b8de..afb9ff072 100644 --- a/tests/nodes/tril_neg_i32.cairo +++ b/tests/nodes/tril_neg_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/tril_neg_i32/input_0.cairo b/tests/nodes/tril_neg_i32/input_0.cairo index a7fc7babe..f65f5e81c 100644 --- a/tests/nodes/tril_neg_i32/input_0.cairo +++ b/tests/nodes/tril_neg_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_neg_i32/output_0.cairo b/tests/nodes/tril_neg_i32/output_0.cairo index 26d768340..1499e4822 100644 --- a/tests/nodes/tril_neg_i32/output_0.cairo +++ b/tests/nodes/tril_neg_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/tril_u32.cairo b/tests/nodes/tril_u32.cairo index 5b4f23093..84fcd65d9 100644 --- a/tests/nodes/tril_u32.cairo +++ b/tests/nodes/tril_u32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32/input_0.cairo b/tests/nodes/tril_u32/input_0.cairo index 7a4d31b58..66f569ebf 100644 --- a/tests/nodes/tril_u32/input_0.cairo +++ b/tests/nodes/tril_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32/output_0.cairo b/tests/nodes/tril_u32/output_0.cairo index b964485cb..bf432d083 100644 --- a/tests/nodes/tril_u32/output_0.cairo +++ b/tests/nodes/tril_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_neg.cairo b/tests/nodes/tril_u32_neg.cairo index dad3881c6..da6871967 100644 --- a/tests/nodes/tril_u32_neg.cairo +++ b/tests/nodes/tril_u32_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_neg/input_0.cairo b/tests/nodes/tril_u32_neg/input_0.cairo index b2cc07603..517e6edb3 100644 --- a/tests/nodes/tril_u32_neg/input_0.cairo +++ b/tests/nodes/tril_u32_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_neg/output_0.cairo b/tests/nodes/tril_u32_neg/output_0.cairo index 3cbf289f1..7c0388f69 100644 --- a/tests/nodes/tril_u32_neg/output_0.cairo +++ b/tests/nodes/tril_u32_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_one_row.cairo b/tests/nodes/tril_u32_one_row.cairo index 7aec026e5..7867a77e9 100644 --- a/tests/nodes/tril_u32_one_row.cairo +++ b/tests/nodes/tril_u32_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_one_row/input_0.cairo b/tests/nodes/tril_u32_one_row/input_0.cairo index ce0684b5c..ecf79b63b 100644 --- a/tests/nodes/tril_u32_one_row/input_0.cairo +++ b/tests/nodes/tril_u32_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_one_row/output_0.cairo b/tests/nodes/tril_u32_one_row/output_0.cairo index 46b0caf6e..6d81fcf18 100644 --- a/tests/nodes/tril_u32_one_row/output_0.cairo +++ b/tests/nodes/tril_u32_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_out_neg.cairo b/tests/nodes/tril_u32_out_neg.cairo index 714fea187..7661f19c1 100644 --- a/tests/nodes/tril_u32_out_neg.cairo +++ b/tests/nodes/tril_u32_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_out_neg/input_0.cairo b/tests/nodes/tril_u32_out_neg/input_0.cairo index a0880e9bf..56262d957 100644 --- a/tests/nodes/tril_u32_out_neg/input_0.cairo +++ b/tests/nodes/tril_u32_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_out_neg/output_0.cairo b/tests/nodes/tril_u32_out_neg/output_0.cairo index fff9bce25..4cd9e9fae 100644 --- a/tests/nodes/tril_u32_out_neg/output_0.cairo +++ b/tests/nodes/tril_u32_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_out_pos.cairo b/tests/nodes/tril_u32_out_pos.cairo index 5e5b421e9..92254f12b 100644 --- a/tests/nodes/tril_u32_out_pos.cairo +++ b/tests/nodes/tril_u32_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_out_pos/input_0.cairo b/tests/nodes/tril_u32_out_pos/input_0.cairo index 909f53a15..5aab2096d 100644 --- a/tests/nodes/tril_u32_out_pos/input_0.cairo +++ b/tests/nodes/tril_u32_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_out_pos/output_0.cairo b/tests/nodes/tril_u32_out_pos/output_0.cairo index f6cf0bec3..29b3febde 100644 --- a/tests/nodes/tril_u32_out_pos/output_0.cairo +++ b/tests/nodes/tril_u32_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_pos.cairo b/tests/nodes/tril_u32_pos.cairo index 96343eebd..a5a24bd42 100644 --- a/tests/nodes/tril_u32_pos.cairo +++ b/tests/nodes/tril_u32_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_pos/input_0.cairo b/tests/nodes/tril_u32_pos/input_0.cairo index 8c070c414..e2dd4c068 100644 --- a/tests/nodes/tril_u32_pos/input_0.cairo +++ b/tests/nodes/tril_u32_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_pos/output_0.cairo b/tests/nodes/tril_u32_pos/output_0.cairo index c8eeefadb..0d1e3c480 100644 --- a/tests/nodes/tril_u32_pos/output_0.cairo +++ b/tests/nodes/tril_u32_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_square.cairo b/tests/nodes/tril_u32_square.cairo index 15de58346..3cd26e633 100644 --- a/tests/nodes/tril_u32_square.cairo +++ b/tests/nodes/tril_u32_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_square/input_0.cairo b/tests/nodes/tril_u32_square/input_0.cairo index 4368056aa..a5c4465b1 100644 --- a/tests/nodes/tril_u32_square/input_0.cairo +++ b/tests/nodes/tril_u32_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_square/output_0.cairo b/tests/nodes/tril_u32_square/output_0.cairo index b2aea771b..3d63837da 100644 --- a/tests/nodes/tril_u32_square/output_0.cairo +++ b/tests/nodes/tril_u32_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_square_neg.cairo b/tests/nodes/tril_u32_square_neg.cairo index 10dafd1e9..47cb018c4 100644 --- a/tests/nodes/tril_u32_square_neg.cairo +++ b/tests/nodes/tril_u32_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_square_neg/input_0.cairo b/tests/nodes/tril_u32_square_neg/input_0.cairo index d22957815..627e73543 100644 --- a/tests/nodes/tril_u32_square_neg/input_0.cairo +++ b/tests/nodes/tril_u32_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_square_neg/output_0.cairo b/tests/nodes/tril_u32_square_neg/output_0.cairo index e5be8ac9d..5356494d9 100644 --- a/tests/nodes/tril_u32_square_neg/output_0.cairo +++ b/tests/nodes/tril_u32_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_zero.cairo b/tests/nodes/tril_u32_zero.cairo index 8bc5b5c52..986e6d6a9 100644 --- a/tests/nodes/tril_u32_zero.cairo +++ b/tests/nodes/tril_u32_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/tril_u32_zero/input_0.cairo b/tests/nodes/tril_u32_zero/input_0.cairo index 179e42905..0110d2dab 100644 --- a/tests/nodes/tril_u32_zero/input_0.cairo +++ b/tests/nodes/tril_u32_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/tril_u32_zero/output_0.cairo b/tests/nodes/tril_u32_zero/output_0.cairo index 9b9157818..73f14f67e 100644 --- a/tests/nodes/tril_u32_zero/output_0.cairo +++ b/tests/nodes/tril_u32_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_fp16x16.cairo b/tests/nodes/triu_fp16x16.cairo index c7ffaf2c8..ea2c4ea95 100644 --- a/tests/nodes/triu_fp16x16.cairo +++ b/tests/nodes/triu_fp16x16.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16/input_0.cairo b/tests/nodes/triu_fp16x16/input_0.cairo index 093aa443a..05de9d7ba 100644 --- a/tests/nodes/triu_fp16x16/input_0.cairo +++ b/tests/nodes/triu_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16/output_0.cairo b/tests/nodes/triu_fp16x16/output_0.cairo index 1291521c0..8e36794bb 100644 --- a/tests/nodes/triu_fp16x16/output_0.cairo +++ b/tests/nodes/triu_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_neg.cairo b/tests/nodes/triu_fp16x16_neg.cairo index 41de73a83..cb9bbeaf5 100644 --- a/tests/nodes/triu_fp16x16_neg.cairo +++ b/tests/nodes/triu_fp16x16_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_neg/input_0.cairo b/tests/nodes/triu_fp16x16_neg/input_0.cairo index 8adc56537..05c80135a 100644 --- a/tests/nodes/triu_fp16x16_neg/input_0.cairo +++ b/tests/nodes/triu_fp16x16_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_neg/output_0.cairo b/tests/nodes/triu_fp16x16_neg/output_0.cairo index c636e286c..643ab3de7 100644 --- a/tests/nodes/triu_fp16x16_neg/output_0.cairo +++ b/tests/nodes/triu_fp16x16_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_one_row.cairo b/tests/nodes/triu_fp16x16_one_row.cairo index bc21034d6..2c15eac3b 100644 --- a/tests/nodes/triu_fp16x16_one_row.cairo +++ b/tests/nodes/triu_fp16x16_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_one_row/input_0.cairo b/tests/nodes/triu_fp16x16_one_row/input_0.cairo index 2003b9a16..cbd3d51bd 100644 --- a/tests/nodes/triu_fp16x16_one_row/input_0.cairo +++ b/tests/nodes/triu_fp16x16_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_one_row/output_0.cairo b/tests/nodes/triu_fp16x16_one_row/output_0.cairo index 9b6c51709..067d782ce 100644 --- a/tests/nodes/triu_fp16x16_one_row/output_0.cairo +++ b/tests/nodes/triu_fp16x16_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_out_neg.cairo b/tests/nodes/triu_fp16x16_out_neg.cairo index 6185387c1..513bf01a1 100644 --- a/tests/nodes/triu_fp16x16_out_neg.cairo +++ b/tests/nodes/triu_fp16x16_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_out_neg/input_0.cairo b/tests/nodes/triu_fp16x16_out_neg/input_0.cairo index 60d63f605..3fe6de3f1 100644 --- a/tests/nodes/triu_fp16x16_out_neg/input_0.cairo +++ b/tests/nodes/triu_fp16x16_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_out_neg/output_0.cairo b/tests/nodes/triu_fp16x16_out_neg/output_0.cairo index f2bb61147..1a3204549 100644 --- a/tests/nodes/triu_fp16x16_out_neg/output_0.cairo +++ b/tests/nodes/triu_fp16x16_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_out_pos.cairo b/tests/nodes/triu_fp16x16_out_pos.cairo index be223c646..779c1cda8 100644 --- a/tests/nodes/triu_fp16x16_out_pos.cairo +++ b/tests/nodes/triu_fp16x16_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_out_pos/input_0.cairo b/tests/nodes/triu_fp16x16_out_pos/input_0.cairo index f37edcab4..24ba4c9e4 100644 --- a/tests/nodes/triu_fp16x16_out_pos/input_0.cairo +++ b/tests/nodes/triu_fp16x16_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_out_pos/output_0.cairo b/tests/nodes/triu_fp16x16_out_pos/output_0.cairo index 7bf937a2d..d6e116b53 100644 --- a/tests/nodes/triu_fp16x16_out_pos/output_0.cairo +++ b/tests/nodes/triu_fp16x16_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_pos.cairo b/tests/nodes/triu_fp16x16_pos.cairo index 687b39ecb..adc12e26d 100644 --- a/tests/nodes/triu_fp16x16_pos.cairo +++ b/tests/nodes/triu_fp16x16_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_pos/input_0.cairo b/tests/nodes/triu_fp16x16_pos/input_0.cairo index 6aae84a37..1f6bb7ebb 100644 --- a/tests/nodes/triu_fp16x16_pos/input_0.cairo +++ b/tests/nodes/triu_fp16x16_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_pos/output_0.cairo b/tests/nodes/triu_fp16x16_pos/output_0.cairo index 163e2eeb6..ddbe66279 100644 --- a/tests/nodes/triu_fp16x16_pos/output_0.cairo +++ b/tests/nodes/triu_fp16x16_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_square.cairo b/tests/nodes/triu_fp16x16_square.cairo index 65c4ee0ef..25d6ab514 100644 --- a/tests/nodes/triu_fp16x16_square.cairo +++ b/tests/nodes/triu_fp16x16_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_square/input_0.cairo b/tests/nodes/triu_fp16x16_square/input_0.cairo index 32914e07d..a0c9e7e38 100644 --- a/tests/nodes/triu_fp16x16_square/input_0.cairo +++ b/tests/nodes/triu_fp16x16_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_square/output_0.cairo b/tests/nodes/triu_fp16x16_square/output_0.cairo index 93d2ce458..741d90b7a 100644 --- a/tests/nodes/triu_fp16x16_square/output_0.cairo +++ b/tests/nodes/triu_fp16x16_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_square_neg.cairo b/tests/nodes/triu_fp16x16_square_neg.cairo index 141e68422..d423bdeab 100644 --- a/tests/nodes/triu_fp16x16_square_neg.cairo +++ b/tests/nodes/triu_fp16x16_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_square_neg/input_0.cairo b/tests/nodes/triu_fp16x16_square_neg/input_0.cairo index 8941f47c4..b170325f0 100644 --- a/tests/nodes/triu_fp16x16_square_neg/input_0.cairo +++ b/tests/nodes/triu_fp16x16_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_square_neg/output_0.cairo b/tests/nodes/triu_fp16x16_square_neg/output_0.cairo index 54df155dd..ca006b083 100644 --- a/tests/nodes/triu_fp16x16_square_neg/output_0.cairo +++ b/tests/nodes/triu_fp16x16_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_zero.cairo b/tests/nodes/triu_fp16x16_zero.cairo index 348c91d91..9057fd84c 100644 --- a/tests/nodes/triu_fp16x16_zero.cairo +++ b/tests/nodes/triu_fp16x16_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/triu_fp16x16_zero/input_0.cairo b/tests/nodes/triu_fp16x16_zero/input_0.cairo index 073b19063..666b5bd2c 100644 --- a/tests/nodes/triu_fp16x16_zero/input_0.cairo +++ b/tests/nodes/triu_fp16x16_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp16x16_zero/output_0.cairo b/tests/nodes/triu_fp16x16_zero/output_0.cairo index d88922e9a..0e6541b94 100644 --- a/tests/nodes/triu_fp16x16_zero/output_0.cairo +++ b/tests/nodes/triu_fp16x16_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23.cairo b/tests/nodes/triu_fp8x23.cairo index 454df242e..860c7b1fc 100644 --- a/tests/nodes/triu_fp8x23.cairo +++ b/tests/nodes/triu_fp8x23.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23/input_0.cairo b/tests/nodes/triu_fp8x23/input_0.cairo index b7bb37876..e94b91333 100644 --- a/tests/nodes/triu_fp8x23/input_0.cairo +++ b/tests/nodes/triu_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23/output_0.cairo b/tests/nodes/triu_fp8x23/output_0.cairo index bac79b167..d2187ea3f 100644 --- a/tests/nodes/triu_fp8x23/output_0.cairo +++ b/tests/nodes/triu_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_neg.cairo b/tests/nodes/triu_fp8x23_neg.cairo index fa214ace7..1ace406e4 100644 --- a/tests/nodes/triu_fp8x23_neg.cairo +++ b/tests/nodes/triu_fp8x23_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_neg/input_0.cairo b/tests/nodes/triu_fp8x23_neg/input_0.cairo index 8b6719b92..aa910cb34 100644 --- a/tests/nodes/triu_fp8x23_neg/input_0.cairo +++ b/tests/nodes/triu_fp8x23_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_neg/output_0.cairo b/tests/nodes/triu_fp8x23_neg/output_0.cairo index 5e0ccc946..cb22cacf4 100644 --- a/tests/nodes/triu_fp8x23_neg/output_0.cairo +++ b/tests/nodes/triu_fp8x23_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_one_row.cairo b/tests/nodes/triu_fp8x23_one_row.cairo index fe5ed4205..f669cae90 100644 --- a/tests/nodes/triu_fp8x23_one_row.cairo +++ b/tests/nodes/triu_fp8x23_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_one_row/input_0.cairo b/tests/nodes/triu_fp8x23_one_row/input_0.cairo index e97d36835..576f4cf37 100644 --- a/tests/nodes/triu_fp8x23_one_row/input_0.cairo +++ b/tests/nodes/triu_fp8x23_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_one_row/output_0.cairo b/tests/nodes/triu_fp8x23_one_row/output_0.cairo index dc957b6dc..d7ab99693 100644 --- a/tests/nodes/triu_fp8x23_one_row/output_0.cairo +++ b/tests/nodes/triu_fp8x23_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_out_neg.cairo b/tests/nodes/triu_fp8x23_out_neg.cairo index cc8da6637..d52ff15ea 100644 --- a/tests/nodes/triu_fp8x23_out_neg.cairo +++ b/tests/nodes/triu_fp8x23_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_out_neg/input_0.cairo b/tests/nodes/triu_fp8x23_out_neg/input_0.cairo index 3ece9ebed..40b9ed32d 100644 --- a/tests/nodes/triu_fp8x23_out_neg/input_0.cairo +++ b/tests/nodes/triu_fp8x23_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_out_neg/output_0.cairo b/tests/nodes/triu_fp8x23_out_neg/output_0.cairo index 5f9edd358..0822bb6db 100644 --- a/tests/nodes/triu_fp8x23_out_neg/output_0.cairo +++ b/tests/nodes/triu_fp8x23_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_out_pos.cairo b/tests/nodes/triu_fp8x23_out_pos.cairo index 6e55fd9a2..df6312002 100644 --- a/tests/nodes/triu_fp8x23_out_pos.cairo +++ b/tests/nodes/triu_fp8x23_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_out_pos/input_0.cairo b/tests/nodes/triu_fp8x23_out_pos/input_0.cairo index 25b09cbea..afcc9f0ee 100644 --- a/tests/nodes/triu_fp8x23_out_pos/input_0.cairo +++ b/tests/nodes/triu_fp8x23_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_out_pos/output_0.cairo b/tests/nodes/triu_fp8x23_out_pos/output_0.cairo index 54f2a133b..674beb169 100644 --- a/tests/nodes/triu_fp8x23_out_pos/output_0.cairo +++ b/tests/nodes/triu_fp8x23_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_pos.cairo b/tests/nodes/triu_fp8x23_pos.cairo index 37c1e4c50..74aeab0a2 100644 --- a/tests/nodes/triu_fp8x23_pos.cairo +++ b/tests/nodes/triu_fp8x23_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_pos/input_0.cairo b/tests/nodes/triu_fp8x23_pos/input_0.cairo index 16aacaf6e..bd6b5dfab 100644 --- a/tests/nodes/triu_fp8x23_pos/input_0.cairo +++ b/tests/nodes/triu_fp8x23_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_pos/output_0.cairo b/tests/nodes/triu_fp8x23_pos/output_0.cairo index dabd9083c..89dca2de0 100644 --- a/tests/nodes/triu_fp8x23_pos/output_0.cairo +++ b/tests/nodes/triu_fp8x23_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_square.cairo b/tests/nodes/triu_fp8x23_square.cairo index a66d8eb92..b68d0f896 100644 --- a/tests/nodes/triu_fp8x23_square.cairo +++ b/tests/nodes/triu_fp8x23_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_square/input_0.cairo b/tests/nodes/triu_fp8x23_square/input_0.cairo index d000f4f34..d53fe03e9 100644 --- a/tests/nodes/triu_fp8x23_square/input_0.cairo +++ b/tests/nodes/triu_fp8x23_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_square/output_0.cairo b/tests/nodes/triu_fp8x23_square/output_0.cairo index 345365973..d766fbeb6 100644 --- a/tests/nodes/triu_fp8x23_square/output_0.cairo +++ b/tests/nodes/triu_fp8x23_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_square_neg.cairo b/tests/nodes/triu_fp8x23_square_neg.cairo index 2aa0252f0..9b817b13c 100644 --- a/tests/nodes/triu_fp8x23_square_neg.cairo +++ b/tests/nodes/triu_fp8x23_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_square_neg/input_0.cairo b/tests/nodes/triu_fp8x23_square_neg/input_0.cairo index fa0bec625..105c851a9 100644 --- a/tests/nodes/triu_fp8x23_square_neg/input_0.cairo +++ b/tests/nodes/triu_fp8x23_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_square_neg/output_0.cairo b/tests/nodes/triu_fp8x23_square_neg/output_0.cairo index 41fa1fad3..4471ce36c 100644 --- a/tests/nodes/triu_fp8x23_square_neg/output_0.cairo +++ b/tests/nodes/triu_fp8x23_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_zero.cairo b/tests/nodes/triu_fp8x23_zero.cairo index 88316af80..bb57158b3 100644 --- a/tests/nodes/triu_fp8x23_zero.cairo +++ b/tests/nodes/triu_fp8x23_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/triu_fp8x23_zero/input_0.cairo b/tests/nodes/triu_fp8x23_zero/input_0.cairo index 0212a6f2b..61329528f 100644 --- a/tests/nodes/triu_fp8x23_zero/input_0.cairo +++ b/tests/nodes/triu_fp8x23_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_fp8x23_zero/output_0.cairo b/tests/nodes/triu_fp8x23_zero/output_0.cairo index a21173947..c282c2a13 100644 --- a/tests/nodes/triu_fp8x23_zero/output_0.cairo +++ b/tests/nodes/triu_fp8x23_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/triu_i32.cairo b/tests/nodes/triu_i32.cairo index 302f9406d..23f76aa54 100644 --- a/tests/nodes/triu_i32.cairo +++ b/tests/nodes/triu_i32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32/input_0.cairo b/tests/nodes/triu_i32/input_0.cairo index bb49d62ae..b5d5246f8 100644 --- a/tests/nodes/triu_i32/input_0.cairo +++ b/tests/nodes/triu_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32/output_0.cairo b/tests/nodes/triu_i32/output_0.cairo index bd1efdddc..49d3df9bf 100644 --- a/tests/nodes/triu_i32/output_0.cairo +++ b/tests/nodes/triu_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_neg.cairo b/tests/nodes/triu_i32_neg.cairo index 0f18fd90e..7f74044b8 100644 --- a/tests/nodes/triu_i32_neg.cairo +++ b/tests/nodes/triu_i32_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_neg/input_0.cairo b/tests/nodes/triu_i32_neg/input_0.cairo index afaf2309d..7c5b1df8a 100644 --- a/tests/nodes/triu_i32_neg/input_0.cairo +++ b/tests/nodes/triu_i32_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_neg/output_0.cairo b/tests/nodes/triu_i32_neg/output_0.cairo index dd9a36f22..f5104d334 100644 --- a/tests/nodes/triu_i32_neg/output_0.cairo +++ b/tests/nodes/triu_i32_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_one_row.cairo b/tests/nodes/triu_i32_one_row.cairo index 3b15f50f9..2b46a6ea5 100644 --- a/tests/nodes/triu_i32_one_row.cairo +++ b/tests/nodes/triu_i32_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_one_row/input_0.cairo b/tests/nodes/triu_i32_one_row/input_0.cairo index 3633e0bd7..d34ee70c9 100644 --- a/tests/nodes/triu_i32_one_row/input_0.cairo +++ b/tests/nodes/triu_i32_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_one_row/output_0.cairo b/tests/nodes/triu_i32_one_row/output_0.cairo index c2aac8c8c..10dd90e8f 100644 --- a/tests/nodes/triu_i32_one_row/output_0.cairo +++ b/tests/nodes/triu_i32_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_out_neg.cairo b/tests/nodes/triu_i32_out_neg.cairo index abf18a4bf..0f948031a 100644 --- a/tests/nodes/triu_i32_out_neg.cairo +++ b/tests/nodes/triu_i32_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_out_neg/input_0.cairo b/tests/nodes/triu_i32_out_neg/input_0.cairo index 983434a4e..ce3b1dd40 100644 --- a/tests/nodes/triu_i32_out_neg/input_0.cairo +++ b/tests/nodes/triu_i32_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_out_neg/output_0.cairo b/tests/nodes/triu_i32_out_neg/output_0.cairo index 0c9f9d8aa..32d69f64a 100644 --- a/tests/nodes/triu_i32_out_neg/output_0.cairo +++ b/tests/nodes/triu_i32_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_out_pos.cairo b/tests/nodes/triu_i32_out_pos.cairo index 9ceb75426..a46bd4675 100644 --- a/tests/nodes/triu_i32_out_pos.cairo +++ b/tests/nodes/triu_i32_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_out_pos/input_0.cairo b/tests/nodes/triu_i32_out_pos/input_0.cairo index 7f816b61c..16c4ea6ef 100644 --- a/tests/nodes/triu_i32_out_pos/input_0.cairo +++ b/tests/nodes/triu_i32_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_out_pos/output_0.cairo b/tests/nodes/triu_i32_out_pos/output_0.cairo index 9c3c97fbb..335b98f5b 100644 --- a/tests/nodes/triu_i32_out_pos/output_0.cairo +++ b/tests/nodes/triu_i32_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_pos.cairo b/tests/nodes/triu_i32_pos.cairo index 11bab7e92..9e1baaa6c 100644 --- a/tests/nodes/triu_i32_pos.cairo +++ b/tests/nodes/triu_i32_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_pos/input_0.cairo b/tests/nodes/triu_i32_pos/input_0.cairo index fa4a5301b..de7c53f06 100644 --- a/tests/nodes/triu_i32_pos/input_0.cairo +++ b/tests/nodes/triu_i32_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_pos/output_0.cairo b/tests/nodes/triu_i32_pos/output_0.cairo index 325790ee3..b522c52fc 100644 --- a/tests/nodes/triu_i32_pos/output_0.cairo +++ b/tests/nodes/triu_i32_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_square.cairo b/tests/nodes/triu_i32_square.cairo index 61c66cfd1..da62e63b0 100644 --- a/tests/nodes/triu_i32_square.cairo +++ b/tests/nodes/triu_i32_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_square/input_0.cairo b/tests/nodes/triu_i32_square/input_0.cairo index 90f11620d..37dc442af 100644 --- a/tests/nodes/triu_i32_square/input_0.cairo +++ b/tests/nodes/triu_i32_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_square/output_0.cairo b/tests/nodes/triu_i32_square/output_0.cairo index 47202f985..82dc56f0c 100644 --- a/tests/nodes/triu_i32_square/output_0.cairo +++ b/tests/nodes/triu_i32_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_square_neg.cairo b/tests/nodes/triu_i32_square_neg.cairo index 9269705be..07fa2c6c4 100644 --- a/tests/nodes/triu_i32_square_neg.cairo +++ b/tests/nodes/triu_i32_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_square_neg/input_0.cairo b/tests/nodes/triu_i32_square_neg/input_0.cairo index 479e9dcd7..4e7e6c02a 100644 --- a/tests/nodes/triu_i32_square_neg/input_0.cairo +++ b/tests/nodes/triu_i32_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_square_neg/output_0.cairo b/tests/nodes/triu_i32_square_neg/output_0.cairo index f19a6f41d..e1d6b4640 100644 --- a/tests/nodes/triu_i32_square_neg/output_0.cairo +++ b/tests/nodes/triu_i32_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_zero.cairo b/tests/nodes/triu_i32_zero.cairo index f5baa0aec..bc08584f8 100644 --- a/tests/nodes/triu_i32_zero.cairo +++ b/tests/nodes/triu_i32_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/triu_i32_zero/input_0.cairo b/tests/nodes/triu_i32_zero/input_0.cairo index a01ddf661..b991d1f33 100644 --- a/tests/nodes/triu_i32_zero/input_0.cairo +++ b/tests/nodes/triu_i32_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i32_zero/output_0.cairo b/tests/nodes/triu_i32_zero/output_0.cairo index 20f0b375e..3b9e64eff 100644 --- a/tests/nodes/triu_i32_zero/output_0.cairo +++ b/tests/nodes/triu_i32_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/triu_i8.cairo b/tests/nodes/triu_i8.cairo index c38230c0e..9ff84ddc6 100644 --- a/tests/nodes/triu_i8.cairo +++ b/tests/nodes/triu_i8.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8/input_0.cairo b/tests/nodes/triu_i8/input_0.cairo index 4e4bec160..f3b57f2b1 100644 --- a/tests/nodes/triu_i8/input_0.cairo +++ b/tests/nodes/triu_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8/output_0.cairo b/tests/nodes/triu_i8/output_0.cairo index 9c217641f..1fbdb952d 100644 --- a/tests/nodes/triu_i8/output_0.cairo +++ b/tests/nodes/triu_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_neg.cairo b/tests/nodes/triu_i8_neg.cairo index d2d95b6e7..c4fcb4020 100644 --- a/tests/nodes/triu_i8_neg.cairo +++ b/tests/nodes/triu_i8_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_neg/input_0.cairo b/tests/nodes/triu_i8_neg/input_0.cairo index e588aa96b..79120ee14 100644 --- a/tests/nodes/triu_i8_neg/input_0.cairo +++ b/tests/nodes/triu_i8_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_neg/output_0.cairo b/tests/nodes/triu_i8_neg/output_0.cairo index e7c25817b..c2d01baa8 100644 --- a/tests/nodes/triu_i8_neg/output_0.cairo +++ b/tests/nodes/triu_i8_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_one_row.cairo b/tests/nodes/triu_i8_one_row.cairo index d3060c41b..d2a8cd57a 100644 --- a/tests/nodes/triu_i8_one_row.cairo +++ b/tests/nodes/triu_i8_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_one_row/input_0.cairo b/tests/nodes/triu_i8_one_row/input_0.cairo index 841e7a4b0..40d5d9aa6 100644 --- a/tests/nodes/triu_i8_one_row/input_0.cairo +++ b/tests/nodes/triu_i8_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_one_row/output_0.cairo b/tests/nodes/triu_i8_one_row/output_0.cairo index 94a468e4f..02d5a3d73 100644 --- a/tests/nodes/triu_i8_one_row/output_0.cairo +++ b/tests/nodes/triu_i8_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_out_neg.cairo b/tests/nodes/triu_i8_out_neg.cairo index 011c2a4e6..dffdd2216 100644 --- a/tests/nodes/triu_i8_out_neg.cairo +++ b/tests/nodes/triu_i8_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_out_neg/input_0.cairo b/tests/nodes/triu_i8_out_neg/input_0.cairo index 996425017..740b99612 100644 --- a/tests/nodes/triu_i8_out_neg/input_0.cairo +++ b/tests/nodes/triu_i8_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_out_neg/output_0.cairo b/tests/nodes/triu_i8_out_neg/output_0.cairo index 87bbad9eb..e9980983f 100644 --- a/tests/nodes/triu_i8_out_neg/output_0.cairo +++ b/tests/nodes/triu_i8_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_out_pos.cairo b/tests/nodes/triu_i8_out_pos.cairo index 0104565c6..050a6f661 100644 --- a/tests/nodes/triu_i8_out_pos.cairo +++ b/tests/nodes/triu_i8_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_out_pos/input_0.cairo b/tests/nodes/triu_i8_out_pos/input_0.cairo index 70f3e633a..1fb1c695a 100644 --- a/tests/nodes/triu_i8_out_pos/input_0.cairo +++ b/tests/nodes/triu_i8_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_out_pos/output_0.cairo b/tests/nodes/triu_i8_out_pos/output_0.cairo index aa1512f92..7a47f094f 100644 --- a/tests/nodes/triu_i8_out_pos/output_0.cairo +++ b/tests/nodes/triu_i8_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_pos.cairo b/tests/nodes/triu_i8_pos.cairo index 0b48aa363..a0b17016c 100644 --- a/tests/nodes/triu_i8_pos.cairo +++ b/tests/nodes/triu_i8_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_pos/input_0.cairo b/tests/nodes/triu_i8_pos/input_0.cairo index 5bbbcaba2..e0c8fdd27 100644 --- a/tests/nodes/triu_i8_pos/input_0.cairo +++ b/tests/nodes/triu_i8_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_pos/output_0.cairo b/tests/nodes/triu_i8_pos/output_0.cairo index 6dbc4240d..846156356 100644 --- a/tests/nodes/triu_i8_pos/output_0.cairo +++ b/tests/nodes/triu_i8_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_square.cairo b/tests/nodes/triu_i8_square.cairo index 5adc689b3..351d93eb2 100644 --- a/tests/nodes/triu_i8_square.cairo +++ b/tests/nodes/triu_i8_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_square/input_0.cairo b/tests/nodes/triu_i8_square/input_0.cairo index 51cdff013..ff87e93b2 100644 --- a/tests/nodes/triu_i8_square/input_0.cairo +++ b/tests/nodes/triu_i8_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_square/output_0.cairo b/tests/nodes/triu_i8_square/output_0.cairo index 757be923d..55894f031 100644 --- a/tests/nodes/triu_i8_square/output_0.cairo +++ b/tests/nodes/triu_i8_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_square_neg.cairo b/tests/nodes/triu_i8_square_neg.cairo index 59d95d327..2dfdf470d 100644 --- a/tests/nodes/triu_i8_square_neg.cairo +++ b/tests/nodes/triu_i8_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_square_neg/input_0.cairo b/tests/nodes/triu_i8_square_neg/input_0.cairo index d0fe20be9..629f0cecc 100644 --- a/tests/nodes/triu_i8_square_neg/input_0.cairo +++ b/tests/nodes/triu_i8_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_square_neg/output_0.cairo b/tests/nodes/triu_i8_square_neg/output_0.cairo index 4e0c5e40a..529b07879 100644 --- a/tests/nodes/triu_i8_square_neg/output_0.cairo +++ b/tests/nodes/triu_i8_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_zero.cairo b/tests/nodes/triu_i8_zero.cairo index c8297bcb8..a65ab6b98 100644 --- a/tests/nodes/triu_i8_zero.cairo +++ b/tests/nodes/triu_i8_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/triu_i8_zero/input_0.cairo b/tests/nodes/triu_i8_zero/input_0.cairo index 90e2d4e74..03dc49e3f 100644 --- a/tests/nodes/triu_i8_zero/input_0.cairo +++ b/tests/nodes/triu_i8_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_i8_zero/output_0.cairo b/tests/nodes/triu_i8_zero/output_0.cairo index 07bfa2a91..25b4104aa 100644 --- a/tests/nodes/triu_i8_zero/output_0.cairo +++ b/tests/nodes/triu_i8_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/triu_u32.cairo b/tests/nodes/triu_u32.cairo index 2c9b3529a..4f8266488 100644 --- a/tests/nodes/triu_u32.cairo +++ b/tests/nodes/triu_u32.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32/input_0.cairo b/tests/nodes/triu_u32/input_0.cairo index 01ae490ca..03913344e 100644 --- a/tests/nodes/triu_u32/input_0.cairo +++ b/tests/nodes/triu_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32/output_0.cairo b/tests/nodes/triu_u32/output_0.cairo index 12551f261..0ecbc2230 100644 --- a/tests/nodes/triu_u32/output_0.cairo +++ b/tests/nodes/triu_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_neg.cairo b/tests/nodes/triu_u32_neg.cairo index cfb9e9d4a..f201bdc15 100644 --- a/tests/nodes/triu_u32_neg.cairo +++ b/tests/nodes/triu_u32_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_neg/input_0.cairo b/tests/nodes/triu_u32_neg/input_0.cairo index cb17fe5e5..ccfc2f500 100644 --- a/tests/nodes/triu_u32_neg/input_0.cairo +++ b/tests/nodes/triu_u32_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_neg/output_0.cairo b/tests/nodes/triu_u32_neg/output_0.cairo index 85001ce2d..1e296f5f6 100644 --- a/tests/nodes/triu_u32_neg/output_0.cairo +++ b/tests/nodes/triu_u32_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_one_row.cairo b/tests/nodes/triu_u32_one_row.cairo index 8bb5f8ab5..452909c7a 100644 --- a/tests/nodes/triu_u32_one_row.cairo +++ b/tests/nodes/triu_u32_one_row.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_one_row/input_0.cairo b/tests/nodes/triu_u32_one_row/input_0.cairo index 838fc5f4a..e2238a60b 100644 --- a/tests/nodes/triu_u32_one_row/input_0.cairo +++ b/tests/nodes/triu_u32_one_row/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_one_row/output_0.cairo b/tests/nodes/triu_u32_one_row/output_0.cairo index 97a204e7d..6b4763239 100644 --- a/tests/nodes/triu_u32_one_row/output_0.cairo +++ b/tests/nodes/triu_u32_one_row/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_out_neg.cairo b/tests/nodes/triu_u32_out_neg.cairo index 13d7ead94..681da38b3 100644 --- a/tests/nodes/triu_u32_out_neg.cairo +++ b/tests/nodes/triu_u32_out_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_out_neg/input_0.cairo b/tests/nodes/triu_u32_out_neg/input_0.cairo index 9e70cc881..698233a5a 100644 --- a/tests/nodes/triu_u32_out_neg/input_0.cairo +++ b/tests/nodes/triu_u32_out_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_out_neg/output_0.cairo b/tests/nodes/triu_u32_out_neg/output_0.cairo index cf6a9d6bf..cb3cb218c 100644 --- a/tests/nodes/triu_u32_out_neg/output_0.cairo +++ b/tests/nodes/triu_u32_out_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_out_pos.cairo b/tests/nodes/triu_u32_out_pos.cairo index abee4067e..2d94b1054 100644 --- a/tests/nodes/triu_u32_out_pos.cairo +++ b/tests/nodes/triu_u32_out_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_out_pos/input_0.cairo b/tests/nodes/triu_u32_out_pos/input_0.cairo index 60f218e01..5cc79110f 100644 --- a/tests/nodes/triu_u32_out_pos/input_0.cairo +++ b/tests/nodes/triu_u32_out_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_out_pos/output_0.cairo b/tests/nodes/triu_u32_out_pos/output_0.cairo index fff9bce25..4cd9e9fae 100644 --- a/tests/nodes/triu_u32_out_pos/output_0.cairo +++ b/tests/nodes/triu_u32_out_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_pos.cairo b/tests/nodes/triu_u32_pos.cairo index 96d3cc91d..4a2e717da 100644 --- a/tests/nodes/triu_u32_pos.cairo +++ b/tests/nodes/triu_u32_pos.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_pos/input_0.cairo b/tests/nodes/triu_u32_pos/input_0.cairo index e5559bb5c..1363176d3 100644 --- a/tests/nodes/triu_u32_pos/input_0.cairo +++ b/tests/nodes/triu_u32_pos/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_pos/output_0.cairo b/tests/nodes/triu_u32_pos/output_0.cairo index f7ade65b8..e2fb302c5 100644 --- a/tests/nodes/triu_u32_pos/output_0.cairo +++ b/tests/nodes/triu_u32_pos/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_square.cairo b/tests/nodes/triu_u32_square.cairo index 1996e642d..5556f560f 100644 --- a/tests/nodes/triu_u32_square.cairo +++ b/tests/nodes/triu_u32_square.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_square/input_0.cairo b/tests/nodes/triu_u32_square/input_0.cairo index f43b5d341..81af2ae5f 100644 --- a/tests/nodes/triu_u32_square/input_0.cairo +++ b/tests/nodes/triu_u32_square/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_square/output_0.cairo b/tests/nodes/triu_u32_square/output_0.cairo index 78eb82b38..96881a773 100644 --- a/tests/nodes/triu_u32_square/output_0.cairo +++ b/tests/nodes/triu_u32_square/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_square_neg.cairo b/tests/nodes/triu_u32_square_neg.cairo index f3c36ea2f..58e5f3795 100644 --- a/tests/nodes/triu_u32_square_neg.cairo +++ b/tests/nodes/triu_u32_square_neg.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_square_neg/input_0.cairo b/tests/nodes/triu_u32_square_neg/input_0.cairo index 9747a559f..8f3e6a3d9 100644 --- a/tests/nodes/triu_u32_square_neg/input_0.cairo +++ b/tests/nodes/triu_u32_square_neg/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_square_neg/output_0.cairo b/tests/nodes/triu_u32_square_neg/output_0.cairo index bdfe12b09..2bfc9e94c 100644 --- a/tests/nodes/triu_u32_square_neg/output_0.cairo +++ b/tests/nodes/triu_u32_square_neg/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_zero.cairo b/tests/nodes/triu_u32_zero.cairo index 22f6bdad1..4bb9e8964 100644 --- a/tests/nodes/triu_u32_zero.cairo +++ b/tests/nodes/triu_u32_zero.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/triu_u32_zero/input_0.cairo b/tests/nodes/triu_u32_zero/input_0.cairo index 179e42905..0110d2dab 100644 --- a/tests/nodes/triu_u32_zero/input_0.cairo +++ b/tests/nodes/triu_u32_zero/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/triu_u32_zero/output_0.cairo b/tests/nodes/triu_u32_zero/output_0.cairo index 9b9157818..73f14f67e 100644 --- a/tests/nodes/triu_u32_zero/output_0.cairo +++ b/tests/nodes/triu_u32_zero/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/unsqueeze_fp16x16_2d.cairo b/tests/nodes/unsqueeze_fp16x16_2d.cairo index 8e858934e..824deea46 100644 --- a/tests/nodes/unsqueeze_fp16x16_2d.cairo +++ b/tests/nodes/unsqueeze_fp16x16_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo b/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo index 5711ba8b8..0e3d25c66 100644 --- a/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo b/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo index a08c78cc6..b0716bb86 100644 --- a/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_fp16x16_3d.cairo b/tests/nodes/unsqueeze_fp16x16_3d.cairo index 2fdc9f67b..772ce74a9 100644 --- a/tests/nodes/unsqueeze_fp16x16_3d.cairo +++ b/tests/nodes/unsqueeze_fp16x16_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo b/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo index 44c4e3347..8601b1660 100644 --- a/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo b/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo index d71029c80..7fbf2154a 100644 --- a/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_fp8x23_2d.cairo b/tests/nodes/unsqueeze_fp8x23_2d.cairo index 74c309091..d50bc71ef 100644 --- a/tests/nodes/unsqueeze_fp8x23_2d.cairo +++ b/tests/nodes/unsqueeze_fp8x23_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo b/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo index f8f04a4c6..61ee210c1 100644 --- a/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo b/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo index e8ba91cbf..a56588d88 100644 --- a/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_fp8x23_3d.cairo b/tests/nodes/unsqueeze_fp8x23_3d.cairo index 29ea27d9c..722730ddc 100644 --- a/tests/nodes/unsqueeze_fp8x23_3d.cairo +++ b/tests/nodes/unsqueeze_fp8x23_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo b/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo index 960deec3e..e18c212c6 100644 --- a/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo b/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo index cdbc241c0..215188c5e 100644 --- a/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/unsqueeze_i32_2d.cairo b/tests/nodes/unsqueeze_i32_2d.cairo index cdef1c1a8..683f751e0 100644 --- a/tests/nodes/unsqueeze_i32_2d.cairo +++ b/tests/nodes/unsqueeze_i32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/unsqueeze_i32_2d/input_0.cairo b/tests/nodes/unsqueeze_i32_2d/input_0.cairo index f70a043ca..5a1d3696c 100644 --- a/tests/nodes/unsqueeze_i32_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_i32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/unsqueeze_i32_2d/output_0.cairo b/tests/nodes/unsqueeze_i32_2d/output_0.cairo index 7cbe8c5f8..b54d82bd3 100644 --- a/tests/nodes/unsqueeze_i32_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_i32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/unsqueeze_i32_3d.cairo b/tests/nodes/unsqueeze_i32_3d.cairo index eefdb56de..e6ea169d3 100644 --- a/tests/nodes/unsqueeze_i32_3d.cairo +++ b/tests/nodes/unsqueeze_i32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/unsqueeze_i32_3d/input_0.cairo b/tests/nodes/unsqueeze_i32_3d/input_0.cairo index 0b4a8a97d..060c22a3f 100644 --- a/tests/nodes/unsqueeze_i32_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_i32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/unsqueeze_i32_3d/output_0.cairo b/tests/nodes/unsqueeze_i32_3d/output_0.cairo index e03861de3..7e20adccf 100644 --- a/tests/nodes/unsqueeze_i32_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_i32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/unsqueeze_i8_2d.cairo b/tests/nodes/unsqueeze_i8_2d.cairo index 77d6abad8..d9f5c32fa 100644 --- a/tests/nodes/unsqueeze_i8_2d.cairo +++ b/tests/nodes/unsqueeze_i8_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/unsqueeze_i8_2d/input_0.cairo b/tests/nodes/unsqueeze_i8_2d/input_0.cairo index 13ae701e1..31e8bd4d9 100644 --- a/tests/nodes/unsqueeze_i8_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_i8_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/unsqueeze_i8_2d/output_0.cairo b/tests/nodes/unsqueeze_i8_2d/output_0.cairo index cd710eee6..860df3f89 100644 --- a/tests/nodes/unsqueeze_i8_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_i8_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/unsqueeze_i8_3d.cairo b/tests/nodes/unsqueeze_i8_3d.cairo index 791051eb0..cc77bfbc2 100644 --- a/tests/nodes/unsqueeze_i8_3d.cairo +++ b/tests/nodes/unsqueeze_i8_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/unsqueeze_i8_3d/input_0.cairo b/tests/nodes/unsqueeze_i8_3d/input_0.cairo index d141c0e37..20f8d90ea 100644 --- a/tests/nodes/unsqueeze_i8_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_i8_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/unsqueeze_i8_3d/output_0.cairo b/tests/nodes/unsqueeze_i8_3d/output_0.cairo index 906aefeb1..f56aec76c 100644 --- a/tests/nodes/unsqueeze_i8_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_i8_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/unsqueeze_u32_2d.cairo b/tests/nodes/unsqueeze_u32_2d.cairo index 0f3d44a40..cd24888af 100644 --- a/tests/nodes/unsqueeze_u32_2d.cairo +++ b/tests/nodes/unsqueeze_u32_2d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/unsqueeze_u32_2d/input_0.cairo b/tests/nodes/unsqueeze_u32_2d/input_0.cairo index 017d91e57..a22942ee0 100644 --- a/tests/nodes/unsqueeze_u32_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_u32_2d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/unsqueeze_u32_2d/output_0.cairo b/tests/nodes/unsqueeze_u32_2d/output_0.cairo index 473323192..4fbfa0f1a 100644 --- a/tests/nodes/unsqueeze_u32_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_u32_2d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/unsqueeze_u32_3d.cairo b/tests/nodes/unsqueeze_u32_3d.cairo index 8912bd381..935f2ee61 100644 --- a/tests/nodes/unsqueeze_u32_3d.cairo +++ b/tests/nodes/unsqueeze_u32_3d.cairo @@ -2,7 +2,7 @@ mod input_0; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/unsqueeze_u32_3d/input_0.cairo b/tests/nodes/unsqueeze_u32_3d/input_0.cairo index 486992a02..289ae1091 100644 --- a/tests/nodes/unsqueeze_u32_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_u32_3d/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/unsqueeze_u32_3d/output_0.cairo b/tests/nodes/unsqueeze_u32_3d/output_0.cairo index ea034e05c..2a8cd00dc 100644 --- a/tests/nodes/unsqueeze_u32_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_u32_3d/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_fp16x16.cairo b/tests/nodes/where_fp16x16.cairo index 85b35e1a5..b65e95c24 100644 --- a/tests/nodes/where_fp16x16.cairo +++ b/tests/nodes/where_fp16x16.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/where_fp16x16/input_0.cairo b/tests/nodes/where_fp16x16/input_0.cairo index cf33ae09f..ee06063e2 100644 --- a/tests/nodes/where_fp16x16/input_0.cairo +++ b/tests/nodes/where_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp16x16/input_1.cairo b/tests/nodes/where_fp16x16/input_1.cairo index cab2ecc78..f42dba3ed 100644 --- a/tests/nodes/where_fp16x16/input_1.cairo +++ b/tests/nodes/where_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp16x16/input_2.cairo b/tests/nodes/where_fp16x16/input_2.cairo index a17465b4e..453b5da57 100644 --- a/tests/nodes/where_fp16x16/input_2.cairo +++ b/tests/nodes/where_fp16x16/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp16x16/output_0.cairo b/tests/nodes/where_fp16x16/output_0.cairo index 331244e06..40968fb33 100644 --- a/tests/nodes/where_fp16x16/output_0.cairo +++ b/tests/nodes/where_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp16x16_broadcast.cairo b/tests/nodes/where_fp16x16_broadcast.cairo index 112071048..eeef02e74 100644 --- a/tests/nodes/where_fp16x16_broadcast.cairo +++ b/tests/nodes/where_fp16x16_broadcast.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; diff --git a/tests/nodes/where_fp16x16_broadcast/input_0.cairo b/tests/nodes/where_fp16x16_broadcast/input_0.cairo index b05452a94..d56fc3b87 100644 --- a/tests/nodes/where_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/where_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp16x16_broadcast/input_1.cairo b/tests/nodes/where_fp16x16_broadcast/input_1.cairo index a7a73f3c1..cea4ec9b5 100644 --- a/tests/nodes/where_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/where_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp16x16_broadcast/input_2.cairo b/tests/nodes/where_fp16x16_broadcast/input_2.cairo index f323e9667..750ea3244 100644 --- a/tests/nodes/where_fp16x16_broadcast/input_2.cairo +++ b/tests/nodes/where_fp16x16_broadcast/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp16x16_broadcast/output_0.cairo b/tests/nodes/where_fp16x16_broadcast/output_0.cairo index e849cfa2d..e775dd332 100644 --- a/tests/nodes/where_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/where_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23.cairo b/tests/nodes/where_fp8x23.cairo index b66f57fc7..3c4835582 100644 --- a/tests/nodes/where_fp8x23.cairo +++ b/tests/nodes/where_fp8x23.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/where_fp8x23/input_0.cairo b/tests/nodes/where_fp8x23/input_0.cairo index 7f300bed1..502ed1320 100644 --- a/tests/nodes/where_fp8x23/input_0.cairo +++ b/tests/nodes/where_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23/input_1.cairo b/tests/nodes/where_fp8x23/input_1.cairo index e12e23e81..459ce8d40 100644 --- a/tests/nodes/where_fp8x23/input_1.cairo +++ b/tests/nodes/where_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23/input_2.cairo b/tests/nodes/where_fp8x23/input_2.cairo index a616dd1ea..bedf8435e 100644 --- a/tests/nodes/where_fp8x23/input_2.cairo +++ b/tests/nodes/where_fp8x23/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23/output_0.cairo b/tests/nodes/where_fp8x23/output_0.cairo index b75a32476..e9822c10e 100644 --- a/tests/nodes/where_fp8x23/output_0.cairo +++ b/tests/nodes/where_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23_broadcast.cairo b/tests/nodes/where_fp8x23_broadcast.cairo index ff443da81..b210654da 100644 --- a/tests/nodes/where_fp8x23_broadcast.cairo +++ b/tests/nodes/where_fp8x23_broadcast.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; diff --git a/tests/nodes/where_fp8x23_broadcast/input_0.cairo b/tests/nodes/where_fp8x23_broadcast/input_0.cairo index 0611d8a48..e29499d8a 100644 --- a/tests/nodes/where_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/where_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23_broadcast/input_1.cairo b/tests/nodes/where_fp8x23_broadcast/input_1.cairo index b9463d355..645947907 100644 --- a/tests/nodes/where_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/where_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23_broadcast/input_2.cairo b/tests/nodes/where_fp8x23_broadcast/input_2.cairo index 9ddf2ebc0..d0d0f95bd 100644 --- a/tests/nodes/where_fp8x23_broadcast/input_2.cairo +++ b/tests/nodes/where_fp8x23_broadcast/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_fp8x23_broadcast/output_0.cairo b/tests/nodes/where_fp8x23_broadcast/output_0.cairo index 28677d7a5..c23ba22e6 100644 --- a/tests/nodes/where_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/where_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/where_i32.cairo b/tests/nodes/where_i32.cairo index b120ba9b7..6af794969 100644 --- a/tests/nodes/where_i32.cairo +++ b/tests/nodes/where_i32.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/where_i32/input_0.cairo b/tests/nodes/where_i32/input_0.cairo index 46c9eeb47..287722fba 100644 --- a/tests/nodes/where_i32/input_0.cairo +++ b/tests/nodes/where_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i32/input_1.cairo b/tests/nodes/where_i32/input_1.cairo index 68e436e7d..7ed9a944a 100644 --- a/tests/nodes/where_i32/input_1.cairo +++ b/tests/nodes/where_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i32/input_2.cairo b/tests/nodes/where_i32/input_2.cairo index e85535572..c4b6e3a6a 100644 --- a/tests/nodes/where_i32/input_2.cairo +++ b/tests/nodes/where_i32/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i32/output_0.cairo b/tests/nodes/where_i32/output_0.cairo index 89a67339c..c2f1d9b08 100644 --- a/tests/nodes/where_i32/output_0.cairo +++ b/tests/nodes/where_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i32_broadcast.cairo b/tests/nodes/where_i32_broadcast.cairo index 9e360fd81..2bea54d48 100644 --- a/tests/nodes/where_i32_broadcast.cairo +++ b/tests/nodes/where_i32_broadcast.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; diff --git a/tests/nodes/where_i32_broadcast/input_0.cairo b/tests/nodes/where_i32_broadcast/input_0.cairo index 84feb51e7..5fa70f11a 100644 --- a/tests/nodes/where_i32_broadcast/input_0.cairo +++ b/tests/nodes/where_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i32_broadcast/input_1.cairo b/tests/nodes/where_i32_broadcast/input_1.cairo index 3b3888da4..2df00c334 100644 --- a/tests/nodes/where_i32_broadcast/input_1.cairo +++ b/tests/nodes/where_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i32_broadcast/input_2.cairo b/tests/nodes/where_i32_broadcast/input_2.cairo index 2e3a5565d..516938211 100644 --- a/tests/nodes/where_i32_broadcast/input_2.cairo +++ b/tests/nodes/where_i32_broadcast/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i32_broadcast/output_0.cairo b/tests/nodes/where_i32_broadcast/output_0.cairo index 7e7e85989..18d1b329f 100644 --- a/tests/nodes/where_i32_broadcast/output_0.cairo +++ b/tests/nodes/where_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/where_i8.cairo b/tests/nodes/where_i8.cairo index 00e542a50..3f4f78eb2 100644 --- a/tests/nodes/where_i8.cairo +++ b/tests/nodes/where_i8.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/where_i8/input_0.cairo b/tests/nodes/where_i8/input_0.cairo index 4bb22f994..5c217ad1a 100644 --- a/tests/nodes/where_i8/input_0.cairo +++ b/tests/nodes/where_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_i8/input_1.cairo b/tests/nodes/where_i8/input_1.cairo index 1a1573b7f..7ee472520 100644 --- a/tests/nodes/where_i8/input_1.cairo +++ b/tests/nodes/where_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_i8/input_2.cairo b/tests/nodes/where_i8/input_2.cairo index 72f3d74ff..46f276b61 100644 --- a/tests/nodes/where_i8/input_2.cairo +++ b/tests/nodes/where_i8/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_i8/output_0.cairo b/tests/nodes/where_i8/output_0.cairo index e1406e94a..6a8c35017 100644 --- a/tests/nodes/where_i8/output_0.cairo +++ b/tests/nodes/where_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_i8_broadcast.cairo b/tests/nodes/where_i8_broadcast.cairo index 78a4f2654..2b514f76d 100644 --- a/tests/nodes/where_i8_broadcast.cairo +++ b/tests/nodes/where_i8_broadcast.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/where_i8_broadcast/input_0.cairo b/tests/nodes/where_i8_broadcast/input_0.cairo index 7bdbdba1a..3f2b1a3cc 100644 --- a/tests/nodes/where_i8_broadcast/input_0.cairo +++ b/tests/nodes/where_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_i8_broadcast/input_1.cairo b/tests/nodes/where_i8_broadcast/input_1.cairo index 1966740ae..cebe513dc 100644 --- a/tests/nodes/where_i8_broadcast/input_1.cairo +++ b/tests/nodes/where_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_i8_broadcast/input_2.cairo b/tests/nodes/where_i8_broadcast/input_2.cairo index 91264db5e..e1193ecb6 100644 --- a/tests/nodes/where_i8_broadcast/input_2.cairo +++ b/tests/nodes/where_i8_broadcast/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_i8_broadcast/output_0.cairo b/tests/nodes/where_i8_broadcast/output_0.cairo index 34869855a..4120aedf1 100644 --- a/tests/nodes/where_i8_broadcast/output_0.cairo +++ b/tests/nodes/where_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/where_u32.cairo b/tests/nodes/where_u32.cairo index 287dffd20..472171e34 100644 --- a/tests/nodes/where_u32.cairo +++ b/tests/nodes/where_u32.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/where_u32/input_0.cairo b/tests/nodes/where_u32/input_0.cairo index df208918a..e40252a09 100644 --- a/tests/nodes/where_u32/input_0.cairo +++ b/tests/nodes/where_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_u32/input_1.cairo b/tests/nodes/where_u32/input_1.cairo index a7e1e0544..59444a99f 100644 --- a/tests/nodes/where_u32/input_1.cairo +++ b/tests/nodes/where_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_u32/input_2.cairo b/tests/nodes/where_u32/input_2.cairo index 6068a5b65..f3f189b30 100644 --- a/tests/nodes/where_u32/input_2.cairo +++ b/tests/nodes/where_u32/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_u32/output_0.cairo b/tests/nodes/where_u32/output_0.cairo index 22990fd93..98c8f05db 100644 --- a/tests/nodes/where_u32/output_0.cairo +++ b/tests/nodes/where_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_u32_broadcast.cairo b/tests/nodes/where_u32_broadcast.cairo index 76bcb25b8..42bcad1e5 100644 --- a/tests/nodes/where_u32_broadcast.cairo +++ b/tests/nodes/where_u32_broadcast.cairo @@ -4,7 +4,7 @@ mod input_2; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/where_u32_broadcast/input_0.cairo b/tests/nodes/where_u32_broadcast/input_0.cairo index 9f3c087a2..32869e6e8 100644 --- a/tests/nodes/where_u32_broadcast/input_0.cairo +++ b/tests/nodes/where_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_u32_broadcast/input_1.cairo b/tests/nodes/where_u32_broadcast/input_1.cairo index 75b004327..b0a92d0cd 100644 --- a/tests/nodes/where_u32_broadcast/input_1.cairo +++ b/tests/nodes/where_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_u32_broadcast/input_2.cairo b/tests/nodes/where_u32_broadcast/input_2.cairo index d82625ac7..f8bf40826 100644 --- a/tests/nodes/where_u32_broadcast/input_2.cairo +++ b/tests/nodes/where_u32_broadcast/input_2.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/where_u32_broadcast/output_0.cairo b/tests/nodes/where_u32_broadcast/output_0.cairo index 27124de0b..9dc433215 100644 --- a/tests/nodes/where_u32_broadcast/output_0.cairo +++ b/tests/nodes/where_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_fp16x16.cairo b/tests/nodes/xor_fp16x16.cairo index 21d103c81..345dea3c4 100644 --- a/tests/nodes/xor_fp16x16.cairo +++ b/tests/nodes/xor_fp16x16.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_fp16x16/input_0.cairo b/tests/nodes/xor_fp16x16/input_0.cairo index e11cf6a82..72fd841aa 100644 --- a/tests/nodes/xor_fp16x16/input_0.cairo +++ b/tests/nodes/xor_fp16x16/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp16x16/input_1.cairo b/tests/nodes/xor_fp16x16/input_1.cairo index 6da43de8b..6ebcfd234 100644 --- a/tests/nodes/xor_fp16x16/input_1.cairo +++ b/tests/nodes/xor_fp16x16/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp16x16/output_0.cairo b/tests/nodes/xor_fp16x16/output_0.cairo index 3883dcaf3..66356e88d 100644 --- a/tests/nodes/xor_fp16x16/output_0.cairo +++ b/tests/nodes/xor_fp16x16/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_fp16x16_broadcast.cairo b/tests/nodes/xor_fp16x16_broadcast.cairo index 71d1da6e8..ab19b6b55 100644 --- a/tests/nodes/xor_fp16x16_broadcast.cairo +++ b/tests/nodes/xor_fp16x16_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_fp16x16_broadcast/input_0.cairo b/tests/nodes/xor_fp16x16_broadcast/input_0.cairo index 80140ef5b..e1e38013d 100644 --- a/tests/nodes/xor_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/xor_fp16x16_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp16x16_broadcast/input_1.cairo b/tests/nodes/xor_fp16x16_broadcast/input_1.cairo index f8a5242d5..83405e5ad 100644 --- a/tests/nodes/xor_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/xor_fp16x16_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp16x16_broadcast/output_0.cairo b/tests/nodes/xor_fp16x16_broadcast/output_0.cairo index 8c5c23655..5f2035f24 100644 --- a/tests/nodes/xor_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/xor_fp16x16_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_fp8x23.cairo b/tests/nodes/xor_fp8x23.cairo index 70d9201fc..9a49ad943 100644 --- a/tests/nodes/xor_fp8x23.cairo +++ b/tests/nodes/xor_fp8x23.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_fp8x23/input_0.cairo b/tests/nodes/xor_fp8x23/input_0.cairo index c316aad06..5e0f666f1 100644 --- a/tests/nodes/xor_fp8x23/input_0.cairo +++ b/tests/nodes/xor_fp8x23/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp8x23/input_1.cairo b/tests/nodes/xor_fp8x23/input_1.cairo index 26eb8f179..f3be286c6 100644 --- a/tests/nodes/xor_fp8x23/input_1.cairo +++ b/tests/nodes/xor_fp8x23/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp8x23/output_0.cairo b/tests/nodes/xor_fp8x23/output_0.cairo index 2365ab71c..b96df18e4 100644 --- a/tests/nodes/xor_fp8x23/output_0.cairo +++ b/tests/nodes/xor_fp8x23/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_fp8x23_broadcast.cairo b/tests/nodes/xor_fp8x23_broadcast.cairo index 2b002a8b9..ad5339ac0 100644 --- a/tests/nodes/xor_fp8x23_broadcast.cairo +++ b/tests/nodes/xor_fp8x23_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_fp8x23_broadcast/input_0.cairo b/tests/nodes/xor_fp8x23_broadcast/input_0.cairo index 8027b3940..dbf639643 100644 --- a/tests/nodes/xor_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/xor_fp8x23_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp8x23_broadcast/input_1.cairo b/tests/nodes/xor_fp8x23_broadcast/input_1.cairo index 79c1fe4bc..44173dca4 100644 --- a/tests/nodes/xor_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/xor_fp8x23_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; use orion::numbers::FixedTrait; diff --git a/tests/nodes/xor_fp8x23_broadcast/output_0.cairo b/tests/nodes/xor_fp8x23_broadcast/output_0.cairo index 486b39f3d..8087fceab 100644 --- a/tests/nodes/xor_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/xor_fp8x23_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_i32.cairo b/tests/nodes/xor_i32.cairo index 2a9ed5bfd..57d9befa9 100644 --- a/tests/nodes/xor_i32.cairo +++ b/tests/nodes/xor_i32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_i32/input_0.cairo b/tests/nodes/xor_i32/input_0.cairo index 696aeb091..83a768811 100644 --- a/tests/nodes/xor_i32/input_0.cairo +++ b/tests/nodes/xor_i32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/xor_i32/input_1.cairo b/tests/nodes/xor_i32/input_1.cairo index 5d3fd3d25..844cfdd02 100644 --- a/tests/nodes/xor_i32/input_1.cairo +++ b/tests/nodes/xor_i32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/xor_i32/output_0.cairo b/tests/nodes/xor_i32/output_0.cairo index e37015894..d759ed971 100644 --- a/tests/nodes/xor_i32/output_0.cairo +++ b/tests/nodes/xor_i32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_i32_broadcast.cairo b/tests/nodes/xor_i32_broadcast.cairo index 606f69bc6..77f19fb67 100644 --- a/tests/nodes/xor_i32_broadcast.cairo +++ b/tests/nodes/xor_i32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_i32_broadcast/input_0.cairo b/tests/nodes/xor_i32_broadcast/input_0.cairo index 7b9046b8b..71eb6016d 100644 --- a/tests/nodes/xor_i32_broadcast/input_0.cairo +++ b/tests/nodes/xor_i32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/xor_i32_broadcast/input_1.cairo b/tests/nodes/xor_i32_broadcast/input_1.cairo index 310365fb9..100cab0d6 100644 --- a/tests/nodes/xor_i32_broadcast/input_1.cairo +++ b/tests/nodes/xor_i32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; use orion::numbers::{IntegerTrait, i32}; diff --git a/tests/nodes/xor_i32_broadcast/output_0.cairo b/tests/nodes/xor_i32_broadcast/output_0.cairo index 486b39f3d..8087fceab 100644 --- a/tests/nodes/xor_i32_broadcast/output_0.cairo +++ b/tests/nodes/xor_i32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_i8.cairo b/tests/nodes/xor_i8.cairo index 6e5c1b039..b7ba188ed 100644 --- a/tests/nodes/xor_i8.cairo +++ b/tests/nodes/xor_i8.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_i8/input_0.cairo b/tests/nodes/xor_i8/input_0.cairo index aedcf9f99..db6d382aa 100644 --- a/tests/nodes/xor_i8/input_0.cairo +++ b/tests/nodes/xor_i8/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/xor_i8/input_1.cairo b/tests/nodes/xor_i8/input_1.cairo index d253a6920..25a6dfa50 100644 --- a/tests/nodes/xor_i8/input_1.cairo +++ b/tests/nodes/xor_i8/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/xor_i8/output_0.cairo b/tests/nodes/xor_i8/output_0.cairo index e87e9a6ca..33c1b7dc0 100644 --- a/tests/nodes/xor_i8/output_0.cairo +++ b/tests/nodes/xor_i8/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_i8_broadcast.cairo b/tests/nodes/xor_i8_broadcast.cairo index 81fc3a36d..6cbb81e2b 100644 --- a/tests/nodes/xor_i8_broadcast.cairo +++ b/tests/nodes/xor_i8_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_i8_broadcast/input_0.cairo b/tests/nodes/xor_i8_broadcast/input_0.cairo index f8c35237f..168bcd270 100644 --- a/tests/nodes/xor_i8_broadcast/input_0.cairo +++ b/tests/nodes/xor_i8_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/xor_i8_broadcast/input_1.cairo b/tests/nodes/xor_i8_broadcast/input_1.cairo index ebbac4401..24ed7049a 100644 --- a/tests/nodes/xor_i8_broadcast/input_1.cairo +++ b/tests/nodes/xor_i8_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; use orion::numbers::{IntegerTrait, i8}; diff --git a/tests/nodes/xor_i8_broadcast/output_0.cairo b/tests/nodes/xor_i8_broadcast/output_0.cairo index 12e081541..eb0deaedb 100644 --- a/tests/nodes/xor_i8_broadcast/output_0.cairo +++ b/tests/nodes/xor_i8_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_u32.cairo b/tests/nodes/xor_u32.cairo index 1e45afe2e..08b57f111 100644 --- a/tests/nodes/xor_u32.cairo +++ b/tests/nodes/xor_u32.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_u32/input_0.cairo b/tests/nodes/xor_u32/input_0.cairo index 5c38099d7..0beefe210 100644 --- a/tests/nodes/xor_u32/input_0.cairo +++ b/tests/nodes/xor_u32/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_u32/input_1.cairo b/tests/nodes/xor_u32/input_1.cairo index 3d9a9912d..05e3fb176 100644 --- a/tests/nodes/xor_u32/input_1.cairo +++ b/tests/nodes/xor_u32/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_u32/output_0.cairo b/tests/nodes/xor_u32/output_0.cairo index 9c75d6223..b5a723ebf 100644 --- a/tests/nodes/xor_u32/output_0.cairo +++ b/tests/nodes/xor_u32/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_u32_broadcast.cairo b/tests/nodes/xor_u32_broadcast.cairo index e5e358a5e..5638bd76a 100644 --- a/tests/nodes/xor_u32_broadcast.cairo +++ b/tests/nodes/xor_u32_broadcast.cairo @@ -3,7 +3,7 @@ mod input_1; mod output_0; -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::TensorTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; diff --git a/tests/nodes/xor_u32_broadcast/input_0.cairo b/tests/nodes/xor_u32_broadcast/input_0.cairo index 70540fdca..88f44abaf 100644 --- a/tests/nodes/xor_u32_broadcast/input_0.cairo +++ b/tests/nodes/xor_u32_broadcast/input_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_u32_broadcast/input_1.cairo b/tests/nodes/xor_u32_broadcast/input_1.cairo index 0dd2395d8..862b8d58c 100644 --- a/tests/nodes/xor_u32_broadcast/input_1.cairo +++ b/tests/nodes/xor_u32_broadcast/input_1.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/nodes/xor_u32_broadcast/output_0.cairo b/tests/nodes/xor_u32_broadcast/output_0.cairo index d1ec9ce5f..f857a56ac 100644 --- a/tests/nodes/xor_u32_broadcast/output_0.cairo +++ b/tests/nodes/xor_u32_broadcast/output_0.cairo @@ -1,4 +1,4 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32Tensor; diff --git a/tests/numbers/complex_number_test.cairo b/tests/numbers/complex_number_test.cairo index f644f8ed3..9b91c0f5a 100644 --- a/tests/numbers/complex_number_test.cairo +++ b/tests/numbers/complex_number_test.cairo @@ -1,7 +1,7 @@ use orion::numbers::complex_number::complex_trait::ComplexTrait; use orion::numbers::complex_number::complex64::{TWO, complex64}; use orion::numbers::{FP64x64, FP64x64Impl, FixedTrait}; -use debug::PrintTrait; +use core::debug::PrintTrait; #[test] diff --git a/tests/operators/constant_of_shape_test.cairo b/tests/operators/constant_of_shape_test.cairo index 445dffe61..41bc321b7 100644 --- a/tests/operators/constant_of_shape_test.cairo +++ b/tests/operators/constant_of_shape_test.cairo @@ -1,6 +1,6 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; -use debug::PrintTrait; +use core::debug::PrintTrait; #[test] diff --git a/tests/operators/qlinear_add_test.cairo b/tests/operators/qlinear_add_test.cairo index 667d64411..abea26b97 100644 --- a/tests/operators/qlinear_add_test.cairo +++ b/tests/operators/qlinear_add_test.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use array::{ArrayTrait, SpanTrait}; +use core::debug::PrintTrait; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor}; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; diff --git a/tests/operators/qlinear_concat_test.cairo b/tests/operators/qlinear_concat_test.cairo index 585c5edc3..0acacf881 100644 --- a/tests/operators/qlinear_concat_test.cairo +++ b/tests/operators/qlinear_concat_test.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use array::{ArrayTrait, SpanTrait}; +use core::debug::PrintTrait; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor}; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; diff --git a/tests/operators/qlinear_leakyrelu_test.cairo b/tests/operators/qlinear_leakyrelu_test.cairo index 951e5ba76..de9393d15 100644 --- a/tests/operators/qlinear_leakyrelu_test.cairo +++ b/tests/operators/qlinear_leakyrelu_test.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use array::{ArrayTrait, SpanTrait}; +use core::debug::PrintTrait; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor, FP32x32Tensor diff --git a/tests/operators/qlinear_matmul_test.cairo b/tests/operators/qlinear_matmul_test.cairo index b666518a4..627779454 100644 --- a/tests/operators/qlinear_matmul_test.cairo +++ b/tests/operators/qlinear_matmul_test.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use array::{ArrayTrait, SpanTrait}; +use core::debug::PrintTrait; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor, FP32x32Tensor diff --git a/tests/operators/qlinear_mul_test.cairo b/tests/operators/qlinear_mul_test.cairo index 9981528c1..2f2f9b375 100644 --- a/tests/operators/qlinear_mul_test.cairo +++ b/tests/operators/qlinear_mul_test.cairo @@ -1,5 +1,5 @@ -use debug::PrintTrait; -use array::{ArrayTrait, SpanTrait}; +use core::debug::PrintTrait; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{ TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor, FP32x32Tensor diff --git a/tests/operators/transpose_test.cairo b/tests/operators/transpose_test.cairo index c1bdcaf90..ffe4e663c 100644 --- a/tests/operators/transpose_test.cairo +++ b/tests/operators/transpose_test.cairo @@ -1,6 +1,6 @@ -use array::{ArrayTrait, SpanTrait}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; -use debug::PrintTrait; +use core::debug::PrintTrait; #[test] 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 f4573ae30..851aedbae 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 @@ -1,9 +1,9 @@ #[cfg(test)] mod fp8x23 { - use array::ArrayTrait; - use array::SpanTrait; - use traits::Into; - use debug::PrintTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; + 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}; @@ -145,10 +145,10 @@ mod fp8x23 { #[cfg(test)] mod fp16x16 { - use array::ArrayTrait; - use array::SpanTrait; - use traits::Into; - use debug::PrintTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; + use core::traits::Into; + use core::debug::PrintTrait; use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i8::i8}; 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 e207db5f3..b7d58df42 100644 --- a/tests/performance/dequantize_linear_test/dequantize_linear_i32_test.cairo +++ b/tests/performance/dequantize_linear_test/dequantize_linear_i32_test.cairo @@ -1,7 +1,7 @@ use core::debug::{PrintTrait}; -use array::ArrayTrait; -use array::SpanTrait; -use traits::Into; +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}; 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 024c34a9e..109688756 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 @@ -1,9 +1,9 @@ #[cfg(test)] mod fp8x23 { - use array::ArrayTrait; - use array::SpanTrait; - use traits::Into; - use debug::PrintTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; + 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}; @@ -138,10 +138,10 @@ mod fp8x23 { #[cfg(test)] mod fp16x16 { - use array::ArrayTrait; - use array::SpanTrait; - use traits::Into; - use debug::PrintTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; + 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}; 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 dd05aa7e6..b4b45dd3a 100644 --- a/tests/performance/quantize_linear_test/quantize_linear_i32_test.cairo +++ b/tests/performance/quantize_linear_test/quantize_linear_i32_test.cairo @@ -1,7 +1,7 @@ use core::debug::{PrintTrait}; -use array::ArrayTrait; -use array::SpanTrait; -use traits::Into; +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}; diff --git a/tests/tensor_core/at/at_bool_test.cairo b/tests/tensor_core/at/at_bool_test.cairo index ae511cbda..4a29352a4 100644 --- a/tests/tensor_core/at/at_bool_test.cairo +++ b/tests/tensor_core/at/at_bool_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::BoolTensor; use orion::operators::tensor::core::{TensorTrait}; @@ -34,7 +34,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::{BoolTensor}; use orion::operators::tensor::core::{TensorTrait}; @@ -68,7 +68,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::{BoolTensor}; use orion::operators::tensor::core::{TensorTrait}; diff --git a/tests/tensor_core/at/at_fp_test/at_fp16x16_test.cairo b/tests/tensor_core/at/at_fp_test/at_fp16x16_test.cairo index 28659968c..8cc33746d 100644 --- a/tests/tensor_core/at/at_fp_test/at_fp16x16_test.cairo +++ b/tests/tensor_core/at/at_fp_test/at_fp16x16_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::fixed_point::fp16x16::fp_tensor_1x3_helper; @@ -28,7 +28,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::fixed_point::fp16x16::fp_tensor_2x2_helper; @@ -57,7 +57,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::fixed_point::fp16x16::fp_tensor_2x2x2_helper; diff --git a/tests/tensor_core/at/at_fp_test/at_fp8x23_test.cairo b/tests/tensor_core/at/at_fp_test/at_fp8x23_test.cairo index 14d9c4c06..89fb511ec 100644 --- a/tests/tensor_core/at/at_fp_test/at_fp8x23_test.cairo +++ b/tests/tensor_core/at/at_fp_test/at_fp8x23_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::fixed_point::fp8x23::fp_tensor_1x3_helper; @@ -26,7 +26,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::fixed_point::fp8x23::fp_tensor_2x2_helper; @@ -53,7 +53,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::fixed_point::fp8x23::fp_tensor_2x2x2_helper; diff --git a/tests/tensor_core/at/at_i32_test.cairo b/tests/tensor_core/at/at_i32_test.cairo index 82f8c0c23..33a450fa7 100644 --- a/tests/tensor_core/at/at_i32_test.cairo +++ b/tests/tensor_core/at/at_i32_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::i32::i32_tensor_1x3_helper; @@ -25,7 +25,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::i32::i32_tensor_2x2_helper; @@ -50,7 +50,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::i32::i32_tensor_2x2x2_helper; diff --git a/tests/tensor_core/at/at_u32_test.cairo b/tests/tensor_core/at/at_u32_test.cairo index 4621437b2..1cedf691f 100644 --- a/tests/tensor_core/at/at_u32_test.cairo +++ b/tests/tensor_core/at/at_u32_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::u32::u32_tensor_1x3_helper; @@ -25,7 +25,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::u32::u32_tensor_2x2_helper; @@ -50,7 +50,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::core::{TensorTrait}; use orion::test_helper::tensor::u32::u32_tensor_2x2x2_helper; diff --git a/tests/tensor_core/flatten/flatten_i32_test.cairo b/tests/tensor_core/flatten/flatten_i32_test.cairo index 638f2164e..ffc996977 100644 --- a/tests/tensor_core/flatten/flatten_i32_test.cairo +++ b/tests/tensor_core/flatten/flatten_i32_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::operators::tensor::I32Tensor; @@ -24,7 +24,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::operators::tensor::I32Tensor; @@ -55,7 +55,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::operators::tensor::I32Tensor; diff --git a/tests/tensor_core/flatten/flatten_u32_test.cairo b/tests/tensor_core/flatten/flatten_u32_test.cairo index 9bce3de60..98a722018 100644 --- a/tests/tensor_core/flatten/flatten_u32_test.cairo +++ b/tests/tensor_core/flatten/flatten_u32_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::operators::tensor::U32Tensor; @@ -24,7 +24,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::operators::tensor::U32Tensor; @@ -55,7 +55,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::operators::tensor::U32Tensor; diff --git a/tests/tensor_core/onehot/onehot_fp_test/onehot_fp16x16_test.cairo b/tests/tensor_core/onehot/onehot_fp_test/onehot_fp16x16_test.cairo index afdfd899f..dd8406f9f 100644 --- a/tests/tensor_core/onehot/onehot_fp_test/onehot_fp16x16_test.cairo +++ b/tests/tensor_core/onehot/onehot_fp_test/onehot_fp16x16_test.cairo @@ -6,7 +6,7 @@ use orion::numbers::fixed_point::core::FixedTrait; #[cfg(test)] mod tensor_1D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp16x16::core::{FP16x16, FP16x16PartialEq}; @@ -16,10 +16,10 @@ mod tensor_1D { fp_tensor_1x3_neg_helper, fp_tensor_2x2x2_helper }; use orion::operators::tensor::core::TensorTrait; - use debug::PrintTrait; + use core::debug::PrintTrait; use core::clone::Clone; use core::option::OptionTrait; - use serde::Serde; + use core::serde::Serde; // use orion::numbers::fixed_point::implementations::fp16x16::core::FP16x16Impl; // use orion::operators::tensor::implementations::impl_tensor_fp::Tensor_fp; diff --git a/tests/tensor_core/onehot/onehot_fp_test/onehot_fp8x23_test.cairo b/tests/tensor_core/onehot/onehot_fp_test/onehot_fp8x23_test.cairo index 29484e7f5..f95833fd6 100644 --- a/tests/tensor_core/onehot/onehot_fp_test/onehot_fp8x23_test.cairo +++ b/tests/tensor_core/onehot/onehot_fp_test/onehot_fp8x23_test.cairo @@ -6,7 +6,7 @@ use orion::numbers::fixed_point::core::FixedTrait; #[cfg(test)] mod tensor_1D { - use array::{ArrayTrait, SpanTrait}; + use core::array::{ArrayTrait, SpanTrait}; use core::traits::Into; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp8x23::core::{FP8x23, FP8x23PartialEq}; @@ -16,10 +16,10 @@ mod tensor_1D { fp_tensor_1x3_helper, fp_tensor_2x2_helper, fp_tensor_3x2x2_neg_helper, fp_tensor_1x3_neg_helper, fp_tensor_2x2x2_helper }; - use debug::PrintTrait; + use core::debug::PrintTrait; use core::clone::Clone; use core::option::OptionTrait; - use serde::Serde; + use core::serde::Serde; use orion::operators::tensor::core::{Tensor}; diff --git a/tests/tensor_core/ravel_index.cairo b/tests/tensor_core/ravel_index.cairo index caeb9046e..4aeebf571 100644 --- a/tests/tensor_core/ravel_index.cairo +++ b/tests/tensor_core/ravel_index.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::core::{ravel_index}; #[test] @@ -21,7 +21,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::core::{ravel_index}; #[test] @@ -42,7 +42,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::core::{ravel_index}; diff --git a/tests/tensor_core/stride/stride_bool_test.cairo b/tests/tensor_core/stride/stride_bool_test.cairo index ed56853ae..bf32cf91b 100644 --- a/tests/tensor_core/stride/stride_bool_test.cairo +++ b/tests/tensor_core/stride/stride_bool_test.cairo @@ -2,7 +2,7 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::{BoolTensor}; use orion::operators::tensor::core::{TensorTrait}; @@ -32,7 +32,7 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::{BoolTensor}; use orion::operators::tensor::core::{TensorTrait}; @@ -64,7 +64,7 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; + use core::array::ArrayTrait; use orion::operators::tensor::{BoolTensor}; use orion::operators::tensor::core::{TensorTrait}; diff --git a/tests/tensor_core/stride/stride_fp_test/stride_fp16x16_test.cairo b/tests/tensor_core/stride/stride_fp_test/stride_fp16x16_test.cairo index 266a619a6..cfad9980c 100644 --- a/tests/tensor_core/stride/stride_fp_test/stride_fp16x16_test.cairo +++ b/tests/tensor_core/stride/stride_fp_test/stride_fp16x16_test.cairo @@ -2,8 +2,8 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -24,8 +24,8 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -47,8 +47,8 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; use orion::operators::tensor::core::{TensorTrait}; diff --git a/tests/tensor_core/stride/stride_fp_test/stride_fp8x23_test.cairo b/tests/tensor_core/stride/stride_fp_test/stride_fp8x23_test.cairo index d7769c23a..f0579942d 100644 --- a/tests/tensor_core/stride/stride_fp_test/stride_fp8x23_test.cairo +++ b/tests/tensor_core/stride/stride_fp_test/stride_fp8x23_test.cairo @@ -2,8 +2,8 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -24,8 +24,8 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -47,8 +47,8 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; use orion::operators::tensor::core::{TensorTrait}; diff --git a/tests/tensor_core/stride/stride_i32_test.cairo b/tests/tensor_core/stride/stride_i32_test.cairo index 66ed6c171..b2778ab24 100644 --- a/tests/tensor_core/stride/stride_i32_test.cairo +++ b/tests/tensor_core/stride/stride_i32_test.cairo @@ -2,8 +2,8 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -24,8 +24,8 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -47,8 +47,8 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::core::{TensorTrait}; diff --git a/tests/tensor_core/stride/stride_u32_test.cairo b/tests/tensor_core/stride/stride_u32_test.cairo index ca7f9a9eb..690d43cc6 100644 --- a/tests/tensor_core/stride/stride_u32_test.cairo +++ b/tests/tensor_core/stride/stride_u32_test.cairo @@ -2,8 +2,8 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -24,8 +24,8 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::core::{TensorTrait}; @@ -47,8 +47,8 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::U32Tensor; use orion::operators::tensor::core::{TensorTrait}; diff --git a/tests/tensor_core/unravel_index.cairo b/tests/tensor_core/unravel_index.cairo index a529d0ba9..e9a7fd80e 100644 --- a/tests/tensor_core/unravel_index.cairo +++ b/tests/tensor_core/unravel_index.cairo @@ -2,8 +2,8 @@ #[cfg(test)] mod tensor_1D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::core::{unravel_index}; @@ -21,8 +21,8 @@ mod tensor_1D { #[cfg(test)] mod tensor_2D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::core::{unravel_index}; @@ -42,8 +42,8 @@ mod tensor_2D { #[cfg(test)] mod tensor_3D { - use array::ArrayTrait; - use array::SpanTrait; + use core::array::ArrayTrait; + use core::array::SpanTrait; use orion::operators::tensor::core::{unravel_index}; From 0afbe72fd04f43635b25cc71e65af4f1ef348d1c Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 9 Dec 2023 19:15:47 +0100 Subject: [PATCH 22/30] chore(cairo_update): fmt --- src/numbers.cairo | 24 +++++----- .../implementations/fp16x16/core.cairo | 4 +- .../implementations/fp16x16/math/comp.cairo | 4 +- .../implementations/fp16x16wide/core.cairo | 4 +- .../fp16x16wide/math/comp.cairo | 4 +- .../implementations/fp32x32/core.cairo | 4 +- .../implementations/fp64x64/core.cairo | 4 +- .../implementations/fp8x23/core.cairo | 4 +- .../implementations/fp8x23/math/comp.cairo | 2 +- .../implementations/fp8x23wide/core.cairo | 4 +- .../fp8x23wide/math/comp.cairo | 2 +- src/numbers/signed_integer/i128.cairo | 4 +- src/numbers/signed_integer/i16.cairo | 4 +- src/numbers/signed_integer/i32.cairo | 4 +- src/numbers/signed_integer/i64.cairo | 4 +- src/numbers/signed_integer/i8.cairo | 4 +- .../tree_classifier_fp16x16.cairo | 4 +- .../tree_classifier_fp32x32.cairo | 4 +- .../tree_classifier_fp64x64.cairo | 4 +- .../tree_classifier_fp8x23.cairo | 4 +- src/operators/tensor.cairo | 4 +- .../tensor/implementations/tensor_bool.cairo | 16 +++++-- .../implementations/tensor_fp16x16.cairo | 20 +++++--- .../implementations/tensor_fp16x16wide.cairo | 20 +++++--- .../implementations/tensor_fp32x32.cairo | 22 +++++---- .../implementations/tensor_fp64x64.cairo | 20 +++++--- .../implementations/tensor_fp8x23.cairo | 20 +++++--- .../implementations/tensor_fp8x23wide.cairo | 22 +++++---- .../tensor/implementations/tensor_i32.cairo | 24 ++++++---- .../tensor/implementations/tensor_i8.cairo | 20 +++++--- .../tensor/math/concat_from_sequence.cairo | 33 +++++++++---- .../tensor/math/gather_elements.cairo | 24 ++++------ src/operators/tensor/math/is_inf.cairo | 48 ++++++++++--------- src/operators/tensor/math/is_nan.cairo | 8 ++-- src/operators/tensor/math/not.cairo | 11 ++--- .../tensor/math/optional_get_element.cairo | 11 ++--- src/operators/tensor/math/reduce_prod.cairo | 4 +- .../tensor/quantization/qlinear_concat.cairo | 1 + 38 files changed, 248 insertions(+), 176 deletions(-) diff --git a/src/numbers.cairo b/src/numbers.cairo index 201a004c7..9b5d3ef8d 100644 --- a/src/numbers.cairo +++ b/src/numbers.cairo @@ -281,7 +281,7 @@ impl FP8x23Number of NumberTrait { fn bitwise_or(lhs: FP8x23, rhs: FP8x23) -> FP8x23 { comp_fp8x23::bitwise_or(lhs, rhs) } - + fn add(lhs: FP8x23, rhs: FP8x23) -> FP8x23 { FP8x23Add::add(lhs, rhs) } @@ -508,7 +508,7 @@ impl FP8x23WNumber of NumberTrait { fn bitwise_or(lhs: FP8x23W, rhs: FP8x23W) -> FP8x23W { comp_fp8x23wide::bitwise_or(lhs, rhs) } - + fn add(lhs: FP8x23W, rhs: FP8x23W) -> FP8x23W { FP8x23WAdd::add(lhs, rhs) } @@ -735,7 +735,7 @@ impl FP16x16Number of NumberTrait { fn bitwise_or(lhs: FP16x16, rhs: FP16x16) -> FP16x16 { comp_fp16x16::bitwise_or(lhs, rhs) } - + fn add(lhs: FP16x16, rhs: FP16x16) -> FP16x16 { FP16x16Add::add(lhs, rhs) } @@ -962,7 +962,7 @@ impl FP16x16WNumber of NumberTrait { fn bitwise_or(lhs: FP16x16W, rhs: FP16x16W) -> FP16x16W { comp_fp16x16wide::bitwise_or(lhs, rhs) } - + fn add(lhs: FP16x16W, rhs: FP16x16W) -> FP16x16W { FP16x16WAdd::add(lhs, rhs) } @@ -1190,7 +1190,7 @@ impl FP64x64Number of NumberTrait { fn bitwise_or(lhs: FP64x64, rhs: FP64x64) -> FP64x64 { comp_fp64x64::bitwise_or(lhs, rhs) } - + fn add(lhs: FP64x64, rhs: FP64x64) -> FP64x64 { FP64x64Add::add(lhs, rhs) } @@ -1418,7 +1418,7 @@ impl FP32x32Number of NumberTrait { fn bitwise_or(lhs: FP32x32, rhs: FP32x32) -> FP32x32 { comp_fp32x32::bitwise_or(lhs, rhs) } - + fn add(lhs: FP32x32, rhs: FP32x32) -> FP32x32 { FP32x32Add::add(lhs, rhs) } @@ -1659,7 +1659,7 @@ impl I8Number of NumberTrait { fn bitwise_or(lhs: i8, rhs: i8) -> i8 { i8_core::i8_bitwise_or(lhs, rhs) } - + fn add(lhs: i8, rhs: i8) -> i8 { i8Add::add(lhs, rhs) } @@ -1900,7 +1900,7 @@ impl i16Number of NumberTrait { fn bitwise_or(lhs: i16, rhs: i16) -> i16 { i16_core::i16_bitwise_or(lhs, rhs) } - + fn add(lhs: i16, rhs: i16) -> i16 { i16Add::add(lhs, rhs) } @@ -2141,7 +2141,7 @@ impl i32Number of NumberTrait { fn bitwise_or(lhs: i32, rhs: i32) -> i32 { i32_core::i32_bitwise_or(lhs, rhs) } - + fn add(lhs: i32, rhs: i32) -> i32 { i32Add::add(lhs, rhs) } @@ -2382,7 +2382,7 @@ impl i64Number of NumberTrait { fn bitwise_or(lhs: i64, rhs: i64) -> i64 { i64_core::i64_bitwise_or(lhs, rhs) } - + fn add(lhs: i64, rhs: i64) -> i64 { i64Add::add(lhs, rhs) } @@ -2624,7 +2624,7 @@ impl i128Number of NumberTrait { fn bitwise_or(lhs: i128, rhs: i128) -> i128 { i128_core::i128_bitwise_or(lhs, rhs) } - + fn add(lhs: i128, rhs: i128) -> i128 { i128Add::add(lhs, rhs) } @@ -2870,7 +2870,7 @@ impl u32Number of NumberTrait { fn bitwise_or(lhs: u32, rhs: u32) -> u32 { lhs | rhs } - + fn add(lhs: u32, rhs: u32) -> u32 { lhs + rhs } diff --git a/src/numbers/fixed_point/implementations/fp16x16/core.cairo b/src/numbers/fixed_point/implementations/fp16x16/core.cairo index 6adecff9b..a4a99bb82 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/core.cairo @@ -212,11 +212,11 @@ impl FP16x16Impl of FixedTrait { } fn is_pos_inf(self: FP16x16) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: FP16x16) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/fixed_point/implementations/fp16x16/math/comp.cairo b/src/numbers/fixed_point/implementations/fp16x16/math/comp.cairo index 458a6e9b2..ddf153f18 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/math/comp.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/math/comp.cairo @@ -122,11 +122,11 @@ mod tests { fn test_bitwise_xor() { let a = FixedTrait::new(225280, false); // 3.4375 let b = FixedTrait::new(4160843776, true); // -2046.5625 - let c = FixedTrait::new(4160880640, true); + let c = FixedTrait::new(4160880640, true); assert(bitwise_xor(a, b) == c, 'bitwise_xor(a,b)') } - + fn test_bitwise_or() { let a = FixedTrait::new(225280, false); // 3.4375 let b = FixedTrait::new(4160843776, true); // -2046.5625 diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo index 65676cb45..c6703b7d3 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo @@ -212,11 +212,11 @@ impl FP16x16WImpl of FixedTrait { } fn is_pos_inf(self: FP16x16W) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: FP16x16W) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/math/comp.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/math/comp.cairo index dac5b929e..50f93edea 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/math/comp.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/math/comp.cairo @@ -122,11 +122,11 @@ mod tests { fn test_bitwise_xor() { let a = FixedTrait::new(225280, false); // 3.4375 let b = FixedTrait::new(4160843776, true); // -2046.5625 - let c = FixedTrait::new(4160880640, true); + let c = FixedTrait::new(4160880640, true); assert(bitwise_xor(a, b) == c, 'bitwise_xor(a,b)') } - + fn test_bitwise_or() { let a = FixedTrait::new(225280, false); // 3.4375 let b = FixedTrait::new(4160843776, true); // -2046.5625 diff --git a/src/numbers/fixed_point/implementations/fp32x32/core.cairo b/src/numbers/fixed_point/implementations/fp32x32/core.cairo index c813852cd..869a8c519 100644 --- a/src/numbers/fixed_point/implementations/fp32x32/core.cairo +++ b/src/numbers/fixed_point/implementations/fp32x32/core.cairo @@ -203,11 +203,11 @@ impl FP32x32Impl of FixedTrait { } fn is_pos_inf(self: FP32x32) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: FP32x32) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/fixed_point/implementations/fp64x64/core.cairo b/src/numbers/fixed_point/implementations/fp64x64/core.cairo index e5daf4920..6cfba5423 100644 --- a/src/numbers/fixed_point/implementations/fp64x64/core.cairo +++ b/src/numbers/fixed_point/implementations/fp64x64/core.cairo @@ -203,11 +203,11 @@ impl FP64x64Impl of FixedTrait { } fn is_pos_inf(self: FP64x64) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: FP64x64) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/fixed_point/implementations/fp8x23/core.cairo b/src/numbers/fixed_point/implementations/fp8x23/core.cairo index 1d2c62d21..dcbfefa96 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/core.cairo @@ -212,11 +212,11 @@ impl FP8x23Impl of FixedTrait { } fn is_pos_inf(self: FP8x23) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: FP8x23) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/fixed_point/implementations/fp8x23/math/comp.cairo b/src/numbers/fixed_point/implementations/fp8x23/math/comp.cairo index b39868957..366f385e8 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/math/comp.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/math/comp.cairo @@ -123,7 +123,7 @@ mod tests { assert(bitwise_xor(a, b) == c, 'bitwise_xor(a,b)') } - + fn test_bitwise_or() { let a = FixedTrait::new(28835840, false); // 3.4375 let b = FixedTrait::new(1639448576, true); // -60.5625 diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo index f266d0f3a..d33ea4524 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo @@ -212,11 +212,11 @@ impl FP8x23WImpl of FixedTrait { } fn is_pos_inf(self: FP8x23W) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: FP8x23W) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/math/comp.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/math/comp.cairo index 8bbb7436c..b2dad2e6d 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/math/comp.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/math/comp.cairo @@ -125,7 +125,7 @@ mod tests { assert(bitwise_xor(a, b) == c, 'bitwise_xor(a,b)') } - + fn test_bitwise_or() { let a = FixedTrait::new(28835840, false); // 3.4375 let b = FixedTrait::new(1639448576, true); // -60.5625 diff --git a/src/numbers/signed_integer/i128.cairo b/src/numbers/signed_integer/i128.cairo index 183a13c94..7d4355367 100644 --- a/src/numbers/signed_integer/i128.cairo +++ b/src/numbers/signed_integer/i128.cairo @@ -63,11 +63,11 @@ impl i128Impl of IntegerTrait { } fn is_pos_inf(self: i128) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: i128) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/signed_integer/i16.cairo b/src/numbers/signed_integer/i16.cairo index 2d1cf6e59..50c68529e 100644 --- a/src/numbers/signed_integer/i16.cairo +++ b/src/numbers/signed_integer/i16.cairo @@ -63,11 +63,11 @@ impl i16Impl of IntegerTrait { } fn is_pos_inf(self: i16) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: i16) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/signed_integer/i32.cairo b/src/numbers/signed_integer/i32.cairo index b36e59cc0..e5821967f 100644 --- a/src/numbers/signed_integer/i32.cairo +++ b/src/numbers/signed_integer/i32.cairo @@ -66,11 +66,11 @@ impl i32Impl of IntegerTrait { } fn is_pos_inf(self: i32) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: i32) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/signed_integer/i64.cairo b/src/numbers/signed_integer/i64.cairo index 59c6053bd..d0ce98ea1 100644 --- a/src/numbers/signed_integer/i64.cairo +++ b/src/numbers/signed_integer/i64.cairo @@ -63,11 +63,11 @@ impl i64Impl of IntegerTrait { } fn is_pos_inf(self: i64) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: i64) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/numbers/signed_integer/i8.cairo b/src/numbers/signed_integer/i8.cairo index f05c82a62..016469b05 100644 --- a/src/numbers/signed_integer/i8.cairo +++ b/src/numbers/signed_integer/i8.cairo @@ -69,11 +69,11 @@ impl i8Impl of IntegerTrait { } fn is_pos_inf(self: i8) -> bool { - self.is_inf() && !self.sign + self.is_inf() && !self.sign } fn is_neg_inf(self: i8) -> bool { - self.is_inf() && self.sign + self.is_inf() && self.sign } } diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo index ab1a7cf17..daed37322 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo @@ -1,4 +1,6 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; +use orion::operators::ml::tree_classifier::core::{ + TreeClassifier, TreeClassifierTrait, predict, predict_proba +}; use orion::operators::ml::tree_classifier::core; use orion::numbers::FP16x16; diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo index edd00f3ad..c6ce558c0 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo @@ -1,4 +1,6 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; +use orion::operators::ml::tree_classifier::core::{ + TreeClassifier, TreeClassifierTrait, predict, predict_proba +}; use orion::operators::ml::tree_classifier::core; use orion::numbers::{FP32x32, FP32x32Impl}; diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo index 29dcded68..6c9c24b5f 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo @@ -1,4 +1,6 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; +use orion::operators::ml::tree_classifier::core::{ + TreeClassifier, TreeClassifierTrait, predict, predict_proba +}; use orion::operators::ml::tree_classifier::core; use orion::numbers::{FP64x64, FP64x64Impl}; diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo index 419a8e959..defe4b4ed 100644 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo +++ b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo @@ -1,4 +1,6 @@ -use orion::operators::ml::tree_classifier::core::{TreeClassifier, TreeClassifierTrait, predict, predict_proba}; +use orion::operators::ml::tree_classifier::core::{ + TreeClassifier, TreeClassifierTrait, predict, predict_proba +}; use orion::operators::ml::tree_classifier::core; use orion::numbers::FP8x23; diff --git a/src/operators/tensor.cairo b/src/operators/tensor.cairo index b8fc7a91f..ff60768bc 100644 --- a/src/operators/tensor.cairo +++ b/src/operators/tensor.cairo @@ -36,7 +36,5 @@ use orion::operators::tensor::implementations::tensor_u32::{ U32Tensor, U32TensorAdd, U32TensorSub, U32TensorMul, U32TensorDiv, U32TensorPartialEq }; -use orion::operators::tensor::implementations::tensor_bool::{ - BoolTensor, BoolTensorPartialEq -}; +use orion::operators::tensor::implementations::tensor_bool::{BoolTensor, BoolTensorPartialEq}; diff --git a/src/operators/tensor/implementations/tensor_bool.cairo b/src/operators/tensor/implementations/tensor_bool.cairo index 7392a8624..da17b38a9 100644 --- a/src/operators/tensor/implementations/tensor_bool.cairo +++ b/src/operators/tensor/implementations/tensor_bool.cairo @@ -353,7 +353,7 @@ impl BoolTensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { panic(array!['not supported!']) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { panic(array!['not supported!']) } @@ -374,10 +374,12 @@ impl BoolTensor of TensorTrait { constant_of_shape(shape, value) } - fn gather_elements(self: @Tensor, indices: Tensor, axis: Option) -> Tensor { + fn gather_elements( + self: @Tensor, indices: Tensor, axis: Option + ) -> Tensor { math::gather_elements::gather_elements(self, indices, axis) } - + fn sequence_length(self: Array>) -> Tensor { math::sequence_length::sequence_length(self) } @@ -440,7 +442,9 @@ impl BoolTensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { panic(array!['not supported!']) } @@ -448,7 +452,9 @@ impl BoolTensor of TensorTrait { panic(array!['not supported!']) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { panic(array!['not supported!']) } } diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index 9b69de648..0d0318cd7 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -10,7 +10,9 @@ use orion::operators::tensor::core::{ }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP16x16}; -use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; +use orion::operators::tensor::implementations::{ + tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor +}; impl FP16x16Tensor of TensorTrait { fn new(shape: Span, data: Span) -> Tensor { @@ -391,7 +393,7 @@ impl FP16x16Tensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -433,11 +435,11 @@ impl FP16x16Tensor of TensorTrait { ) -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - + fn gather_elements( self: @Tensor, indices: Tensor, axis: Option @@ -501,15 +503,19 @@ impl FP16x16Tensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { - math::is_nan::is_nan(self) + math::is_nan::is_nan(self) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index 1add4a7d8..f5172a006 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -10,7 +10,9 @@ use orion::operators::tensor::core::{ }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP16x16W}; -use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; +use orion::operators::tensor::implementations::{ + tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor +}; impl FP16x16WTensor of TensorTrait { fn new(shape: Span, data: Span) -> Tensor { @@ -355,7 +357,7 @@ impl FP16x16WTensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -399,11 +401,11 @@ impl FP16x16WTensor of TensorTrait { fn reduce_l2(self: @Tensor, axis: usize, keepdims: bool) -> Tensor { math::reduce_l2::reduce_l2(self, axis, keepdims) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - + fn gather_elements( self: @Tensor, indices: Tensor, axis: Option @@ -467,15 +469,19 @@ impl FP16x16WTensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { - math::is_nan::is_nan(self) + math::is_nan::is_nan(self) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/implementations/tensor_fp32x32.cairo b/src/operators/tensor/implementations/tensor_fp32x32.cairo index 3c30fdb59..05fdebecb 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -11,7 +11,9 @@ use orion::operators::tensor::core::{ use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP32x32, FP32x32Impl}; use orion::numbers::fixed_point::implementations::fp32x32::core::ONE; -use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; +use orion::operators::tensor::implementations::{ + tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor +}; impl FP32x32Tensor of TensorTrait { fn new(shape: Span, data: Span) -> Tensor { @@ -392,7 +394,7 @@ impl FP32x32Tensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -434,18 +436,18 @@ impl FP32x32Tensor of TensorTrait { fn reduce_l2(self: @Tensor, axis: usize, keepdims: bool) -> Tensor { math::reduce_l2::reduce_l2(self, axis, keepdims) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - + fn gather_elements( self: @Tensor, indices: Tensor, axis: Option ) -> Tensor { math::gather_elements::gather_elements(self, indices, axis) } - + fn sequence_length(self: Array>) -> Tensor { math::sequence_length::sequence_length(self) } @@ -502,15 +504,19 @@ impl FP32x32Tensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { - math::is_nan::is_nan(self) + math::is_nan::is_nan(self) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index a4d10f354..40b78c7d3 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -11,7 +11,9 @@ use orion::operators::tensor::core::{ use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, 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}; +use orion::operators::tensor::implementations::{ + tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor +}; impl FP64x64Tensor of TensorTrait { fn new(shape: Span, data: Span) -> Tensor { @@ -392,7 +394,7 @@ impl FP64x64Tensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -434,11 +436,11 @@ impl FP64x64Tensor of TensorTrait { ) -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - + fn gather_elements( self: @Tensor, indices: Tensor, axis: Option @@ -503,15 +505,19 @@ impl FP64x64Tensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { - math::is_nan::is_nan(self) + math::is_nan::is_nan(self) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/implementations/tensor_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index 4eff810ec..62af2b3e4 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -10,7 +10,9 @@ use orion::operators::tensor::core::{ }; use orion::operators::tensor::{math, linalg, quantization, core as core_ops, ml}; use orion::numbers::{i8, i32, NumberTrait, FP8x23}; -use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; +use orion::operators::tensor::implementations::{ + tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor +}; impl FP8x23Tensor of TensorTrait { fn new(shape: Span, data: Span) -> Tensor { @@ -392,7 +394,7 @@ impl FP8x23Tensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -470,11 +472,11 @@ impl FP8x23Tensor of TensorTrait { fn array_feature_extractor(self: @Tensor, indices: Tensor) -> Tensor { ml::array_feature_extractor::array_feature_extractor(*self, indices) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - + fn reduce_min( self: @Tensor, @@ -501,15 +503,19 @@ impl FP8x23Tensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { - math::is_nan::is_nan(self) + math::is_nan::is_nan(self) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo index c64588713..85d8aa2fb 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -10,7 +10,9 @@ use orion::operators::tensor::core::{ }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP8x23W}; -use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor}; +use orion::operators::tensor::implementations::{ + tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor +}; impl FP8x23WTensor of TensorTrait { fn new(shape: Span, data: Span) -> Tensor { @@ -342,7 +344,7 @@ impl FP8x23WTensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -385,11 +387,11 @@ impl FP8x23WTensor of TensorTrait { ) -> Tensor { math::scatter::scatter(self, updates, indices, axis, reduction) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - + fn gather_elements( self: @Tensor, indices: Tensor, axis: Option @@ -454,15 +456,19 @@ impl FP8x23WTensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { - math::is_inf::is_inf(self, detect_negative, detect_positive) + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { + math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { - math::is_nan::is_nan(self) + math::is_nan::is_nan(self) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/implementations/tensor_i32.cairo b/src/operators/tensor/implementations/tensor_i32.cairo index 8ad9128f5..a25cef6ee 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -10,7 +10,9 @@ use orion::operators::tensor::core::{ }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i32, i8, NumberTrait}; -use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_i8::I8Tensor, tensor_bool::BoolTensor}; +use orion::operators::tensor::implementations::{ + tensor_u32::U32Tensor, tensor_i8::I8Tensor, tensor_bool::BoolTensor +}; impl I32Tensor of TensorTrait { @@ -390,7 +392,7 @@ impl I32Tensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -430,14 +432,16 @@ impl I32Tensor of TensorTrait { } fn reduce_l2(self: @Tensor, axis: usize, keepdims: bool) -> Tensor { - panic(array!['not supported!']) + panic(array!['not supported!']) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - fn gather_elements(self: @Tensor, indices: Tensor, axis: Option) -> Tensor { + fn gather_elements( + self: @Tensor, indices: Tensor, axis: Option + ) -> Tensor { math::gather_elements::gather_elements(self, indices, axis) } @@ -496,15 +500,19 @@ impl I32Tensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { - math::is_inf::is_inf(self, detect_negative, detect_positive) + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { + math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index a03db837a..94f32f70b 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -390,7 +390,7 @@ impl I8Tensor of TensorTrait { fn bitwise_xor(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_xor::bitwise_xor(self, other) } - + fn bitwise_or(self: @Tensor, other: @Tensor) -> Tensor { math::bitwise_or::bitwise_or(self, other) } @@ -430,14 +430,16 @@ impl I8Tensor of TensorTrait { } fn reduce_l2(self: @Tensor, axis: usize, keepdims: bool) -> Tensor { - panic(array!['not supported!']) + panic(array!['not supported!']) } - + fn not(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - fn gather_elements(self: @Tensor, indices: Tensor, axis: Option) -> Tensor { + fn gather_elements( + self: @Tensor, indices: Tensor, axis: Option + ) -> Tensor { math::gather_elements::gather_elements(self, indices, axis) } @@ -496,15 +498,19 @@ impl I8Tensor of TensorTrait { math::sequence_insert::sequence_insert(self, tensor, position) } - fn is_inf(self: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { - math::is_inf::is_inf(self, detect_negative, detect_positive) + fn is_inf( + self: @Tensor, detect_negative: Option, detect_positive: Option + ) -> Tensor { + math::is_inf::is_inf(self, detect_negative, detect_positive) } fn is_nan(self: @Tensor) -> Tensor { panic(array!['not supported!']) } - fn concat_from_sequence(sequence: Array>, axis: i32, new_axis: Option) -> Tensor { + fn concat_from_sequence( + sequence: Array>, axis: i32, new_axis: Option + ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } } diff --git a/src/operators/tensor/math/concat_from_sequence.cairo b/src/operators/tensor/math/concat_from_sequence.cairo index 89f46900e..692d4a1a8 100644 --- a/src/operators/tensor/math/concat_from_sequence.cairo +++ b/src/operators/tensor/math/concat_from_sequence.cairo @@ -10,10 +10,11 @@ use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::math::concat::concat; -fn concat_from_sequence, impl TCopy: Copy, impl TDrop: Drop,>( +fn concat_from_sequence< + T, impl TTensorTrait: TensorTrait, impl TCopy: Copy, impl TDrop: Drop, +>( sequence: Array>, axis: i32, new_axis: Option ) -> Tensor { - let new_axis: usize = match new_axis { Option::Some(val) => { assert(val == 0 || val == 1, 'new_axis must be 0 or 1'); @@ -24,7 +25,7 @@ fn concat_from_sequence, impl TCopy: Copy, impl TCopy: Copy, impl TCopy: Copy, impl TDrop: Drop,>( +fn concat_without_new_axis< + T, impl TTensorTrait: TensorTrait, impl TCopy: Copy, impl TDrop: Drop, +>( sequence: Array>, axis: i32, r: usize ) -> Tensor { let axis_is_negative: bool = axis.sign; let mut axis_value: u32 = axis.mag; /// assert in range [-r, r - 1] - assert((axis_is_negative == false && axis_value <= r - 1) || (axis_is_negative == true && axis_value <= r), 'Out of bounds for dimension'); + assert( + (axis_is_negative == false && axis_value <= r - 1) + || (axis_is_negative == true && axis_value <= r), + 'Out of bounds for dimension' + ); if axis_is_negative == true { axis_value = r - axis_value @@ -49,14 +56,20 @@ fn concat_without_new_axis, impl TCopy: Cop } -fn concat_with_new_axis, impl TCopy: Copy, impl TDrop: Drop,>( +fn concat_with_new_axis< + T, impl TTensorTrait: TensorTrait, impl TCopy: Copy, impl TDrop: Drop, +>( sequence: Array>, axis: i32, r: usize ) -> Tensor { let axis_is_negative: bool = axis.sign; let mut axis_value: u32 = axis.mag; /// assert in range [-r - 1, r] - assert((axis_is_negative == false && axis_value <= r) || (axis_is_negative == true && axis_value <= r + 1), 'Out of bounds for dimension'); + assert( + (axis_is_negative == false && axis_value <= r) + || (axis_is_negative == true && axis_value <= r + 1), + 'Out of bounds for dimension' + ); if axis_is_negative == true { if axis_value > r { @@ -80,7 +93,9 @@ fn concat_with_new_axis, impl TCopy: Copy, impl TCopy: Copy, impl TDrop: Drop,>( +fn add_new_dimension< + T, impl TTensorTrait: TensorTrait, impl TCopy: Copy, impl TDrop: Drop, +>( mut tensor: Tensor, axis: usize ) -> Tensor { let mut tensor_shape = tensor.shape; @@ -91,7 +106,7 @@ fn add_new_dimension, impl TCopy: Copy, Option::Some(tensor_shape_value) => { if tensor_shape_counter == axis { new_tensor_shape.append(1); - } + } new_tensor_shape.append(*tensor_shape_value); tensor_shape_counter += 1; }, diff --git a/src/operators/tensor/math/gather_elements.cairo b/src/operators/tensor/math/gather_elements.cairo index f5cc92784..5032eb2b9 100644 --- a/src/operators/tensor/math/gather_elements.cairo +++ b/src/operators/tensor/math/gather_elements.cairo @@ -14,12 +14,7 @@ use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// Cf: TensorTrait::gather docstring -fn gather_elements< - T, - impl TTensorTrait: TensorTrait, - impl TCopy: Copy, - impl TDrop: Drop, ->( +fn gather_elements, impl TCopy: Copy, impl TDrop: Drop,>( self: @Tensor, indices: Tensor, axis: Option ) -> Tensor { let axis = match axis { @@ -30,7 +25,7 @@ fn gather_elements< let data_rank = (*self.shape).len(); let indices_rank = (indices.shape).len(); - assert((data_rank == indices_rank ) & (indices_rank >= 1), 'must be same rank'); + assert((data_rank == indices_rank) & (indices_rank >= 1), 'must be same rank'); let axis_shape = *(*self.shape).at(axis); let ind_max = indices.data.max().unwrap(); @@ -40,7 +35,6 @@ fn gather_elements< let mut data_shape = *self.shape; let mut data_shape_clone = data_shape.clone(); - let mut ind = 0; loop { match data_shape.pop_front() { @@ -99,16 +93,18 @@ fn gather_elements< loop { match data_indices.pop_front() { Option::Some(val) => { - if (axis == 0){ - let value = *val * inner_loop.into() + (i % inner_loop); + if (axis == 0) { + let value = *val * inner_loop.into() + (i % inner_loop); output_data.append(*self.data[value]); } - if ((axis == indices_rank-1) & (axis != 0)) { + if ((axis == indices_rank - 1) & (axis != 0)) { let value = *val + *outer_loop * (i / *outer_loop_index); output_data.append(*self.data[value]); } - if ((axis != indices_rank-1) & (axis != 0)) { - let value = *val * (looper ) + (i % looper) + (multiplier * (i / multiplier_index)); + if ((axis != indices_rank - 1) & (axis != 0)) { + let value = *val * (looper) + + (i % looper) + + (multiplier * (i / multiplier_index)); output_data.append(*self.data[value]); } i += 1; @@ -119,4 +115,4 @@ fn gather_elements< let mut output_tensor = TensorTrait::::new(indices.shape, output_data.span()); return output_tensor; -} \ No newline at end of file +} diff --git a/src/operators/tensor/math/is_inf.cairo b/src/operators/tensor/math/is_inf.cairo index 17312e985..69d6b252a 100644 --- a/src/operators/tensor/math/is_inf.cairo +++ b/src/operators/tensor/math/is_inf.cairo @@ -14,23 +14,29 @@ fn is_inf< impl TTensor: TensorTrait, impl TCopy: Copy, impl TDrop: Drop ->(x: @Tensor, detect_negative: Option, detect_positive: Option) -> Tensor { +>( + x: @Tensor, detect_negative: Option, detect_positive: Option +) -> Tensor { let neg_opt = match detect_negative { - Option::Some(val) => { - if val == 0 { 0 } else { 1 } - }, - Option::None => 1, + Option::Some(val) => { if val == 0 { + 0 + } else { + 1 + } }, + Option::None => 1, }; let pos_opt = match detect_positive { - Option::Some(val) => { - if val == 0 { 0 } else { 1 } - }, - Option::None => 1, + Option::Some(val) => { if val == 0 { + 0 + } else { + 1 + } }, + Option::None => 1, }; if neg_opt == 0 && pos_opt == 0 { - return TensorTrait::new(*x.shape, ArrayTrait::::new().span()); + return TensorTrait::new(*x.shape, ArrayTrait::::new().span()); } if neg_opt == 0 && pos_opt == 1 { @@ -38,16 +44,14 @@ fn is_inf< } if neg_opt == 1 && pos_opt == 0 { - return is_neg_inf(x); + return is_neg_inf(x); } let mut data_result = ArrayTrait::::new(); let mut y: Span = *x.data; loop { match y.pop_front() { - Option::Some(item) => { - data_result.append((*item).is_inf()); - }, + Option::Some(item) => { data_result.append((*item).is_inf()); }, Option::None(_) => { break; } }; }; @@ -63,14 +67,14 @@ fn is_pos_inf< impl TTensor: TensorTrait, impl TCopy: Copy, impl TDrop: Drop ->(x: @Tensor) -> Tensor { +>( + x: @Tensor +) -> Tensor { let mut data_result = ArrayTrait::::new(); let mut y: Span = *x.data; loop { match y.pop_front() { - Option::Some(item) => { - data_result.append((*item).is_pos_inf()); - }, + Option::Some(item) => { data_result.append((*item).is_pos_inf()); }, Option::None(_) => { break; } }; }; @@ -86,14 +90,14 @@ fn is_neg_inf< impl TTensor: TensorTrait, impl TCopy: Copy, impl TDrop: Drop ->(x: @Tensor) -> Tensor { +>( + x: @Tensor +) -> Tensor { let mut data_result = ArrayTrait::::new(); let mut y: Span = *x.data; loop { match y.pop_front() { - Option::Some(item) => { - data_result.append((*item).is_neg_inf()); - }, + Option::Some(item) => { data_result.append((*item).is_neg_inf()); }, Option::None(_) => { break; } }; }; diff --git a/src/operators/tensor/math/is_nan.cairo b/src/operators/tensor/math/is_nan.cairo index ccd0a39d4..9d81d79c6 100644 --- a/src/operators/tensor/math/is_nan.cairo +++ b/src/operators/tensor/math/is_nan.cairo @@ -14,14 +14,14 @@ fn is_nan< impl TTensor: TensorTrait, impl TCopy: Copy, impl TDrop: Drop ->(x: @Tensor) -> Tensor { +>( + x: @Tensor +) -> Tensor { let mut data_result = ArrayTrait::::new(); let mut y: Span = *x.data; loop { match y.pop_front() { - Option::Some(item) => { - data_result.append((*item).is_nan()); - }, + Option::Some(item) => { data_result.append((*item).is_nan()); }, Option::None(_) => { break; } }; }; diff --git a/src/operators/tensor/math/not.cairo b/src/operators/tensor/math/not.cairo index 83a859769..2dd074c51 100644 --- a/src/operators/tensor/math/not.cairo +++ b/src/operators/tensor/math/not.cairo @@ -8,18 +8,13 @@ use orion::operators::tensor::implementations::{tensor_bool::BoolTensor}; // Cf TensorTrait::not docstring -fn not (mut z: Tensor) -> Tensor { +fn not(mut z: Tensor) -> Tensor { let mut data_result = ArrayTrait::::new(); loop { match z.data.pop_front() { - Option::Some(item) => { - data_result.append((!*item)); - - }, - Option::None(_) => { - break; - } + Option::Some(item) => { data_result.append((!*item)); }, + Option::None(_) => { break; } }; }; diff --git a/src/operators/tensor/math/optional_get_element.cairo b/src/operators/tensor/math/optional_get_element.cairo index e0c988ffe..b8d508d1c 100644 --- a/src/operators/tensor/math/optional_get_element.cairo +++ b/src/operators/tensor/math/optional_get_element.cairo @@ -17,15 +17,12 @@ fn optional_get_element< mut z: Tensor, index: usize ) -> Tensor { let mut data_result = ArrayTrait::::new(); - + // use of match to get element within and out the array bound match z.data.get(index) { - Option::Some(item) => { data_result.append((*item.unbox())); }, - Option::None(_) => { - - } - }; - + Option::Some(item) => { data_result.append((*item.unbox())); }, + Option::None(_) => {} + }; return TensorTrait::::new(z.shape, data_result.span()); } diff --git a/src/operators/tensor/math/reduce_prod.cairo b/src/operators/tensor/math/reduce_prod.cairo index a25067e53..5e1111303 100644 --- a/src/operators/tensor/math/reduce_prod.cairo +++ b/src/operators/tensor/math/reduce_prod.cairo @@ -82,7 +82,9 @@ fn reduce_prod< let mut index: usize = 0; loop { let output_indices = unravel_index(index, output_shape); - let current_sum = accumulate_production::(*self.data, *self.shape, output_indices, axis); + let current_sum = accumulate_production::< + T + >(*self.data, *self.shape, output_indices, axis); output_data.append(current_sum); diff --git a/src/operators/tensor/quantization/qlinear_concat.cairo b/src/operators/tensor/quantization/qlinear_concat.cairo index 4e200cd17..b5505091c 100644 --- a/src/operators/tensor/quantization/qlinear_concat.cairo +++ b/src/operators/tensor/quantization/qlinear_concat.cairo @@ -194,3 +194,4 @@ fn dequantize_tensors< /// ///fn concat(tensors: Span>, axis: usize,) -> Tensor; + From dc1435779ddbcec839065b66996ee28d2ed77190 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 9 Dec 2023 19:20:55 +0100 Subject: [PATCH 23/30] chore(cairo_update): update import in nodegen --- nodegen/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodegen/helpers.py b/nodegen/helpers.py index a5b84efb3..041f480bd 100644 --- a/nodegen/helpers.py +++ b/nodegen/helpers.py @@ -186,7 +186,7 @@ def find_all_types(tensors: list[Tensor | Sequence]) -> list[Dtype]: trait_to_ref = { Trait.TENSOR: [ - "array::{ArrayTrait, SpanTrait}", + "core::array::{ArrayTrait, SpanTrait}", "orion::operators::tensor::{TensorTrait, Tensor}", ], Trait.NN: [ From 690cceec25050555583bef3cc4060a1af4067f4b Mon Sep 17 00:00:00 2001 From: akhercha Date: Sat, 9 Dec 2023 21:23:20 +0100 Subject: [PATCH 24/30] chore(cairo_update): orion --- Scarb.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scarb.toml b/Scarb.toml index 39c7ffadf..0389be458 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -10,7 +10,8 @@ homepage = "https://github.com/gizatechxyz/orion" alexandria_merkle_tree = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "01a7690" } alexandria_data_structures = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "01a7690" } alexandria_sorting = { git = "https://github.com/keep-starknet-strange/alexandria.git", rev = "01a7690" } -cubit = { git = "https://github.com/akhercha/cubit.git", rev = "d3869a3" } # TODO: update rev +# TODO: update to https://github.com/influenceth/cubit & change rev +cubit = { git = "https://github.com/akhercha/cubit.git", rev = "d3869a3" } [scripts] sierra = "cairo-compile . -r" From 8ac4534e71d9e060113ab6ee36a09c0f2c6fd56d Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sun, 10 Dec 2023 10:30:41 +0000 Subject: [PATCH 25/30] docs: update README.md [skip ci] --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42dc82c17..59bda0824 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ # Orion: An Open-source Framework for Validity and ZK ML ✨ -[![All Contributors](https://img.shields.io/badge/all_contributors-25-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-28-orange.svg?style=flat-square)](#contributors-) Orion is an open-source, community-driven framework dedicated to Provable Machine Learning. It provides essential components and a new ONNX runtime for building verifiable Machine Learning models using [STARKs](https://starkware.co/stark/). @@ -102,6 +102,7 @@ Thanks goes to these wonderful people: Mahmoud Mohajer
Mahmoud Mohajer

💻 HappyTomatoo
HappyTomatoo

🐛 Bilgin Koçak
Bilgin Koçak

💻 + akhercha
akhercha

💻 From 0217cb27ba4a63947695613d58794bcae0bceaa3 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sun, 10 Dec 2023 10:30:42 +0000 Subject: [PATCH 26/30] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index b10e46074..8a41f9cbe 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -230,7 +230,7 @@ "name": "Mahmoud Mohajer", "avatar_url": "https://avatars.githubusercontent.com/u/89094323?v=4", "profile": "https://medium.com/@mohajermahmoud3", - "contributions": [ + "contributions": [ "code" ] }, @@ -251,6 +251,15 @@ "contributions": [ "code" ] + }, + { + "login": "akhercha", + "name": "akhercha", + "avatar_url": "https://avatars.githubusercontent.com/u/22559023?v=4", + "profile": "https://t.me/notaihe", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, From cf9fd9455e4214302f209b77530eb1e54855a080 Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 10 Dec 2023 12:56:38 +0100 Subject: [PATCH 27/30] feat(tensor_unique): Fixed imports --- src/numbers/signed_integer/i32.cairo | 1 + src/numbers/signed_integer/i8.cairo | 1 + .../tensor/manipulation/unique.cairo | 6 +- tests/nodes.cairo | 1664 ++++++++--------- 4 files changed, 837 insertions(+), 835 deletions(-) diff --git a/src/numbers/signed_integer/i32.cairo b/src/numbers/signed_integer/i32.cairo index 9a5cdda99..939505701 100644 --- a/src/numbers/signed_integer/i32.cairo +++ b/src/numbers/signed_integer/i32.cairo @@ -1,6 +1,7 @@ use core::option::OptionTrait; use core::traits::TryInto; use core::traits::Into; +use core::debug::PrintTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i8::i8; diff --git a/src/numbers/signed_integer/i8.cairo b/src/numbers/signed_integer/i8.cairo index 789db2674..49fde6297 100644 --- a/src/numbers/signed_integer/i8.cairo +++ b/src/numbers/signed_integer/i8.cairo @@ -1,4 +1,5 @@ use core::traits::Into; +use core::debug::PrintTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i32::i32; diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index 2b94f96af..c23a38c8f 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -1,9 +1,9 @@ use core::traits::Into; use core::traits::IndexView; -use option::OptionTrait; -use array::{SpanTrait, ArrayTrait}; +use core::option::OptionTrait; +use core::array::{SpanTrait, ArrayTrait}; -use debug::PrintTrait; +use core::debug::PrintTrait; use alexandria_data_structures::array_ext::SpanTraitExt; use alexandria_sorting::merge_sort::merge; diff --git a/tests/nodes.cairo b/tests/nodes.cairo index 60cbcf753..7259b1aa3 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -1,832 +1,832 @@ -mod abs_fp16x16; -mod abs_fp8x23; -mod abs_i32; -mod abs_i8; -mod acos_fp16x16; -mod acos_fp8x23; -mod acosh_fp16x16; -mod acosh_fp8x23; -mod add_fp16x16; -mod add_fp16x16_broadcast; -mod add_fp8x23; -mod add_fp8x23_broadcast; -mod add_i32; -mod add_i32_broadcast; -mod add_i8; -mod add_i8_broadcast; -mod add_u32; -mod add_u32_broadcast; -mod argmax_fp16x16_1D_default; -mod argmax_fp16x16_1D_keepdims_false; -mod argmax_fp16x16_1D_last_index; -mod argmax_fp16x16_2D_default; -mod argmax_fp16x16_2D_keepdims_false; -mod argmax_fp16x16_2D_last_index; -mod argmax_fp16x16_3D_default; -mod argmax_fp16x16_3D_keepdims_false; -mod argmax_fp16x16_3D_last_index; -mod argmax_fp8x23_1D_default; -mod argmax_fp8x23_1D_keepdims_false; -mod argmax_fp8x23_1D_last_index; -mod argmax_fp8x23_2D_default; -mod argmax_fp8x23_2D_keepdims_false; -mod argmax_fp8x23_2D_last_index; -mod argmax_fp8x23_3D_default; -mod argmax_fp8x23_3D_keepdims_false; -mod argmax_fp8x23_3D_last_index; -mod argmax_i32_1D_default; -mod argmax_i32_1D_keepdims_false; -mod argmax_i32_1D_last_index; -mod argmax_i32_2D_default; -mod argmax_i32_2D_keepdims_false; -mod argmax_i32_2D_last_index; -mod argmax_i32_3D_default; -mod argmax_i32_3D_keepdims_false; -mod argmax_i32_3D_last_index; -mod argmax_i8_1D_default; -mod argmax_i8_1D_keepdims_false; -mod argmax_i8_1D_last_index; -mod argmax_i8_2D_default; -mod argmax_i8_2D_keepdims_false; -mod argmax_i8_2D_last_index; -mod argmax_i8_3D_default; -mod argmax_i8_3D_keepdims_false; -mod argmax_i8_3D_last_index; -mod argmax_u32_1D_default; -mod argmax_u32_1D_keepdims_false; -mod argmax_u32_1D_last_index; -mod argmax_u32_2D_default; -mod argmax_u32_2D_keepdims_false; -mod argmax_u32_2D_last_index; -mod argmax_u32_3D_default; -mod argmax_u32_3D_keepdims_false; -mod argmax_u32_3D_last_index; -mod argmin_fp16x16_1D_default; -mod argmin_fp16x16_1D_keepdims_false; -mod argmin_fp16x16_1D_last_index; -mod argmin_fp16x16_2D_default; -mod argmin_fp16x16_2D_keepdims_false; -mod argmin_fp16x16_2D_last_index; -mod argmin_fp16x16_3D_default; -mod argmin_fp16x16_3D_keepdims_false; -mod argmin_fp16x16_3D_last_index; -mod argmin_fp8x23_1D_default; -mod argmin_fp8x23_1D_keepdims_false; -mod argmin_fp8x23_1D_last_index; -mod argmin_fp8x23_2D_default; -mod argmin_fp8x23_2D_keepdims_false; -mod argmin_fp8x23_2D_last_index; -mod argmin_fp8x23_3D_default; -mod argmin_fp8x23_3D_keepdims_false; -mod argmin_fp8x23_3D_last_index; -mod argmin_i32_1D_default; -mod argmin_i32_1D_keepdims_false; -mod argmin_i32_1D_last_index; -mod argmin_i32_2D_default; -mod argmin_i32_2D_keepdims_false; -mod argmin_i32_2D_last_index; -mod argmin_i32_3D_default; -mod argmin_i32_3D_keepdims_false; -mod argmin_i32_3D_last_index; -mod argmin_i8_1D_default; -mod argmin_i8_1D_keepdims_false; -mod argmin_i8_1D_last_index; -mod argmin_i8_2D_default; -mod argmin_i8_2D_keepdims_false; -mod argmin_i8_2D_last_index; -mod argmin_i8_3D_default; -mod argmin_i8_3D_keepdims_false; -mod argmin_i8_3D_last_index; -mod argmin_u32_1D_default; -mod argmin_u32_1D_keepdims_false; -mod argmin_u32_1D_last_index; -mod argmin_u32_2D_default; -mod argmin_u32_2D_keepdims_false; -mod argmin_u32_2D_last_index; -mod argmin_u32_3D_default; -mod argmin_u32_3D_keepdims_false; -mod argmin_u32_3D_last_index; -mod asin_fp16x16; -mod asin_fp8x23; -mod asinh_fp16x16; -mod asinh_fp8x23; -mod atan_fp16x16; -mod atan_fp8x23; -mod ceil_fp16x16; -mod ceil_fp8x23; -mod concat_fp16x16_1d; -mod concat_fp16x16_2d; -mod concat_fp16x16_3d_default; -mod concat_fp16x16_3d_axis_1; -mod concat_fp16x16_3d_axis_2; -mod concat_fp16x16_3d_three_tensors_axis_1; -mod concat_fp16x16_3d_three_tensors_axis_2; -mod concat_fp8x23_1d; -mod concat_fp8x23_2d; -mod concat_fp8x23_3d_default; -mod concat_fp8x23_3d_axis_1; -mod concat_fp8x23_3d_axis_2; -mod concat_fp8x23_3d_three_tensors_axis_1; -mod concat_fp8x23_3d_three_tensors_axis_2; -mod concat_i32_1d; -mod concat_i32_2d; -mod concat_i32_3d_default; -mod concat_i32_3d_axis_1; -mod concat_i32_3d_axis_2; -mod concat_i32_3d_three_tensors_axis_1; -mod concat_i32_3d_three_tensors_axis_2; -mod concat_i8_1d; -mod concat_i8_2d; -mod concat_i8_3d_default; -mod concat_i8_3d_axis_1; -mod concat_i8_3d_axis_2; -mod concat_i8_3d_three_tensors_axis_1; -mod concat_i8_3d_three_tensors_axis_2; -mod concat_u32_1d; -mod concat_u32_2d; -mod concat_u32_3d_default; -mod concat_u32_3d_axis_1; -mod concat_u32_3d_axis_2; -mod concat_u32_3d_three_tensors_axis_1; -mod concat_u32_3d_three_tensors_axis_2; -mod cos_fp16x16; -mod cos_fp8x23; -mod cosh_fp16x16; -mod cosh_fp8x23; -mod cumsum_fp16x16_1d_default; -mod cumsum_fp16x16_1d_exclusive; -mod cumsum_fp16x16_1d_reverse; -mod cumsum_fp16x16_1d_reverse_exclusive; -mod cumsum_fp16x16_2d_axis_0; -mod cumsum_fp16x16_2d_axis_1; -mod cumsum_fp8x23_1d_default; -mod cumsum_fp8x23_1d_exclusive; -mod cumsum_fp8x23_1d_reverse; -mod cumsum_fp8x23_1d_reverse_exclusive; -mod cumsum_fp8x23_2d_axis_0; -mod cumsum_fp8x23_2d_axis_1; -mod cumsum_i32_1d_default; -mod cumsum_i32_1d_exclusive; -mod cumsum_i32_1d_reverse; -mod cumsum_i32_1d_reverse_exclusive; -mod cumsum_i32_2d_axis_0; -mod cumsum_i32_2d_axis_1; -mod cumsum_i8_1d_default; -mod cumsum_i8_1d_exclusive; -mod cumsum_i8_1d_reverse; -mod cumsum_i8_1d_reverse_exclusive; -mod cumsum_i8_2d_axis_0; -mod cumsum_i8_2d_axis_1; -mod cumsum_u32_1d_default; -mod cumsum_u32_1d_exclusive; -mod cumsum_u32_1d_reverse; -mod cumsum_u32_1d_reverse_exclusive; -mod cumsum_u32_2d_axis_0; -mod cumsum_u32_2d_axis_1; -mod div_fp16x16; -mod div_fp16x16_broadcast; -mod div_fp8x23; -mod div_fp8x23_broadcast; -mod div_i32; -mod div_i32_broadcast; -mod div_i8; -mod div_i8_broadcast; -mod div_u32; -mod div_u32_broadcast; -mod equal_fp16x16; -mod equal_fp16x16_broadcast; -mod equal_fp8x23; -mod equal_fp8x23_broadcast; -mod equal_i32; -mod equal_i32_broadcast; -mod equal_i8; -mod equal_i8_broadcast; -mod equal_u32; -mod equal_u32_broadcast; -mod exp_fp16x16; -mod exp_fp8x23; -mod less_equal_fp16x16; -mod less_equal_fp16x16_broadcast; -mod less_equal_fp8x23; -mod less_equal_fp8x23_broadcast; -mod less_equal_i32; -mod less_equal_i32_broadcast; -mod less_equal_i8; -mod less_equal_i8_broadcast; -mod less_equal_u32; -mod less_equal_u32_broadcast; -mod greater_fp16x16; -mod greater_fp16x16_broadcast; -mod greater_fp8x23; -mod greater_fp8x23_broadcast; -mod greater_i32; -mod greater_i32_broadcast; -mod greater_i8; -mod greater_i8_broadcast; -mod greater_u32; -mod greater_u32_broadcast; -mod leaky_relu_fp16x16; -mod leaky_relu_fp8x23; -mod linear_fp16x16; -mod linear_fp8x23; -mod linear_i32; -mod linear_i8; -mod linear_u32; -mod log_fp16x16; -mod log_fp8x23; -mod logsoftmax_fp16x16_axis_0; -mod logsoftmax_fp16x16_axis_1; -mod logsoftmax_fp8x23_axis_0; -mod logsoftmax_fp8x23_axis_1; -mod matmul_fp16x16_1d; -mod matmul_fp16x16_2x2; -mod matmul_fp16x16_2x1; -mod matmul_fp16x16_1x2; -mod matmul_fp8x23_1d; -mod matmul_fp8x23_2x2; -mod matmul_fp8x23_2x1; -mod matmul_fp8x23_1x2; -mod matmul_i32_1d; -mod matmul_i32_2x2; -mod matmul_i32_2x1; -mod matmul_i32_1x2; -mod matmul_i8_1d; -mod matmul_i8_2x2; -mod matmul_i8_2x1; -mod matmul_i8_1x2; -mod matmul_u32_1d; -mod matmul_u32_2x2; -mod matmul_u32_2x1; -mod matmul_u32_1x2; -mod mul_fp16x16; -mod mul_fp16x16_broadcast; -mod mul_fp8x23; -mod mul_fp8x23_broadcast; -mod mul_i32; -mod mul_i32_broadcast; -mod mul_i8; -mod mul_i8_broadcast; -mod mul_u32; -mod mul_u32_broadcast; -mod or_fp16x16; -mod or_fp16x16_broadcast; -mod or_fp8x23; -mod or_fp8x23_broadcast; -mod or_i32; -mod or_i32_broadcast; -mod or_i8; -mod or_i8_broadcast; -mod or_u32; -mod or_u32_broadcast; -mod reduce_sum_fp16x16_1D; -mod reduce_sum_fp16x16_2D_default; -mod reduce_sum_fp16x16_2D_keepdims; -mod reduce_sum_fp16x16_2D_axis_1; -mod reduce_sum_fp8x23_1D; -mod reduce_sum_fp8x23_2D_default; -mod reduce_sum_fp8x23_2D_keepdims; -mod reduce_sum_fp8x23_2D_axis_1; -mod reduce_sum_i32_1D; -mod reduce_sum_i32_2D_default; -mod reduce_sum_i32_2D_keepdims; -mod reduce_sum_i32_2D_axis_1; -mod reduce_sum_i8_1D; -mod reduce_sum_i8_2D_default; -mod reduce_sum_i8_2D_keepdims; -mod reduce_sum_i8_2D_axis_1; -mod reduce_sum_u32_1D; -mod reduce_sum_u32_2D_default; -mod reduce_sum_u32_2D_keepdims; -mod reduce_sum_u32_2D_axis_1; -mod relu_fp16x16; -mod relu_fp8x23; -mod relu_i32; -mod relu_i8; -mod sigmoid_fp16x16; -mod sigmoid_fp8x23; -mod sin_fp16x16; -mod sin_fp8x23; -mod sinh_fp16x16; -mod sinh_fp8x23; -mod softmax_fp16x16; -mod softmax_fp8x23; -mod softplus_fp8x23; -mod softplus_fp16x16; -mod softsign_fp8x23; -mod softsign_fp16x16; -mod sqrt_fp16x16; -mod sqrt_fp8x23; -mod sub_fp16x16; -mod sub_fp16x16_broadcast; -mod sub_fp8x23; -mod sub_fp8x23_broadcast; -mod sub_i32; -mod sub_i32_broadcast; -mod sub_i8; -mod sub_i8_broadcast; -mod sub_u32; -mod sub_u32_broadcast; -mod tanh_fp16x16; -mod tanh_fp8x23; -mod transpose_fp16x16_2d; -mod transpose_fp16x16_3d; -mod transpose_fp8x23_2d; -mod transpose_fp8x23_3d; -mod transpose_i32_2d; -mod transpose_i32_3d; -mod transpose_i8_2d; -mod transpose_i8_3d; -mod transpose_u32_2d; -mod transpose_u32_3d; -mod xor_fp16x16; -mod xor_fp16x16_broadcast; -mod xor_fp8x23; -mod xor_fp8x23_broadcast; -mod xor_i32; -mod xor_i32_broadcast; -mod xor_i8; -mod xor_i8_broadcast; -mod xor_u32; -mod xor_u32_broadcast; -mod less_fp16x16; -mod less_fp16x16_broadcast; -mod less_fp8x23; -mod less_fp8x23_broadcast; -mod less_i32; -mod less_i32_broadcast; -mod less_i8; -mod less_i8_broadcast; -mod less_u32; -mod less_u32_broadcast; -mod greater_equal_fp16x16; -mod greater_equal_fp16x16_broadcast; -mod greater_equal_fp8x23; -mod greater_equal_fp8x23_broadcast; -mod greater_equal_i32; -mod greater_equal_i32_broadcast; -mod greater_equal_i8; -mod greater_equal_i8_broadcast; -mod greater_equal_u32; -mod greater_equal_u32_broadcast; -mod slice_fp16x16_2d; -mod slice_fp16x16_3d; -mod slice_fp8x23_2d; -mod slice_fp8x23_3d; -mod slice_i32_2d; -mod slice_i32_3d; -mod slice_i8_2d; -mod slice_i8_3d; -mod slice_u32_2d; -mod slice_u32_3d; -mod gather_fp8x23_3d_default; -mod gather_fp8x23_3d_axis1; -mod gather_fp8x23_3d_axis2; -mod gather_fp16x16_3d_default; -mod gather_fp16x16_3d_axis1; -mod gather_fp16x16_3d_axis2; -mod gather_i8_3d_default; -mod gather_i8_3d_axis1; -mod gather_i8_3d_axis2; -mod gather_i32_3d_default; -mod gather_i32_3d_axis1; -mod gather_i32_3d_axis2; -mod gather_u32_3d_default; -mod gather_u32_3d_axis1; -mod gather_u32_3d_axis2; -mod nonzero_fp16x16_2d; -mod nonzero_fp16x16_3d; -mod nonzero_fp8x23_2d; -mod nonzero_fp8x23_3d; -mod nonzero_i32_2d; -mod nonzero_i32_3d; -mod nonzero_i8_2d; -mod nonzero_i8_3d; -mod nonzero_u32_2d; -mod nonzero_u32_3d; -mod squeeze_fP16x16; -mod squeeze_fP8x23; -mod squeeze_i32; -mod squeeze_i8; -mod squeeze_u32; -mod unsqueeze_fp16x16_2d; -mod unsqueeze_fp16x16_3d; -mod unsqueeze_fp8x23_2d; -mod unsqueeze_fp8x23_3d; -mod unsqueeze_i32_2d; -mod unsqueeze_i32_3d; -mod unsqueeze_i8_2d; -mod unsqueeze_i8_3d; -mod unsqueeze_u32_2d; -mod unsqueeze_u32_3d; -mod sign_fP16x16; -mod sign_fP8x23; -mod sign_fail; -mod sign_i32; -mod sign_i8; -mod clip_fp16x16_2d; -mod clip_fp16x16_3d; -mod clip_fp8x23_2d; -mod clip_fp8x23_3d; -mod clip_i32_2d; -mod clip_i32_3d; -mod clip_i8_2d; -mod clip_i8_3d; -mod clip_u32_2d; -mod clip_u32_3d; -mod identity_fP16x16; -mod identity_fP8x23; -mod identity_i32; -mod identity_i8; -mod identity_u32; -mod thresholded_relu_fp16x16; -mod thresholded_relu_fp8x23; -mod hard_sigmoid_fp8x23; -mod hard_sigmoid_fp16x16; -mod neg_fp16x16; -mod neg_fp8x23; -mod neg_i32; -mod neg_i8; -mod gemm_all_attributes; -mod gemm_alpha; -mod gemm_beta; -mod gemm_default_matrix_bias; -mod gemm_default_vector_bias; -mod gemm_default_no_bias; -mod gemm_transposeA; -mod gemm_transposeB; -mod min_fp16x16_three_tensors; -mod min_fp16x16_broadcast_three_tensors; -mod min_fp16x16_two_tensors; -mod min_fp16x16_broadcast_two_tensors; -mod min_fp8x23_three_tensors; -mod min_fp8x23_broadcast_three_tensors; -mod min_fp8x23_two_tensors; -mod min_fp8x23_broadcast_two_tensors; -mod min_i32_three_tensors; -mod min_i32_broadcast_three_tensors; -mod min_i32_two_tensors; -mod min_i32_broadcast_two_tensors; -mod min_i8_three_tensors; -mod min_i8_broadcast_three_tensors; -mod min_i8_two_tensors; -mod min_i8_broadcast_two_tensors; -mod min_u32_three_tensors; -mod min_u32_broadcast_three_tensors; -mod min_u32_two_tensors; -mod min_u32_broadcast_two_tensors; -mod where_fp16x16; -mod where_fp16x16_broadcast; -mod where_fp8x23; -mod where_fp8x23_broadcast; -mod where_i32; -mod where_i32_broadcast; -mod where_i8; -mod where_i8_broadcast; -mod where_u32; -mod where_u32_broadcast; -mod not_bool; -mod round_fp16x16; -mod round_fp8x23; -mod max_fp16x16_three_tensors; -mod max_fp16x16_broadcast_three_tensors; -mod max_fp16x16_two_tensors; -mod max_fp16x16_broadcast_two_tensors; -mod max_fp8x23_three_tensors; -mod max_fp8x23_broadcast_three_tensors; -mod max_fp8x23_two_tensors; -mod max_fp8x23_broadcast_two_tensors; -mod max_i32_three_tensors; -mod max_i32_broadcast_three_tensors; -mod max_i32_two_tensors; -mod max_i32_broadcast_two_tensors; -mod max_i8_three_tensors; -mod max_i8_broadcast_three_tensors; -mod max_i8_two_tensors; -mod max_i8_broadcast_two_tensors; -mod max_u32_three_tensors; -mod max_u32_broadcast_three_tensors; -mod max_u32_two_tensors; -mod max_u32_broadcast_two_tensors; -mod scatter_fp16x16_3d_default; -mod scatter_fp16x16_3d_axis1; -mod scatter_fp16x16_3d_axis1_add; -mod scatter_fp8x23_default; -mod scatter_fp8x23_axis1; -mod scatter_fp8x23_mul; -mod scatter_i8_default; -mod scatter_i8_axis1; -mod scatter_i8_axis1_max; -mod scatter_u32_default; -mod scatter_u32_axis1; -mod scatter_u32_add; -mod array_feature_extractor_1D_i32; -mod array_feature_extractor_1D_fp8x23; -mod array_feature_extractor_1D_fp16x16; -mod array_feature_extractor_2D_i32; -mod array_feature_extractor_2D_fp8x23; -mod array_feature_extractor_2D_fp16x16; -mod array_feature_extractor_3D_i32; -mod array_feature_extractor_3D_fp8x23; -mod array_feature_extractor_3D_fp16x16; -mod binarizer_fp16x16; -mod binarizer_fp8x23; -mod tril_fp16x16; -mod tril_fp16x16_neg; -mod tril_fp16x16_one_row; -mod tril_fp16x16_out_neg; -mod tril_fp16x16_out_pos; -mod tril_fp16x16_pos; -mod tril_fp16x16_square; -mod tril_fp16x16_square_neg; -mod tril_fp16x16_zero; -mod triu_fp16x16; -mod triu_fp16x16_neg; -mod triu_fp16x16_one_row; -mod triu_fp16x16_out_neg; -mod triu_fp16x16_out_pos; -mod triu_fp16x16_pos; -mod triu_fp16x16_square; -mod triu_fp16x16_square_neg; -mod triu_fp16x16_zero; -mod tril_fp8x23; -mod tril_fp8x23_neg; -mod tril_fp8x23_one_row; -mod tril_fp8x23_out_neg; -mod tril_fp8x23_out_pos; -mod tril_fp8x23_pos; -mod tril_fp8x23_square; -mod tril_fp8x23_square_neg; -mod tril_fp8x23_zero; -mod triu_fp8x23; -mod triu_fp8x23_neg; -mod triu_fp8x23_one_row; -mod triu_fp8x23_out_neg; -mod triu_fp8x23_out_pos; -mod triu_fp8x23_pos; -mod triu_fp8x23_square; -mod triu_fp8x23_square_neg; -mod triu_fp8x23_zero; -mod tril_i32; -mod tril_neg_i32; -mod tril_i32_one_row; -mod tril_i32_out_neg; -mod tril_i32_out_pos; -mod tril_i32_pos; -mod tril_i32_square; -mod tril_i32_square_neg; -mod tril_i32_zero; -mod triu_i32; -mod triu_i32_neg; -mod triu_i32_one_row; -mod triu_i32_out_neg; -mod triu_i32_out_pos; -mod triu_i32_pos; -mod triu_i32_square; -mod triu_i32_square_neg; -mod triu_i32_zero; -mod tril_i8; -mod tril_i8_neg; -mod tril_i8_one_row; -mod tril_i8_out_neg; -mod tril_i8_out_pos; -mod tril_i8_pos; -mod tril_i8_square; -mod tril_i8_square_neg; -mod tril_i8_zero; -mod triu_i8; -mod triu_i8_neg; -mod triu_i8_one_row; -mod triu_i8_out_neg; -mod triu_i8_out_pos; -mod triu_i8_pos; -mod triu_i8_square; -mod triu_i8_square_neg; -mod triu_i8_zero; -mod tril_u32; -mod tril_u32_neg; -mod tril_u32_one_row; -mod tril_u32_out_neg; -mod tril_u32_out_pos; -mod tril_u32_pos; -mod tril_u32_square; -mod tril_u32_square_neg; -mod tril_u32_zero; -mod triu_u32; -mod triu_u32_neg; -mod triu_u32_one_row; -mod triu_u32_out_neg; -mod triu_u32_out_pos; -mod triu_u32_pos; -mod triu_u32_square; -mod triu_u32_square_neg; -mod triu_u32_zero; -mod reduce_sum_square_fp16x16_export_do_not_keepdims; -mod reduce_sum_square_fp16x16_export_keepdims; -mod reduce_sum_square_fp16x16_export_negative_axes_keepdims; -mod reduce_sum_square_fp8x23_export_do_not_keepdims; -mod reduce_sum_square_fp8x23_export_keepdims; -mod reduce_sum_square_fp8x23_export_negative_axes_keepdims; -mod reduce_sum_square_i32_export_do_not_keepdims; -mod reduce_sum_square_i32_export_keepdims; -mod reduce_sum_square_i32_export_negative_axes_keepdims; -mod reduce_sum_square_i8_export_do_not_keepdims; -mod reduce_sum_square_i8_export_keepdims; -mod reduce_sum_square_i8_export_negative_axes_keepdims; -mod reduce_sum_square_u32_export_do_not_keepdims; -mod reduce_sum_square_u32_export_keepdims; -mod reduce_sum_square_u32_export_negative_axes_keepdims; -mod reduce_l2_fp16x16_export_do_not_keepdims; -mod reduce_l2_fp16x16_export_keepdims; -mod reduce_l2_fp16x16_export_negative_axes_keepdims; -mod reduce_l2_fp8x23_export_do_not_keepdims; -mod reduce_l2_fp8x23_export_keepdims; -mod reduce_l2_fp8x23_export_negative_axes_keepdims; -mod reduce_l1_fp16x16_export_do_not_keepdims; -mod reduce_l1_fp16x16_export_keepdims; -mod reduce_l1_fp16x16_export_negative_axes_keepdims; -mod reduce_l1_fp8x23_export_do_not_keepdims; -mod reduce_l1_fp8x23_export_keepdims; -mod reduce_l1_fp8x23_export_negative_axes_keepdims; -mod reduce_l1_i32_export_do_not_keepdims; -mod reduce_l1_i32_export_keepdims; -mod reduce_l1_i32_export_negative_axes_keepdims; -mod reduce_l1_i8_export_do_not_keepdims; -mod reduce_l1_i8_export_keepdims; -mod reduce_l1_i8_export_negative_axes_keepdims; -mod reduce_l1_u32_export_do_not_keepdims; -mod reduce_l1_u32_export_keepdims; -mod reduce_l1_u32_export_negative_axes_keepdims; -mod reduce_prod_fp16x16_1D; -mod reduce_prod_fp16x16_2D_default; -mod reduce_prod_fp16x16_2D_keepdims; -mod reduce_prod_fp16x16_2D_axis_1; -mod reduce_prod_fp8x23_1D; -mod reduce_prod_fp8x23_2D_default; -mod reduce_prod_fp8x23_2D_keepdims; -mod reduce_prod_fp8x23_2D_axis_1; -mod reduce_prod_i32_1D; -mod reduce_prod_i32_2D_default; -mod reduce_prod_i32_2D_keepdims; -mod reduce_prod_i32_2D_axis_1; -mod reduce_prod_i8_1D; -mod reduce_prod_i8_2D_default; -mod reduce_prod_i8_2D_keepdims; -mod reduce_prod_i8_2D_axis_1; -mod reduce_prod_u32_1D; -mod reduce_prod_u32_2D_default; -mod reduce_prod_u32_2D_keepdims; -mod reduce_prod_u32_2D_axis_1; -mod gather_elements_fp16x16_3d_default; -mod gather_elements_fp16x16_3d_axis1; -mod gather_elements_fp16x16_3d_axis2; -mod gather_elements_fp8x23_3d_default; -mod gather_elements_fp8x23_3d_axis1; -mod gather_elements_fp8x23_3d_axis2; -mod gather_elements_i8_3d_default; -mod gather_elements_i8_3d_axis1; -mod gather_elements_i32_3d_default; -mod gather_elements_i32_3d_axis1; -mod gather_elements_i32_3d_axis2; -mod gather_elements_u32_default; -mod gather_elements_u32_axis1; -mod gather_elements_u32_axis2; -mod gather_elements_u32_axis3; -mod sequence_length_fp16x16; -mod sequence_length_fp16x16_broadcast; -mod sequence_length_fp8x23; -mod sequence_length_fp8x23_broadcast; -mod sequence_length_i32; -mod sequence_length_i32_broadcast; -mod sequence_length_i8; -mod sequence_length_i8_broadcast; -mod sequence_length_u32; -mod sequence_length_u32_broadcast; -mod sequence_at_u32_positive; -mod sequence_at_u32_negative; -mod sequence_at_fp16x16_positive; -mod sequence_at_fp16x16_negative; -mod sequence_at_fp8x23_positive; -mod sequence_at_fp8x23_negative; -mod sequence_at_i32_positive; -mod sequence_at_i32_negative; -mod sequence_at_i8_positive; -mod sequence_at_i8_negative; -mod reduce_min_fp16x16_1D; -mod reduce_min_fp16x16_2D_default; -mod reduce_min_fp16x16_2D_keepdims; -mod reduce_min_fp16x16_2D_axis_1; -mod reduce_min_fp8x23_1D; -mod reduce_min_fp8x23_2D_default; -mod reduce_min_fp8x23_2D_keepdims; -mod reduce_min_fp8x23_2D_axis_1; -mod reduce_min_i32_1D; -mod reduce_min_i32_2D_default; -mod reduce_min_i32_2D_keepdims; -mod reduce_min_i32_2D_axis_1; -mod reduce_min_i8_1D; -mod reduce_min_i8_2D_default; -mod reduce_min_i8_2D_keepdims; -mod reduce_min_i8_2D_axis_1; -mod reduce_min_u32_1D; -mod reduce_min_u32_2D_default; -mod reduce_min_u32_2D_keepdims; -mod reduce_min_u32_2D_axis_1; -mod sequence_construct_fp16x16; -mod sequence_construct_fp8x23; -mod sequence_construct_i32; -mod sequence_construct_i8; -mod sequence_construct_u32; -mod shrink_hard_fp16x16; -mod shrink_soft_fp16x16; -mod shrink_hard_fp8x23; -mod shrink_soft_fp8x23; -mod sequence_empty_fp16x16; -mod sequence_empty_fp8x23; -mod sequence_empty_i32; -mod sequence_empty_i8; -mod sequence_empty_u32; -mod reduce_mean_fp16x16_1D; -mod reduce_mean_fp16x16_2D_default; -mod reduce_mean_fp16x16_2D_keepdims; -mod reduce_mean_fp16x16_2D_axis_1; -mod reduce_mean_fp8x23_1D; -mod reduce_mean_fp8x23_2D_default; -mod reduce_mean_fp8x23_2D_keepdims; -mod reduce_mean_fp8x23_2D_axis_1; -mod reduce_mean_i32_1D; -mod reduce_mean_i32_2D_default; -mod reduce_mean_i32_2D_keepdims; -mod reduce_mean_i32_2D_axis_1; -mod reduce_mean_i8_1D; -mod reduce_mean_i8_2D_default; -mod reduce_mean_i8_2D_keepdims; -mod reduce_mean_i8_2D_axis_1; -mod reduce_mean_u32_1D; -mod reduce_mean_u32_2D_default; -mod reduce_mean_u32_2D_keepdims; -mod reduce_mean_u32_2D_axis_1; -mod pow_fp16x16; -mod pow_fp16x16_broadcast; -mod pow_fp8x23; -mod pow_fp8x23_broadcast; -mod sequence_erase_u32_positive; -mod sequence_erase_u32_negative; -mod sequence_erase_u32_empty; -mod sequence_erase_fp16x16_positive; -mod sequence_erase_fp16x16_negative; -mod sequence_erase_fp16x16_empty; -mod sequence_erase_fp8x23_positive; -mod sequence_erase_fp8x23_negative; -mod sequence_erase_fp8x23_empty; -mod sequence_erase_i32_positive; -mod sequence_erase_i32_negative; -mod sequence_erase_i32_empty; -mod sequence_erase_i8_positive; -mod sequence_erase_i8_negative; -mod sequence_erase_i8_empty; -mod sequence_insert_fp16x16; -mod sequence_insert_fp8x23; -mod sequence_insert_i32; -mod sequence_insert_i8; -mod sequence_insert_u32; -mod concat_from_sequence_fp8x23_new_axis_zero; -mod concat_from_sequence_fp8x23_new_axis_one; -mod concat_from_sequence_fp8x23_new_axis_default; -mod concat_from_sequence_fp16x16_new_axis_zero; -mod concat_from_sequence_fp16x16_new_axis_one; -mod concat_from_sequence_fp16x16_new_axis_default; -mod concat_from_sequence_i32_new_axis_zero; -mod concat_from_sequence_i32_new_axis_one; -mod concat_from_sequence_i32_new_axis_default; -mod concat_from_sequence_i8_new_axis_zero; -mod concat_from_sequence_i8_new_axis_one; -mod concat_from_sequence_i8_new_axis_default; -mod concat_from_sequence_u32_new_axis_zero; -mod concat_from_sequence_u32_new_axis_one; -mod concat_from_sequence_u32_new_axis_default; -mod is_nan_fp16x16; -mod is_nan_fp8x23; -mod is_inf_fp16x16; -mod is_inf_fp8x23; -mod is_inf_i32; -mod is_inf_i8; -mod is_inf_u32; -mod is_pos_inf_fp16x16; -mod is_neg_inf_fp16x16; -mod is_pos_inf_fp8x23; -mod is_neg_inf_fp8x23; -mod is_pos_inf_i32; -mod is_neg_inf_i32; -mod is_pos_inf_i8; -mod is_neg_inf_i8; -mod and_bool; -mod unique_fp16x16_without_axis_sorted; -mod unique_fp16x16_with_axis_zero_sorted; -mod unique_u32_example; -mod unique_u32_example_two; -mod unique_u32_without_axis_sorted; -mod unique_u32_without_axis_not_sorted; -mod unique_u32_with_axis_zero_sorted; -mod unique_u32_with_axis_zero_not_sorted; -mod unique_u32_with_axis_one_sorted; -mod unique_u32_with_axis_one_not_sorted; +// mod abs_fp16x16; +// mod abs_fp8x23; +// mod abs_i32; +// mod abs_i8; +// mod acos_fp16x16; +// mod acos_fp8x23; +// mod acosh_fp16x16; +// mod acosh_fp8x23; +// mod add_fp16x16; +// mod add_fp16x16_broadcast; +// mod add_fp8x23; +// mod add_fp8x23_broadcast; +// mod add_i32; +// mod add_i32_broadcast; +// mod add_i8; +// mod add_i8_broadcast; +// mod add_u32; +// mod add_u32_broadcast; +// mod argmax_fp16x16_1D_default; +// mod argmax_fp16x16_1D_keepdims_false; +// mod argmax_fp16x16_1D_last_index; +// mod argmax_fp16x16_2D_default; +// mod argmax_fp16x16_2D_keepdims_false; +// mod argmax_fp16x16_2D_last_index; +// mod argmax_fp16x16_3D_default; +// mod argmax_fp16x16_3D_keepdims_false; +// mod argmax_fp16x16_3D_last_index; +// mod argmax_fp8x23_1D_default; +// mod argmax_fp8x23_1D_keepdims_false; +// mod argmax_fp8x23_1D_last_index; +// mod argmax_fp8x23_2D_default; +// mod argmax_fp8x23_2D_keepdims_false; +// mod argmax_fp8x23_2D_last_index; +// mod argmax_fp8x23_3D_default; +// mod argmax_fp8x23_3D_keepdims_false; +// mod argmax_fp8x23_3D_last_index; +// mod argmax_i32_1D_default; +// mod argmax_i32_1D_keepdims_false; +// mod argmax_i32_1D_last_index; +// mod argmax_i32_2D_default; +// mod argmax_i32_2D_keepdims_false; +// mod argmax_i32_2D_last_index; +// mod argmax_i32_3D_default; +// mod argmax_i32_3D_keepdims_false; +// mod argmax_i32_3D_last_index; +// mod argmax_i8_1D_default; +// mod argmax_i8_1D_keepdims_false; +// mod argmax_i8_1D_last_index; +// mod argmax_i8_2D_default; +// mod argmax_i8_2D_keepdims_false; +// mod argmax_i8_2D_last_index; +// mod argmax_i8_3D_default; +// mod argmax_i8_3D_keepdims_false; +// mod argmax_i8_3D_last_index; +// mod argmax_u32_1D_default; +// mod argmax_u32_1D_keepdims_false; +// mod argmax_u32_1D_last_index; +// mod argmax_u32_2D_default; +// mod argmax_u32_2D_keepdims_false; +// mod argmax_u32_2D_last_index; +// mod argmax_u32_3D_default; +// mod argmax_u32_3D_keepdims_false; +// mod argmax_u32_3D_last_index; +// mod argmin_fp16x16_1D_default; +// mod argmin_fp16x16_1D_keepdims_false; +// mod argmin_fp16x16_1D_last_index; +// mod argmin_fp16x16_2D_default; +// mod argmin_fp16x16_2D_keepdims_false; +// mod argmin_fp16x16_2D_last_index; +// mod argmin_fp16x16_3D_default; +// mod argmin_fp16x16_3D_keepdims_false; +// mod argmin_fp16x16_3D_last_index; +// mod argmin_fp8x23_1D_default; +// mod argmin_fp8x23_1D_keepdims_false; +// mod argmin_fp8x23_1D_last_index; +// mod argmin_fp8x23_2D_default; +// mod argmin_fp8x23_2D_keepdims_false; +// mod argmin_fp8x23_2D_last_index; +// mod argmin_fp8x23_3D_default; +// mod argmin_fp8x23_3D_keepdims_false; +// mod argmin_fp8x23_3D_last_index; +// mod argmin_i32_1D_default; +// mod argmin_i32_1D_keepdims_false; +// mod argmin_i32_1D_last_index; +// mod argmin_i32_2D_default; +// mod argmin_i32_2D_keepdims_false; +// mod argmin_i32_2D_last_index; +// mod argmin_i32_3D_default; +// mod argmin_i32_3D_keepdims_false; +// mod argmin_i32_3D_last_index; +// mod argmin_i8_1D_default; +// mod argmin_i8_1D_keepdims_false; +// mod argmin_i8_1D_last_index; +// mod argmin_i8_2D_default; +// mod argmin_i8_2D_keepdims_false; +// mod argmin_i8_2D_last_index; +// mod argmin_i8_3D_default; +// mod argmin_i8_3D_keepdims_false; +// mod argmin_i8_3D_last_index; +// mod argmin_u32_1D_default; +// mod argmin_u32_1D_keepdims_false; +// mod argmin_u32_1D_last_index; +// mod argmin_u32_2D_default; +// mod argmin_u32_2D_keepdims_false; +// mod argmin_u32_2D_last_index; +// mod argmin_u32_3D_default; +// mod argmin_u32_3D_keepdims_false; +// mod argmin_u32_3D_last_index; +// mod asin_fp16x16; +// mod asin_fp8x23; +// mod asinh_fp16x16; +// mod asinh_fp8x23; +// mod atan_fp16x16; +// mod atan_fp8x23; +// mod ceil_fp16x16; +// mod ceil_fp8x23; +// mod concat_fp16x16_1d; +// mod concat_fp16x16_2d; +// mod concat_fp16x16_3d_default; +// mod concat_fp16x16_3d_axis_1; +// mod concat_fp16x16_3d_axis_2; +// mod concat_fp16x16_3d_three_tensors_axis_1; +// mod concat_fp16x16_3d_three_tensors_axis_2; +// mod concat_fp8x23_1d; +// mod concat_fp8x23_2d; +// mod concat_fp8x23_3d_default; +// mod concat_fp8x23_3d_axis_1; +// mod concat_fp8x23_3d_axis_2; +// mod concat_fp8x23_3d_three_tensors_axis_1; +// mod concat_fp8x23_3d_three_tensors_axis_2; +// mod concat_i32_1d; +// mod concat_i32_2d; +// mod concat_i32_3d_default; +// mod concat_i32_3d_axis_1; +// mod concat_i32_3d_axis_2; +// mod concat_i32_3d_three_tensors_axis_1; +// mod concat_i32_3d_three_tensors_axis_2; +// mod concat_i8_1d; +// mod concat_i8_2d; +// mod concat_i8_3d_default; +// mod concat_i8_3d_axis_1; +// mod concat_i8_3d_axis_2; +// mod concat_i8_3d_three_tensors_axis_1; +// mod concat_i8_3d_three_tensors_axis_2; +// mod concat_u32_1d; +// mod concat_u32_2d; +// mod concat_u32_3d_default; +// mod concat_u32_3d_axis_1; +// mod concat_u32_3d_axis_2; +// mod concat_u32_3d_three_tensors_axis_1; +// mod concat_u32_3d_three_tensors_axis_2; +// mod cos_fp16x16; +// mod cos_fp8x23; +// mod cosh_fp16x16; +// mod cosh_fp8x23; +// mod cumsum_fp16x16_1d_default; +// mod cumsum_fp16x16_1d_exclusive; +// mod cumsum_fp16x16_1d_reverse; +// mod cumsum_fp16x16_1d_reverse_exclusive; +// mod cumsum_fp16x16_2d_axis_0; +// mod cumsum_fp16x16_2d_axis_1; +// mod cumsum_fp8x23_1d_default; +// mod cumsum_fp8x23_1d_exclusive; +// mod cumsum_fp8x23_1d_reverse; +// mod cumsum_fp8x23_1d_reverse_exclusive; +// mod cumsum_fp8x23_2d_axis_0; +// mod cumsum_fp8x23_2d_axis_1; +// mod cumsum_i32_1d_default; +// mod cumsum_i32_1d_exclusive; +// mod cumsum_i32_1d_reverse; +// mod cumsum_i32_1d_reverse_exclusive; +// mod cumsum_i32_2d_axis_0; +// mod cumsum_i32_2d_axis_1; +// mod cumsum_i8_1d_default; +// mod cumsum_i8_1d_exclusive; +// mod cumsum_i8_1d_reverse; +// mod cumsum_i8_1d_reverse_exclusive; +// mod cumsum_i8_2d_axis_0; +// mod cumsum_i8_2d_axis_1; +// mod cumsum_u32_1d_default; +// mod cumsum_u32_1d_exclusive; +// mod cumsum_u32_1d_reverse; +// mod cumsum_u32_1d_reverse_exclusive; +// mod cumsum_u32_2d_axis_0; +// mod cumsum_u32_2d_axis_1; +// mod div_fp16x16; +// mod div_fp16x16_broadcast; +// mod div_fp8x23; +// mod div_fp8x23_broadcast; +// mod div_i32; +// mod div_i32_broadcast; +// mod div_i8; +// mod div_i8_broadcast; +// mod div_u32; +// mod div_u32_broadcast; +// mod equal_fp16x16; +// mod equal_fp16x16_broadcast; +// mod equal_fp8x23; +// mod equal_fp8x23_broadcast; +// mod equal_i32; +// mod equal_i32_broadcast; +// mod equal_i8; +// mod equal_i8_broadcast; +// mod equal_u32; +// mod equal_u32_broadcast; +// mod exp_fp16x16; +// mod exp_fp8x23; +// mod less_equal_fp16x16; +// mod less_equal_fp16x16_broadcast; +// mod less_equal_fp8x23; +// mod less_equal_fp8x23_broadcast; +// mod less_equal_i32; +// mod less_equal_i32_broadcast; +// mod less_equal_i8; +// mod less_equal_i8_broadcast; +// mod less_equal_u32; +// mod less_equal_u32_broadcast; +// mod greater_fp16x16; +// mod greater_fp16x16_broadcast; +// mod greater_fp8x23; +// mod greater_fp8x23_broadcast; +// mod greater_i32; +// mod greater_i32_broadcast; +// mod greater_i8; +// mod greater_i8_broadcast; +// mod greater_u32; +// mod greater_u32_broadcast; +// mod leaky_relu_fp16x16; +// mod leaky_relu_fp8x23; +// mod linear_fp16x16; +// mod linear_fp8x23; +// mod linear_i32; +// mod linear_i8; +// mod linear_u32; +// mod log_fp16x16; +// mod log_fp8x23; +// mod logsoftmax_fp16x16_axis_0; +// mod logsoftmax_fp16x16_axis_1; +// mod logsoftmax_fp8x23_axis_0; +// mod logsoftmax_fp8x23_axis_1; +// mod matmul_fp16x16_1d; +// mod matmul_fp16x16_2x2; +// mod matmul_fp16x16_2x1; +// mod matmul_fp16x16_1x2; +// mod matmul_fp8x23_1d; +// mod matmul_fp8x23_2x2; +// mod matmul_fp8x23_2x1; +// mod matmul_fp8x23_1x2; +// mod matmul_i32_1d; +// mod matmul_i32_2x2; +// mod matmul_i32_2x1; +// mod matmul_i32_1x2; +// mod matmul_i8_1d; +// mod matmul_i8_2x2; +// mod matmul_i8_2x1; +// mod matmul_i8_1x2; +// mod matmul_u32_1d; +// mod matmul_u32_2x2; +// mod matmul_u32_2x1; +// mod matmul_u32_1x2; +// mod mul_fp16x16; +// mod mul_fp16x16_broadcast; +// mod mul_fp8x23; +// mod mul_fp8x23_broadcast; +// mod mul_i32; +// mod mul_i32_broadcast; +// mod mul_i8; +// mod mul_i8_broadcast; +// mod mul_u32; +// mod mul_u32_broadcast; +// mod or_fp16x16; +// mod or_fp16x16_broadcast; +// mod or_fp8x23; +// mod or_fp8x23_broadcast; +// mod or_i32; +// mod or_i32_broadcast; +// mod or_i8; +// mod or_i8_broadcast; +// mod or_u32; +// mod or_u32_broadcast; +// mod reduce_sum_fp16x16_1D; +// mod reduce_sum_fp16x16_2D_default; +// mod reduce_sum_fp16x16_2D_keepdims; +// mod reduce_sum_fp16x16_2D_axis_1; +// mod reduce_sum_fp8x23_1D; +// mod reduce_sum_fp8x23_2D_default; +// mod reduce_sum_fp8x23_2D_keepdims; +// mod reduce_sum_fp8x23_2D_axis_1; +// mod reduce_sum_i32_1D; +// mod reduce_sum_i32_2D_default; +// mod reduce_sum_i32_2D_keepdims; +// mod reduce_sum_i32_2D_axis_1; +// mod reduce_sum_i8_1D; +// mod reduce_sum_i8_2D_default; +// mod reduce_sum_i8_2D_keepdims; +// mod reduce_sum_i8_2D_axis_1; +// mod reduce_sum_u32_1D; +// mod reduce_sum_u32_2D_default; +// mod reduce_sum_u32_2D_keepdims; +// mod reduce_sum_u32_2D_axis_1; +// mod relu_fp16x16; +// mod relu_fp8x23; +// mod relu_i32; +// mod relu_i8; +// mod sigmoid_fp16x16; +// mod sigmoid_fp8x23; +// mod sin_fp16x16; +// mod sin_fp8x23; +// mod sinh_fp16x16; +// mod sinh_fp8x23; +// mod softmax_fp16x16; +// mod softmax_fp8x23; +// mod softplus_fp8x23; +// mod softplus_fp16x16; +// mod softsign_fp8x23; +// mod softsign_fp16x16; +// mod sqrt_fp16x16; +// mod sqrt_fp8x23; +// mod sub_fp16x16; +// mod sub_fp16x16_broadcast; +// mod sub_fp8x23; +// mod sub_fp8x23_broadcast; +// mod sub_i32; +// mod sub_i32_broadcast; +// mod sub_i8; +// mod sub_i8_broadcast; +// mod sub_u32; +// mod sub_u32_broadcast; +// mod tanh_fp16x16; +// mod tanh_fp8x23; +// mod transpose_fp16x16_2d; +// mod transpose_fp16x16_3d; +// mod transpose_fp8x23_2d; +// mod transpose_fp8x23_3d; +// mod transpose_i32_2d; +// mod transpose_i32_3d; +// mod transpose_i8_2d; +// mod transpose_i8_3d; +// mod transpose_u32_2d; +// mod transpose_u32_3d; +// mod xor_fp16x16; +// mod xor_fp16x16_broadcast; +// mod xor_fp8x23; +// mod xor_fp8x23_broadcast; +// mod xor_i32; +// mod xor_i32_broadcast; +// mod xor_i8; +// mod xor_i8_broadcast; +// mod xor_u32; +// mod xor_u32_broadcast; +// mod less_fp16x16; +// mod less_fp16x16_broadcast; +// mod less_fp8x23; +// mod less_fp8x23_broadcast; +// mod less_i32; +// mod less_i32_broadcast; +// mod less_i8; +// mod less_i8_broadcast; +// mod less_u32; +// mod less_u32_broadcast; +// mod greater_equal_fp16x16; +// mod greater_equal_fp16x16_broadcast; +// mod greater_equal_fp8x23; +// mod greater_equal_fp8x23_broadcast; +// mod greater_equal_i32; +// mod greater_equal_i32_broadcast; +// mod greater_equal_i8; +// mod greater_equal_i8_broadcast; +// mod greater_equal_u32; +// mod greater_equal_u32_broadcast; +// mod slice_fp16x16_2d; +// mod slice_fp16x16_3d; +// mod slice_fp8x23_2d; +// mod slice_fp8x23_3d; +// mod slice_i32_2d; +// mod slice_i32_3d; +// mod slice_i8_2d; +// mod slice_i8_3d; +// mod slice_u32_2d; +// mod slice_u32_3d; +// mod gather_fp8x23_3d_default; +// mod gather_fp8x23_3d_axis1; +// mod gather_fp8x23_3d_axis2; +// mod gather_fp16x16_3d_default; +// mod gather_fp16x16_3d_axis1; +// mod gather_fp16x16_3d_axis2; +// mod gather_i8_3d_default; +// mod gather_i8_3d_axis1; +// mod gather_i8_3d_axis2; +// mod gather_i32_3d_default; +// mod gather_i32_3d_axis1; +// mod gather_i32_3d_axis2; +// mod gather_u32_3d_default; +// mod gather_u32_3d_axis1; +// mod gather_u32_3d_axis2; +// mod nonzero_fp16x16_2d; +// mod nonzero_fp16x16_3d; +// mod nonzero_fp8x23_2d; +// mod nonzero_fp8x23_3d; +// mod nonzero_i32_2d; +// mod nonzero_i32_3d; +// mod nonzero_i8_2d; +// mod nonzero_i8_3d; +// mod nonzero_u32_2d; +// mod nonzero_u32_3d; +// mod squeeze_fP16x16; +// mod squeeze_fP8x23; +// mod squeeze_i32; +// mod squeeze_i8; +// mod squeeze_u32; +// mod unsqueeze_fp16x16_2d; +// mod unsqueeze_fp16x16_3d; +// mod unsqueeze_fp8x23_2d; +// mod unsqueeze_fp8x23_3d; +// mod unsqueeze_i32_2d; +// mod unsqueeze_i32_3d; +// mod unsqueeze_i8_2d; +// mod unsqueeze_i8_3d; +// mod unsqueeze_u32_2d; +// mod unsqueeze_u32_3d; +// mod sign_fP16x16; +// mod sign_fP8x23; +// mod sign_fail; +// mod sign_i32; +// mod sign_i8; +// mod clip_fp16x16_2d; +// mod clip_fp16x16_3d; +// mod clip_fp8x23_2d; +// mod clip_fp8x23_3d; +// mod clip_i32_2d; +// mod clip_i32_3d; +// mod clip_i8_2d; +// mod clip_i8_3d; +// mod clip_u32_2d; +// mod clip_u32_3d; +// mod identity_fP16x16; +// mod identity_fP8x23; +// mod identity_i32; +// mod identity_i8; +// mod identity_u32; +// mod thresholded_relu_fp16x16; +// mod thresholded_relu_fp8x23; +// mod hard_sigmoid_fp8x23; +// mod hard_sigmoid_fp16x16; +// mod neg_fp16x16; +// mod neg_fp8x23; +// mod neg_i32; +// mod neg_i8; +// mod gemm_all_attributes; +// mod gemm_alpha; +// mod gemm_beta; +// mod gemm_default_matrix_bias; +// mod gemm_default_vector_bias; +// mod gemm_default_no_bias; +// mod gemm_transposeA; +// mod gemm_transposeB; +// mod min_fp16x16_three_tensors; +// mod min_fp16x16_broadcast_three_tensors; +// mod min_fp16x16_two_tensors; +// mod min_fp16x16_broadcast_two_tensors; +// mod min_fp8x23_three_tensors; +// mod min_fp8x23_broadcast_three_tensors; +// mod min_fp8x23_two_tensors; +// mod min_fp8x23_broadcast_two_tensors; +// mod min_i32_three_tensors; +// mod min_i32_broadcast_three_tensors; +// mod min_i32_two_tensors; +// mod min_i32_broadcast_two_tensors; +// mod min_i8_three_tensors; +// mod min_i8_broadcast_three_tensors; +// mod min_i8_two_tensors; +// mod min_i8_broadcast_two_tensors; +// mod min_u32_three_tensors; +// mod min_u32_broadcast_three_tensors; +// mod min_u32_two_tensors; +// mod min_u32_broadcast_two_tensors; +// mod where_fp16x16; +// mod where_fp16x16_broadcast; +// mod where_fp8x23; +// mod where_fp8x23_broadcast; +// mod where_i32; +// mod where_i32_broadcast; +// mod where_i8; +// mod where_i8_broadcast; +// mod where_u32; +// mod where_u32_broadcast; +// mod not_bool; +// mod round_fp16x16; +// mod round_fp8x23; +// mod max_fp16x16_three_tensors; +// mod max_fp16x16_broadcast_three_tensors; +// mod max_fp16x16_two_tensors; +// mod max_fp16x16_broadcast_two_tensors; +// mod max_fp8x23_three_tensors; +// mod max_fp8x23_broadcast_three_tensors; +// mod max_fp8x23_two_tensors; +// mod max_fp8x23_broadcast_two_tensors; +// mod max_i32_three_tensors; +// mod max_i32_broadcast_three_tensors; +// mod max_i32_two_tensors; +// mod max_i32_broadcast_two_tensors; +// mod max_i8_three_tensors; +// mod max_i8_broadcast_three_tensors; +// mod max_i8_two_tensors; +// mod max_i8_broadcast_two_tensors; +// mod max_u32_three_tensors; +// mod max_u32_broadcast_three_tensors; +// mod max_u32_two_tensors; +// mod max_u32_broadcast_two_tensors; +// mod scatter_fp16x16_3d_default; +// mod scatter_fp16x16_3d_axis1; +// mod scatter_fp16x16_3d_axis1_add; +// mod scatter_fp8x23_default; +// mod scatter_fp8x23_axis1; +// mod scatter_fp8x23_mul; +// mod scatter_i8_default; +// mod scatter_i8_axis1; +// mod scatter_i8_axis1_max; +// mod scatter_u32_default; +// mod scatter_u32_axis1; +// mod scatter_u32_add; +// mod array_feature_extractor_1D_i32; +// mod array_feature_extractor_1D_fp8x23; +// mod array_feature_extractor_1D_fp16x16; +// mod array_feature_extractor_2D_i32; +// mod array_feature_extractor_2D_fp8x23; +// mod array_feature_extractor_2D_fp16x16; +// mod array_feature_extractor_3D_i32; +// mod array_feature_extractor_3D_fp8x23; +// mod array_feature_extractor_3D_fp16x16; +// mod binarizer_fp16x16; +// mod binarizer_fp8x23; +// mod tril_fp16x16; +// mod tril_fp16x16_neg; +// mod tril_fp16x16_one_row; +// mod tril_fp16x16_out_neg; +// mod tril_fp16x16_out_pos; +// mod tril_fp16x16_pos; +// mod tril_fp16x16_square; +// mod tril_fp16x16_square_neg; +// mod tril_fp16x16_zero; +// mod triu_fp16x16; +// mod triu_fp16x16_neg; +// mod triu_fp16x16_one_row; +// mod triu_fp16x16_out_neg; +// mod triu_fp16x16_out_pos; +// mod triu_fp16x16_pos; +// mod triu_fp16x16_square; +// mod triu_fp16x16_square_neg; +// mod triu_fp16x16_zero; +// mod tril_fp8x23; +// mod tril_fp8x23_neg; +// mod tril_fp8x23_one_row; +// mod tril_fp8x23_out_neg; +// mod tril_fp8x23_out_pos; +// mod tril_fp8x23_pos; +// mod tril_fp8x23_square; +// mod tril_fp8x23_square_neg; +// mod tril_fp8x23_zero; +// mod triu_fp8x23; +// mod triu_fp8x23_neg; +// mod triu_fp8x23_one_row; +// mod triu_fp8x23_out_neg; +// mod triu_fp8x23_out_pos; +// mod triu_fp8x23_pos; +// mod triu_fp8x23_square; +// mod triu_fp8x23_square_neg; +// mod triu_fp8x23_zero; +// mod tril_i32; +// mod tril_neg_i32; +// mod tril_i32_one_row; +// mod tril_i32_out_neg; +// mod tril_i32_out_pos; +// mod tril_i32_pos; +// mod tril_i32_square; +// mod tril_i32_square_neg; +// mod tril_i32_zero; +// mod triu_i32; +// mod triu_i32_neg; +// mod triu_i32_one_row; +// mod triu_i32_out_neg; +// mod triu_i32_out_pos; +// mod triu_i32_pos; +// mod triu_i32_square; +// mod triu_i32_square_neg; +// mod triu_i32_zero; +// mod tril_i8; +// mod tril_i8_neg; +// mod tril_i8_one_row; +// mod tril_i8_out_neg; +// mod tril_i8_out_pos; +// mod tril_i8_pos; +// mod tril_i8_square; +// mod tril_i8_square_neg; +// mod tril_i8_zero; +// mod triu_i8; +// mod triu_i8_neg; +// mod triu_i8_one_row; +// mod triu_i8_out_neg; +// mod triu_i8_out_pos; +// mod triu_i8_pos; +// mod triu_i8_square; +// mod triu_i8_square_neg; +// mod triu_i8_zero; +// mod tril_u32; +// mod tril_u32_neg; +// mod tril_u32_one_row; +// mod tril_u32_out_neg; +// mod tril_u32_out_pos; +// mod tril_u32_pos; +// mod tril_u32_square; +// mod tril_u32_square_neg; +// mod tril_u32_zero; +// mod triu_u32; +// mod triu_u32_neg; +// mod triu_u32_one_row; +// mod triu_u32_out_neg; +// mod triu_u32_out_pos; +// mod triu_u32_pos; +// mod triu_u32_square; +// mod triu_u32_square_neg; +// mod triu_u32_zero; +// mod reduce_sum_square_fp16x16_export_do_not_keepdims; +// mod reduce_sum_square_fp16x16_export_keepdims; +// mod reduce_sum_square_fp16x16_export_negative_axes_keepdims; +// mod reduce_sum_square_fp8x23_export_do_not_keepdims; +// mod reduce_sum_square_fp8x23_export_keepdims; +// mod reduce_sum_square_fp8x23_export_negative_axes_keepdims; +// mod reduce_sum_square_i32_export_do_not_keepdims; +// mod reduce_sum_square_i32_export_keepdims; +// mod reduce_sum_square_i32_export_negative_axes_keepdims; +// mod reduce_sum_square_i8_export_do_not_keepdims; +// mod reduce_sum_square_i8_export_keepdims; +// mod reduce_sum_square_i8_export_negative_axes_keepdims; +// mod reduce_sum_square_u32_export_do_not_keepdims; +// mod reduce_sum_square_u32_export_keepdims; +// mod reduce_sum_square_u32_export_negative_axes_keepdims; +// mod reduce_l2_fp16x16_export_do_not_keepdims; +// mod reduce_l2_fp16x16_export_keepdims; +// mod reduce_l2_fp16x16_export_negative_axes_keepdims; +// mod reduce_l2_fp8x23_export_do_not_keepdims; +// mod reduce_l2_fp8x23_export_keepdims; +// mod reduce_l2_fp8x23_export_negative_axes_keepdims; +// mod reduce_l1_fp16x16_export_do_not_keepdims; +// mod reduce_l1_fp16x16_export_keepdims; +// mod reduce_l1_fp16x16_export_negative_axes_keepdims; +// mod reduce_l1_fp8x23_export_do_not_keepdims; +// mod reduce_l1_fp8x23_export_keepdims; +// mod reduce_l1_fp8x23_export_negative_axes_keepdims; +// mod reduce_l1_i32_export_do_not_keepdims; +// mod reduce_l1_i32_export_keepdims; +// mod reduce_l1_i32_export_negative_axes_keepdims; +// mod reduce_l1_i8_export_do_not_keepdims; +// mod reduce_l1_i8_export_keepdims; +// mod reduce_l1_i8_export_negative_axes_keepdims; +// mod reduce_l1_u32_export_do_not_keepdims; +// mod reduce_l1_u32_export_keepdims; +// mod reduce_l1_u32_export_negative_axes_keepdims; +// mod reduce_prod_fp16x16_1D; +// mod reduce_prod_fp16x16_2D_default; +// mod reduce_prod_fp16x16_2D_keepdims; +// mod reduce_prod_fp16x16_2D_axis_1; +// mod reduce_prod_fp8x23_1D; +// mod reduce_prod_fp8x23_2D_default; +// mod reduce_prod_fp8x23_2D_keepdims; +// mod reduce_prod_fp8x23_2D_axis_1; +// mod reduce_prod_i32_1D; +// mod reduce_prod_i32_2D_default; +// mod reduce_prod_i32_2D_keepdims; +// mod reduce_prod_i32_2D_axis_1; +// mod reduce_prod_i8_1D; +// mod reduce_prod_i8_2D_default; +// mod reduce_prod_i8_2D_keepdims; +// mod reduce_prod_i8_2D_axis_1; +// mod reduce_prod_u32_1D; +// mod reduce_prod_u32_2D_default; +// mod reduce_prod_u32_2D_keepdims; +// mod reduce_prod_u32_2D_axis_1; +// mod gather_elements_fp16x16_3d_default; +// mod gather_elements_fp16x16_3d_axis1; +// mod gather_elements_fp16x16_3d_axis2; +// mod gather_elements_fp8x23_3d_default; +// mod gather_elements_fp8x23_3d_axis1; +// mod gather_elements_fp8x23_3d_axis2; +// mod gather_elements_i8_3d_default; +// mod gather_elements_i8_3d_axis1; +// mod gather_elements_i32_3d_default; +// mod gather_elements_i32_3d_axis1; +// mod gather_elements_i32_3d_axis2; +// mod gather_elements_u32_default; +// mod gather_elements_u32_axis1; +// mod gather_elements_u32_axis2; +// mod gather_elements_u32_axis3; +// mod sequence_length_fp16x16; +// mod sequence_length_fp16x16_broadcast; +// mod sequence_length_fp8x23; +// mod sequence_length_fp8x23_broadcast; +// mod sequence_length_i32; +// mod sequence_length_i32_broadcast; +// mod sequence_length_i8; +// mod sequence_length_i8_broadcast; +// mod sequence_length_u32; +// mod sequence_length_u32_broadcast; +// mod sequence_at_u32_positive; +// mod sequence_at_u32_negative; +// mod sequence_at_fp16x16_positive; +// mod sequence_at_fp16x16_negative; +// mod sequence_at_fp8x23_positive; +// mod sequence_at_fp8x23_negative; +// mod sequence_at_i32_positive; +// mod sequence_at_i32_negative; +// mod sequence_at_i8_positive; +// mod sequence_at_i8_negative; +// mod reduce_min_fp16x16_1D; +// mod reduce_min_fp16x16_2D_default; +// mod reduce_min_fp16x16_2D_keepdims; +// mod reduce_min_fp16x16_2D_axis_1; +// mod reduce_min_fp8x23_1D; +// mod reduce_min_fp8x23_2D_default; +// mod reduce_min_fp8x23_2D_keepdims; +// mod reduce_min_fp8x23_2D_axis_1; +// mod reduce_min_i32_1D; +// mod reduce_min_i32_2D_default; +// mod reduce_min_i32_2D_keepdims; +// mod reduce_min_i32_2D_axis_1; +// mod reduce_min_i8_1D; +// mod reduce_min_i8_2D_default; +// mod reduce_min_i8_2D_keepdims; +// mod reduce_min_i8_2D_axis_1; +// mod reduce_min_u32_1D; +// mod reduce_min_u32_2D_default; +// mod reduce_min_u32_2D_keepdims; +// mod reduce_min_u32_2D_axis_1; +// mod sequence_construct_fp16x16; +// mod sequence_construct_fp8x23; +// mod sequence_construct_i32; +// mod sequence_construct_i8; +// mod sequence_construct_u32; +// mod shrink_hard_fp16x16; +// mod shrink_soft_fp16x16; +// mod shrink_hard_fp8x23; +// mod shrink_soft_fp8x23; +// mod sequence_empty_fp16x16; +// mod sequence_empty_fp8x23; +// mod sequence_empty_i32; +// mod sequence_empty_i8; +// mod sequence_empty_u32; +// mod reduce_mean_fp16x16_1D; +// mod reduce_mean_fp16x16_2D_default; +// mod reduce_mean_fp16x16_2D_keepdims; +// mod reduce_mean_fp16x16_2D_axis_1; +// mod reduce_mean_fp8x23_1D; +// mod reduce_mean_fp8x23_2D_default; +// mod reduce_mean_fp8x23_2D_keepdims; +// mod reduce_mean_fp8x23_2D_axis_1; +// mod reduce_mean_i32_1D; +// mod reduce_mean_i32_2D_default; +// mod reduce_mean_i32_2D_keepdims; +// mod reduce_mean_i32_2D_axis_1; +// mod reduce_mean_i8_1D; +// mod reduce_mean_i8_2D_default; +// mod reduce_mean_i8_2D_keepdims; +// mod reduce_mean_i8_2D_axis_1; +// mod reduce_mean_u32_1D; +// mod reduce_mean_u32_2D_default; +// mod reduce_mean_u32_2D_keepdims; +// mod reduce_mean_u32_2D_axis_1; +// mod pow_fp16x16; +// mod pow_fp16x16_broadcast; +// mod pow_fp8x23; +// mod pow_fp8x23_broadcast; +// mod sequence_erase_u32_positive; +// mod sequence_erase_u32_negative; +// mod sequence_erase_u32_empty; +// mod sequence_erase_fp16x16_positive; +// mod sequence_erase_fp16x16_negative; +// mod sequence_erase_fp16x16_empty; +// mod sequence_erase_fp8x23_positive; +// mod sequence_erase_fp8x23_negative; +// mod sequence_erase_fp8x23_empty; +// mod sequence_erase_i32_positive; +// mod sequence_erase_i32_negative; +// mod sequence_erase_i32_empty; +// mod sequence_erase_i8_positive; +// mod sequence_erase_i8_negative; +// mod sequence_erase_i8_empty; +// mod sequence_insert_fp16x16; +// mod sequence_insert_fp8x23; +// mod sequence_insert_i32; +// mod sequence_insert_i8; +// mod sequence_insert_u32; +// mod concat_from_sequence_fp8x23_new_axis_zero; +// mod concat_from_sequence_fp8x23_new_axis_one; +// mod concat_from_sequence_fp8x23_new_axis_default; +// mod concat_from_sequence_fp16x16_new_axis_zero; +// mod concat_from_sequence_fp16x16_new_axis_one; +// mod concat_from_sequence_fp16x16_new_axis_default; +// mod concat_from_sequence_i32_new_axis_zero; +// mod concat_from_sequence_i32_new_axis_one; +// mod concat_from_sequence_i32_new_axis_default; +// mod concat_from_sequence_i8_new_axis_zero; +// mod concat_from_sequence_i8_new_axis_one; +// mod concat_from_sequence_i8_new_axis_default; +// mod concat_from_sequence_u32_new_axis_zero; +// mod concat_from_sequence_u32_new_axis_one; +// mod concat_from_sequence_u32_new_axis_default; +// mod is_nan_fp16x16; +// mod is_nan_fp8x23; +// mod is_inf_fp16x16; +// mod is_inf_fp8x23; +// mod is_inf_i32; +// mod is_inf_i8; +// mod is_inf_u32; +// mod is_pos_inf_fp16x16; +// mod is_neg_inf_fp16x16; +// mod is_pos_inf_fp8x23; +// mod is_neg_inf_fp8x23; +// mod is_pos_inf_i32; +// mod is_neg_inf_i32; +// mod is_pos_inf_i8; +// mod is_neg_inf_i8; +// mod and_bool; +// mod unique_fp16x16_without_axis_sorted; +// mod unique_fp16x16_with_axis_zero_sorted; +// mod unique_u32_example; +// mod unique_u32_example_two; +// mod unique_u32_without_axis_sorted; +// mod unique_u32_without_axis_not_sorted; +// mod unique_u32_with_axis_zero_sorted; +// mod unique_u32_with_axis_zero_not_sorted; +// mod unique_u32_with_axis_one_sorted; +// mod unique_u32_with_axis_one_not_sorted; From 90dee0f7b848a3af7df745ed5a66b5b9f7b490a6 Mon Sep 17 00:00:00 2001 From: raphaelDkhn Date: Sun, 10 Dec 2023 15:29:58 +0200 Subject: [PATCH 28/30] replace CairoTest.template with CairoTest.base_template --- nodegen/file_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodegen/file_manager.py b/nodegen/file_manager.py index c8f90b443..ea239b642 100644 --- a/nodegen/file_manager.py +++ b/nodegen/file_manager.py @@ -72,7 +72,7 @@ def __init__(self, file: str): super().__init__(os.path.join(BASE_PATH, file)) @classmethod - def template( + def base_template( cls, name: str, arg_cnt: int, refs: list[str], func_sig: str, out_cnt: int = 1 ) -> list[str]: """ From e7825c7a04140e56db06b751654bc97b593b681b Mon Sep 17 00:00:00 2001 From: raphaelDkhn Date: Sun, 10 Dec 2023 16:14:24 +0200 Subject: [PATCH 29/30] revert merge #475 --- docs/SUMMARY.md | 1 - docs/framework/compatibility.md | 2 +- .../operators/tensor/tensor.unique.md | 79 - nodegen/file_manager.py | 85 +- nodegen/helpers.py | 36 +- nodegen/node/unique.py | 333 ---- src/numbers/signed_integer/i32.cairo | 17 - src/numbers/signed_integer/i64.cairo | 2 +- src/numbers/signed_integer/i8.cairo | 9 - src/operators/tensor.cairo | 1 - src/operators/tensor/core.cairo | 85 +- src/operators/tensor/helpers.cairo | 59 - .../tensor/implementations/tensor_bool.cairo | 6 - .../implementations/tensor_fp16x16.cairo | 31 +- .../implementations/tensor_fp16x16wide.cairo | 31 +- .../implementations/tensor_fp32x32.cairo | 31 +- .../implementations/tensor_fp64x64.cairo | 31 +- .../implementations/tensor_fp8x23.cairo | 31 +- .../implementations/tensor_fp8x23wide.cairo | 32 +- .../tensor/implementations/tensor_i32.cairo | 32 +- .../tensor/implementations/tensor_i8.cairo | 32 +- .../tensor/implementations/tensor_u32.cairo | 32 +- src/operators/tensor/manipulation.cairo | 1 - .../tensor/manipulation/unique.cairo | 289 --- tests/nodes.cairo | 1654 ++++++++--------- ...unique_fp16x16_with_axis_zero_sorted.cairo | 31 - .../input_0.cairo | 41 - .../output_0.cairo | 41 - .../output_1.cairo | 15 - .../output_2.cairo | 15 - .../output_3.cairo | 15 - .../unique_fp16x16_without_axis_sorted.cairo | 31 - .../input_0.cairo | 41 - .../output_0.cairo | 39 - .../output_1.cairo | 39 - .../output_2.cairo | 39 - .../output_3.cairo | 39 - tests/nodes/unique_u32_example.cairo | 31 - tests/nodes/unique_u32_example/input_0.cairo | 17 - tests/nodes/unique_u32_example/output_0.cairo | 15 - tests/nodes/unique_u32_example/output_1.cairo | 16 - tests/nodes/unique_u32_example/output_2.cairo | 18 - tests/nodes/unique_u32_example/output_3.cairo | 16 - tests/nodes/unique_u32_example_two.cairo | 31 - .../unique_u32_example_two/input_0.cairo | 24 - .../unique_u32_example_two/output_0.cairo | 18 - .../unique_u32_example_two/output_1.cairo | 14 - .../unique_u32_example_two/output_2.cairo | 16 - .../unique_u32_example_two/output_3.cairo | 14 - tests/nodes/unique_u32_ff.cairo | 31 - .../unique_u32_with_axis_one_not_sorted.cairo | 31 - .../input_0.cairo | 40 - .../output_0.cairo | 40 - .../output_1.cairo | 15 - .../output_2.cairo | 15 - .../output_3.cairo | 15 - ..._u32_with_axis_one_not_sorted_custom.cairo | 31 - .../input_0.cairo | 26 - .../output_0.cairo | 22 - .../output_1.cairo | 17 - .../output_2.cairo | 19 - .../output_3.cairo | 17 - .../unique_u32_with_axis_one_sorted.cairo | 31 - .../input_0.cairo | 40 - .../output_0.cairo | 40 - .../output_1.cairo | 15 - .../output_2.cairo | 15 - .../output_3.cairo | 15 - ...unique_u32_with_axis_zero_not_sorted.cairo | 31 - .../input_0.cairo | 40 - .../output_0.cairo | 40 - .../output_1.cairo | 15 - .../output_2.cairo | 15 - .../output_3.cairo | 15 - .../unique_u32_with_axis_zero_sorted.cairo | 31 - .../input_0.cairo | 40 - .../output_0.cairo | 40 - .../output_1.cairo | 15 - .../output_2.cairo | 15 - .../output_3.cairo | 15 - .../unique_u32_without_axis_not_sorted.cairo | 31 - .../input_0.cairo | 40 - .../output_0.cairo | 16 - .../output_1.cairo | 17 - .../output_2.cairo | 39 - .../output_3.cairo | 17 - .../unique_u32_without_axis_sorted.cairo | 31 - .../input_0.cairo | 40 - .../output_0.cairo | 16 - .../output_1.cairo | 17 - .../output_2.cairo | 39 - .../output_3.cairo | 17 - 92 files changed, 875 insertions(+), 3790 deletions(-) delete mode 100644 docs/framework/operators/tensor/tensor.unique.md delete mode 100644 nodegen/node/unique.py delete mode 100644 src/operators/tensor/manipulation.cairo delete mode 100644 src/operators/tensor/manipulation/unique.cairo delete mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo delete mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo delete mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted.cairo delete mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo delete mode 100644 tests/nodes/unique_u32_example.cairo delete mode 100644 tests/nodes/unique_u32_example/input_0.cairo delete mode 100644 tests/nodes/unique_u32_example/output_0.cairo delete mode 100644 tests/nodes/unique_u32_example/output_1.cairo delete mode 100644 tests/nodes/unique_u32_example/output_2.cairo delete mode 100644 tests/nodes/unique_u32_example/output_3.cairo delete mode 100644 tests/nodes/unique_u32_example_two.cairo delete mode 100644 tests/nodes/unique_u32_example_two/input_0.cairo delete mode 100644 tests/nodes/unique_u32_example_two/output_0.cairo delete mode 100644 tests/nodes/unique_u32_example_two/output_1.cairo delete mode 100644 tests/nodes/unique_u32_example_two/output_2.cairo delete mode 100644 tests/nodes/unique_u32_example_two/output_3.cairo delete mode 100644 tests/nodes/unique_u32_ff.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_sorted.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_not_sorted.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_sorted.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_sorted/input_0.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_0.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_1.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_2.cairo delete mode 100644 tests/nodes/unique_u32_without_axis_sorted/output_3.cairo diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 6c9fea13b..cd345421c 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -123,7 +123,6 @@ * [tensor.is\_nan](framework/operators/tensor/tensor.is\_nan.md) * [tensor.is_inf](framework/operators/tensor/tensor.is\_inf.md) * [tensor.not](framework/operators/tensor/tensor.not.md) - * [tensor.unique](framework/operators/tensor/tensor.unique.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) diff --git a/docs/framework/compatibility.md b/docs/framework/compatibility.md index 10fb28def..ac25bb642 100644 --- a/docs/framework/compatibility.md +++ b/docs/framework/compatibility.md @@ -94,13 +94,13 @@ You can see below the list of current supported ONNX Operators: | [SequenceConstruct](operators/tensor/tensor.sequence\_construct.md) | :white\_check\_mark: | | [Shrink](operators/tensor/tensor.shrink.md) | :white\_check\_mark: | | [SequenceEmpty](operators/tensor/tensor.sequence\_empty.md) | :white\_check\_mark: | +| [ReduceL2](operators/tensor/tensor.reduce\_l2.md) | :white\_check\_mark: | | [SequenceErase](operators/tensor/tensor.sequence\_erase.md) | :white\_check\_mark: | | [SequenceInsert](operators/tensor/tensor.sequence\_insert.md) | :white\_check\_mark: | | [ConcatFromSequence](operators/tensor/tensor.concat\_from\_sequence.md) | :white\_check\_mark: | | [IsNaN](operators/tensor/tensor.is\_nan.md) | :white\_check\_mark: | | [IsInf](operators/tensor/tensor.is\_inf.md) | :white\_check\_mark: | | [Not](operators/tensor/tensor.not.md) | :white\_check\_mark: | -| [Unique](operators/tensor/tensor.unique.md) | :white\_check\_mark: | Current Operators support: **95/156 (60%)** diff --git a/docs/framework/operators/tensor/tensor.unique.md b/docs/framework/operators/tensor/tensor.unique.md deleted file mode 100644 index d8de0944f..000000000 --- a/docs/framework/operators/tensor/tensor.unique.md +++ /dev/null @@ -1,79 +0,0 @@ -# tensor.unique - -```rust - fn unique(self: @Tensor, axis: Option, sorted: Option) -> (Tensor, Tensor, Tensor, Tensor); -``` - -Identifies the unique elements or subtensors of a tensor, with an optional axis parameter for subtensor slicing. -This function returns a tuple containing the tensor of unique elements or subtensors, and optionally, -tensors for indices, inverse indices, and counts of unique elements. -* `axis`(`Option`) - Specifies the dimension along which to find unique subtensors. A None value means the unique - elements of the tensor will be returned in a flattened form. A negative value indicates - dimension counting from the end. -* `sorted`(`Option`) - Determines if the unique elements should be returned in ascending order. Defaults to true. - -## Returns - -A tuple containing: -* A Tensor with unique values or subtensors from self. -* A Tensor with the first occurrence indices of unique elements in self. If axis is given, it returns indices - along that axis; otherwise, it refers to the flattened tensor. -* A Tensor mapping each element of self to its index in the unique tensor. If axis is specified, it maps to - the subtensor index; otherwise, it maps to the unique flattened tensor. -* A Tensor for the counts of each unique element or subtensor in self. - - -## Example - -```rust -use array::{ArrayTrait, SpanTrait}; - -use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; - -fn unique_flat_example() -> Tensor { - let tensor = TensorTrait::::new( - shape: array![1, 6].span(), - data: array![[2, 1, 1, 3, 4, 3]].span(), - ); - - return tensor.unique( - axis: Option::None(()) - sorted: Option::Some(false) - ); -} ->>> ( - [2, 1, 3, 4], - [0, 1, 3, 4], - [0, 1, 1, 2, 3, 2], - [1, 2, 2, 1] - ) -``` - -or - -```rust -use array::{ArrayTrait, SpanTrait}; - -use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; - -fn unique_axis_example() -> Tensor { - let tensor = TensorTrait::::new( - shape: array![3, 3].span(), - data: array![[ 1, 0, 0], - [ 1, 0, 0], - [ 2, 3, 4]].span(), - ); - - return tensor.unique( - axis: Option::Some(0) - sorted: Option::Some(true) - ); -} ->>> ( - [[ 1, 0, 0], - [ 2, 3, 4]], - [0, 2], - [0, 0, 1], - [2, 1] - ) -``` diff --git a/nodegen/file_manager.py b/nodegen/file_manager.py index ea239b642..b1020f0c7 100644 --- a/nodegen/file_manager.py +++ b/nodegen/file_manager.py @@ -72,9 +72,7 @@ def __init__(self, file: str): super().__init__(os.path.join(BASE_PATH, file)) @classmethod - def base_template( - cls, name: str, arg_cnt: int, refs: list[str], func_sig: str, out_cnt: int = 1 - ) -> list[str]: + def base_template(cls, name: str, arg_cnt: int, refs: list[str], func_sig: str) -> list[str]: """ Create a template for a Cairo test function which expects a tensor output. @@ -83,7 +81,6 @@ def base_template( arg_cnt (int): Number of arguments for the function. refs (list[str]): List of references (modules) to be used in the function. func_sig (str): The function signature. - out_cnt (int): Number of outputs for the function. Defaults to 1. Returns: list[str]: A list of strings that together form the template of a Cairo test function. @@ -93,21 +90,21 @@ def base_template( """ return [ *[f"mod input_{i};" for i in range(arg_cnt)], - *[f"mod output_{i};" for i in range(out_cnt)], - *[""], - *[""], + *[ "mod output_0;"], + *[ ""], + *[ ""], *[f"use {ref};" for ref in refs], - *[""], - *["#[test]"], - *["#[available_gas(2000000000)]"], - *[f"fn test_{name}()" + " {"], + *[ ""], + *[ "#[test]"], + *[ "#[available_gas(2000000000)]"], + *[f"fn test_{name}()"+" {"], *[f" let input_{i} = input_{i}::input_{i}();" for i in range(arg_cnt)], - *[f" let z_{i} = output_{i}::output_{i}();" for i in range(out_cnt)], - *[""], - *[f" let ({', '.join(f'y_{i}' for i in range(out_cnt))}) = {func_sig};"], - *[""], - *[f" assert_eq(y_{i}, z_{i});" for i in range(out_cnt)], - *["}"], + *[ " let z = output_0::output_0();"], + *[ ""], + *[f" let y = {func_sig};"], + *[ ""], + *[ " assert_eq(y, z);"], + *[ "}"], ] @classmethod @@ -152,9 +149,7 @@ def __init__(self, file: str): super().__init__(os.path.join(BASE_PATH, file)) @classmethod - def base_template( - cls, func: str, dtype: str, refs: list[str], data: list[str], shape: tuple - ) -> list[str]: + def base_template(cls, func: str, dtype: str, refs: list[str], data: list[str], shape: tuple) -> list[str]: """ Create a base template for data representation in Cairo. @@ -173,28 +168,21 @@ def base_template( """ template = [ *[f"use {ref};" for ref in refs], - *[""], - *[f"fn {func}() -> Tensor<{dtype}>" + " {"], - *[" let mut shape = ArrayTrait::::new();"], + *[ ""], + *[f"fn {func}() -> Tensor<{dtype}>"+" {"], + *[ " let mut shape = ArrayTrait::::new();"], *[f" shape.append({s});" for s in shape], - *[""], - *[" let mut data = ArrayTrait::new();"], + *[ ""], + *[ " let mut data = ArrayTrait::new();"], *[f" data.append({d});" for d in data], - *[" TensorTrait::new(shape.span(), data.span())"], - *["}"], + *[ " TensorTrait::new(shape.span(), data.span())"], + *[ "}"], ] return template @classmethod - def sequence_template( - cls, - func: str, - dtype: str, - refs: list[str], - data: list[list[str]], - shape: list[tuple], - ) -> list[str]: + def sequence_template(cls, func: str, dtype: str, refs: list[str], data: list[list[str]], shape: list[tuple]) -> list[str]: """ Create a template for handling tensor sequences in Cairo. @@ -211,34 +199,31 @@ def sequence_template( This method generates a list of strings representing a function in Cairo for handling a sequence of tensors, each with its own data and shape. """ - def expand_sequence_init(s: list[tuple], d: list[list[str]]) -> list[str]: snippet = [] for i in range(len(s)): snippet += [ - *[" let mut shape = ArrayTrait::::new();"], + *[ " let mut shape = ArrayTrait::::new();"], *[f" shape.append({s});" for s in s[i]], - *[""], - *[" let mut data = ArrayTrait::new();"], + *[ ""], + *[ " let mut data = ArrayTrait::new();"], *[f" data.append({d});" for d in d[i]], - *[""], - *[ - " sequence.append(TensorTrait::new(shape.span(), data.span()));" - ], - *[""], + *[ ""], + *[ " sequence.append(TensorTrait::new(shape.span(), data.span()));"], + *[ ""], ] return snippet template = [ *[f"use {ref};" for ref in refs], - *[""], - *[f"fn {func}() -> Array>" + " {"], - *[" let mut sequence = ArrayTrait::new();"], - *[""], + *[ ""], + *[f"fn {func}() -> Array>"+" {"], + *[ " let mut sequence = ArrayTrait::new();"], + *[ ""], *expand_sequence_init(shape, data), - *[" sequence"], - *["}"], + *[ " sequence"], + *[ "}"], ] return template diff --git a/nodegen/helpers.py b/nodegen/helpers.py index 7ea32cfaa..041f480bd 100644 --- a/nodegen/helpers.py +++ b/nodegen/helpers.py @@ -65,8 +65,7 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s func=f"input_{i}", dtype=input[0].dtype.value, refs=get_data_refs(input[0].dtype), - data=get_data_statement_for_sequences( - input, input[0].dtype), + data=get_data_statement_for_sequences(input, input[0].dtype), shape=[x.shape for x in input], ) case Tensor(): @@ -80,9 +79,9 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s input_data.dump() + output_data = CairoData(os.path.join(name, "output_0.cairo")) match output: case list(): - output_data = CairoData(os.path.join(name, "output_0.cairo")) output_data.buffer = CairoData.sequence_template( func="output_0", dtype=output[0].dtype.value, @@ -90,23 +89,7 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s data=get_data_statement_for_sequences(output, output[0].dtype), shape=[x.shape for x in output], ) - output_data.dump() - - case tuple(): - for i, out in enumerate(output): - output_data = CairoData( - os.path.join(name, f"output_{i}.cairo")) - output_data.buffer = CairoData.base_template( - func=f"output_{i}", - dtype=out.dtype.value, - refs=get_data_refs(out.dtype), - data=get_data_statement(out.data, out.dtype), - shape=out.shape, - ) - output_data.dump() - case Tensor(): - output_data = CairoData(os.path.join(name, "output_0.cairo")) output_data.buffer = CairoData.base_template( func="output_0", dtype=output.dtype.value, @@ -114,7 +97,8 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s data=get_data_statement(output.data, output.dtype), shape=output.shape, ) - output_data.dump() + + output_data.dump() test_file = CairoTest(f"{name}.cairo") match output: @@ -132,14 +116,6 @@ def make_test(inputs: list[Tensor | Sequence], output: Tensor | Sequence, func_s refs=get_all_test_refs(find_all_types([*inputs, output]), trait), func_sig=func_sig, ) - case tuple(): - test_file.buffer = CairoTest.base_template( - name=name, - arg_cnt=len(inputs), - out_cnt=len(output), - refs=get_all_test_refs(find_all_types([*inputs, output]), trait), - func_sig=func_sig, - ) test_file.dump() @@ -192,7 +168,7 @@ def get_test_refs(dtype: Dtype, trait: Trait) -> list[str]: *dtype_ref, *dtype_to_partial_eq[dtype], "orion::utils::{assert_eq, assert_seq_eq}", - ] + ] return refs @@ -200,7 +176,7 @@ def get_test_refs(dtype: Dtype, trait: Trait) -> list[str]: def find_all_types(tensors: list[Tensor | Sequence]) -> list[Dtype]: dtypes = [] for tensor in tensors: - if isinstance(tensor, list) or isinstance(tensor, tuple): + if isinstance(tensor, list): dtypes += [x.dtype for x in tensor] else: dtypes.append(tensor.dtype) diff --git a/nodegen/node/unique.py b/nodegen/node/unique.py deleted file mode 100644 index b19c2d6c8..000000000 --- a/nodegen/node/unique.py +++ /dev/null @@ -1,333 +0,0 @@ -import numpy as np -from nodegen.node import RunAll -from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl -from typing import Optional - - -def _unsort_outputs( - x: np.ndarray, - axis: Optional[int], - unique_values: np.ndarray, - indices: np.ndarray, - inverse_indices: np.ndarray, - counts: np.ndarray, -) -> (np.ndarray, np.ndarray, np.ndarray, np.ndarray): - """Unsort the result of np.unique(). - - This is done because numpy unique does not retain original order (it sorts - the output unique values). - (see: https://github.com/numpy/numpy/issues/8621) - - Code taken from onnx: - https://github.com/onnx/onnx/blob/main/onnx/backend/test/case/node/unique.py - """ - argsorted_indices = np.argsort(indices) - inverse_indices_map = dict( - zip(argsorted_indices, np.arange(len(argsorted_indices))) - ) - indices = indices[argsorted_indices] - unique_values = np.take(x, indices, axis=axis) - inverse_indices = np.asarray( - [inverse_indices_map[i] for i in inverse_indices], dtype=np.int32 - ) - counts = counts[argsorted_indices] - return (unique_values, indices, inverse_indices, counts) - - -class Unique(RunAll): - @staticmethod - def unique_u32(): - def example(): # TODO: remove after impls - x = np.array([2, 1, 1, 3, 4, 3]).astype(np.uint32) - axis = None - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_example" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::None(()), Option::None(()))", - name, - ) - - def example_two(): # TODO: remove after impls - x = np.array([[1, 0, 0], [1, 0, 0], [2, 3, 4], [1, 0, 0]]).astype(np.uint32) - axis = 0 - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_example_two" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(0), Option::Some(true))", - name, - ) - - def without_axis_sorted(): - x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) - axis = None - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_without_axis_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::None(()), Option::Some(true))", - name, - ) - - def without_axis_not_sorted(): - x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) - axis = None - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_without_axis_not_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::None(()), Option::Some(false))", - name, - ) - - def with_axis_zero_sorted(): - x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) - axis = 0 - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_with_axis_zero_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(0), Option::Some(true))", - name, - ) - - def with_axis_zero_not_sorted(): - x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) - axis = 0 - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_with_axis_zero_not_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(0), Option::Some(false))", - name, - ) - - def with_axis_one_sorted(): - x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) - axis = 1 - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_with_axis_one_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(1), Option::Some(true))", - name, - ) - - def with_axis_one_not_sorted(): - x = np.random.randint(0, 5, (3, 3, 3)).astype(np.uint32) - axis = 1 - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) - - x = Tensor(Dtype.U32, x.shape, x.flatten()) - unique_values = Tensor( - Dtype.U32, unique_values.shape, unique_values.flatten() - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_u32_with_axis_one_not_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(1), Option::Some(false))", - name, - ) - - example() - example_two() - without_axis_sorted() - without_axis_not_sorted() - with_axis_zero_sorted() - with_axis_zero_not_sorted() - with_axis_one_sorted() - with_axis_one_not_sorted() - - @staticmethod - def unique_fp16x16(): - def without_axis_sorted(): - x = np.random.uniform(0, 3, (3, 3, 3)).astype(np.float64) - axis = None - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) - unique_values = unique_values.astype(np.float16) - - x = Tensor(Dtype.FP16x16, x.shape, to_fp(x.flatten(), FixedImpl.FP16x16)) - unique_values = Tensor( - Dtype.FP16x16, - unique_values.shape, - to_fp(unique_values.flatten(), FixedImpl.FP16x16), - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_fp16x16_without_axis_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::None(()), Option::Some(true))", - name, - ) - - def with_axis_zero_sorted(): - x = np.random.uniform(-3, 3, (3, 3, 3)).astype(np.float64) - axis = 0 - - unique_values, indices, inverse_indices, counts = np.unique( - x, axis=axis, return_index=True, return_inverse=True, return_counts=True - ) - unique_values, indices, inverse_indices, counts = _unsort_outputs( - x, axis, unique_values, indices, inverse_indices, counts - ) - unique_values = unique_values.astype(np.float16) - - x = Tensor(Dtype.FP16x16, x.shape, to_fp(x.flatten(), FixedImpl.FP16x16)) - unique_values = Tensor( - Dtype.FP16x16, - unique_values.shape, - to_fp(unique_values.flatten(), FixedImpl.FP16x16), - ) - indices = Tensor(Dtype.I32, indices.shape, indices.flatten()) - inverse_indices = Tensor( - Dtype.I32, inverse_indices.shape, inverse_indices.flatten() - ) - counts = Tensor(Dtype.I32, counts.shape, counts.flatten()) - - name = "unique_fp16x16_with_axis_zero_sorted" - make_test( - [x], - (unique_values, indices, inverse_indices, counts), - "input_0.unique(Option::Some(0), Option::Some(true))", - name, - ) - - without_axis_sorted() - with_axis_zero_sorted() diff --git a/src/numbers/signed_integer/i32.cairo b/src/numbers/signed_integer/i32.cairo index 939505701..e5821967f 100644 --- a/src/numbers/signed_integer/i32.cairo +++ b/src/numbers/signed_integer/i32.cairo @@ -1,7 +1,6 @@ use core::option::OptionTrait; use core::traits::TryInto; use core::traits::Into; -use core::debug::PrintTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i8::i8; @@ -75,13 +74,6 @@ impl i32Impl of IntegerTrait { } } -// Implements the Into trait for u32 -> i32 -impl u32Intoi32 of Into { - fn into(self: u32) -> i32 { - i32 { mag: self.into(), sign: false } - } -} - // Implements the Into trait for i32. impl i32Into of Into { fn into(self: i32) -> felt252 { @@ -205,21 +197,12 @@ impl i32Neg of Neg { } } -// Implements the TryInto i8 trait for i32 impl I32TryIntoI8 of TryInto { fn try_into(self: i32) -> Option { i8_try_from_i32(self) } } -// Implements the PrintTrait for i32 -impl I32PrintTrait of PrintTrait { - fn print(self: i32) { - let intermediate: felt252 = self.into(); - intermediate.print(); - } -} - // Checks if the given i32 integer is zero and has the correct sign. // # Arguments // * `x` - The i32 integer to check. diff --git a/src/numbers/signed_integer/i64.cairo b/src/numbers/signed_integer/i64.cairo index 3fffb54ad..d0ce98ea1 100644 --- a/src/numbers/signed_integer/i64.cairo +++ b/src/numbers/signed_integer/i64.cairo @@ -72,7 +72,7 @@ impl i64Impl of IntegerTrait { } // Implements the Into trait for i64. -impl i64Into of Into { +impl i32Into of Into { fn into(self: i64) -> felt252 { let mag_felt = self.mag.into(); diff --git a/src/numbers/signed_integer/i8.cairo b/src/numbers/signed_integer/i8.cairo index 49fde6297..016469b05 100644 --- a/src/numbers/signed_integer/i8.cairo +++ b/src/numbers/signed_integer/i8.cairo @@ -1,5 +1,4 @@ use core::traits::Into; -use core::debug::PrintTrait; use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::signed_integer::i32::i32; @@ -236,14 +235,6 @@ impl I8IntoFP32x32 of Into { } } -// Implements the PrintTrait for i8 -impl I8PrintTrait of PrintTrait { - fn print(self: i8) { - let intermediate: felt252 = self.into(); - intermediate.print(); - } -} - // Checks if the given i8 integer is zero and has the correct sign. // # Arguments // * `x` - The i8 integer to check. diff --git a/src/operators/tensor.cairo b/src/operators/tensor.cairo index d76909e64..ff60768bc 100644 --- a/src/operators/tensor.cairo +++ b/src/operators/tensor.cairo @@ -3,7 +3,6 @@ mod helpers; mod math; mod linalg; mod quantization; -mod manipulation; mod implementations; mod ml; diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index 7b5f49809..fd80e2b93 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -2,7 +2,7 @@ use core::array::{ArrayTrait, SpanTrait}; use core::serde::Serde; use core::option::OptionTrait; -use alexandria_data_structures::array_ext::SpanTraitExt; +use alexandria_data_structures::array_ext::{SpanTraitExt}; use orion::operators::tensor::helpers::{len_from_shape, check_shape}; use orion::numbers::{i8, i32, NumberTrait}; @@ -4853,89 +4853,6 @@ trait TensorTrait { /// ``` /// fn not(self: @Tensor) -> Tensor; - /// # tensor.unique - /// - /// ```rust - /// fn unique(self: @Tensor, axis: Option, sorted: Option) -> (Tensor, Tensor, Tensor, Tensor); - /// ``` - /// - /// Identifies the unique elements or subtensors of a tensor, with an optional axis parameter for subtensor slicing. - /// This function returns a tuple containing the tensor of unique elements or subtensors, and optionally, - /// tensors for indices, inverse indices, and counts of unique elements. - /// * `axis`(`Option`) - Specifies the dimension along which to find unique subtensors. A None value means the unique - /// elements of the tensor will be returned in a flattened form. A negative value indicates - /// dimension counting from the end. - /// * `sorted`(`Option`) - Determines if the unique elements should be returned in ascending order. Defaults to true. - /// - /// ## Returns - /// - /// A tuple containing: - /// * A Tensor with unique values or subtensors from self. - /// * A Tensor with the first occurrence indices of unique elements in self. If axis is given, it returns indices - /// along that axis; otherwise, it refers to the flattened tensor. - /// * A Tensor mapping each element of self to its index in the unique tensor. If axis is specified, it maps to - /// the subtensor index; otherwise, it maps to the unique flattened tensor. - /// * A Tensor for the counts of each unique element or subtensor in self. - /// - /// - /// ## Example - /// - /// ```rust - /// use array::{ArrayTrait, SpanTrait}; - /// - /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; - /// - /// fn unique_flat_example() -> Tensor { - /// let tensor = TensorTrait::::new( - /// shape: array![1, 6].span(), - /// data: array![[2, 1, 1, 3, 4, 3]].span(), - /// ); - /// - /// return tensor.unique( - /// axis: Option::None(()) - /// sorted: Option::Some(false) - /// ); - /// } - /// >>> ( - /// [2, 1, 3, 4], - /// [0, 1, 3, 4], - /// [0, 1, 1, 2, 3, 2], - /// [1, 2, 2, 1] - /// ) - /// ``` - /// - /// or - /// - /// ```rust - /// use array::{ArrayTrait, SpanTrait}; - /// - /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; - /// - /// fn unique_axis_example() -> Tensor { - /// let tensor = TensorTrait::::new( - /// shape: array![3, 3].span(), - /// data: array![[ 1, 0, 0], - /// [ 1, 0, 0], - /// [ 2, 3, 4]].span(), - /// ); - /// - /// return tensor.unique( - /// axis: Option::Some(0) - /// sorted: Option::Some(true) - /// ); - /// } - /// >>> ( - /// [[ 1, 0, 0], - /// [ 2, 3, 4]], - /// [0, 2], - /// [0, 0, 1], - /// [2, 1] - /// ) - /// ``` - /// - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor); } /// Cf: TensorTrait::new docstring diff --git a/src/operators/tensor/helpers.cairo b/src/operators/tensor/helpers.cairo index a61f85cad..3a031c52c 100644 --- a/src/operators/tensor/helpers.cairo +++ b/src/operators/tensor/helpers.cairo @@ -317,65 +317,6 @@ fn replace_index(mut shape: Span, index: usize, value: usize) -> Span, +Copy, +PartialEq, +PartialOrd>( - lhs: Span, rhs: Span -) -> i8 { - let mut rhs = rhs; - let mut lhs = lhs; - let mut ret: i8 = 0; - loop { - match lhs.pop_front() { - Option::Some(l) => { - match rhs.pop_front() { - Option::Some(r) => { if l != r { - ret = if *l > *r { - 1 - } else { - -1 - }; - break; - } }, - Option::None => { - ret = 1; - break; - }, - } - }, - Option::None => { - ret = -1; - break; - } - }; - }; - ret -} - -/// Implements PartiaLOrd for two spans of generic type T. -impl SpanPartialOrd, +Copy, +PartialEq, +PartialOrd> of PartialOrd> { - fn ge(lhs: Span, rhs: Span) -> bool { - span_cmp(lhs, rhs) >= 0 - } - - fn gt(lhs: Span, rhs: Span) -> bool { - span_cmp(lhs, rhs) > 0 - } - - fn le(lhs: Span, rhs: Span) -> bool { - span_cmp(lhs, rhs) <= 0 - } - - fn lt(lhs: Span, rhs: Span) -> bool { - span_cmp(lhs, rhs) < 0 - } -} - /// Creates a list of all axes of given shape /// /// # Arguments diff --git a/src/operators/tensor/implementations/tensor_bool.cairo b/src/operators/tensor/implementations/tensor_bool.cairo index 030cf589d..da17b38a9 100644 --- a/src/operators/tensor/implementations/tensor_bool.cairo +++ b/src/operators/tensor/implementations/tensor_bool.cairo @@ -457,12 +457,6 @@ impl BoolTensor of TensorTrait { ) -> Tensor { panic(array!['not supported!']) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - panic(array!['not supported!']) - } } /// Implements partial equal for two `Tensor` using the `PartialEq` trait. diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index 55eb36f48..0d0318cd7 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP16x16}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor @@ -519,12 +518,6 @@ impl FP16x16Tensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -604,28 +597,6 @@ impl TensorI8IntoTensorFP16x16 of Into, Tensor> { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} // Internals const PRECISION: u32 = 589; // 0.009 diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index 71772cac8..f5172a006 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP16x16W}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor @@ -485,12 +484,6 @@ impl FP16x16WTensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -570,28 +563,6 @@ impl U32TryIntoU32 of TryInto { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} // Internals const PRECISION: u64 = 589; // 0.009 diff --git a/src/operators/tensor/implementations/tensor_fp32x32.cairo b/src/operators/tensor/implementations/tensor_fp32x32.cairo index 6b64c46e3..05fdebecb 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP32x32, FP32x32Impl}; use orion::numbers::fixed_point::implementations::fp32x32::core::ONE; use orion::operators::tensor::implementations::{ @@ -520,12 +519,6 @@ impl FP32x32Tensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -611,28 +604,6 @@ impl TensorI8IntoTensorFP32x32 of Into, Tensor> { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} // Internals diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index 1db42171e..40b78c7d3 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP64x64, FP64x64Impl}; use orion::numbers::fixed_point::implementations::fp64x64::core::ONE; use orion::operators::tensor::implementations::{ @@ -521,12 +520,6 @@ impl FP64x64Tensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -612,28 +605,6 @@ impl TensorI8IntoTensorFP64x64 of Into, Tensor> { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} // Internals diff --git a/src/operators/tensor/implementations/tensor_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index baac75635..62af2b3e4 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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_ops, ml, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_ops, ml}; use orion::numbers::{i8, i32, NumberTrait, FP8x23}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor @@ -519,12 +518,6 @@ impl FP8x23Tensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -628,28 +621,6 @@ impl TensorI8IntoTensorFP8x23 of Into, Tensor> { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} // Internals diff --git a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo index ff9330978..85d8aa2fb 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait, FP8x23W}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor @@ -472,12 +471,6 @@ impl FP8x23WTensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -581,29 +574,6 @@ impl U32TryIntoU32 of TryInto { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} - // Internals const PRECISION: u64 = 75497; // 0.009 diff --git a/src/operators/tensor/implementations/tensor_i32.cairo b/src/operators/tensor/implementations/tensor_i32.cairo index 8b5fc1bad..a25cef6ee 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i32, i8, NumberTrait}; use orion::operators::tensor::implementations::{ tensor_u32::U32Tensor, tensor_i8::I8Tensor, tensor_bool::BoolTensor @@ -516,12 +515,6 @@ impl I32Tensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -607,29 +600,6 @@ impl TensorI8IntoTensorI32 of Into, Tensor> { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} - // Internals diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index 462d6a0f4..94f32f70b 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_bool::BoolTensor}; @@ -514,12 +513,6 @@ impl I8Tensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -593,29 +586,6 @@ impl I8TensorPartialEq of PartialEq> { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} - // Internals fn tensor_eq(mut lhs: Tensor, mut rhs: Tensor,) -> bool { diff --git a/src/operators/tensor/implementations/tensor_u32.cairo b/src/operators/tensor/implementations/tensor_u32.cairo index b0e3effa6..56abb440a 100644 --- a/src/operators/tensor/implementations/tensor_u32.cairo +++ b/src/operators/tensor/implementations/tensor_u32.cairo @@ -4,12 +4,11 @@ use core::option::OptionTrait; use core::traits::{TryInto, Into}; use orion::numbers::fixed_point::core::FixedTrait; -use orion::operators::tensor::helpers::SpanPartialOrd; 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, manipulation}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; use orion::numbers::{i8, i32, NumberTrait}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_bool::BoolTensor}; @@ -457,12 +456,6 @@ impl U32Tensor of TensorTrait { ) -> Tensor { math::concat_from_sequence::concat_from_sequence(sequence, axis, new_axis) } - - fn unique( - self: @Tensor, axis: Option, sorted: Option - ) -> (Tensor, Tensor, Tensor, Tensor) { - manipulation::unique::unique(self, axis, sorted) - } } /// Implements addition for `Tensor` using the `Add` trait. @@ -543,29 +536,6 @@ impl U32TryIntoI8 of TryInto { } } -/// Implements partial ord for two `Tensor> { - #[inline(always)] - fn ge(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::ge(lhs.data, rhs.data); - } - - #[inline(always)] - fn gt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::gt(lhs.data, rhs.data); - } - - #[inline(always)] - fn le(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::le(lhs.data, rhs.data); - } - - #[inline(always)] - fn lt(lhs: Tensor, rhs: Tensor) -> bool { - return SpanPartialOrd::lt(lhs.data, rhs.data); - } -} - // Internals fn tensor_eq(mut lhs: Tensor, mut rhs: Tensor,) -> bool { diff --git a/src/operators/tensor/manipulation.cairo b/src/operators/tensor/manipulation.cairo deleted file mode 100644 index b517c624e..000000000 --- a/src/operators/tensor/manipulation.cairo +++ /dev/null @@ -1 +0,0 @@ -mod unique; diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo deleted file mode 100644 index c23a38c8f..000000000 --- a/src/operators/tensor/manipulation/unique.cairo +++ /dev/null @@ -1,289 +0,0 @@ -use core::traits::Into; -use core::traits::IndexView; -use core::option::OptionTrait; -use core::array::{SpanTrait, ArrayTrait}; - -use core::debug::PrintTrait; - -use alexandria_data_structures::array_ext::SpanTraitExt; -use alexandria_sorting::merge_sort::merge; - -use orion::numbers::{i32, NumberTrait}; -use orion::operators::tensor::core::{Tensor, TensorTrait, stride}; - - -/// Cf: TensorTrait::unique docstring -fn unique< - T, - +Copy, - +Drop, - +TensorTrait, - +PartialOrd, - +PartialEq, - +PartialEq>, - +PartialOrd> ->( - self: @Tensor, axis: Option, sorted: Option -) -> (Tensor, Tensor, Tensor, Tensor) { - let sorted = match sorted { - Option::Some(sorted) => sorted, - Option::None => true, - }; - - let (unique_elements, new_shape, indices, inverse_indices, count) = if axis.is_none() { - unique_flatten(self, sorted) - } else { - unique_along_axis(self, axis.unwrap(), sorted) - }; - - let unique_elements = Tensor:: { shape: new_shape, data: unique_elements }; - let indices = Tensor:: { shape: array![indices.len()].span(), data: indices }; - let inverse_indices = Tensor::< - i32 - > { shape: array![inverse_indices.len()].span(), data: inverse_indices }; - let count = Tensor:: { shape: array![count.len()].span(), data: count }; - - (unique_elements, indices, inverse_indices, count) -} - -/// Subfunction unique for flatten tensors (no axis). -/// Cf: TensorTrait::unique docstring -fn unique_flatten, +Drop, +PartialOrd, +PartialEq,>( - t: @Tensor, sorted: bool -) -> (Span, Span, Span, Span, Span) { - let mut indices: Array = array![]; - let mut inverse_indices: Array = array![]; - let mut count: Array = array![]; - - let mut unique_elements = (*t.data).unique(); - let mut new_shape: Array = array![unique_elements.len()]; - - if (sorted) { - unique_elements = merge(unique_elements); - } - - let mut unique_elements_span = unique_elements.span(); - let mut data_cpy = *(t.data); - loop { - match unique_elements_span.pop_front() { - Option::Some(value) => { - let occurences = data_cpy.occurrences_of(*value); - count.append(occurences.into()); - let idx_in_data = data_cpy.index_of(*value).unwrap(); - indices.append(idx_in_data.into()); - }, - Option::None => { break; } - } - }; - unique_elements_span = unique_elements.span(); - loop { - match data_cpy.pop_front() { - Option::Some(value) => { - let idx_in_uniques = unique_elements_span.index_of(*value).unwrap(); - inverse_indices.append(idx_in_uniques.into()); - }, - Option::None => { break; } - } - }; - - return ( - unique_elements.span(), - new_shape.span(), - indices.span(), - inverse_indices.span(), - count.span() - ); -} - -/// Subfunction unique for tensors (wth axis). -/// Cf: TensorTrait::unique docstring -fn unique_along_axis< - T, - +Copy, - +Drop, - +PartialOrd, - +PartialEq, - +TensorTrait, - +PartialEq>, - +PartialOrd> ->( - t: @Tensor, axis: usize, sorted: bool -) -> (Span, Span, Span, Span, Span) { - let mut new_shape: Array = array![]; - let mut indices: Array = array![]; - let mut inverse_indices: Array = array![]; - let mut count: Array = array![]; - - let rank = (*t).shape.len(); - assert(axis < rank, 'axis out of dimensions'); - - let all_tensors = as_tensors_array(t, axis); - let mut unique_tensors = get_unique_tensors(all_tensors.span()); - let mut unique_tensors_len = unique_tensors.len(); - - let mut i = 0; - loop { - if (i >= rank) { - break; - } - new_shape.append(if axis == i { - unique_tensors_len - } else { - *(*t).shape.at(i) - }); - i += 1; - }; - - if (sorted) { - unique_tensors = merge(unique_tensors); - } - - let mut all_tensors_span = all_tensors.span(); - let mut unique_tensors_span = unique_tensors.span(); - loop { - match unique_tensors_span.pop_front() { - Option::Some(t) => { - let occurences = all_tensors_span.occurrences_of(*t); - count.append(occurences.into()); - let idx_in_all = all_tensors_span.index_of(*t).unwrap(); - indices.append(idx_in_all.into()); - }, - Option::None => { break; } - } - }; - unique_tensors_span = unique_tensors.span(); - loop { - match all_tensors_span.pop_front() { - Option::Some(t) => { - let idx_in_uniques = unique_tensors_span.index_of(*t).unwrap(); - inverse_indices.append(idx_in_uniques.into()); - }, - Option::None => { break; } - } - }; - - let new_shape_span = new_shape.span(); - let unique_elements = if (*t).shape == new_shape_span { - *t.data - } else { - flatten_array_of_tensors(unique_tensors, axis, new_shape_span) - }; - - return (unique_elements, new_shape_span, indices.span(), inverse_indices.span(), count.span()); -} - -/// Convert a Tensor to an array of tensors for a given axis. -fn as_tensors_array, +Drop, +TensorTrait,>( - tensor: @Tensor, axis: usize -) -> Array> { - let shape = *tensor.shape; - let rank = shape.len(); - let mut as_tensors: Array> = array![]; - - let mut axes: Array = array![]; - let mut idx: usize = 0; - loop { - if idx >= rank { - break; - } - axes.append(idx); - idx += 1; - }; - - idx = 0; - let axis_len: usize = *shape.at(axis); - loop { - if idx >= axis_len { - break; - } - let mut starts: Array = array![]; - let mut ends: Array = array![]; - let mut i: usize = 0; - loop { - if i >= rank { - break; - } - starts.append(if i == axis { - idx - } else { - 0 - }); - ends.append(if i == axis { - idx + 1 - } else { - *shape.at(i) - }); - i += 1; - }; - - let sub_tensor: Tensor = tensor - .slice( - starts: starts.span(), - ends: ends.span(), - axes: Option::Some(axes.span()), - steps: Option::None(()) - ); - - as_tensors.append(sub_tensor); - - idx += 1; - }; - as_tensors -} - -/// Returns from an array of tensors all the uniques tensors. -fn get_unique_tensors, +Drop, +PartialEq, +PartialEq>>( - mut arr: Span> -) -> Array> { - let mut uniques_tensors: Array> = array![]; - - loop { - match arr.pop_front() { - Option::Some(t) => { - if !uniques_tensors.span().contains(*t) { - uniques_tensors.append(*t); - } - }, - Option::None => { break; }, - } - }; - return uniques_tensors; -} - -/// Flatten a given array of tensors into an Array. -fn flatten_array_of_tensors, +Drop,>( - tensors: Array>, axis: usize, new_shape: Span -) -> Span { - let mut new_stride = stride(new_shape); - - let mut flattened: Array = array![]; - - let stride_lim: usize = *new_stride.at(axis); - let max_row = (*(*tensors.at(0).shape).at(0)); - let mut row = 0; - loop { - if row >= max_row { - break; - } - let mut tensors_span = tensors.span(); - loop { - let mut i = 0; - match tensors_span.pop_front() { - Option::Some(mut t) => { - let mut data = *t.data; - loop { - if i >= stride_lim { - break; - } - let idx = i + (row * stride_lim); - flattened.append(*data.at(idx)); - i += 1; - } - }, - Option::None => { break; }, - } - }; - row += 1; - }; - flattened.span() -} diff --git a/tests/nodes.cairo b/tests/nodes.cairo index 7259b1aa3..12bc31c9b 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -1,832 +1,822 @@ -// mod abs_fp16x16; -// mod abs_fp8x23; -// mod abs_i32; -// mod abs_i8; -// mod acos_fp16x16; -// mod acos_fp8x23; -// mod acosh_fp16x16; -// mod acosh_fp8x23; -// mod add_fp16x16; -// mod add_fp16x16_broadcast; -// mod add_fp8x23; -// mod add_fp8x23_broadcast; -// mod add_i32; -// mod add_i32_broadcast; -// mod add_i8; -// mod add_i8_broadcast; -// mod add_u32; -// mod add_u32_broadcast; -// mod argmax_fp16x16_1D_default; -// mod argmax_fp16x16_1D_keepdims_false; -// mod argmax_fp16x16_1D_last_index; -// mod argmax_fp16x16_2D_default; -// mod argmax_fp16x16_2D_keepdims_false; -// mod argmax_fp16x16_2D_last_index; -// mod argmax_fp16x16_3D_default; -// mod argmax_fp16x16_3D_keepdims_false; -// mod argmax_fp16x16_3D_last_index; -// mod argmax_fp8x23_1D_default; -// mod argmax_fp8x23_1D_keepdims_false; -// mod argmax_fp8x23_1D_last_index; -// mod argmax_fp8x23_2D_default; -// mod argmax_fp8x23_2D_keepdims_false; -// mod argmax_fp8x23_2D_last_index; -// mod argmax_fp8x23_3D_default; -// mod argmax_fp8x23_3D_keepdims_false; -// mod argmax_fp8x23_3D_last_index; -// mod argmax_i32_1D_default; -// mod argmax_i32_1D_keepdims_false; -// mod argmax_i32_1D_last_index; -// mod argmax_i32_2D_default; -// mod argmax_i32_2D_keepdims_false; -// mod argmax_i32_2D_last_index; -// mod argmax_i32_3D_default; -// mod argmax_i32_3D_keepdims_false; -// mod argmax_i32_3D_last_index; -// mod argmax_i8_1D_default; -// mod argmax_i8_1D_keepdims_false; -// mod argmax_i8_1D_last_index; -// mod argmax_i8_2D_default; -// mod argmax_i8_2D_keepdims_false; -// mod argmax_i8_2D_last_index; -// mod argmax_i8_3D_default; -// mod argmax_i8_3D_keepdims_false; -// mod argmax_i8_3D_last_index; -// mod argmax_u32_1D_default; -// mod argmax_u32_1D_keepdims_false; -// mod argmax_u32_1D_last_index; -// mod argmax_u32_2D_default; -// mod argmax_u32_2D_keepdims_false; -// mod argmax_u32_2D_last_index; -// mod argmax_u32_3D_default; -// mod argmax_u32_3D_keepdims_false; -// mod argmax_u32_3D_last_index; -// mod argmin_fp16x16_1D_default; -// mod argmin_fp16x16_1D_keepdims_false; -// mod argmin_fp16x16_1D_last_index; -// mod argmin_fp16x16_2D_default; -// mod argmin_fp16x16_2D_keepdims_false; -// mod argmin_fp16x16_2D_last_index; -// mod argmin_fp16x16_3D_default; -// mod argmin_fp16x16_3D_keepdims_false; -// mod argmin_fp16x16_3D_last_index; -// mod argmin_fp8x23_1D_default; -// mod argmin_fp8x23_1D_keepdims_false; -// mod argmin_fp8x23_1D_last_index; -// mod argmin_fp8x23_2D_default; -// mod argmin_fp8x23_2D_keepdims_false; -// mod argmin_fp8x23_2D_last_index; -// mod argmin_fp8x23_3D_default; -// mod argmin_fp8x23_3D_keepdims_false; -// mod argmin_fp8x23_3D_last_index; -// mod argmin_i32_1D_default; -// mod argmin_i32_1D_keepdims_false; -// mod argmin_i32_1D_last_index; -// mod argmin_i32_2D_default; -// mod argmin_i32_2D_keepdims_false; -// mod argmin_i32_2D_last_index; -// mod argmin_i32_3D_default; -// mod argmin_i32_3D_keepdims_false; -// mod argmin_i32_3D_last_index; -// mod argmin_i8_1D_default; -// mod argmin_i8_1D_keepdims_false; -// mod argmin_i8_1D_last_index; -// mod argmin_i8_2D_default; -// mod argmin_i8_2D_keepdims_false; -// mod argmin_i8_2D_last_index; -// mod argmin_i8_3D_default; -// mod argmin_i8_3D_keepdims_false; -// mod argmin_i8_3D_last_index; -// mod argmin_u32_1D_default; -// mod argmin_u32_1D_keepdims_false; -// mod argmin_u32_1D_last_index; -// mod argmin_u32_2D_default; -// mod argmin_u32_2D_keepdims_false; -// mod argmin_u32_2D_last_index; -// mod argmin_u32_3D_default; -// mod argmin_u32_3D_keepdims_false; -// mod argmin_u32_3D_last_index; -// mod asin_fp16x16; -// mod asin_fp8x23; -// mod asinh_fp16x16; -// mod asinh_fp8x23; -// mod atan_fp16x16; -// mod atan_fp8x23; -// mod ceil_fp16x16; -// mod ceil_fp8x23; -// mod concat_fp16x16_1d; -// mod concat_fp16x16_2d; -// mod concat_fp16x16_3d_default; -// mod concat_fp16x16_3d_axis_1; -// mod concat_fp16x16_3d_axis_2; -// mod concat_fp16x16_3d_three_tensors_axis_1; -// mod concat_fp16x16_3d_three_tensors_axis_2; -// mod concat_fp8x23_1d; -// mod concat_fp8x23_2d; -// mod concat_fp8x23_3d_default; -// mod concat_fp8x23_3d_axis_1; -// mod concat_fp8x23_3d_axis_2; -// mod concat_fp8x23_3d_three_tensors_axis_1; -// mod concat_fp8x23_3d_three_tensors_axis_2; -// mod concat_i32_1d; -// mod concat_i32_2d; -// mod concat_i32_3d_default; -// mod concat_i32_3d_axis_1; -// mod concat_i32_3d_axis_2; -// mod concat_i32_3d_three_tensors_axis_1; -// mod concat_i32_3d_three_tensors_axis_2; -// mod concat_i8_1d; -// mod concat_i8_2d; -// mod concat_i8_3d_default; -// mod concat_i8_3d_axis_1; -// mod concat_i8_3d_axis_2; -// mod concat_i8_3d_three_tensors_axis_1; -// mod concat_i8_3d_three_tensors_axis_2; -// mod concat_u32_1d; -// mod concat_u32_2d; -// mod concat_u32_3d_default; -// mod concat_u32_3d_axis_1; -// mod concat_u32_3d_axis_2; -// mod concat_u32_3d_three_tensors_axis_1; -// mod concat_u32_3d_three_tensors_axis_2; -// mod cos_fp16x16; -// mod cos_fp8x23; -// mod cosh_fp16x16; -// mod cosh_fp8x23; -// mod cumsum_fp16x16_1d_default; -// mod cumsum_fp16x16_1d_exclusive; -// mod cumsum_fp16x16_1d_reverse; -// mod cumsum_fp16x16_1d_reverse_exclusive; -// mod cumsum_fp16x16_2d_axis_0; -// mod cumsum_fp16x16_2d_axis_1; -// mod cumsum_fp8x23_1d_default; -// mod cumsum_fp8x23_1d_exclusive; -// mod cumsum_fp8x23_1d_reverse; -// mod cumsum_fp8x23_1d_reverse_exclusive; -// mod cumsum_fp8x23_2d_axis_0; -// mod cumsum_fp8x23_2d_axis_1; -// mod cumsum_i32_1d_default; -// mod cumsum_i32_1d_exclusive; -// mod cumsum_i32_1d_reverse; -// mod cumsum_i32_1d_reverse_exclusive; -// mod cumsum_i32_2d_axis_0; -// mod cumsum_i32_2d_axis_1; -// mod cumsum_i8_1d_default; -// mod cumsum_i8_1d_exclusive; -// mod cumsum_i8_1d_reverse; -// mod cumsum_i8_1d_reverse_exclusive; -// mod cumsum_i8_2d_axis_0; -// mod cumsum_i8_2d_axis_1; -// mod cumsum_u32_1d_default; -// mod cumsum_u32_1d_exclusive; -// mod cumsum_u32_1d_reverse; -// mod cumsum_u32_1d_reverse_exclusive; -// mod cumsum_u32_2d_axis_0; -// mod cumsum_u32_2d_axis_1; -// mod div_fp16x16; -// mod div_fp16x16_broadcast; -// mod div_fp8x23; -// mod div_fp8x23_broadcast; -// mod div_i32; -// mod div_i32_broadcast; -// mod div_i8; -// mod div_i8_broadcast; -// mod div_u32; -// mod div_u32_broadcast; -// mod equal_fp16x16; -// mod equal_fp16x16_broadcast; -// mod equal_fp8x23; -// mod equal_fp8x23_broadcast; -// mod equal_i32; -// mod equal_i32_broadcast; -// mod equal_i8; -// mod equal_i8_broadcast; -// mod equal_u32; -// mod equal_u32_broadcast; -// mod exp_fp16x16; -// mod exp_fp8x23; -// mod less_equal_fp16x16; -// mod less_equal_fp16x16_broadcast; -// mod less_equal_fp8x23; -// mod less_equal_fp8x23_broadcast; -// mod less_equal_i32; -// mod less_equal_i32_broadcast; -// mod less_equal_i8; -// mod less_equal_i8_broadcast; -// mod less_equal_u32; -// mod less_equal_u32_broadcast; -// mod greater_fp16x16; -// mod greater_fp16x16_broadcast; -// mod greater_fp8x23; -// mod greater_fp8x23_broadcast; -// mod greater_i32; -// mod greater_i32_broadcast; -// mod greater_i8; -// mod greater_i8_broadcast; -// mod greater_u32; -// mod greater_u32_broadcast; -// mod leaky_relu_fp16x16; -// mod leaky_relu_fp8x23; -// mod linear_fp16x16; -// mod linear_fp8x23; -// mod linear_i32; -// mod linear_i8; -// mod linear_u32; -// mod log_fp16x16; -// mod log_fp8x23; -// mod logsoftmax_fp16x16_axis_0; -// mod logsoftmax_fp16x16_axis_1; -// mod logsoftmax_fp8x23_axis_0; -// mod logsoftmax_fp8x23_axis_1; -// mod matmul_fp16x16_1d; -// mod matmul_fp16x16_2x2; -// mod matmul_fp16x16_2x1; -// mod matmul_fp16x16_1x2; -// mod matmul_fp8x23_1d; -// mod matmul_fp8x23_2x2; -// mod matmul_fp8x23_2x1; -// mod matmul_fp8x23_1x2; -// mod matmul_i32_1d; -// mod matmul_i32_2x2; -// mod matmul_i32_2x1; -// mod matmul_i32_1x2; -// mod matmul_i8_1d; -// mod matmul_i8_2x2; -// mod matmul_i8_2x1; -// mod matmul_i8_1x2; -// mod matmul_u32_1d; -// mod matmul_u32_2x2; -// mod matmul_u32_2x1; -// mod matmul_u32_1x2; -// mod mul_fp16x16; -// mod mul_fp16x16_broadcast; -// mod mul_fp8x23; -// mod mul_fp8x23_broadcast; -// mod mul_i32; -// mod mul_i32_broadcast; -// mod mul_i8; -// mod mul_i8_broadcast; -// mod mul_u32; -// mod mul_u32_broadcast; -// mod or_fp16x16; -// mod or_fp16x16_broadcast; -// mod or_fp8x23; -// mod or_fp8x23_broadcast; -// mod or_i32; -// mod or_i32_broadcast; -// mod or_i8; -// mod or_i8_broadcast; -// mod or_u32; -// mod or_u32_broadcast; -// mod reduce_sum_fp16x16_1D; -// mod reduce_sum_fp16x16_2D_default; -// mod reduce_sum_fp16x16_2D_keepdims; -// mod reduce_sum_fp16x16_2D_axis_1; -// mod reduce_sum_fp8x23_1D; -// mod reduce_sum_fp8x23_2D_default; -// mod reduce_sum_fp8x23_2D_keepdims; -// mod reduce_sum_fp8x23_2D_axis_1; -// mod reduce_sum_i32_1D; -// mod reduce_sum_i32_2D_default; -// mod reduce_sum_i32_2D_keepdims; -// mod reduce_sum_i32_2D_axis_1; -// mod reduce_sum_i8_1D; -// mod reduce_sum_i8_2D_default; -// mod reduce_sum_i8_2D_keepdims; -// mod reduce_sum_i8_2D_axis_1; -// mod reduce_sum_u32_1D; -// mod reduce_sum_u32_2D_default; -// mod reduce_sum_u32_2D_keepdims; -// mod reduce_sum_u32_2D_axis_1; -// mod relu_fp16x16; -// mod relu_fp8x23; -// mod relu_i32; -// mod relu_i8; -// mod sigmoid_fp16x16; -// mod sigmoid_fp8x23; -// mod sin_fp16x16; -// mod sin_fp8x23; -// mod sinh_fp16x16; -// mod sinh_fp8x23; -// mod softmax_fp16x16; -// mod softmax_fp8x23; -// mod softplus_fp8x23; -// mod softplus_fp16x16; -// mod softsign_fp8x23; -// mod softsign_fp16x16; -// mod sqrt_fp16x16; -// mod sqrt_fp8x23; -// mod sub_fp16x16; -// mod sub_fp16x16_broadcast; -// mod sub_fp8x23; -// mod sub_fp8x23_broadcast; -// mod sub_i32; -// mod sub_i32_broadcast; -// mod sub_i8; -// mod sub_i8_broadcast; -// mod sub_u32; -// mod sub_u32_broadcast; -// mod tanh_fp16x16; -// mod tanh_fp8x23; -// mod transpose_fp16x16_2d; -// mod transpose_fp16x16_3d; -// mod transpose_fp8x23_2d; -// mod transpose_fp8x23_3d; -// mod transpose_i32_2d; -// mod transpose_i32_3d; -// mod transpose_i8_2d; -// mod transpose_i8_3d; -// mod transpose_u32_2d; -// mod transpose_u32_3d; -// mod xor_fp16x16; -// mod xor_fp16x16_broadcast; -// mod xor_fp8x23; -// mod xor_fp8x23_broadcast; -// mod xor_i32; -// mod xor_i32_broadcast; -// mod xor_i8; -// mod xor_i8_broadcast; -// mod xor_u32; -// mod xor_u32_broadcast; -// mod less_fp16x16; -// mod less_fp16x16_broadcast; -// mod less_fp8x23; -// mod less_fp8x23_broadcast; -// mod less_i32; -// mod less_i32_broadcast; -// mod less_i8; -// mod less_i8_broadcast; -// mod less_u32; -// mod less_u32_broadcast; -// mod greater_equal_fp16x16; -// mod greater_equal_fp16x16_broadcast; -// mod greater_equal_fp8x23; -// mod greater_equal_fp8x23_broadcast; -// mod greater_equal_i32; -// mod greater_equal_i32_broadcast; -// mod greater_equal_i8; -// mod greater_equal_i8_broadcast; -// mod greater_equal_u32; -// mod greater_equal_u32_broadcast; -// mod slice_fp16x16_2d; -// mod slice_fp16x16_3d; -// mod slice_fp8x23_2d; -// mod slice_fp8x23_3d; -// mod slice_i32_2d; -// mod slice_i32_3d; -// mod slice_i8_2d; -// mod slice_i8_3d; -// mod slice_u32_2d; -// mod slice_u32_3d; -// mod gather_fp8x23_3d_default; -// mod gather_fp8x23_3d_axis1; -// mod gather_fp8x23_3d_axis2; -// mod gather_fp16x16_3d_default; -// mod gather_fp16x16_3d_axis1; -// mod gather_fp16x16_3d_axis2; -// mod gather_i8_3d_default; -// mod gather_i8_3d_axis1; -// mod gather_i8_3d_axis2; -// mod gather_i32_3d_default; -// mod gather_i32_3d_axis1; -// mod gather_i32_3d_axis2; -// mod gather_u32_3d_default; -// mod gather_u32_3d_axis1; -// mod gather_u32_3d_axis2; -// mod nonzero_fp16x16_2d; -// mod nonzero_fp16x16_3d; -// mod nonzero_fp8x23_2d; -// mod nonzero_fp8x23_3d; -// mod nonzero_i32_2d; -// mod nonzero_i32_3d; -// mod nonzero_i8_2d; -// mod nonzero_i8_3d; -// mod nonzero_u32_2d; -// mod nonzero_u32_3d; -// mod squeeze_fP16x16; -// mod squeeze_fP8x23; -// mod squeeze_i32; -// mod squeeze_i8; -// mod squeeze_u32; -// mod unsqueeze_fp16x16_2d; -// mod unsqueeze_fp16x16_3d; -// mod unsqueeze_fp8x23_2d; -// mod unsqueeze_fp8x23_3d; -// mod unsqueeze_i32_2d; -// mod unsqueeze_i32_3d; -// mod unsqueeze_i8_2d; -// mod unsqueeze_i8_3d; -// mod unsqueeze_u32_2d; -// mod unsqueeze_u32_3d; -// mod sign_fP16x16; -// mod sign_fP8x23; -// mod sign_fail; -// mod sign_i32; -// mod sign_i8; -// mod clip_fp16x16_2d; -// mod clip_fp16x16_3d; -// mod clip_fp8x23_2d; -// mod clip_fp8x23_3d; -// mod clip_i32_2d; -// mod clip_i32_3d; -// mod clip_i8_2d; -// mod clip_i8_3d; -// mod clip_u32_2d; -// mod clip_u32_3d; -// mod identity_fP16x16; -// mod identity_fP8x23; -// mod identity_i32; -// mod identity_i8; -// mod identity_u32; -// mod thresholded_relu_fp16x16; -// mod thresholded_relu_fp8x23; -// mod hard_sigmoid_fp8x23; -// mod hard_sigmoid_fp16x16; -// mod neg_fp16x16; -// mod neg_fp8x23; -// mod neg_i32; -// mod neg_i8; -// mod gemm_all_attributes; -// mod gemm_alpha; -// mod gemm_beta; -// mod gemm_default_matrix_bias; -// mod gemm_default_vector_bias; -// mod gemm_default_no_bias; -// mod gemm_transposeA; -// mod gemm_transposeB; -// mod min_fp16x16_three_tensors; -// mod min_fp16x16_broadcast_three_tensors; -// mod min_fp16x16_two_tensors; -// mod min_fp16x16_broadcast_two_tensors; -// mod min_fp8x23_three_tensors; -// mod min_fp8x23_broadcast_three_tensors; -// mod min_fp8x23_two_tensors; -// mod min_fp8x23_broadcast_two_tensors; -// mod min_i32_three_tensors; -// mod min_i32_broadcast_three_tensors; -// mod min_i32_two_tensors; -// mod min_i32_broadcast_two_tensors; -// mod min_i8_three_tensors; -// mod min_i8_broadcast_three_tensors; -// mod min_i8_two_tensors; -// mod min_i8_broadcast_two_tensors; -// mod min_u32_three_tensors; -// mod min_u32_broadcast_three_tensors; -// mod min_u32_two_tensors; -// mod min_u32_broadcast_two_tensors; -// mod where_fp16x16; -// mod where_fp16x16_broadcast; -// mod where_fp8x23; -// mod where_fp8x23_broadcast; -// mod where_i32; -// mod where_i32_broadcast; -// mod where_i8; -// mod where_i8_broadcast; -// mod where_u32; -// mod where_u32_broadcast; -// mod not_bool; -// mod round_fp16x16; -// mod round_fp8x23; -// mod max_fp16x16_three_tensors; -// mod max_fp16x16_broadcast_three_tensors; -// mod max_fp16x16_two_tensors; -// mod max_fp16x16_broadcast_two_tensors; -// mod max_fp8x23_three_tensors; -// mod max_fp8x23_broadcast_three_tensors; -// mod max_fp8x23_two_tensors; -// mod max_fp8x23_broadcast_two_tensors; -// mod max_i32_three_tensors; -// mod max_i32_broadcast_three_tensors; -// mod max_i32_two_tensors; -// mod max_i32_broadcast_two_tensors; -// mod max_i8_three_tensors; -// mod max_i8_broadcast_three_tensors; -// mod max_i8_two_tensors; -// mod max_i8_broadcast_two_tensors; -// mod max_u32_three_tensors; -// mod max_u32_broadcast_three_tensors; -// mod max_u32_two_tensors; -// mod max_u32_broadcast_two_tensors; -// mod scatter_fp16x16_3d_default; -// mod scatter_fp16x16_3d_axis1; -// mod scatter_fp16x16_3d_axis1_add; -// mod scatter_fp8x23_default; -// mod scatter_fp8x23_axis1; -// mod scatter_fp8x23_mul; -// mod scatter_i8_default; -// mod scatter_i8_axis1; -// mod scatter_i8_axis1_max; -// mod scatter_u32_default; -// mod scatter_u32_axis1; -// mod scatter_u32_add; -// mod array_feature_extractor_1D_i32; -// mod array_feature_extractor_1D_fp8x23; -// mod array_feature_extractor_1D_fp16x16; -// mod array_feature_extractor_2D_i32; -// mod array_feature_extractor_2D_fp8x23; -// mod array_feature_extractor_2D_fp16x16; -// mod array_feature_extractor_3D_i32; -// mod array_feature_extractor_3D_fp8x23; -// mod array_feature_extractor_3D_fp16x16; -// mod binarizer_fp16x16; -// mod binarizer_fp8x23; -// mod tril_fp16x16; -// mod tril_fp16x16_neg; -// mod tril_fp16x16_one_row; -// mod tril_fp16x16_out_neg; -// mod tril_fp16x16_out_pos; -// mod tril_fp16x16_pos; -// mod tril_fp16x16_square; -// mod tril_fp16x16_square_neg; -// mod tril_fp16x16_zero; -// mod triu_fp16x16; -// mod triu_fp16x16_neg; -// mod triu_fp16x16_one_row; -// mod triu_fp16x16_out_neg; -// mod triu_fp16x16_out_pos; -// mod triu_fp16x16_pos; -// mod triu_fp16x16_square; -// mod triu_fp16x16_square_neg; -// mod triu_fp16x16_zero; -// mod tril_fp8x23; -// mod tril_fp8x23_neg; -// mod tril_fp8x23_one_row; -// mod tril_fp8x23_out_neg; -// mod tril_fp8x23_out_pos; -// mod tril_fp8x23_pos; -// mod tril_fp8x23_square; -// mod tril_fp8x23_square_neg; -// mod tril_fp8x23_zero; -// mod triu_fp8x23; -// mod triu_fp8x23_neg; -// mod triu_fp8x23_one_row; -// mod triu_fp8x23_out_neg; -// mod triu_fp8x23_out_pos; -// mod triu_fp8x23_pos; -// mod triu_fp8x23_square; -// mod triu_fp8x23_square_neg; -// mod triu_fp8x23_zero; -// mod tril_i32; -// mod tril_neg_i32; -// mod tril_i32_one_row; -// mod tril_i32_out_neg; -// mod tril_i32_out_pos; -// mod tril_i32_pos; -// mod tril_i32_square; -// mod tril_i32_square_neg; -// mod tril_i32_zero; -// mod triu_i32; -// mod triu_i32_neg; -// mod triu_i32_one_row; -// mod triu_i32_out_neg; -// mod triu_i32_out_pos; -// mod triu_i32_pos; -// mod triu_i32_square; -// mod triu_i32_square_neg; -// mod triu_i32_zero; -// mod tril_i8; -// mod tril_i8_neg; -// mod tril_i8_one_row; -// mod tril_i8_out_neg; -// mod tril_i8_out_pos; -// mod tril_i8_pos; -// mod tril_i8_square; -// mod tril_i8_square_neg; -// mod tril_i8_zero; -// mod triu_i8; -// mod triu_i8_neg; -// mod triu_i8_one_row; -// mod triu_i8_out_neg; -// mod triu_i8_out_pos; -// mod triu_i8_pos; -// mod triu_i8_square; -// mod triu_i8_square_neg; -// mod triu_i8_zero; -// mod tril_u32; -// mod tril_u32_neg; -// mod tril_u32_one_row; -// mod tril_u32_out_neg; -// mod tril_u32_out_pos; -// mod tril_u32_pos; -// mod tril_u32_square; -// mod tril_u32_square_neg; -// mod tril_u32_zero; -// mod triu_u32; -// mod triu_u32_neg; -// mod triu_u32_one_row; -// mod triu_u32_out_neg; -// mod triu_u32_out_pos; -// mod triu_u32_pos; -// mod triu_u32_square; -// mod triu_u32_square_neg; -// mod triu_u32_zero; -// mod reduce_sum_square_fp16x16_export_do_not_keepdims; -// mod reduce_sum_square_fp16x16_export_keepdims; -// mod reduce_sum_square_fp16x16_export_negative_axes_keepdims; -// mod reduce_sum_square_fp8x23_export_do_not_keepdims; -// mod reduce_sum_square_fp8x23_export_keepdims; -// mod reduce_sum_square_fp8x23_export_negative_axes_keepdims; -// mod reduce_sum_square_i32_export_do_not_keepdims; -// mod reduce_sum_square_i32_export_keepdims; -// mod reduce_sum_square_i32_export_negative_axes_keepdims; -// mod reduce_sum_square_i8_export_do_not_keepdims; -// mod reduce_sum_square_i8_export_keepdims; -// mod reduce_sum_square_i8_export_negative_axes_keepdims; -// mod reduce_sum_square_u32_export_do_not_keepdims; -// mod reduce_sum_square_u32_export_keepdims; -// mod reduce_sum_square_u32_export_negative_axes_keepdims; -// mod reduce_l2_fp16x16_export_do_not_keepdims; -// mod reduce_l2_fp16x16_export_keepdims; -// mod reduce_l2_fp16x16_export_negative_axes_keepdims; -// mod reduce_l2_fp8x23_export_do_not_keepdims; -// mod reduce_l2_fp8x23_export_keepdims; -// mod reduce_l2_fp8x23_export_negative_axes_keepdims; -// mod reduce_l1_fp16x16_export_do_not_keepdims; -// mod reduce_l1_fp16x16_export_keepdims; -// mod reduce_l1_fp16x16_export_negative_axes_keepdims; -// mod reduce_l1_fp8x23_export_do_not_keepdims; -// mod reduce_l1_fp8x23_export_keepdims; -// mod reduce_l1_fp8x23_export_negative_axes_keepdims; -// mod reduce_l1_i32_export_do_not_keepdims; -// mod reduce_l1_i32_export_keepdims; -// mod reduce_l1_i32_export_negative_axes_keepdims; -// mod reduce_l1_i8_export_do_not_keepdims; -// mod reduce_l1_i8_export_keepdims; -// mod reduce_l1_i8_export_negative_axes_keepdims; -// mod reduce_l1_u32_export_do_not_keepdims; -// mod reduce_l1_u32_export_keepdims; -// mod reduce_l1_u32_export_negative_axes_keepdims; -// mod reduce_prod_fp16x16_1D; -// mod reduce_prod_fp16x16_2D_default; -// mod reduce_prod_fp16x16_2D_keepdims; -// mod reduce_prod_fp16x16_2D_axis_1; -// mod reduce_prod_fp8x23_1D; -// mod reduce_prod_fp8x23_2D_default; -// mod reduce_prod_fp8x23_2D_keepdims; -// mod reduce_prod_fp8x23_2D_axis_1; -// mod reduce_prod_i32_1D; -// mod reduce_prod_i32_2D_default; -// mod reduce_prod_i32_2D_keepdims; -// mod reduce_prod_i32_2D_axis_1; -// mod reduce_prod_i8_1D; -// mod reduce_prod_i8_2D_default; -// mod reduce_prod_i8_2D_keepdims; -// mod reduce_prod_i8_2D_axis_1; -// mod reduce_prod_u32_1D; -// mod reduce_prod_u32_2D_default; -// mod reduce_prod_u32_2D_keepdims; -// mod reduce_prod_u32_2D_axis_1; -// mod gather_elements_fp16x16_3d_default; -// mod gather_elements_fp16x16_3d_axis1; -// mod gather_elements_fp16x16_3d_axis2; -// mod gather_elements_fp8x23_3d_default; -// mod gather_elements_fp8x23_3d_axis1; -// mod gather_elements_fp8x23_3d_axis2; -// mod gather_elements_i8_3d_default; -// mod gather_elements_i8_3d_axis1; -// mod gather_elements_i32_3d_default; -// mod gather_elements_i32_3d_axis1; -// mod gather_elements_i32_3d_axis2; -// mod gather_elements_u32_default; -// mod gather_elements_u32_axis1; -// mod gather_elements_u32_axis2; -// mod gather_elements_u32_axis3; -// mod sequence_length_fp16x16; -// mod sequence_length_fp16x16_broadcast; -// mod sequence_length_fp8x23; -// mod sequence_length_fp8x23_broadcast; -// mod sequence_length_i32; -// mod sequence_length_i32_broadcast; -// mod sequence_length_i8; -// mod sequence_length_i8_broadcast; -// mod sequence_length_u32; -// mod sequence_length_u32_broadcast; -// mod sequence_at_u32_positive; -// mod sequence_at_u32_negative; -// mod sequence_at_fp16x16_positive; -// mod sequence_at_fp16x16_negative; -// mod sequence_at_fp8x23_positive; -// mod sequence_at_fp8x23_negative; -// mod sequence_at_i32_positive; -// mod sequence_at_i32_negative; -// mod sequence_at_i8_positive; -// mod sequence_at_i8_negative; -// mod reduce_min_fp16x16_1D; -// mod reduce_min_fp16x16_2D_default; -// mod reduce_min_fp16x16_2D_keepdims; -// mod reduce_min_fp16x16_2D_axis_1; -// mod reduce_min_fp8x23_1D; -// mod reduce_min_fp8x23_2D_default; -// mod reduce_min_fp8x23_2D_keepdims; -// mod reduce_min_fp8x23_2D_axis_1; -// mod reduce_min_i32_1D; -// mod reduce_min_i32_2D_default; -// mod reduce_min_i32_2D_keepdims; -// mod reduce_min_i32_2D_axis_1; -// mod reduce_min_i8_1D; -// mod reduce_min_i8_2D_default; -// mod reduce_min_i8_2D_keepdims; -// mod reduce_min_i8_2D_axis_1; -// mod reduce_min_u32_1D; -// mod reduce_min_u32_2D_default; -// mod reduce_min_u32_2D_keepdims; -// mod reduce_min_u32_2D_axis_1; -// mod sequence_construct_fp16x16; -// mod sequence_construct_fp8x23; -// mod sequence_construct_i32; -// mod sequence_construct_i8; -// mod sequence_construct_u32; -// mod shrink_hard_fp16x16; -// mod shrink_soft_fp16x16; -// mod shrink_hard_fp8x23; -// mod shrink_soft_fp8x23; -// mod sequence_empty_fp16x16; -// mod sequence_empty_fp8x23; -// mod sequence_empty_i32; -// mod sequence_empty_i8; -// mod sequence_empty_u32; -// mod reduce_mean_fp16x16_1D; -// mod reduce_mean_fp16x16_2D_default; -// mod reduce_mean_fp16x16_2D_keepdims; -// mod reduce_mean_fp16x16_2D_axis_1; -// mod reduce_mean_fp8x23_1D; -// mod reduce_mean_fp8x23_2D_default; -// mod reduce_mean_fp8x23_2D_keepdims; -// mod reduce_mean_fp8x23_2D_axis_1; -// mod reduce_mean_i32_1D; -// mod reduce_mean_i32_2D_default; -// mod reduce_mean_i32_2D_keepdims; -// mod reduce_mean_i32_2D_axis_1; -// mod reduce_mean_i8_1D; -// mod reduce_mean_i8_2D_default; -// mod reduce_mean_i8_2D_keepdims; -// mod reduce_mean_i8_2D_axis_1; -// mod reduce_mean_u32_1D; -// mod reduce_mean_u32_2D_default; -// mod reduce_mean_u32_2D_keepdims; -// mod reduce_mean_u32_2D_axis_1; -// mod pow_fp16x16; -// mod pow_fp16x16_broadcast; -// mod pow_fp8x23; -// mod pow_fp8x23_broadcast; -// mod sequence_erase_u32_positive; -// mod sequence_erase_u32_negative; -// mod sequence_erase_u32_empty; -// mod sequence_erase_fp16x16_positive; -// mod sequence_erase_fp16x16_negative; -// mod sequence_erase_fp16x16_empty; -// mod sequence_erase_fp8x23_positive; -// mod sequence_erase_fp8x23_negative; -// mod sequence_erase_fp8x23_empty; -// mod sequence_erase_i32_positive; -// mod sequence_erase_i32_negative; -// mod sequence_erase_i32_empty; -// mod sequence_erase_i8_positive; -// mod sequence_erase_i8_negative; -// mod sequence_erase_i8_empty; -// mod sequence_insert_fp16x16; -// mod sequence_insert_fp8x23; -// mod sequence_insert_i32; -// mod sequence_insert_i8; -// mod sequence_insert_u32; -// mod concat_from_sequence_fp8x23_new_axis_zero; -// mod concat_from_sequence_fp8x23_new_axis_one; -// mod concat_from_sequence_fp8x23_new_axis_default; -// mod concat_from_sequence_fp16x16_new_axis_zero; -// mod concat_from_sequence_fp16x16_new_axis_one; -// mod concat_from_sequence_fp16x16_new_axis_default; -// mod concat_from_sequence_i32_new_axis_zero; -// mod concat_from_sequence_i32_new_axis_one; -// mod concat_from_sequence_i32_new_axis_default; -// mod concat_from_sequence_i8_new_axis_zero; -// mod concat_from_sequence_i8_new_axis_one; -// mod concat_from_sequence_i8_new_axis_default; -// mod concat_from_sequence_u32_new_axis_zero; -// mod concat_from_sequence_u32_new_axis_one; -// mod concat_from_sequence_u32_new_axis_default; -// mod is_nan_fp16x16; -// mod is_nan_fp8x23; -// mod is_inf_fp16x16; -// mod is_inf_fp8x23; -// mod is_inf_i32; -// mod is_inf_i8; -// mod is_inf_u32; -// mod is_pos_inf_fp16x16; -// mod is_neg_inf_fp16x16; -// mod is_pos_inf_fp8x23; -// mod is_neg_inf_fp8x23; -// mod is_pos_inf_i32; -// mod is_neg_inf_i32; -// mod is_pos_inf_i8; -// mod is_neg_inf_i8; -// mod and_bool; -// mod unique_fp16x16_without_axis_sorted; -// mod unique_fp16x16_with_axis_zero_sorted; -// mod unique_u32_example; -// mod unique_u32_example_two; -// mod unique_u32_without_axis_sorted; -// mod unique_u32_without_axis_not_sorted; -// mod unique_u32_with_axis_zero_sorted; -// mod unique_u32_with_axis_zero_not_sorted; -// mod unique_u32_with_axis_one_sorted; -// mod unique_u32_with_axis_one_not_sorted; +mod abs_fp16x16; +mod abs_fp8x23; +mod abs_i32; +mod abs_i8; +mod acos_fp16x16; +mod acos_fp8x23; +mod acosh_fp16x16; +mod acosh_fp8x23; +mod add_fp16x16; +mod add_fp16x16_broadcast; +mod add_fp8x23; +mod add_fp8x23_broadcast; +mod add_i32; +mod add_i32_broadcast; +mod add_i8; +mod add_i8_broadcast; +mod add_u32; +mod add_u32_broadcast; +mod argmax_fp16x16_1D_default; +mod argmax_fp16x16_1D_keepdims_false; +mod argmax_fp16x16_1D_last_index; +mod argmax_fp16x16_2D_default; +mod argmax_fp16x16_2D_keepdims_false; +mod argmax_fp16x16_2D_last_index; +mod argmax_fp16x16_3D_default; +mod argmax_fp16x16_3D_keepdims_false; +mod argmax_fp16x16_3D_last_index; +mod argmax_fp8x23_1D_default; +mod argmax_fp8x23_1D_keepdims_false; +mod argmax_fp8x23_1D_last_index; +mod argmax_fp8x23_2D_default; +mod argmax_fp8x23_2D_keepdims_false; +mod argmax_fp8x23_2D_last_index; +mod argmax_fp8x23_3D_default; +mod argmax_fp8x23_3D_keepdims_false; +mod argmax_fp8x23_3D_last_index; +mod argmax_i32_1D_default; +mod argmax_i32_1D_keepdims_false; +mod argmax_i32_1D_last_index; +mod argmax_i32_2D_default; +mod argmax_i32_2D_keepdims_false; +mod argmax_i32_2D_last_index; +mod argmax_i32_3D_default; +mod argmax_i32_3D_keepdims_false; +mod argmax_i32_3D_last_index; +mod argmax_i8_1D_default; +mod argmax_i8_1D_keepdims_false; +mod argmax_i8_1D_last_index; +mod argmax_i8_2D_default; +mod argmax_i8_2D_keepdims_false; +mod argmax_i8_2D_last_index; +mod argmax_i8_3D_default; +mod argmax_i8_3D_keepdims_false; +mod argmax_i8_3D_last_index; +mod argmax_u32_1D_default; +mod argmax_u32_1D_keepdims_false; +mod argmax_u32_1D_last_index; +mod argmax_u32_2D_default; +mod argmax_u32_2D_keepdims_false; +mod argmax_u32_2D_last_index; +mod argmax_u32_3D_default; +mod argmax_u32_3D_keepdims_false; +mod argmax_u32_3D_last_index; +mod argmin_fp16x16_1D_default; +mod argmin_fp16x16_1D_keepdims_false; +mod argmin_fp16x16_1D_last_index; +mod argmin_fp16x16_2D_default; +mod argmin_fp16x16_2D_keepdims_false; +mod argmin_fp16x16_2D_last_index; +mod argmin_fp16x16_3D_default; +mod argmin_fp16x16_3D_keepdims_false; +mod argmin_fp16x16_3D_last_index; +mod argmin_fp8x23_1D_default; +mod argmin_fp8x23_1D_keepdims_false; +mod argmin_fp8x23_1D_last_index; +mod argmin_fp8x23_2D_default; +mod argmin_fp8x23_2D_keepdims_false; +mod argmin_fp8x23_2D_last_index; +mod argmin_fp8x23_3D_default; +mod argmin_fp8x23_3D_keepdims_false; +mod argmin_fp8x23_3D_last_index; +mod argmin_i32_1D_default; +mod argmin_i32_1D_keepdims_false; +mod argmin_i32_1D_last_index; +mod argmin_i32_2D_default; +mod argmin_i32_2D_keepdims_false; +mod argmin_i32_2D_last_index; +mod argmin_i32_3D_default; +mod argmin_i32_3D_keepdims_false; +mod argmin_i32_3D_last_index; +mod argmin_i8_1D_default; +mod argmin_i8_1D_keepdims_false; +mod argmin_i8_1D_last_index; +mod argmin_i8_2D_default; +mod argmin_i8_2D_keepdims_false; +mod argmin_i8_2D_last_index; +mod argmin_i8_3D_default; +mod argmin_i8_3D_keepdims_false; +mod argmin_i8_3D_last_index; +mod argmin_u32_1D_default; +mod argmin_u32_1D_keepdims_false; +mod argmin_u32_1D_last_index; +mod argmin_u32_2D_default; +mod argmin_u32_2D_keepdims_false; +mod argmin_u32_2D_last_index; +mod argmin_u32_3D_default; +mod argmin_u32_3D_keepdims_false; +mod argmin_u32_3D_last_index; +mod asin_fp16x16; +mod asin_fp8x23; +mod asinh_fp16x16; +mod asinh_fp8x23; +mod atan_fp16x16; +mod atan_fp8x23; +mod ceil_fp16x16; +mod ceil_fp8x23; +mod concat_fp16x16_1d; +mod concat_fp16x16_2d; +mod concat_fp16x16_3d_default; +mod concat_fp16x16_3d_axis_1; +mod concat_fp16x16_3d_axis_2; +mod concat_fp16x16_3d_three_tensors_axis_1; +mod concat_fp16x16_3d_three_tensors_axis_2; +mod concat_fp8x23_1d; +mod concat_fp8x23_2d; +mod concat_fp8x23_3d_default; +mod concat_fp8x23_3d_axis_1; +mod concat_fp8x23_3d_axis_2; +mod concat_fp8x23_3d_three_tensors_axis_1; +mod concat_fp8x23_3d_three_tensors_axis_2; +mod concat_i32_1d; +mod concat_i32_2d; +mod concat_i32_3d_default; +mod concat_i32_3d_axis_1; +mod concat_i32_3d_axis_2; +mod concat_i32_3d_three_tensors_axis_1; +mod concat_i32_3d_three_tensors_axis_2; +mod concat_i8_1d; +mod concat_i8_2d; +mod concat_i8_3d_default; +mod concat_i8_3d_axis_1; +mod concat_i8_3d_axis_2; +mod concat_i8_3d_three_tensors_axis_1; +mod concat_i8_3d_three_tensors_axis_2; +mod concat_u32_1d; +mod concat_u32_2d; +mod concat_u32_3d_default; +mod concat_u32_3d_axis_1; +mod concat_u32_3d_axis_2; +mod concat_u32_3d_three_tensors_axis_1; +mod concat_u32_3d_three_tensors_axis_2; +mod cos_fp16x16; +mod cos_fp8x23; +mod cosh_fp16x16; +mod cosh_fp8x23; +mod cumsum_fp16x16_1d_default; +mod cumsum_fp16x16_1d_exclusive; +mod cumsum_fp16x16_1d_reverse; +mod cumsum_fp16x16_1d_reverse_exclusive; +mod cumsum_fp16x16_2d_axis_0; +mod cumsum_fp16x16_2d_axis_1; +mod cumsum_fp8x23_1d_default; +mod cumsum_fp8x23_1d_exclusive; +mod cumsum_fp8x23_1d_reverse; +mod cumsum_fp8x23_1d_reverse_exclusive; +mod cumsum_fp8x23_2d_axis_0; +mod cumsum_fp8x23_2d_axis_1; +mod cumsum_i32_1d_default; +mod cumsum_i32_1d_exclusive; +mod cumsum_i32_1d_reverse; +mod cumsum_i32_1d_reverse_exclusive; +mod cumsum_i32_2d_axis_0; +mod cumsum_i32_2d_axis_1; +mod cumsum_i8_1d_default; +mod cumsum_i8_1d_exclusive; +mod cumsum_i8_1d_reverse; +mod cumsum_i8_1d_reverse_exclusive; +mod cumsum_i8_2d_axis_0; +mod cumsum_i8_2d_axis_1; +mod cumsum_u32_1d_default; +mod cumsum_u32_1d_exclusive; +mod cumsum_u32_1d_reverse; +mod cumsum_u32_1d_reverse_exclusive; +mod cumsum_u32_2d_axis_0; +mod cumsum_u32_2d_axis_1; +mod div_fp16x16; +mod div_fp16x16_broadcast; +mod div_fp8x23; +mod div_fp8x23_broadcast; +mod div_i32; +mod div_i32_broadcast; +mod div_i8; +mod div_i8_broadcast; +mod div_u32; +mod div_u32_broadcast; +mod equal_fp16x16; +mod equal_fp16x16_broadcast; +mod equal_fp8x23; +mod equal_fp8x23_broadcast; +mod equal_i32; +mod equal_i32_broadcast; +mod equal_i8; +mod equal_i8_broadcast; +mod equal_u32; +mod equal_u32_broadcast; +mod exp_fp16x16; +mod exp_fp8x23; +mod less_equal_fp16x16; +mod less_equal_fp16x16_broadcast; +mod less_equal_fp8x23; +mod less_equal_fp8x23_broadcast; +mod less_equal_i32; +mod less_equal_i32_broadcast; +mod less_equal_i8; +mod less_equal_i8_broadcast; +mod less_equal_u32; +mod less_equal_u32_broadcast; +mod greater_fp16x16; +mod greater_fp16x16_broadcast; +mod greater_fp8x23; +mod greater_fp8x23_broadcast; +mod greater_i32; +mod greater_i32_broadcast; +mod greater_i8; +mod greater_i8_broadcast; +mod greater_u32; +mod greater_u32_broadcast; +mod leaky_relu_fp16x16; +mod leaky_relu_fp8x23; +mod linear_fp16x16; +mod linear_fp8x23; +mod linear_i32; +mod linear_i8; +mod linear_u32; +mod log_fp16x16; +mod log_fp8x23; +mod logsoftmax_fp16x16_axis_0; +mod logsoftmax_fp16x16_axis_1; +mod logsoftmax_fp8x23_axis_0; +mod logsoftmax_fp8x23_axis_1; +mod matmul_fp16x16_1d; +mod matmul_fp16x16_2x2; +mod matmul_fp16x16_2x1; +mod matmul_fp16x16_1x2; +mod matmul_fp8x23_1d; +mod matmul_fp8x23_2x2; +mod matmul_fp8x23_2x1; +mod matmul_fp8x23_1x2; +mod matmul_i32_1d; +mod matmul_i32_2x2; +mod matmul_i32_2x1; +mod matmul_i32_1x2; +mod matmul_i8_1d; +mod matmul_i8_2x2; +mod matmul_i8_2x1; +mod matmul_i8_1x2; +mod matmul_u32_1d; +mod matmul_u32_2x2; +mod matmul_u32_2x1; +mod matmul_u32_1x2; +mod mul_fp16x16; +mod mul_fp16x16_broadcast; +mod mul_fp8x23; +mod mul_fp8x23_broadcast; +mod mul_i32; +mod mul_i32_broadcast; +mod mul_i8; +mod mul_i8_broadcast; +mod mul_u32; +mod mul_u32_broadcast; +mod or_fp16x16; +mod or_fp16x16_broadcast; +mod or_fp8x23; +mod or_fp8x23_broadcast; +mod or_i32; +mod or_i32_broadcast; +mod or_i8; +mod or_i8_broadcast; +mod or_u32; +mod or_u32_broadcast; +mod reduce_sum_fp16x16_1D; +mod reduce_sum_fp16x16_2D_default; +mod reduce_sum_fp16x16_2D_keepdims; +mod reduce_sum_fp16x16_2D_axis_1; +mod reduce_sum_fp8x23_1D; +mod reduce_sum_fp8x23_2D_default; +mod reduce_sum_fp8x23_2D_keepdims; +mod reduce_sum_fp8x23_2D_axis_1; +mod reduce_sum_i32_1D; +mod reduce_sum_i32_2D_default; +mod reduce_sum_i32_2D_keepdims; +mod reduce_sum_i32_2D_axis_1; +mod reduce_sum_i8_1D; +mod reduce_sum_i8_2D_default; +mod reduce_sum_i8_2D_keepdims; +mod reduce_sum_i8_2D_axis_1; +mod reduce_sum_u32_1D; +mod reduce_sum_u32_2D_default; +mod reduce_sum_u32_2D_keepdims; +mod reduce_sum_u32_2D_axis_1; +mod relu_fp16x16; +mod relu_fp8x23; +mod relu_i32; +mod relu_i8; +mod sigmoid_fp16x16; +mod sigmoid_fp8x23; +mod sin_fp16x16; +mod sin_fp8x23; +mod sinh_fp16x16; +mod sinh_fp8x23; +mod softmax_fp16x16; +mod softmax_fp8x23; +mod softplus_fp8x23; +mod softplus_fp16x16; +mod softsign_fp8x23; +mod softsign_fp16x16; +mod sqrt_fp16x16; +mod sqrt_fp8x23; +mod sub_fp16x16; +mod sub_fp16x16_broadcast; +mod sub_fp8x23; +mod sub_fp8x23_broadcast; +mod sub_i32; +mod sub_i32_broadcast; +mod sub_i8; +mod sub_i8_broadcast; +mod sub_u32; +mod sub_u32_broadcast; +mod tanh_fp16x16; +mod tanh_fp8x23; +mod transpose_fp16x16_2d; +mod transpose_fp16x16_3d; +mod transpose_fp8x23_2d; +mod transpose_fp8x23_3d; +mod transpose_i32_2d; +mod transpose_i32_3d; +mod transpose_i8_2d; +mod transpose_i8_3d; +mod transpose_u32_2d; +mod transpose_u32_3d; +mod xor_fp16x16; +mod xor_fp16x16_broadcast; +mod xor_fp8x23; +mod xor_fp8x23_broadcast; +mod xor_i32; +mod xor_i32_broadcast; +mod xor_i8; +mod xor_i8_broadcast; +mod xor_u32; +mod xor_u32_broadcast; +mod less_fp16x16; +mod less_fp16x16_broadcast; +mod less_fp8x23; +mod less_fp8x23_broadcast; +mod less_i32; +mod less_i32_broadcast; +mod less_i8; +mod less_i8_broadcast; +mod less_u32; +mod less_u32_broadcast; +mod greater_equal_fp16x16; +mod greater_equal_fp16x16_broadcast; +mod greater_equal_fp8x23; +mod greater_equal_fp8x23_broadcast; +mod greater_equal_i32; +mod greater_equal_i32_broadcast; +mod greater_equal_i8; +mod greater_equal_i8_broadcast; +mod greater_equal_u32; +mod greater_equal_u32_broadcast; +mod slice_fp16x16_2d; +mod slice_fp16x16_3d; +mod slice_fp8x23_2d; +mod slice_fp8x23_3d; +mod slice_i32_2d; +mod slice_i32_3d; +mod slice_i8_2d; +mod slice_i8_3d; +mod slice_u32_2d; +mod slice_u32_3d; +mod gather_fp8x23_3d_default; +mod gather_fp8x23_3d_axis1; +mod gather_fp8x23_3d_axis2; +mod gather_fp16x16_3d_default; +mod gather_fp16x16_3d_axis1; +mod gather_fp16x16_3d_axis2; +mod gather_i8_3d_default; +mod gather_i8_3d_axis1; +mod gather_i8_3d_axis2; +mod gather_i32_3d_default; +mod gather_i32_3d_axis1; +mod gather_i32_3d_axis2; +mod gather_u32_3d_default; +mod gather_u32_3d_axis1; +mod gather_u32_3d_axis2; +mod nonzero_fp16x16_2d; +mod nonzero_fp16x16_3d; +mod nonzero_fp8x23_2d; +mod nonzero_fp8x23_3d; +mod nonzero_i32_2d; +mod nonzero_i32_3d; +mod nonzero_i8_2d; +mod nonzero_i8_3d; +mod nonzero_u32_2d; +mod nonzero_u32_3d; +mod squeeze_fP16x16; +mod squeeze_fP8x23; +mod squeeze_i32; +mod squeeze_i8; +mod squeeze_u32; +mod unsqueeze_fp16x16_2d; +mod unsqueeze_fp16x16_3d; +mod unsqueeze_fp8x23_2d; +mod unsqueeze_fp8x23_3d; +mod unsqueeze_i32_2d; +mod unsqueeze_i32_3d; +mod unsqueeze_i8_2d; +mod unsqueeze_i8_3d; +mod unsqueeze_u32_2d; +mod unsqueeze_u32_3d; +mod sign_fP16x16; +mod sign_fP8x23; +mod sign_fail; +mod sign_i32; +mod sign_i8; +mod clip_fp16x16_2d; +mod clip_fp16x16_3d; +mod clip_fp8x23_2d; +mod clip_fp8x23_3d; +mod clip_i32_2d; +mod clip_i32_3d; +mod clip_i8_2d; +mod clip_i8_3d; +mod clip_u32_2d; +mod clip_u32_3d; +mod identity_fP16x16; +mod identity_fP8x23; +mod identity_i32; +mod identity_i8; +mod identity_u32; +mod thresholded_relu_fp16x16; +mod thresholded_relu_fp8x23; +mod hard_sigmoid_fp8x23; +mod hard_sigmoid_fp16x16; +mod neg_fp16x16; +mod neg_fp8x23; +mod neg_i32; +mod neg_i8; +mod gemm_all_attributes; +mod gemm_alpha; +mod gemm_beta; +mod gemm_default_matrix_bias; +mod gemm_default_vector_bias; +mod gemm_default_no_bias; +mod gemm_transposeA; +mod gemm_transposeB; +mod min_fp16x16_three_tensors; +mod min_fp16x16_broadcast_three_tensors; +mod min_fp16x16_two_tensors; +mod min_fp16x16_broadcast_two_tensors; +mod min_fp8x23_three_tensors; +mod min_fp8x23_broadcast_three_tensors; +mod min_fp8x23_two_tensors; +mod min_fp8x23_broadcast_two_tensors; +mod min_i32_three_tensors; +mod min_i32_broadcast_three_tensors; +mod min_i32_two_tensors; +mod min_i32_broadcast_two_tensors; +mod min_i8_three_tensors; +mod min_i8_broadcast_three_tensors; +mod min_i8_two_tensors; +mod min_i8_broadcast_two_tensors; +mod min_u32_three_tensors; +mod min_u32_broadcast_three_tensors; +mod min_u32_two_tensors; +mod min_u32_broadcast_two_tensors; +mod where_fp16x16; +mod where_fp16x16_broadcast; +mod where_fp8x23; +mod where_fp8x23_broadcast; +mod where_i32; +mod where_i32_broadcast; +mod where_i8; +mod where_i8_broadcast; +mod where_u32; +mod where_u32_broadcast; +mod not_bool; +mod round_fp16x16; +mod round_fp8x23; +mod max_fp16x16_three_tensors; +mod max_fp16x16_broadcast_three_tensors; +mod max_fp16x16_two_tensors; +mod max_fp16x16_broadcast_two_tensors; +mod max_fp8x23_three_tensors; +mod max_fp8x23_broadcast_three_tensors; +mod max_fp8x23_two_tensors; +mod max_fp8x23_broadcast_two_tensors; +mod max_i32_three_tensors; +mod max_i32_broadcast_three_tensors; +mod max_i32_two_tensors; +mod max_i32_broadcast_two_tensors; +mod max_i8_three_tensors; +mod max_i8_broadcast_three_tensors; +mod max_i8_two_tensors; +mod max_i8_broadcast_two_tensors; +mod max_u32_three_tensors; +mod max_u32_broadcast_three_tensors; +mod max_u32_two_tensors; +mod max_u32_broadcast_two_tensors; +mod scatter_fp16x16_3d_default; +mod scatter_fp16x16_3d_axis1; +mod scatter_fp16x16_3d_axis1_add; +mod scatter_fp8x23_default; +mod scatter_fp8x23_axis1; +mod scatter_fp8x23_mul; +mod scatter_i8_default; +mod scatter_i8_axis1; +mod scatter_i8_axis1_max; +mod scatter_u32_default; +mod scatter_u32_axis1; +mod scatter_u32_add; +mod array_feature_extractor_1D_i32; +mod array_feature_extractor_1D_fp8x23; +mod array_feature_extractor_1D_fp16x16; +mod array_feature_extractor_2D_i32; +mod array_feature_extractor_2D_fp8x23; +mod array_feature_extractor_2D_fp16x16; +mod array_feature_extractor_3D_i32; +mod array_feature_extractor_3D_fp8x23; +mod array_feature_extractor_3D_fp16x16; +mod binarizer_fp16x16; +mod binarizer_fp8x23; +mod tril_fp16x16; +mod tril_fp16x16_neg; +mod tril_fp16x16_one_row; +mod tril_fp16x16_out_neg; +mod tril_fp16x16_out_pos; +mod tril_fp16x16_pos; +mod tril_fp16x16_square; +mod tril_fp16x16_square_neg; +mod tril_fp16x16_zero; +mod triu_fp16x16; +mod triu_fp16x16_neg; +mod triu_fp16x16_one_row; +mod triu_fp16x16_out_neg; +mod triu_fp16x16_out_pos; +mod triu_fp16x16_pos; +mod triu_fp16x16_square; +mod triu_fp16x16_square_neg; +mod triu_fp16x16_zero; +mod tril_fp8x23; +mod tril_fp8x23_neg; +mod tril_fp8x23_one_row; +mod tril_fp8x23_out_neg; +mod tril_fp8x23_out_pos; +mod tril_fp8x23_pos; +mod tril_fp8x23_square; +mod tril_fp8x23_square_neg; +mod tril_fp8x23_zero; +mod triu_fp8x23; +mod triu_fp8x23_neg; +mod triu_fp8x23_one_row; +mod triu_fp8x23_out_neg; +mod triu_fp8x23_out_pos; +mod triu_fp8x23_pos; +mod triu_fp8x23_square; +mod triu_fp8x23_square_neg; +mod triu_fp8x23_zero; +mod tril_i32; +mod tril_neg_i32; +mod tril_i32_one_row; +mod tril_i32_out_neg; +mod tril_i32_out_pos; +mod tril_i32_pos; +mod tril_i32_square; +mod tril_i32_square_neg; +mod tril_i32_zero; +mod triu_i32; +mod triu_i32_neg; +mod triu_i32_one_row; +mod triu_i32_out_neg; +mod triu_i32_out_pos; +mod triu_i32_pos; +mod triu_i32_square; +mod triu_i32_square_neg; +mod triu_i32_zero; +mod tril_i8; +mod tril_i8_neg; +mod tril_i8_one_row; +mod tril_i8_out_neg; +mod tril_i8_out_pos; +mod tril_i8_pos; +mod tril_i8_square; +mod tril_i8_square_neg; +mod tril_i8_zero; +mod triu_i8; +mod triu_i8_neg; +mod triu_i8_one_row; +mod triu_i8_out_neg; +mod triu_i8_out_pos; +mod triu_i8_pos; +mod triu_i8_square; +mod triu_i8_square_neg; +mod triu_i8_zero; +mod tril_u32; +mod tril_u32_neg; +mod tril_u32_one_row; +mod tril_u32_out_neg; +mod tril_u32_out_pos; +mod tril_u32_pos; +mod tril_u32_square; +mod tril_u32_square_neg; +mod tril_u32_zero; +mod triu_u32; +mod triu_u32_neg; +mod triu_u32_one_row; +mod triu_u32_out_neg; +mod triu_u32_out_pos; +mod triu_u32_pos; +mod triu_u32_square; +mod triu_u32_square_neg; +mod triu_u32_zero; +mod reduce_sum_square_fp16x16_export_do_not_keepdims; +mod reduce_sum_square_fp16x16_export_keepdims; +mod reduce_sum_square_fp16x16_export_negative_axes_keepdims; +mod reduce_sum_square_fp8x23_export_do_not_keepdims; +mod reduce_sum_square_fp8x23_export_keepdims; +mod reduce_sum_square_fp8x23_export_negative_axes_keepdims; +mod reduce_sum_square_i32_export_do_not_keepdims; +mod reduce_sum_square_i32_export_keepdims; +mod reduce_sum_square_i32_export_negative_axes_keepdims; +mod reduce_sum_square_i8_export_do_not_keepdims; +mod reduce_sum_square_i8_export_keepdims; +mod reduce_sum_square_i8_export_negative_axes_keepdims; +mod reduce_sum_square_u32_export_do_not_keepdims; +mod reduce_sum_square_u32_export_keepdims; +mod reduce_sum_square_u32_export_negative_axes_keepdims; +mod reduce_l2_fp16x16_export_do_not_keepdims; +mod reduce_l2_fp16x16_export_keepdims; +mod reduce_l2_fp16x16_export_negative_axes_keepdims; +mod reduce_l2_fp8x23_export_do_not_keepdims; +mod reduce_l2_fp8x23_export_keepdims; +mod reduce_l2_fp8x23_export_negative_axes_keepdims; +mod reduce_l1_fp16x16_export_do_not_keepdims; +mod reduce_l1_fp16x16_export_keepdims; +mod reduce_l1_fp16x16_export_negative_axes_keepdims; +mod reduce_l1_fp8x23_export_do_not_keepdims; +mod reduce_l1_fp8x23_export_keepdims; +mod reduce_l1_fp8x23_export_negative_axes_keepdims; +mod reduce_l1_i32_export_do_not_keepdims; +mod reduce_l1_i32_export_keepdims; +mod reduce_l1_i32_export_negative_axes_keepdims; +mod reduce_l1_i8_export_do_not_keepdims; +mod reduce_l1_i8_export_keepdims; +mod reduce_l1_i8_export_negative_axes_keepdims; +mod reduce_l1_u32_export_do_not_keepdims; +mod reduce_l1_u32_export_keepdims; +mod reduce_l1_u32_export_negative_axes_keepdims; +mod reduce_prod_fp16x16_1D; +mod reduce_prod_fp16x16_2D_default; +mod reduce_prod_fp16x16_2D_keepdims; +mod reduce_prod_fp16x16_2D_axis_1; +mod reduce_prod_fp8x23_1D; +mod reduce_prod_fp8x23_2D_default; +mod reduce_prod_fp8x23_2D_keepdims; +mod reduce_prod_fp8x23_2D_axis_1; +mod reduce_prod_i32_1D; +mod reduce_prod_i32_2D_default; +mod reduce_prod_i32_2D_keepdims; +mod reduce_prod_i32_2D_axis_1; +mod reduce_prod_i8_1D; +mod reduce_prod_i8_2D_default; +mod reduce_prod_i8_2D_keepdims; +mod reduce_prod_i8_2D_axis_1; +mod reduce_prod_u32_1D; +mod reduce_prod_u32_2D_default; +mod reduce_prod_u32_2D_keepdims; +mod reduce_prod_u32_2D_axis_1; +mod gather_elements_fp16x16_3d_default; +mod gather_elements_fp16x16_3d_axis1; +mod gather_elements_fp16x16_3d_axis2; +mod gather_elements_fp8x23_3d_default; +mod gather_elements_fp8x23_3d_axis1; +mod gather_elements_fp8x23_3d_axis2; +mod gather_elements_i8_3d_default; +mod gather_elements_i8_3d_axis1; +mod gather_elements_i32_3d_default; +mod gather_elements_i32_3d_axis1; +mod gather_elements_i32_3d_axis2; +mod gather_elements_u32_default; +mod gather_elements_u32_axis1; +mod gather_elements_u32_axis2; +mod gather_elements_u32_axis3; +mod sequence_length_fp16x16; +mod sequence_length_fp16x16_broadcast; +mod sequence_length_fp8x23; +mod sequence_length_fp8x23_broadcast; +mod sequence_length_i32; +mod sequence_length_i32_broadcast; +mod sequence_length_i8; +mod sequence_length_i8_broadcast; +mod sequence_length_u32; +mod sequence_length_u32_broadcast; +mod sequence_at_u32_positive; +mod sequence_at_u32_negative; +mod sequence_at_fp16x16_positive; +mod sequence_at_fp16x16_negative; +mod sequence_at_fp8x23_positive; +mod sequence_at_fp8x23_negative; +mod sequence_at_i32_positive; +mod sequence_at_i32_negative; +mod sequence_at_i8_positive; +mod sequence_at_i8_negative; +mod reduce_min_fp16x16_1D; +mod reduce_min_fp16x16_2D_default; +mod reduce_min_fp16x16_2D_keepdims; +mod reduce_min_fp16x16_2D_axis_1; +mod reduce_min_fp8x23_1D; +mod reduce_min_fp8x23_2D_default; +mod reduce_min_fp8x23_2D_keepdims; +mod reduce_min_fp8x23_2D_axis_1; +mod reduce_min_i32_1D; +mod reduce_min_i32_2D_default; +mod reduce_min_i32_2D_keepdims; +mod reduce_min_i32_2D_axis_1; +mod reduce_min_i8_1D; +mod reduce_min_i8_2D_default; +mod reduce_min_i8_2D_keepdims; +mod reduce_min_i8_2D_axis_1; +mod reduce_min_u32_1D; +mod reduce_min_u32_2D_default; +mod reduce_min_u32_2D_keepdims; +mod reduce_min_u32_2D_axis_1; +mod sequence_construct_fp16x16; +mod sequence_construct_fp8x23; +mod sequence_construct_i32; +mod sequence_construct_i8; +mod sequence_construct_u32; +mod shrink_hard_fp16x16; +mod shrink_soft_fp16x16; +mod shrink_hard_fp8x23; +mod shrink_soft_fp8x23; +mod sequence_empty_fp16x16; +mod sequence_empty_fp8x23; +mod sequence_empty_i32; +mod sequence_empty_i8; +mod sequence_empty_u32; +mod reduce_mean_fp16x16_1D; +mod reduce_mean_fp16x16_2D_default; +mod reduce_mean_fp16x16_2D_keepdims; +mod reduce_mean_fp16x16_2D_axis_1; +mod reduce_mean_fp8x23_1D; +mod reduce_mean_fp8x23_2D_default; +mod reduce_mean_fp8x23_2D_keepdims; +mod reduce_mean_fp8x23_2D_axis_1; +mod reduce_mean_i32_1D; +mod reduce_mean_i32_2D_default; +mod reduce_mean_i32_2D_keepdims; +mod reduce_mean_i32_2D_axis_1; +mod reduce_mean_i8_1D; +mod reduce_mean_i8_2D_default; +mod reduce_mean_i8_2D_keepdims; +mod reduce_mean_i8_2D_axis_1; +mod reduce_mean_u32_1D; +mod reduce_mean_u32_2D_default; +mod reduce_mean_u32_2D_keepdims; +mod reduce_mean_u32_2D_axis_1; +mod pow_fp16x16; +mod pow_fp16x16_broadcast; +mod pow_fp8x23; +mod pow_fp8x23_broadcast; +mod sequence_erase_u32_positive; +mod sequence_erase_u32_negative; +mod sequence_erase_u32_empty; +mod sequence_erase_fp16x16_positive; +mod sequence_erase_fp16x16_negative; +mod sequence_erase_fp16x16_empty; +mod sequence_erase_fp8x23_positive; +mod sequence_erase_fp8x23_negative; +mod sequence_erase_fp8x23_empty; +mod sequence_erase_i32_positive; +mod sequence_erase_i32_negative; +mod sequence_erase_i32_empty; +mod sequence_erase_i8_positive; +mod sequence_erase_i8_negative; +mod sequence_erase_i8_empty; +mod sequence_insert_fp16x16; +mod sequence_insert_fp8x23; +mod sequence_insert_i32; +mod sequence_insert_i8; +mod sequence_insert_u32; +mod concat_from_sequence_fp8x23_new_axis_zero; +mod concat_from_sequence_fp8x23_new_axis_one; +mod concat_from_sequence_fp8x23_new_axis_default; +mod concat_from_sequence_fp16x16_new_axis_zero; +mod concat_from_sequence_fp16x16_new_axis_one; +mod concat_from_sequence_fp16x16_new_axis_default; +mod concat_from_sequence_i32_new_axis_zero; +mod concat_from_sequence_i32_new_axis_one; +mod concat_from_sequence_i32_new_axis_default; +mod concat_from_sequence_i8_new_axis_zero; +mod concat_from_sequence_i8_new_axis_one; +mod concat_from_sequence_i8_new_axis_default; +mod concat_from_sequence_u32_new_axis_zero; +mod concat_from_sequence_u32_new_axis_one; +mod concat_from_sequence_u32_new_axis_default; +mod is_nan_fp16x16; +mod is_nan_fp8x23; +mod is_inf_fp16x16; +mod is_inf_fp8x23; +mod is_inf_i32; +mod is_inf_i8; +mod is_inf_u32; +mod is_pos_inf_fp16x16; +mod is_neg_inf_fp16x16; +mod is_pos_inf_fp8x23; +mod is_neg_inf_fp8x23; +mod is_pos_inf_i32; +mod is_neg_inf_i32; +mod is_pos_inf_i8; +mod is_neg_inf_i8; +mod and_bool; diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo deleted file mode 100644 index 281e2a6ea..000000000 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_fp16x16_with_axis_zero_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(true)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} 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 deleted file mode 100644 index 4c7c3d31b..000000000 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo +++ /dev/null @@ -1,41 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{FixedTrait, FP16x16}; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131841, sign: false }); - data.append(FP16x16 { mag: 177122, sign: false }); - data.append(FP16x16 { mag: 8001, sign: true }); - data.append(FP16x16 { mag: 196243, sign: false }); - data.append(FP16x16 { mag: 92229, sign: true }); - data.append(FP16x16 { mag: 51294, sign: false }); - data.append(FP16x16 { mag: 106419, sign: false }); - data.append(FP16x16 { mag: 174717, sign: false }); - data.append(FP16x16 { mag: 140928, sign: true }); - data.append(FP16x16 { mag: 11465, sign: true }); - data.append(FP16x16 { mag: 140627, sign: true }); - data.append(FP16x16 { mag: 176437, sign: false }); - data.append(FP16x16 { mag: 104537, sign: false }); - data.append(FP16x16 { mag: 127197, sign: false }); - data.append(FP16x16 { mag: 7148, sign: true }); - data.append(FP16x16 { mag: 16541, sign: true }); - data.append(FP16x16 { mag: 60120, sign: false }); - data.append(FP16x16 { mag: 192460, sign: true }); - data.append(FP16x16 { mag: 152480, sign: true }); - data.append(FP16x16 { mag: 118232, sign: true }); - data.append(FP16x16 { mag: 55096, sign: true }); - data.append(FP16x16 { mag: 174569, sign: true }); - data.append(FP16x16 { mag: 49745, sign: true }); - data.append(FP16x16 { mag: 36189, sign: true }); - data.append(FP16x16 { mag: 26667, sign: false }); - data.append(FP16x16 { mag: 89957, sign: true }); - data.append(FP16x16 { mag: 112614, sign: true }); - 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 deleted file mode 100644 index 23d6104d9..000000000 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo +++ /dev/null @@ -1,41 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{FixedTrait, FP16x16}; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131840, sign: false }); - data.append(FP16x16 { mag: 177152, sign: false }); - data.append(FP16x16 { mag: 8000, sign: true }); - data.append(FP16x16 { mag: 196224, sign: false }); - data.append(FP16x16 { mag: 92224, sign: true }); - data.append(FP16x16 { mag: 51296, sign: false }); - data.append(FP16x16 { mag: 106432, sign: false }); - data.append(FP16x16 { mag: 174720, sign: false }); - data.append(FP16x16 { mag: 140928, sign: true }); - data.append(FP16x16 { mag: 11464, sign: true }); - data.append(FP16x16 { mag: 140672, sign: true }); - data.append(FP16x16 { mag: 176384, sign: false }); - data.append(FP16x16 { mag: 104512, sign: false }); - data.append(FP16x16 { mag: 127168, sign: false }); - data.append(FP16x16 { mag: 7148, sign: true }); - data.append(FP16x16 { mag: 16544, sign: true }); - data.append(FP16x16 { mag: 60128, sign: false }); - data.append(FP16x16 { mag: 192512, sign: true }); - data.append(FP16x16 { mag: 152448, sign: true }); - data.append(FP16x16 { mag: 118208, sign: true }); - data.append(FP16x16 { mag: 55104, sign: true }); - data.append(FP16x16 { mag: 174592, sign: true }); - data.append(FP16x16 { mag: 49760, sign: true }); - data.append(FP16x16 { mag: 36192, sign: true }); - data.append(FP16x16 { mag: 26672, sign: false }); - data.append(FP16x16 { mag: 89984, sign: true }); - data.append(FP16x16 { mag: 112640, sign: true }); - 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 deleted file mode 100644 index e3a48b20a..000000000 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index 7d3ab361b..000000000 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index b7d1c3edb..000000000 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index 0225c5af4..000000000 --- a/tests/nodes/unique_fp16x16_without_axis_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_fp16x16_without_axis_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(true)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo deleted file mode 100644 index 89f824d0e..000000000 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo +++ /dev/null @@ -1,41 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{FixedTrait, FP16x16}; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 18803, sign: false }); - data.append(FP16x16 { mag: 42065, sign: false }); - data.append(FP16x16 { mag: 133958, sign: false }); - data.append(FP16x16 { mag: 129359, sign: false }); - data.append(FP16x16 { mag: 76398, sign: false }); - data.append(FP16x16 { mag: 127485, sign: false }); - data.append(FP16x16 { mag: 41739, sign: false }); - data.append(FP16x16 { mag: 36606, sign: false }); - data.append(FP16x16 { mag: 99432, sign: false }); - data.append(FP16x16 { mag: 93731, sign: false }); - data.append(FP16x16 { mag: 40635, sign: false }); - data.append(FP16x16 { mag: 146044, sign: false }); - data.append(FP16x16 { mag: 45156, sign: false }); - data.append(FP16x16 { mag: 92658, sign: false }); - data.append(FP16x16 { mag: 101742, sign: false }); - data.append(FP16x16 { mag: 115036, sign: false }); - data.append(FP16x16 { mag: 121002, sign: false }); - data.append(FP16x16 { mag: 30248, sign: false }); - data.append(FP16x16 { mag: 80580, sign: false }); - data.append(FP16x16 { mag: 17017, sign: false }); - data.append(FP16x16 { mag: 15148, sign: false }); - data.append(FP16x16 { mag: 8024, sign: false }); - data.append(FP16x16 { mag: 151441, sign: false }); - data.append(FP16x16 { mag: 54931, sign: false }); - data.append(FP16x16 { mag: 177975, sign: false }); - data.append(FP16x16 { mag: 189528, sign: false }); - data.append(FP16x16 { mag: 179335, 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 deleted file mode 100644 index c9619ab54..000000000 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo +++ /dev/null @@ -1,39 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{FixedTrait, FP16x16}; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(27); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 18800, sign: false }); - data.append(FP16x16 { mag: 42080, sign: false }); - data.append(FP16x16 { mag: 134016, sign: false }); - data.append(FP16x16 { mag: 129344, sign: false }); - data.append(FP16x16 { mag: 76416, sign: false }); - data.append(FP16x16 { mag: 127488, sign: false }); - data.append(FP16x16 { mag: 41728, sign: false }); - data.append(FP16x16 { mag: 36608, sign: false }); - data.append(FP16x16 { mag: 99456, sign: false }); - data.append(FP16x16 { mag: 93760, sign: false }); - data.append(FP16x16 { mag: 40640, sign: false }); - data.append(FP16x16 { mag: 146048, sign: false }); - data.append(FP16x16 { mag: 45152, sign: false }); - data.append(FP16x16 { mag: 92672, sign: false }); - data.append(FP16x16 { mag: 101760, sign: false }); - data.append(FP16x16 { mag: 115008, sign: false }); - data.append(FP16x16 { mag: 121024, sign: false }); - data.append(FP16x16 { mag: 30256, sign: false }); - data.append(FP16x16 { mag: 80576, sign: false }); - data.append(FP16x16 { mag: 17024, sign: false }); - data.append(FP16x16 { mag: 15152, sign: false }); - data.append(FP16x16 { mag: 8024, sign: false }); - data.append(FP16x16 { mag: 151424, sign: false }); - data.append(FP16x16 { mag: 54944, sign: false }); - data.append(FP16x16 { mag: 177920, sign: false }); - data.append(FP16x16 { mag: 189568, sign: false }); - data.append(FP16x16 { mag: 179328, 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 deleted file mode 100644 index fc08192df..000000000 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo +++ /dev/null @@ -1,39 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_1() -> 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: 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 }); - 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 deleted file mode 100644 index 0973441b5..000000000 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo +++ /dev/null @@ -1,39 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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: 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 }); - 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 deleted file mode 100644 index 890ef6660..000000000 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo +++ /dev/null @@ -1,39 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example.cairo b/tests/nodes/unique_u32_example.cairo deleted file mode 100644 index 4f3ddd0a8..000000000 --- a/tests/nodes/unique_u32_example.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_example() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::None(())); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} diff --git a/tests/nodes/unique_u32_example/input_0.cairo b/tests/nodes/unique_u32_example/input_0.cairo deleted file mode 100644 index 0263ebc30..000000000 --- a/tests/nodes/unique_u32_example/input_0.cairo +++ /dev/null @@ -1,17 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(6); - - let mut data = ArrayTrait::new(); - data.append(2); - data.append(1); - data.append(1); - data.append(3); - data.append(4); - data.append(3); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example/output_0.cairo b/tests/nodes/unique_u32_example/output_0.cairo deleted file mode 100644 index 1ede61a4e..000000000 --- a/tests/nodes/unique_u32_example/output_0.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(4); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); - data.append(3); - data.append(4); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example/output_1.cairo b/tests/nodes/unique_u32_example/output_1.cairo deleted file mode 100644 index 265eb461c..000000000 --- a/tests/nodes/unique_u32_example/output_1.cairo +++ /dev/null @@ -1,16 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_1() -> 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: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example/output_2.cairo b/tests/nodes/unique_u32_example/output_2.cairo deleted file mode 100644 index 1b2efecbe..000000000 --- a/tests/nodes/unique_u32_example/output_2.cairo +++ /dev/null @@ -1,18 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_2() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(6); - - let mut data = ArrayTrait::new(); - 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: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example/output_3.cairo b/tests/nodes/unique_u32_example/output_3.cairo deleted file mode 100644 index d9dc64a2d..000000000 --- a/tests/nodes/unique_u32_example/output_3.cairo +++ /dev/null @@ -1,16 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_3() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(4); - - let mut data = ArrayTrait::new(); - 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 }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example_two.cairo b/tests/nodes/unique_u32_example_two.cairo deleted file mode 100644 index c4eee3207..000000000 --- a/tests/nodes/unique_u32_example_two.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_example_two() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(true)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} diff --git a/tests/nodes/unique_u32_example_two/input_0.cairo b/tests/nodes/unique_u32_example_two/input_0.cairo deleted file mode 100644 index 4a31b98ab..000000000 --- a/tests/nodes/unique_u32_example_two/input_0.cairo +++ /dev/null @@ -1,24 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(4); - 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(2); - data.append(3); - data.append(4); - data.append(1); - data.append(0); - data.append(0); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example_two/output_0.cairo b/tests/nodes/unique_u32_example_two/output_0.cairo deleted file mode 100644 index 87ceb3170..000000000 --- a/tests/nodes/unique_u32_example_two/output_0.cairo +++ /dev/null @@ -1,18 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - data.append(0); - data.append(2); - data.append(3); - data.append(4); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example_two/output_1.cairo b/tests/nodes/unique_u32_example_two/output_1.cairo deleted file mode 100644 index a5e3c133d..000000000 --- a/tests/nodes/unique_u32_example_two/output_1.cairo +++ /dev/null @@ -1,14 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_1() -> 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: 2, sign: false }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example_two/output_2.cairo b/tests/nodes/unique_u32_example_two/output_2.cairo deleted file mode 100644 index cdaaea59e..000000000 --- a/tests/nodes/unique_u32_example_two/output_2.cairo +++ /dev/null @@ -1,16 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_2() -> Tensor { - let mut shape = ArrayTrait::::new(); - 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 }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_example_two/output_3.cairo b/tests/nodes/unique_u32_example_two/output_3.cairo deleted file mode 100644 index 489273977..000000000 --- a/tests/nodes/unique_u32_example_two/output_3.cairo +++ /dev/null @@ -1,14 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_3() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(2); - - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_ff.cairo b/tests/nodes/unique_u32_ff.cairo deleted file mode 100644 index 656fdf982..000000000 --- a/tests/nodes/unique_u32_ff.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_ff() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo deleted file mode 100644 index 5a1448de9..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_with_axis_one_not_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} 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 deleted file mode 100644 index eaafbfed5..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(2); - data.append(0); - data.append(1); - data.append(0); - data.append(4); - data.append(4); - data.append(4); - data.append(3); - data.append(2); - data.append(4); - data.append(4); - data.append(0); - data.append(1); - data.append(4); - data.append(1); - data.append(1); - data.append(0); - data.append(4); - data.append(3); - data.append(0); - data.append(4); - data.append(3); - data.append(3); - data.append(3); - data.append(2); - data.append(3); - data.append(0); - 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 deleted file mode 100644 index 5f4676f1c..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(2); - data.append(0); - data.append(1); - data.append(0); - data.append(4); - data.append(4); - data.append(4); - data.append(3); - data.append(2); - data.append(4); - data.append(4); - data.append(0); - data.append(1); - data.append(4); - data.append(1); - data.append(1); - data.append(0); - data.append(4); - data.append(3); - data.append(0); - data.append(4); - data.append(3); - data.append(3); - data.append(3); - data.append(2); - data.append(3); - data.append(0); - 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 deleted file mode 100644 index e3a48b20a..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index 7d3ab361b..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index b7d1c3edb..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo deleted file mode 100644 index 14c513fb1..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_with_axis_one_not_sorted_custom() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(false)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo deleted file mode 100644 index be880dbba..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/input_0.cairo +++ /dev/null @@ -1,26 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(7); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - data.append(0); - data.append(2); - data.append(2); - data.append(4); - data.append(2); - data.append(1); - data.append(0); - data.append(0); - data.append(1); - data.append(2); - data.append(3); - data.append(1); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo deleted file mode 100644 index 1fa65c6ed..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_0.cairo +++ /dev/null @@ -1,22 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(5); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - data.append(2); - data.append(2); - data.append(4); - data.append(1); - data.append(0); - data.append(1); - data.append(2); - data.append(3); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo deleted file mode 100644 index 8f1d46d8b..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_1.cairo +++ /dev/null @@ -1,17 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo deleted file mode 100644 index 874db8760..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_2.cairo +++ /dev/null @@ -1,19 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_2() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(7); - - 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: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo deleted file mode 100644 index e813e73ab..000000000 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted_custom/output_3.cairo +++ /dev/null @@ -1,17 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_3() -> 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: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - 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 deleted file mode 100644 index 31e3302bd..000000000 --- a/tests/nodes/unique_u32_with_axis_one_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_with_axis_one_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(1), Option::Some(true)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} 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 deleted file mode 100644 index a33899d6d..000000000 --- a/tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(3); - data.append(0); - data.append(4); - data.append(1); - data.append(4); - data.append(1); - data.append(3); - data.append(3); - data.append(0); - data.append(3); - data.append(2); - data.append(4); - data.append(4); - data.append(1); - data.append(4); - data.append(0); - data.append(0); - data.append(4); - data.append(0); - data.append(1); - data.append(1); - data.append(0); - data.append(1); - data.append(1); - data.append(2); - data.append(4); - data.append(2); - 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 deleted file mode 100644 index 41af58071..000000000 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(4); - data.append(1); - data.append(3); - data.append(0); - data.append(4); - data.append(3); - data.append(3); - data.append(0); - data.append(4); - data.append(1); - data.append(4); - data.append(3); - data.append(2); - data.append(4); - data.append(0); - data.append(0); - data.append(4); - data.append(0); - data.append(1); - data.append(1); - data.append(0); - data.append(1); - data.append(1); - data.append(2); - data.append(4); - data.append(2); - 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 deleted file mode 100644 index b779b1e10..000000000 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_1() -> 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: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - 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 deleted file mode 100644 index 7297098a2..000000000 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_2() -> 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: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - 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 deleted file mode 100644 index b7d1c3edb..000000000 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index 0660709a5..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_with_axis_zero_not_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(false)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} 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 deleted file mode 100644 index 5d4aebd98..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - 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(1); - data.append(4); - data.append(3); - data.append(1); - data.append(3); - data.append(0); - data.append(0); - data.append(1); - data.append(3); - data.append(4); - data.append(0); - data.append(2); - data.append(4); - data.append(0); - data.append(4); - data.append(0); - data.append(4); - data.append(3); - data.append(4); - data.append(3); - data.append(1); - data.append(3); - 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 deleted file mode 100644 index 94b8ca9e9..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - 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(1); - data.append(4); - data.append(3); - data.append(1); - data.append(3); - data.append(0); - data.append(0); - data.append(1); - data.append(3); - data.append(4); - data.append(0); - data.append(2); - data.append(4); - data.append(0); - data.append(4); - data.append(0); - data.append(4); - data.append(3); - data.append(4); - data.append(3); - data.append(1); - data.append(3); - 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 deleted file mode 100644 index e3a48b20a..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index 7d3ab361b..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index b7d1c3edb..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index 1fd960fd0..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_with_axis_zero_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::Some(0), Option::Some(true)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} 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 deleted file mode 100644 index b575d419c..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(4); - data.append(1); - data.append(2); - data.append(4); - data.append(1); - data.append(3); - data.append(1); - data.append(0); - data.append(0); - data.append(3); - data.append(2); - data.append(3); - data.append(0); - data.append(0); - data.append(3); - data.append(1); - data.append(3); - data.append(3); - data.append(3); - data.append(3); - data.append(0); - data.append(1); - data.append(1); - data.append(0); - data.append(0); - data.append(2); - data.append(4); - 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 deleted file mode 100644 index caf29e7a0..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(3); - data.append(2); - data.append(3); - data.append(0); - data.append(0); - data.append(3); - data.append(1); - data.append(3); - data.append(3); - data.append(3); - data.append(3); - data.append(0); - data.append(1); - data.append(1); - data.append(0); - data.append(0); - data.append(2); - data.append(4); - data.append(4); - data.append(1); - data.append(2); - data.append(4); - data.append(1); - data.append(3); - data.append(1); - data.append(0); - data.append(0); - 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 deleted file mode 100644 index d887c1a39..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_1() -> 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: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - 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 deleted file mode 100644 index 5d6ba0796..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - 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 deleted file mode 100644 index b7d1c3edb..000000000 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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 }); - 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 deleted file mode 100644 index 16e5f4906..000000000 --- a/tests/nodes/unique_u32_without_axis_not_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_without_axis_not_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(false)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} 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 deleted file mode 100644 index 1b1d6682e..000000000 --- a/tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - data.append(4); - data.append(0); - data.append(0); - data.append(4); - data.append(1); - data.append(1); - data.append(0); - data.append(1); - data.append(1); - data.append(3); - data.append(4); - data.append(1); - data.append(4); - data.append(1); - data.append(4); - data.append(2); - data.append(0); - data.append(2); - data.append(2); - data.append(1); - data.append(2); - data.append(3); - data.append(3); - data.append(3); - data.append(4); - 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 deleted file mode 100644 index aa2bbe67f..000000000 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo +++ /dev/null @@ -1,16 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(5); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - 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 deleted file mode 100644 index ceb79e924..000000000 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo +++ /dev/null @@ -1,17 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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: 11, sign: false }); - data.append(i32 { mag: 17, sign: false }); - 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 deleted file mode 100644 index c1833bbea..000000000 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo +++ /dev/null @@ -1,39 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -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: 1, 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: 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: 0, 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: 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: 0, 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: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - 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 deleted file mode 100644 index 663ebad0c..000000000 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo +++ /dev/null @@ -1,17 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_3() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(5); - - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 8, sign: false }); - 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: 4, sign: false }); - 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 deleted file mode 100644 index f64c4e855..000000000 --- a/tests/nodes/unique_u32_without_axis_sorted.cairo +++ /dev/null @@ -1,31 +0,0 @@ -mod input_0; -mod output_0; -mod output_1; -mod output_2; -mod output_3; - - -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; - -#[test] -#[available_gas(2000000000)] -fn test_unique_u32_without_axis_sorted() { - let input_0 = input_0::input_0(); - let z_0 = output_0::output_0(); - let z_1 = output_1::output_1(); - let z_2 = output_2::output_2(); - let z_3 = output_3::output_3(); - - let (y_0, y_1, y_2, y_3) = input_0.unique(Option::None(()), Option::Some(true)); - - assert_eq(y_0, z_0); - assert_eq(y_1, z_1); - assert_eq(y_2, z_2); - assert_eq(y_3, z_3); -} diff --git a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo deleted file mode 100644 index 1c1233e89..000000000 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ /dev/null @@ -1,40 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn input_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(4); - data.append(1); - data.append(3); - data.append(4); - data.append(0); - data.append(0); - data.append(4); - data.append(1); - data.append(2); - 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(4); - data.append(1); - data.append(1); - data.append(0); - data.append(4); - data.append(0); - data.append(1); - data.append(2); - 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 deleted file mode 100644 index dff01c104..000000000 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ /dev/null @@ -1,16 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; - -fn output_0() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(5); - - let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(2); - data.append(3); - data.append(4); - TensorTrait::new(shape.span(), data.span()) -} diff --git a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo deleted file mode 100644 index 0535ee557..000000000 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ /dev/null @@ -1,17 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_1() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(5); - - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - 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 deleted file mode 100644 index 08f0cb930..000000000 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ /dev/null @@ -1,39 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_2() -> 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: 4, 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: 0, sign: false }); - data.append(i32 { mag: 0, 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: 4, 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: 2, 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: 1, 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: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - 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 deleted file mode 100644 index 8604add2c..000000000 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ /dev/null @@ -1,17 +0,0 @@ -use array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; - -fn output_3() -> Tensor { - let mut shape = ArrayTrait::::new(); - shape.append(5); - - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: false }); - TensorTrait::new(shape.span(), data.span()) -} From de6129ebd2050d18ebdf628acf8a0a655141961e Mon Sep 17 00:00:00 2001 From: raphaelDkhn Date: Sun, 10 Dec 2023 16:32:01 +0200 Subject: [PATCH 30/30] remove unused ml functions --- Scarb.toml | 2 +- src/operators/ml.cairo | 21 --- src/operators/ml/tree_classifier.cairo | 2 - src/operators/ml/tree_classifier/core.cairo | 163 ------------------ .../ml/tree_classifier/implementations.cairo | 4 - .../tree_classifier_fp16x16.cairo | 15 -- .../tree_classifier_fp32x32.cairo | 15 -- .../tree_classifier_fp64x64.cairo | 15 -- .../tree_classifier_fp8x23.cairo | 15 -- src/operators/ml/tree_regressor.cairo | 2 - src/operators/ml/tree_regressor/core.cairo | 88 ---------- .../ml/tree_regressor/implementations.cairo | 4 - .../tree_regressor_fp16x16.cairo | 9 - .../tree_regressor_fp32x32.cairo | 9 - .../tree_regressor_fp64x64.cairo | 9 - .../tree_regressor_fp8x23.cairo | 9 - src/operators/ml/xgboost_regressor.cairo | 2 - src/operators/ml/xgboost_regressor/core.cairo | 81 --------- .../xgboost_regressor/implementations.cairo | 4 - .../xgboost_regressor_fp16x16.cairo | 14 -- .../xgboost_regressor_fp32x32.cairo | 14 -- .../xgboost_regressor_fp64x64.cairo | 14 -- .../xgboost_regressor_fp8x23.cairo | 12 -- tests/ml.cairo | 1 - tests/ml/tree_regressor.cairo | 3 - 25 files changed, 1 insertion(+), 526 deletions(-) delete mode 100644 src/operators/ml/tree_classifier.cairo delete mode 100644 src/operators/ml/tree_classifier/core.cairo delete mode 100644 src/operators/ml/tree_classifier/implementations.cairo delete mode 100644 src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo delete mode 100644 src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo delete mode 100644 src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo delete mode 100644 src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo delete mode 100644 src/operators/ml/tree_regressor.cairo delete mode 100644 src/operators/ml/tree_regressor/core.cairo delete mode 100644 src/operators/ml/tree_regressor/implementations.cairo delete mode 100644 src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo delete mode 100644 src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo delete mode 100644 src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo delete mode 100644 src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo delete mode 100644 src/operators/ml/xgboost_regressor.cairo delete mode 100644 src/operators/ml/xgboost_regressor/core.cairo delete mode 100644 src/operators/ml/xgboost_regressor/implementations.cairo delete mode 100644 src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo delete mode 100644 src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo delete mode 100644 src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo delete mode 100644 src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo delete mode 100644 tests/ml/tree_regressor.cairo diff --git a/Scarb.toml b/Scarb.toml index 0389be458..6ebf1fd1f 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -1,6 +1,6 @@ [package] name = "orion" -version = "0.1.7" +version = "0.1.9" cairo-version = "2.4.0" edition = "2023_10" description = "ONNX Runtime in Cairo for verifiable ML inference using STARK" diff --git a/src/operators/ml.cairo b/src/operators/ml.cairo index 826f51f51..4b560e336 100644 --- a/src/operators/ml.cairo +++ b/src/operators/ml.cairo @@ -1,26 +1,5 @@ -mod tree_regressor; -mod tree_classifier; -mod xgboost_regressor; mod tree_ensemble; -use orion::operators::ml::tree_regressor::core::{TreeRegressorTrait, TreeRegressor}; -use orion::operators::ml::tree_regressor::implementations::tree_regressor_fp16x16::FP16x16TreeRegressor; -use orion::operators::ml::tree_regressor::implementations::tree_regressor_fp8x23::FP8x23TreeRegressor; -use orion::operators::ml::tree_regressor::implementations::tree_regressor_fp32x32::FP32x32TreeRegressor; -use orion::operators::ml::tree_regressor::implementations::tree_regressor_fp64x64::FP64x64TreeRegressor; - -use orion::operators::ml::tree_classifier::core::{TreeClassifierTrait, TreeClassifier}; -use orion::operators::ml::tree_classifier::implementations::tree_classifier_fp16x16::FP16x16TreeClassifier; -use orion::operators::ml::tree_classifier::implementations::tree_classifier_fp8x23::FP8x23TreeClassifier; -use orion::operators::ml::tree_classifier::implementations::tree_classifier_fp32x32::FP32x32TreeClassifier; -use orion::operators::ml::tree_classifier::implementations::tree_classifier_fp64x64::FP64x64TreeClassifier; - -use orion::operators::ml::xgboost_regressor::core::{XGBoostRegressorTrait}; -use orion::operators::ml::xgboost_regressor::implementations::xgboost_regressor_fp16x16::FP16x16XGBoostRegressor; -use orion::operators::ml::xgboost_regressor::implementations::xgboost_regressor_fp8x23::FP8x23XGBoostRegressor; -use orion::operators::ml::xgboost_regressor::implementations::xgboost_regressor_fp32x32::FP32x32XGBoostRegressor; -use orion::operators::ml::xgboost_regressor::implementations::xgboost_regressor_fp64x64::FP64x64XGBoostRegressor; - use orion::operators::ml::tree_ensemble::core::{ TreeEnsemble, TreeEnsembleAttributes, TreeEnsembleImpl, NODE_MODES }; diff --git a/src/operators/ml/tree_classifier.cairo b/src/operators/ml/tree_classifier.cairo deleted file mode 100644 index 469d634e4..000000000 --- a/src/operators/ml/tree_classifier.cairo +++ /dev/null @@ -1,2 +0,0 @@ -mod core; -mod implementations; diff --git a/src/operators/ml/tree_classifier/core.cairo b/src/operators/ml/tree_classifier/core.cairo deleted file mode 100644 index a42e6dd94..000000000 --- a/src/operators/ml/tree_classifier/core.cairo +++ /dev/null @@ -1,163 +0,0 @@ -use orion::numbers::{FixedTrait}; - -#[derive(Copy, Drop)] -struct TreeClassifier { - left: Option>>, - right: Option>>, - split_feature: usize, - split_value: T, - prediction: T, - class_distribution: Span< - T - >, // assuming class labels of type usize (span index), and probability as T. -} - -/// Trait -/// -/// predict - Given a set of features, predicts the target value using the constructed decision tree. -/// predict_proba - Predicts class probabilities based on feature data. -trait TreeClassifierTrait { - /// # TreeClassifierTrait::predict - /// - /// ```rust - /// fn predict(ref self: TreeClassifier, features: Span) -> T; - /// ``` - /// - /// Predicts the target value for a set of features using the provided decision tree. - /// - /// ## Args - /// - /// * `self`: A reference to the decision tree used for making the prediction. - /// * `features`: A span representing the features for which the prediction is to be made. - /// - /// ## Returns - /// - /// The predicted target value. - /// - /// ## Type Constraints - /// - /// Constrain input and output types to fixed point. - /// - /// ## Examples - /// - /// ```rust - /// use orion::operators::ml::{FP16x16TreeClassifier, TreeClassifierTrait, TreeClassifier}; - /// use orion::numbers::{FP16x16, FixedTrait}; - /// - /// fn tree_classifier_example(tree: TreeClassifier) { - /// - /// tree.predict( - /// array![FixedTrait::new_unscaled(1, false), FixedTrait::new_unscaled(2, false),].span() - /// ); - /// - /// } - /// ``` - /// - fn predict(ref self: TreeClassifier, features: Span) -> T; - /// # TreeClassifierTrait::predict_proba - /// - /// ```rust - /// fn predict_proba(ref self: TreeClassifier, features: Span) -> Span; - /// ``` - /// - /// Given a set of features, this method traverses the decision tree - /// represented by `self` and returns the class distribution (probabilities) - /// found in the leaf node that matches the provided features. The traversal - /// stops once a leaf node is reached in the decision tree. - /// - /// ## Args - /// - /// * `self`: A reference to the decision tree used for making the prediction. - /// * `features`: A span representing the features for which the prediction is to be made. - /// - /// ## Returns - /// - /// Returns a `Span` representing the class distribution at the leaf node. - /// - /// ## Type Constraints - /// - /// Constrain input and output types to fixed points. - /// - /// ## Examples - /// - /// ```rust - /// use orion::operators::ml::{FP16x16TreeClassifier, TreeClassifierTrait, TreeClassifier}; - /// use orion::numbers::{FP16x16, FixedTrait}; - /// - /// fn tree_classifier_example(tree: TreeClassifier) { - /// - /// tree.predict_proba( - /// array![FixedTrait::new_unscaled(1, false), FixedTrait::new_unscaled(2, false),].span() - /// ); - /// - /// } - /// ``` - /// - fn predict_proba(ref self: TreeClassifier, features: Span) -> Span; -} - -fn predict< - T, - MAG, - impl FFixedTrait: FixedTrait, - impl TPartialOrd: PartialOrd, - impl FCopy: Copy, - impl FDrop: Drop, ->( - ref self: TreeClassifier, features: Span -) -> T { - let mut current_node: TreeClassifier = self; - - loop { - match current_node.left { - Option::Some(left) => { - match current_node.right { - Option::Some(right) => { - if *features.at(current_node.split_feature) < current_node.split_value { - current_node = left.unbox(); - } else { - current_node = right.unbox(); - } - }, - Option::None(_) => { break; } - } - }, - Option::None(_) => { break; } - }; - }; - - current_node.prediction -} - -fn predict_proba< - T, - MAG, - impl FFixedTrait: FixedTrait, - impl TPartialOrd: PartialOrd, - impl FCopy: Copy, - impl FDrop: Drop, ->( - ref self: TreeClassifier, features: Span -) -> Span { - let mut current_node: TreeClassifier = self; - - loop { - match current_node.left { - Option::Some(left) => { - match current_node.right { - Option::Some(right) => { - if *features.at(current_node.split_feature) < current_node.split_value { - current_node = left.unbox(); - } else { - current_node = right.unbox(); - } - }, - Option::None(_) => { break; } - } - }, - Option::None(_) => { break; } - }; - }; - - current_node.class_distribution -} diff --git a/src/operators/ml/tree_classifier/implementations.cairo b/src/operators/ml/tree_classifier/implementations.cairo deleted file mode 100644 index 2421c7809..000000000 --- a/src/operators/ml/tree_classifier/implementations.cairo +++ /dev/null @@ -1,4 +0,0 @@ -mod tree_classifier_fp8x23; -mod tree_classifier_fp16x16; -mod tree_classifier_fp32x32; -mod tree_classifier_fp64x64; diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo deleted file mode 100644 index daed37322..000000000 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp16x16.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use orion::operators::ml::tree_classifier::core::{ - TreeClassifier, TreeClassifierTrait, predict, predict_proba -}; -use orion::operators::ml::tree_classifier::core; -use orion::numbers::FP16x16; - -impl FP16x16TreeClassifier of TreeClassifierTrait { - fn predict(ref self: TreeClassifier, features: Span) -> FP16x16 { - predict(ref self, features) - } - - fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - predict_proba(ref self, features) - } -} diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo deleted file mode 100644 index c6ce558c0..000000000 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp32x32.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use orion::operators::ml::tree_classifier::core::{ - TreeClassifier, TreeClassifierTrait, predict, predict_proba -}; -use orion::operators::ml::tree_classifier::core; -use orion::numbers::{FP32x32, FP32x32Impl}; - -impl FP32x32TreeClassifier of TreeClassifierTrait { - fn predict(ref self: TreeClassifier, features: Span) -> FP32x32 { - predict(ref self, features) - } - - fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - predict_proba(ref self, features) - } -} diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo deleted file mode 100644 index 6c9c24b5f..000000000 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp64x64.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use orion::operators::ml::tree_classifier::core::{ - TreeClassifier, TreeClassifierTrait, predict, predict_proba -}; -use orion::operators::ml::tree_classifier::core; -use orion::numbers::{FP64x64, FP64x64Impl}; - -impl FP64x64TreeClassifier of TreeClassifierTrait { - fn predict(ref self: TreeClassifier, features: Span) -> FP64x64 { - predict(ref self, features) - } - - fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - predict_proba(ref self, features) - } -} diff --git a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo b/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo deleted file mode 100644 index defe4b4ed..000000000 --- a/src/operators/ml/tree_classifier/implementations/tree_classifier_fp8x23.cairo +++ /dev/null @@ -1,15 +0,0 @@ -use orion::operators::ml::tree_classifier::core::{ - TreeClassifier, TreeClassifierTrait, predict, predict_proba -}; -use orion::operators::ml::tree_classifier::core; -use orion::numbers::FP8x23; - -impl FP8x23TreeClassifier of TreeClassifierTrait { - fn predict(ref self: TreeClassifier, features: Span) -> FP8x23 { - predict(ref self, features) - } - - fn predict_proba(ref self: TreeClassifier, features: Span) -> Span { - predict_proba(ref self, features) - } -} diff --git a/src/operators/ml/tree_regressor.cairo b/src/operators/ml/tree_regressor.cairo deleted file mode 100644 index a31b2eef9..000000000 --- a/src/operators/ml/tree_regressor.cairo +++ /dev/null @@ -1,2 +0,0 @@ -mod implementations; -mod core; diff --git a/src/operators/ml/tree_regressor/core.cairo b/src/operators/ml/tree_regressor/core.cairo deleted file mode 100644 index 9811e2589..000000000 --- a/src/operators/ml/tree_regressor/core.cairo +++ /dev/null @@ -1,88 +0,0 @@ -use cubit::f64::procgen::rand::u64_between; - -use orion::numbers::{FixedTrait}; - -#[derive(Copy, Drop)] -struct TreeRegressor { - left: Option>>, - right: Option>>, - split_feature: usize, - split_value: T, - prediction: T, -} - -/// Trait -/// -/// predict - Given a set of features, predicts the target value using the constructed decision tree. -trait TreeRegressorTrait { - /// # TreeRegressorTrait::predict - /// - /// ```rust - /// fn predict(ref self: TreeRegressor, features: Span) -> T; - /// ``` - /// - /// Predicts the target value for a set of features using the provided decision tree. - /// - /// ## Args - /// - /// * `self`: A reference to the decision tree used for making the prediction. - /// * `features`: A span representing the features for which the prediction is to be made. - /// - /// ## Returns - /// - /// The predicted target value. - /// - /// ## Type Constraints - /// - /// Constrain input and output types to fixed point. - /// - /// ## Examples - /// - /// ```rust - /// use orion::operators::ml::{FP16x16TreeRegressor, TreeRegressorTrait, TreeRegressor}; - /// use orion::numbers::{FP16x16, FixedTrait}; - /// - /// fn tree_regressor_example(tree: TreeRegressor) { - /// - /// tree.predict( - /// array![FixedTrait::new_unscaled(1, false), FixedTrait::new_unscaled(2, false),].span() - /// ); - /// - /// } - /// ``` - /// - fn predict(ref self: TreeRegressor, features: Span) -> T; -} - -fn predict< - T, - MAG, - impl FFixedTrait: FixedTrait, - impl TPartialOrd: PartialOrd, - impl FCopy: Copy, - impl FDrop: Drop, ->( - ref self: TreeRegressor, features: Span -) -> T { - let mut current_node: TreeRegressor = self; - - loop { - match current_node.left { - Option::Some(left) => { - match current_node.right { - Option::Some(right) => { - if *features.at(current_node.split_feature) < current_node.split_value { - current_node = left.unbox(); - } else { - current_node = right.unbox(); - } - }, - Option::None(_) => { break; } - } - }, - Option::None(_) => { break; } - }; - }; - - current_node.prediction -} diff --git a/src/operators/ml/tree_regressor/implementations.cairo b/src/operators/ml/tree_regressor/implementations.cairo deleted file mode 100644 index 107e02264..000000000 --- a/src/operators/ml/tree_regressor/implementations.cairo +++ /dev/null @@ -1,4 +0,0 @@ -mod tree_regressor_fp16x16; -mod tree_regressor_fp8x23; -mod tree_regressor_fp32x32; -mod tree_regressor_fp64x64; diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo deleted file mode 100644 index eb9e409ea..000000000 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp16x16.cairo +++ /dev/null @@ -1,9 +0,0 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; -use orion::operators::ml::tree_regressor::core; -use orion::numbers::FP16x16; - -impl FP16x16TreeRegressor of TreeRegressorTrait { - fn predict(ref self: TreeRegressor, features: Span) -> FP16x16 { - predict(ref self, features) - } -} diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo deleted file mode 100644 index b79737e26..000000000 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp32x32.cairo +++ /dev/null @@ -1,9 +0,0 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; -use orion::operators::ml::tree_regressor::core; -use orion::numbers::{FP32x32, FP32x32Impl}; - -impl FP32x32TreeRegressor of TreeRegressorTrait { - fn predict(ref self: TreeRegressor, features: Span) -> FP32x32 { - predict(ref self, features) - } -} diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo deleted file mode 100644 index 93c80acb9..000000000 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp64x64.cairo +++ /dev/null @@ -1,9 +0,0 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; -use orion::operators::ml::tree_regressor::core; -use orion::numbers::{FP64x64, FP64x64Impl}; - -impl FP64x64TreeRegressor of TreeRegressorTrait { - fn predict(ref self: TreeRegressor, features: Span) -> FP64x64 { - predict(ref self, features) - } -} diff --git a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo b/src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo deleted file mode 100644 index 7ebd03b7d..000000000 --- a/src/operators/ml/tree_regressor/implementations/tree_regressor_fp8x23.cairo +++ /dev/null @@ -1,9 +0,0 @@ -use orion::operators::ml::tree_regressor::core::{TreeRegressor, TreeRegressorTrait, predict}; -use orion::operators::ml::tree_regressor::core; -use orion::numbers::FP8x23; - -impl FP8x23TreeRegressor of TreeRegressorTrait { - fn predict(ref self: TreeRegressor, features: Span) -> FP8x23 { - predict(ref self, features) - } -} diff --git a/src/operators/ml/xgboost_regressor.cairo b/src/operators/ml/xgboost_regressor.cairo deleted file mode 100644 index 469d634e4..000000000 --- a/src/operators/ml/xgboost_regressor.cairo +++ /dev/null @@ -1,2 +0,0 @@ -mod core; -mod implementations; diff --git a/src/operators/ml/xgboost_regressor/core.cairo b/src/operators/ml/xgboost_regressor/core.cairo deleted file mode 100644 index bbb80dbff..000000000 --- a/src/operators/ml/xgboost_regressor/core.cairo +++ /dev/null @@ -1,81 +0,0 @@ -use orion::operators::ml::{TreeRegressor, TreeRegressorTrait}; -use orion::numbers::FixedTrait; - -/// Trait -/// -/// predict - Predicts the target value for a set of features using the provided ensemble of decision trees. -trait XGBoostRegressorTrait { - /// # XGBoostRegressorTrait::predict - /// - /// ```rust - /// fn predict(ref self: Span>, ref features: Span, ref weights: Span) -> T; - /// ``` - /// - /// Predicts the target value for a set of features using the provided ensemble of decision trees - /// and combining their results using given weights. - /// - /// ## Args - /// - /// * `self`: A reference to a span representing a ensemble of decision trees. - /// * `features`: A reference to a span representing the features for which the prediction is to be made. - /// * `weights`: A reference to a span representing the weights applied to the predictions from each tree. - /// - /// ## Returns - /// - /// The predicted target value. - /// - /// ## Type Constraints - /// - /// Constrain input and output types to fixed point. - /// - /// ## Examples - /// - /// ```rust - /// use orion::operators::ml::{FP16x16XGBoostRegressor, TreeRegressorTrait, TreeRegressor}; - /// use orion::numbers::{FP16x16, FixedTrait}; - /// - /// fn xgboost_regressor_example(trees: Span>) { - /// - /// let mut features = array![ - /// FixedTrait::new_unscaled(1, false), - /// FixedTrait::new_unscaled(2, false), - /// ].span(); - /// - /// let mut weights = array![ - /// FixedTrait::new_unscaled(0.5, false), - /// FixedTrait::new_unscaled(0.5, false) - /// ].span(); - /// - /// FP16x16XGBoostRegressor::predict(ref trees, ref features, ref weights); - /// } - /// ``` - /// - fn predict(ref self: Span>, ref features: Span, ref weights: Span) -> T; -} - -fn predict< - T, - MAG, - impl TFixed: FixedTrait, - impl TTreeRegressor: TreeRegressorTrait, - impl TMul: Mul, - impl TAddEq: AddEq, - impl TCopy: Copy, - impl TDrop: Drop, ->( - ref trees: Span>, ref features: Span, ref weights: Span -) -> T { - let mut sum_prediction: T = FixedTrait::ZERO(); - - loop { - match trees.pop_front() { - Option::Some(tree) => { - let mut tree = *tree; - sum_prediction += tree.predict(features) * *weights.pop_front().unwrap() - }, - Option::None(_) => { break; } - }; - }; - - sum_prediction -} diff --git a/src/operators/ml/xgboost_regressor/implementations.cairo b/src/operators/ml/xgboost_regressor/implementations.cairo deleted file mode 100644 index cd493cf91..000000000 --- a/src/operators/ml/xgboost_regressor/implementations.cairo +++ /dev/null @@ -1,4 +0,0 @@ -mod xgboost_regressor_fp8x23; -mod xgboost_regressor_fp16x16; -mod xgboost_regressor_fp32x32; -mod xgboost_regressor_fp64x64; diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo deleted file mode 100644 index a698dd227..000000000 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp16x16.cairo +++ /dev/null @@ -1,14 +0,0 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; -use orion::operators::ml::xgboost_regressor::core; -use orion::operators::ml::FP16x16TreeRegressor; -use orion::numbers::FP16x16; - -impl FP16x16XGBoostRegressor of XGBoostRegressorTrait { - fn predict( - ref self: Span>, - ref features: Span, - ref weights: Span - ) -> FP16x16 { - predict(ref self, ref features, ref weights) - } -} diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo deleted file mode 100644 index 251bfc9f8..000000000 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp32x32.cairo +++ /dev/null @@ -1,14 +0,0 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; -use orion::operators::ml::xgboost_regressor::core; -use orion::operators::ml::FP32x32TreeRegressor; -use orion::numbers::{FP32x32, FP32x32Impl}; - -impl FP32x32XGBoostRegressor of XGBoostRegressorTrait { - fn predict( - ref self: Span>, - ref features: Span, - ref weights: Span - ) -> FP32x32 { - predict(ref self, ref features, ref weights) - } -} diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo deleted file mode 100644 index 210853f4d..000000000 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp64x64.cairo +++ /dev/null @@ -1,14 +0,0 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; -use orion::operators::ml::xgboost_regressor::core; -use orion::operators::ml::FP64x64TreeRegressor; -use orion::numbers::{FP64x64, FP64x64Impl}; - -impl FP64x64XGBoostRegressor of XGBoostRegressorTrait { - fn predict( - ref self: Span>, - ref features: Span, - ref weights: Span - ) -> FP64x64 { - predict(ref self, ref features, ref weights) - } -} diff --git a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo b/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo deleted file mode 100644 index fa51d79a5..000000000 --- a/src/operators/ml/xgboost_regressor/implementations/xgboost_regressor_fp8x23.cairo +++ /dev/null @@ -1,12 +0,0 @@ -use orion::operators::ml::xgboost_regressor::core::{TreeRegressor, XGBoostRegressorTrait, predict}; -use orion::operators::ml::xgboost_regressor::core; -use orion::operators::ml::FP8x23TreeRegressor; -use orion::numbers::FP8x23; - -impl FP8x23XGBoostRegressor of XGBoostRegressorTrait { - fn predict( - ref self: Span>, ref features: Span, ref weights: Span - ) -> FP8x23 { - predict(ref self, ref features, ref weights) - } -} diff --git a/tests/ml.cairo b/tests/ml.cairo index 411cc99b2..f52dbb77f 100644 --- a/tests/ml.cairo +++ b/tests/ml.cairo @@ -1,2 +1 @@ -mod tree_regressor; mod tree_ensemble_classifier; diff --git a/tests/ml/tree_regressor.cairo b/tests/ml/tree_regressor.cairo deleted file mode 100644 index bf4b12596..000000000 --- a/tests/ml/tree_regressor.cairo +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: make test once Tree transpilation implemented - -