file_path
stringlengths
7
180
content
stringlengths
0
811k
repo
stringclasses
11 values
tests/nodes/concat_fp16x16_3d_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(6); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_axis_2.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_fp16x16_3d_axis_2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 2); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_axis_2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_axis_2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_axis_2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(6); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_default.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_fp16x16_3d_default() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 0); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_default/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(6); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_1.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_fp16x16_3d_three_tensors_axis_1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let input_2 = input_2::input_2(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1, input_2].span(), 1); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 3604480, sign: false }); data.append(FP16x16 { mag: 3670016, sign: false }); data.append(FP16x16 { mag: 3735552, sign: false }); data.append(FP16x16 { mag: 3801088, sign: false }); data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 3932160, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); data.append(FP16x16 { mag: 4063232, sign: false }); data.append(FP16x16 { mag: 4128768, sign: false }); data.append(FP16x16 { mag: 4194304, sign: false }); data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 4325376, sign: false }); data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 4456448, sign: false }); data.append(FP16x16 { mag: 4521984, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 4653056, sign: false }); data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 4849664, sign: false }); data.append(FP16x16 { mag: 4915200, sign: false }); data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 5046272, sign: false }); data.append(FP16x16 { mag: 5111808, sign: false }); data.append(FP16x16 { mag: 5177344, sign: false }); data.append(FP16x16 { mag: 5242880, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(9); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 3604480, sign: false }); data.append(FP16x16 { mag: 3670016, sign: false }); data.append(FP16x16 { mag: 3735552, sign: false }); data.append(FP16x16 { mag: 3801088, sign: false }); data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 3932160, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); data.append(FP16x16 { mag: 4063232, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 4128768, sign: false }); data.append(FP16x16 { mag: 4194304, sign: false }); data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 4325376, sign: false }); data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 4456448, sign: false }); data.append(FP16x16 { mag: 4521984, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 4653056, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 4849664, sign: false }); data.append(FP16x16 { mag: 4915200, sign: false }); data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 5046272, sign: false }); data.append(FP16x16 { mag: 5111808, sign: false }); data.append(FP16x16 { mag: 5177344, sign: false }); data.append(FP16x16 { mag: 5242880, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_2.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_fp16x16_3d_three_tensors_axis_2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let input_2 = input_2::input_2(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1, input_2].span(), 2); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 3604480, sign: false }); data.append(FP16x16 { mag: 3670016, sign: false }); data.append(FP16x16 { mag: 3735552, sign: false }); data.append(FP16x16 { mag: 3801088, sign: false }); data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 3932160, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); data.append(FP16x16 { mag: 4063232, sign: false }); data.append(FP16x16 { mag: 4128768, sign: false }); data.append(FP16x16 { mag: 4194304, sign: false }); data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 4325376, sign: false }); data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 4456448, sign: false }); data.append(FP16x16 { mag: 4521984, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 4653056, sign: false }); data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 4849664, sign: false }); data.append(FP16x16 { mag: 4915200, sign: false }); data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 5046272, sign: false }); data.append(FP16x16 { mag: 5111808, sign: false }); data.append(FP16x16 { mag: 5177344, sign: false }); data.append(FP16x16 { mag: 5242880, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(9); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 3604480, sign: false }); data.append(FP16x16 { mag: 3670016, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 2097152, sign: false }); data.append(FP16x16 { mag: 3735552, sign: false }); data.append(FP16x16 { mag: 3801088, sign: false }); data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 3932160, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); data.append(FP16x16 { mag: 4063232, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 4128768, sign: false }); data.append(FP16x16 { mag: 4194304, sign: false }); data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 2621440, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 4325376, sign: false }); data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 4456448, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 2883584, sign: false }); data.append(FP16x16 { mag: 4521984, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 4653056, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 4849664, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 4915200, sign: false }); data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 5046272, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1703936, sign: false }); data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); data.append(FP16x16 { mag: 5111808, sign: false }); data.append(FP16x16 { mag: 5177344, sign: false }); data.append(FP16x16 { mag: 5242880, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_1d.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_fp8x23_1d() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 0); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_1d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_1d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_1d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(6); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_2d.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_fp8x23_2d() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 0); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_2d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_2d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_2d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(4); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_1.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_fp8x23_3d_axis_1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 1); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(6); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_2.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_fp8x23_3d_axis_2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 2); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_axis_2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(6); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_default.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_fp8x23_3d_default() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 0); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_default/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(6); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_1.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_fp8x23_3d_three_tensors_axis_1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let input_2 = input_2::input_2(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1, input_2].span(), 1); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 452984832, sign: false }); data.append(FP8x23 { mag: 461373440, sign: false }); data.append(FP8x23 { mag: 469762048, sign: false }); data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 486539264, sign: false }); data.append(FP8x23 { mag: 494927872, sign: false }); data.append(FP8x23 { mag: 503316480, sign: false }); data.append(FP8x23 { mag: 511705088, sign: false }); data.append(FP8x23 { mag: 520093696, sign: false }); data.append(FP8x23 { mag: 528482304, sign: false }); data.append(FP8x23 { mag: 536870912, sign: false }); data.append(FP8x23 { mag: 545259520, sign: false }); data.append(FP8x23 { mag: 553648128, sign: false }); data.append(FP8x23 { mag: 562036736, sign: false }); data.append(FP8x23 { mag: 570425344, sign: false }); data.append(FP8x23 { mag: 578813952, sign: false }); data.append(FP8x23 { mag: 587202560, sign: false }); data.append(FP8x23 { mag: 595591168, sign: false }); data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 620756992, sign: false }); data.append(FP8x23 { mag: 629145600, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); data.append(FP8x23 { mag: 645922816, sign: false }); data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 662700032, sign: false }); data.append(FP8x23 { mag: 671088640, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(9); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 452984832, sign: false }); data.append(FP8x23 { mag: 461373440, sign: false }); data.append(FP8x23 { mag: 469762048, sign: false }); data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 486539264, sign: false }); data.append(FP8x23 { mag: 494927872, sign: false }); data.append(FP8x23 { mag: 503316480, sign: false }); data.append(FP8x23 { mag: 511705088, sign: false }); data.append(FP8x23 { mag: 520093696, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 528482304, sign: false }); data.append(FP8x23 { mag: 536870912, sign: false }); data.append(FP8x23 { mag: 545259520, sign: false }); data.append(FP8x23 { mag: 553648128, sign: false }); data.append(FP8x23 { mag: 562036736, sign: false }); data.append(FP8x23 { mag: 570425344, sign: false }); data.append(FP8x23 { mag: 578813952, sign: false }); data.append(FP8x23 { mag: 587202560, sign: false }); data.append(FP8x23 { mag: 595591168, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 620756992, sign: false }); data.append(FP8x23 { mag: 629145600, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); data.append(FP8x23 { mag: 645922816, sign: false }); data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 662700032, sign: false }); data.append(FP8x23 { mag: 671088640, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_2.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_fp8x23_3d_three_tensors_axis_2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let input_2 = input_2::input_2(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1, input_2].span(), 2); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 452984832, sign: false }); data.append(FP8x23 { mag: 461373440, sign: false }); data.append(FP8x23 { mag: 469762048, sign: false }); data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 486539264, sign: false }); data.append(FP8x23 { mag: 494927872, sign: false }); data.append(FP8x23 { mag: 503316480, sign: false }); data.append(FP8x23 { mag: 511705088, sign: false }); data.append(FP8x23 { mag: 520093696, sign: false }); data.append(FP8x23 { mag: 528482304, sign: false }); data.append(FP8x23 { mag: 536870912, sign: false }); data.append(FP8x23 { mag: 545259520, sign: false }); data.append(FP8x23 { mag: 553648128, sign: false }); data.append(FP8x23 { mag: 562036736, sign: false }); data.append(FP8x23 { mag: 570425344, sign: false }); data.append(FP8x23 { mag: 578813952, sign: false }); data.append(FP8x23 { mag: 587202560, sign: false }); data.append(FP8x23 { mag: 595591168, sign: false }); data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 620756992, sign: false }); data.append(FP8x23 { mag: 629145600, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); data.append(FP8x23 { mag: 645922816, sign: false }); data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 662700032, sign: false }); data.append(FP8x23 { mag: 671088640, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(9); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 452984832, sign: false }); data.append(FP8x23 { mag: 461373440, sign: false }); data.append(FP8x23 { mag: 469762048, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 486539264, sign: false }); data.append(FP8x23 { mag: 494927872, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 503316480, sign: false }); data.append(FP8x23 { mag: 511705088, sign: false }); data.append(FP8x23 { mag: 520093696, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 528482304, sign: false }); data.append(FP8x23 { mag: 536870912, sign: false }); data.append(FP8x23 { mag: 545259520, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 553648128, sign: false }); data.append(FP8x23 { mag: 562036736, sign: false }); data.append(FP8x23 { mag: 570425344, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 578813952, sign: false }); data.append(FP8x23 { mag: 587202560, sign: false }); data.append(FP8x23 { mag: 595591168, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 620756992, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 629145600, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); data.append(FP8x23 { mag: 645922816, sign: false }); data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 662700032, sign: false }); data.append(FP8x23 { mag: 671088640, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_default.cairo
mod input_0; mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::FP16x16Sequence; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp16x16_new_axis_default() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array<Tensor<FP16x16>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(15); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_one.cairo
mod input_0; mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::FP16x16Sequence; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp16x16_new_axis_one() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_one/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array<Tensor<FP16x16>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_one/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(5); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_zero.cairo
mod input_0; mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::FP16x16Sequence; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp16x16_new_axis_zero() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array<Tensor<FP16x16>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 327680, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(15); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 262144, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_default.cairo
mod input_0; mod output_0; use orion::operators::sequence::FP8x23Sequence; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp8x23_new_axis_default() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array<Tensor<FP8x23>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(10); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_one.cairo
mod input_0; mod output_0; use orion::operators::sequence::FP8x23Sequence; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp8x23_new_axis_one() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_one/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array<Tensor<FP8x23>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_one/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(5); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_zero.cairo
mod input_0; mod output_0; use orion::operators::sequence::FP8x23Sequence; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp8x23_new_axis_zero() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array<Tensor<FP8x23>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 33554432, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(5); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_default.cairo
mod input_0; mod output_0; use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i32_new_axis_default() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<i32>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(4); data.append(-3); data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(4); data.append(5); data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(4); data.append(-3); data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(-3); data.append(4); data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(-6); data.append(2); data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(15); let mut data = ArrayTrait::new(); data.append(4); data.append(-3); data.append(-2); data.append(4); data.append(5); data.append(-2); data.append(4); data.append(-3); data.append(1); data.append(-3); data.append(4); data.append(-6); data.append(-6); data.append(2); data.append(5); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_one.cairo
mod input_0; mod output_0; use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i32_new_axis_one() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_one/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<i32>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(-2); data.append(1); data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(2); data.append(1); data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(-2); data.append(1); data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(-4); data.append(4); data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(-1); data.append(-6); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_one/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(5); shape.append(3); let mut data = ArrayTrait::new(); data.append(-2); data.append(1); data.append(3); data.append(2); data.append(1); data.append(5); data.append(-2); data.append(1); data.append(-3); data.append(-4); data.append(4); data.append(-1); data.append(-1); data.append(-6); data.append(4); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_zero.cairo
mod input_0; mod output_0; use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i32_new_axis_zero() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_zero/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<i32>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data.append(1); data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data.append(-1); data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data.append(-4); data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data.append(-6); data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data.append(0); data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i32_new_axis_zero/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(10); let mut data = ArrayTrait::new(); data.append(1); data.append(-3); data.append(-1); data.append(2); data.append(-4); data.append(-5); data.append(-6); data.append(-3); data.append(0); data.append(2); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_default.cairo
mod input_0; mod output_0; use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i8_new_axis_default() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<i8>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(5); data.append(-1); data.append(3); data.append(-1); data.append(5); data.append(5); data.append(-1); data.append(-1); data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(-5); data.append(3); data.append(5); data.append(-5); data.append(-1); data.append(3); data.append(1); data.append(1); data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(3); data.append(-4); data.append(-2); data.append(0); data.append(-6); data.append(2); data.append(2); data.append(0); data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(-6); data.append(0); data.append(2); data.append(5); data.append(-1); data.append(-2); data.append(-6); data.append(-4); data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(2); data.append(-2); data.append(-2); data.append(3); data.append(-1); data.append(2); data.append(5); data.append(-2); data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(15); let mut data = ArrayTrait::new(); data.append(5); data.append(-1); data.append(3); data.append(-5); data.append(3); data.append(5); data.append(3); data.append(-4); data.append(-2); data.append(-6); data.append(0); data.append(2); data.append(2); data.append(-2); data.append(-2); data.append(-1); data.append(5); data.append(5); data.append(-5); data.append(-1); data.append(3); data.append(0); data.append(-6); data.append(2); data.append(5); data.append(-1); data.append(-2); data.append(3); data.append(-1); data.append(2); data.append(-1); data.append(-1); data.append(-6); data.append(1); data.append(1); data.append(0); data.append(2); data.append(0); data.append(2); data.append(-6); data.append(-4); data.append(-5); data.append(5); data.append(-2); data.append(-5); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_one.cairo
mod input_0; mod output_0; use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i8_new_axis_one() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_one/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<i8>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); data.append(-2); data.append(-4); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); data.append(-5); data.append(-5); data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); data.append(-2); data.append(-5); data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); data.append(-6); data.append(1); data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); data.append(3); data.append(0); data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_one/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(5); shape.append(1); let mut data = ArrayTrait::new(); data.append(-2); data.append(-5); data.append(-2); data.append(-6); data.append(3); data.append(-4); data.append(-5); data.append(-5); data.append(1); data.append(0); data.append(4); data.append(5); data.append(-3); data.append(3); data.append(-4); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_zero.cairo
mod input_0; mod output_0; use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I8TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i8_new_axis_zero() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_zero/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<i8>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(4); data.append(0); data.append(-6); data.append(-1); data.append(4); data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(-5); data.append(-2); data.append(4); data.append(1); data.append(-2); data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(1); data.append(2); data.append(2); data.append(-3); data.append(5); data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(-2); data.append(-5); data.append(-2); data.append(-2); data.append(-1); data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(2); data.append(-2); data.append(-3); data.append(2); data.append(3); data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_i8_new_axis_zero/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(15); let mut data = ArrayTrait::new(); data.append(4); data.append(0); data.append(-6); data.append(-5); data.append(-2); data.append(4); data.append(1); data.append(2); data.append(2); data.append(-2); data.append(-5); data.append(-2); data.append(2); data.append(-2); data.append(-3); data.append(-1); data.append(4); data.append(-6); data.append(1); data.append(-2); data.append(-5); data.append(-3); data.append(5); data.append(2); data.append(-2); data.append(-1); data.append(1); data.append(2); data.append(3); data.append(0); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_default.cairo
mod input_0; mod output_0; use orion::operators::sequence::SequenceTrait; use orion::operators::sequence::U32Sequence; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_u32_new_axis_default() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<u32>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(4); data.append(5); data.append(0); data.append(4); data.append(5); data.append(3); data.append(0); data.append(2); data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); data.append(2); data.append(1); data.append(1); data.append(5); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(1); data.append(0); data.append(5); data.append(3); data.append(2); data.append(2); data.append(0); data.append(3); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(5); data.append(0); data.append(0); data.append(0); data.append(2); data.append(5); data.append(0); data.append(4); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(3); data.append(5); data.append(3); data.append(1); data.append(5); data.append(5); data.append(0); data.append(0); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(15); let mut data = ArrayTrait::new(); data.append(4); data.append(5); data.append(0); data.append(0); data.append(1); data.append(2); data.append(1); data.append(0); data.append(5); data.append(5); data.append(0); data.append(0); data.append(3); data.append(5); data.append(3); data.append(4); data.append(5); data.append(3); data.append(3); data.append(2); data.append(1); data.append(3); data.append(2); data.append(2); data.append(0); data.append(2); data.append(5); data.append(1); data.append(5); data.append(5); data.append(0); data.append(2); data.append(1); data.append(1); data.append(5); data.append(4); data.append(0); data.append(3); data.append(4); data.append(0); data.append(4); data.append(4); data.append(0); data.append(0); data.append(4); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_one.cairo
mod input_0; mod output_0; use orion::operators::sequence::SequenceTrait; use orion::operators::sequence::U32Sequence; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_u32_new_axis_one() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_one/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<u32>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_one/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(5); shape.append(1); let mut data = ArrayTrait::new(); data.append(3); data.append(1); data.append(2); data.append(2); data.append(0); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_zero.cairo
mod input_0; mod output_0; use orion::operators::sequence::SequenceTrait; use orion::operators::sequence::U32Sequence; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_u32_new_axis_zero() { let input_0 = input_0::input_0(); let z_0 = output_0::output_0(); let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_zero/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Array<Tensor<u32>> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(5); data.append(1); data.append(3); data.append(2); data.append(1); data.append(5); data.append(3); data.append(4); data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(3); data.append(1); data.append(4); data.append(2); data.append(4); data.append(4); data.append(3); data.append(5); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(2); data.append(3); data.append(4); data.append(3); data.append(0); data.append(4); data.append(4); data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); 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(3); data.append(0); data.append(3); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(5); data.append(2); data.append(5); data.append(2); data.append(1); data.append(0); data.append(2); data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); sequence }
https://github.com/gizatechxyz/orion
tests/nodes/concat_from_sequence_u32_new_axis_zero/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::numbers::NumberTrait; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(15); let mut data = ArrayTrait::new(); data.append(5); data.append(1); data.append(3); data.append(3); data.append(1); data.append(4); data.append(0); data.append(2); data.append(3); data.append(2); data.append(4); data.append(2); data.append(0); data.append(5); data.append(2); data.append(2); data.append(1); data.append(5); data.append(2); data.append(4); data.append(4); data.append(4); data.append(3); data.append(0); data.append(2); data.append(2); data.append(3); data.append(5); data.append(2); data.append(1); data.append(3); data.append(4); data.append(1); data.append(3); data.append(5); data.append(4); data.append(4); data.append(4); data.append(5); data.append(0); data.append(3); data.append(4); data.append(0); data.append(2); data.append(3); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_1d.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_i32_1d() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 0); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_1d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_1d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(3); data.append(4); data.append(5); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_1d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::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()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_2d.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_i32_2d() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z = output_0::output_0(); let y = TensorTrait::concat(array![input_0, input_1].span(), 0); assert_eq(y, z); }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_2d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion