file_path
stringlengths
7
180
content
stringlengths
0
811k
repo
stringclasses
11 values
tests/nodes/concat_i32_2d/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(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(4); data.append(5); data.append(6); data.append(7); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_2d/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(4); shape.append(2); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); data.append(4); data.append(5); data.append(6); data.append(7); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_axis_1.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_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_i32_3d_axis_1/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); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_axis_1/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); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_axis_1/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(3); shape.append(6); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); data.append(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_axis_2.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_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_i32_3d_axis_2/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); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_axis_2/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); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_axis_2/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(3); shape.append(3); shape.append(6); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(27); data.append(28); data.append(29); data.append(3); data.append(4); data.append(5); data.append(30); data.append(31); data.append(32); data.append(6); data.append(7); data.append(8); data.append(33); data.append(34); data.append(35); data.append(9); data.append(10); data.append(11); data.append(36); data.append(37); data.append(38); data.append(12); data.append(13); data.append(14); data.append(39); data.append(40); data.append(41); data.append(15); data.append(16); data.append(17); data.append(42); data.append(43); data.append(44); data.append(18); data.append(19); data.append(20); data.append(45); data.append(46); data.append(47); data.append(21); data.append(22); data.append(23); data.append(48); data.append(49); data.append(50); data.append(24); data.append(25); data.append(26); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_default.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_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_i32_3d_default/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); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_default/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); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_default/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); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_1.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_i32_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_i32_3d_three_tensors_axis_1/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); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_1/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); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_1/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_2() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(54); data.append(55); data.append(56); data.append(57); data.append(58); data.append(59); data.append(60); data.append(61); data.append(62); data.append(63); data.append(64); data.append(65); data.append(66); data.append(67); data.append(68); data.append(69); data.append(70); data.append(71); data.append(72); data.append(73); data.append(74); data.append(75); data.append(76); data.append(77); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_1/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(3); shape.append(9); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); data.append(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(54); data.append(55); data.append(56); data.append(57); data.append(58); data.append(59); data.append(60); data.append(61); data.append(62); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(63); data.append(64); data.append(65); data.append(66); data.append(67); data.append(68); data.append(69); data.append(70); data.append(71); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); data.append(72); data.append(73); data.append(74); data.append(75); data.append(76); data.append(77); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_2.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_concat_i32_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_i32_3d_three_tensors_axis_2/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); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_2/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); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_2/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_2() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(54); data.append(55); data.append(56); data.append(57); data.append(58); data.append(59); data.append(60); data.append(61); data.append(62); data.append(63); data.append(64); data.append(65); data.append(66); data.append(67); data.append(68); data.append(69); data.append(70); data.append(71); data.append(72); data.append(73); data.append(74); data.append(75); data.append(76); data.append(77); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i32_3d_three_tensors_axis_2/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(3); shape.append(3); shape.append(9); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(27); data.append(28); data.append(29); data.append(54); data.append(55); data.append(56); data.append(3); data.append(4); data.append(5); data.append(30); data.append(31); data.append(32); data.append(57); data.append(58); data.append(59); data.append(6); data.append(7); data.append(8); data.append(33); data.append(34); data.append(35); data.append(60); data.append(61); data.append(62); data.append(9); data.append(10); data.append(11); data.append(36); data.append(37); data.append(38); data.append(63); data.append(64); data.append(65); data.append(12); data.append(13); data.append(14); data.append(39); data.append(40); data.append(41); data.append(66); data.append(67); data.append(68); data.append(15); data.append(16); data.append(17); data.append(42); data.append(43); data.append(44); data.append(69); data.append(70); data.append(71); data.append(18); data.append(19); data.append(20); data.append(45); data.append(46); data.append(47); data.append(72); data.append(73); data.append(74); data.append(21); data.append(22); data.append(23); data.append(48); data.append(49); data.append(50); data.append(75); data.append(76); data.append(77); data.append(24); data.append(25); data.append(26); data.append(51); data.append(52); data.append(53); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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_i8_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_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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_i8_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_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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_i8_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_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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_i8_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_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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_i8_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_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); data.append(FP8x23 { mag: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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_i8_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_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 54, sign: false }); data.append(FP8x23 { mag: 55, sign: false }); data.append(FP8x23 { mag: 56, sign: false }); data.append(FP8x23 { mag: 57, sign: false }); data.append(FP8x23 { mag: 58, sign: false }); data.append(FP8x23 { mag: 59, sign: false }); data.append(FP8x23 { mag: 60, sign: false }); data.append(FP8x23 { mag: 61, sign: false }); data.append(FP8x23 { mag: 62, sign: false }); data.append(FP8x23 { mag: 63, sign: false }); data.append(FP8x23 { mag: 64, sign: false }); data.append(FP8x23 { mag: 65, sign: false }); data.append(FP8x23 { mag: 66, sign: false }); data.append(FP8x23 { mag: 67, sign: false }); data.append(FP8x23 { mag: 68, sign: false }); data.append(FP8x23 { mag: 69, sign: false }); data.append(FP8x23 { mag: 70, sign: false }); data.append(FP8x23 { mag: 71, sign: false }); data.append(FP8x23 { mag: 72, sign: false }); data.append(FP8x23 { mag: 73, sign: false }); data.append(FP8x23 { mag: 74, sign: false }); data.append(FP8x23 { mag: 75, sign: false }); data.append(FP8x23 { mag: 76, sign: false }); data.append(FP8x23 { mag: 77, sign: false }); data.append(FP8x23 { mag: 78, sign: false }); data.append(FP8x23 { mag: 79, sign: false }); data.append(FP8x23 { mag: 80, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 54, sign: false }); data.append(FP8x23 { mag: 55, sign: false }); data.append(FP8x23 { mag: 56, sign: false }); data.append(FP8x23 { mag: 57, sign: false }); data.append(FP8x23 { mag: 58, sign: false }); data.append(FP8x23 { mag: 59, sign: false }); data.append(FP8x23 { mag: 60, sign: false }); data.append(FP8x23 { mag: 61, sign: false }); data.append(FP8x23 { mag: 62, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 63, sign: false }); data.append(FP8x23 { mag: 64, sign: false }); data.append(FP8x23 { mag: 65, sign: false }); data.append(FP8x23 { mag: 66, sign: false }); data.append(FP8x23 { mag: 67, sign: false }); data.append(FP8x23 { mag: 68, sign: false }); data.append(FP8x23 { mag: 69, sign: false }); data.append(FP8x23 { mag: 70, sign: false }); data.append(FP8x23 { mag: 71, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); data.append(FP8x23 { mag: 72, sign: false }); data.append(FP8x23 { mag: 73, sign: false }); data.append(FP8x23 { mag: 74, sign: false }); data.append(FP8x23 { mag: 75, sign: false }); data.append(FP8x23 { mag: 76, sign: false }); data.append(FP8x23 { mag: 77, sign: false }); data.append(FP8x23 { mag: 78, sign: false }); data.append(FP8x23 { mag: 79, sign: false }); data.append(FP8x23 { mag: 80, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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_i8_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_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 54, sign: false }); data.append(FP8x23 { mag: 55, sign: false }); data.append(FP8x23 { mag: 56, sign: false }); data.append(FP8x23 { mag: 57, sign: false }); data.append(FP8x23 { mag: 58, sign: false }); data.append(FP8x23 { mag: 59, sign: false }); data.append(FP8x23 { mag: 60, sign: false }); data.append(FP8x23 { mag: 61, sign: false }); data.append(FP8x23 { mag: 62, sign: false }); data.append(FP8x23 { mag: 63, sign: false }); data.append(FP8x23 { mag: 64, sign: false }); data.append(FP8x23 { mag: 65, sign: false }); data.append(FP8x23 { mag: 66, sign: false }); data.append(FP8x23 { mag: 67, sign: false }); data.append(FP8x23 { mag: 68, sign: false }); data.append(FP8x23 { mag: 69, sign: false }); data.append(FP8x23 { mag: 70, sign: false }); data.append(FP8x23 { mag: 71, sign: false }); data.append(FP8x23 { mag: 72, sign: false }); data.append(FP8x23 { mag: 73, sign: false }); data.append(FP8x23 { mag: 74, sign: false }); data.append(FP8x23 { mag: 75, sign: false }); data.append(FP8x23 { mag: 76, sign: false }); data.append(FP8x23 { mag: 77, sign: false }); data.append(FP8x23 { mag: 78, sign: false }); data.append(FP8x23 { mag: 79, sign: false }); data.append(FP8x23 { mag: 80, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_i8_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: 1, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); data.append(FP8x23 { mag: 27, sign: false }); data.append(FP8x23 { mag: 28, sign: false }); data.append(FP8x23 { mag: 29, sign: false }); data.append(FP8x23 { mag: 54, sign: false }); data.append(FP8x23 { mag: 55, sign: false }); data.append(FP8x23 { mag: 56, sign: false }); data.append(FP8x23 { mag: 3, sign: false }); data.append(FP8x23 { mag: 4, sign: false }); data.append(FP8x23 { mag: 5, sign: false }); data.append(FP8x23 { mag: 30, sign: false }); data.append(FP8x23 { mag: 31, sign: false }); data.append(FP8x23 { mag: 32, sign: false }); data.append(FP8x23 { mag: 57, sign: false }); data.append(FP8x23 { mag: 58, sign: false }); data.append(FP8x23 { mag: 59, sign: false }); data.append(FP8x23 { mag: 6, sign: false }); data.append(FP8x23 { mag: 7, sign: false }); data.append(FP8x23 { mag: 8, sign: false }); data.append(FP8x23 { mag: 33, sign: false }); data.append(FP8x23 { mag: 34, sign: false }); data.append(FP8x23 { mag: 35, sign: false }); data.append(FP8x23 { mag: 60, sign: false }); data.append(FP8x23 { mag: 61, sign: false }); data.append(FP8x23 { mag: 62, sign: false }); data.append(FP8x23 { mag: 9, sign: false }); data.append(FP8x23 { mag: 10, sign: false }); data.append(FP8x23 { mag: 11, sign: false }); data.append(FP8x23 { mag: 36, sign: false }); data.append(FP8x23 { mag: 37, sign: false }); data.append(FP8x23 { mag: 38, sign: false }); data.append(FP8x23 { mag: 63, sign: false }); data.append(FP8x23 { mag: 64, sign: false }); data.append(FP8x23 { mag: 65, sign: false }); data.append(FP8x23 { mag: 12, sign: false }); data.append(FP8x23 { mag: 13, sign: false }); data.append(FP8x23 { mag: 14, sign: false }); data.append(FP8x23 { mag: 39, sign: false }); data.append(FP8x23 { mag: 40, sign: false }); data.append(FP8x23 { mag: 41, sign: false }); data.append(FP8x23 { mag: 66, sign: false }); data.append(FP8x23 { mag: 67, sign: false }); data.append(FP8x23 { mag: 68, sign: false }); data.append(FP8x23 { mag: 15, sign: false }); data.append(FP8x23 { mag: 16, sign: false }); data.append(FP8x23 { mag: 17, sign: false }); data.append(FP8x23 { mag: 42, sign: false }); data.append(FP8x23 { mag: 43, sign: false }); data.append(FP8x23 { mag: 44, sign: false }); data.append(FP8x23 { mag: 69, sign: false }); data.append(FP8x23 { mag: 70, sign: false }); data.append(FP8x23 { mag: 71, sign: false }); data.append(FP8x23 { mag: 18, sign: false }); data.append(FP8x23 { mag: 19, sign: false }); data.append(FP8x23 { mag: 20, sign: false }); data.append(FP8x23 { mag: 45, sign: false }); data.append(FP8x23 { mag: 46, sign: false }); data.append(FP8x23 { mag: 47, sign: false }); data.append(FP8x23 { mag: 72, sign: false }); data.append(FP8x23 { mag: 73, sign: false }); data.append(FP8x23 { mag: 74, sign: false }); data.append(FP8x23 { mag: 21, sign: false }); data.append(FP8x23 { mag: 22, sign: false }); data.append(FP8x23 { mag: 23, sign: false }); data.append(FP8x23 { mag: 48, sign: false }); data.append(FP8x23 { mag: 49, sign: false }); data.append(FP8x23 { mag: 50, sign: false }); data.append(FP8x23 { mag: 75, sign: false }); data.append(FP8x23 { mag: 76, sign: false }); data.append(FP8x23 { mag: 77, sign: false }); data.append(FP8x23 { mag: 24, sign: false }); data.append(FP8x23 { mag: 25, sign: false }); data.append(FP8x23 { mag: 26, sign: false }); data.append(FP8x23 { mag: 51, sign: false }); data.append(FP8x23 { mag: 52, sign: false }); data.append(FP8x23 { mag: 53, sign: false }); data.append(FP8x23 { mag: 78, sign: false }); data.append(FP8x23 { mag: 79, sign: false }); data.append(FP8x23 { mag: 80, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_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 orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_u32_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_u32_1d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor<u32> { 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_u32_1d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor<u32> { 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_u32_1d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor<u32> { 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_u32_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 orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_u32_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_u32_2d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor<u32> { 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
tests/nodes/concat_u32_2d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(4); data.append(5); data.append(6); data.append(7); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_2d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(4); shape.append(2); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); data.append(4); data.append(5); data.append(6); data.append(7); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_axis_1.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 orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_u32_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_u32_3d_axis_1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_axis_1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(6); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); data.append(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_axis_2.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 orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_u32_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_u32_3d_axis_2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_axis_2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_axis_2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(6); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(27); data.append(28); data.append(29); data.append(3); data.append(4); data.append(5); data.append(30); data.append(31); data.append(32); data.append(6); data.append(7); data.append(8); data.append(33); data.append(34); data.append(35); data.append(9); data.append(10); data.append(11); data.append(36); data.append(37); data.append(38); data.append(12); data.append(13); data.append(14); data.append(39); data.append(40); data.append(41); data.append(15); data.append(16); data.append(17); data.append(42); data.append(43); data.append(44); data.append(18); data.append(19); data.append(20); data.append(45); data.append(46); data.append(47); data.append(21); data.append(22); data.append(23); data.append(48); data.append(49); data.append(50); data.append(24); data.append(25); data.append(26); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_default.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 orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_u32_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_u32_3d_default/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_default/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_default/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(6); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_1.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_u32_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_u32_3d_three_tensors_axis_1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_1/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_2() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(54); data.append(55); data.append(56); data.append(57); data.append(58); data.append(59); data.append(60); data.append(61); data.append(62); data.append(63); data.append(64); data.append(65); data.append(66); data.append(67); data.append(68); data.append(69); data.append(70); data.append(71); data.append(72); data.append(73); data.append(74); data.append(75); data.append(76); data.append(77); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(9); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(3); data.append(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(54); data.append(55); data.append(56); data.append(57); data.append(58); data.append(59); data.append(60); data.append(61); data.append(62); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(63); data.append(64); data.append(65); data.append(66); data.append(67); data.append(68); data.append(69); data.append(70); data.append(71); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); data.append(72); data.append(73); data.append(74); data.append(75); data.append(76); data.append(77); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_2.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] fn test_concat_u32_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_u32_3d_three_tensors_axis_2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); 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(4); data.append(5); data.append(6); data.append(7); data.append(8); data.append(9); data.append(10); data.append(11); data.append(12); data.append(13); data.append(14); data.append(15); data.append(16); data.append(17); data.append(18); data.append(19); data.append(20); data.append(21); data.append(22); data.append(23); data.append(24); data.append(25); data.append(26); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(27); data.append(28); data.append(29); data.append(30); data.append(31); data.append(32); data.append(33); data.append(34); data.append(35); data.append(36); data.append(37); data.append(38); data.append(39); data.append(40); data.append(41); data.append(42); data.append(43); data.append(44); data.append(45); data.append(46); data.append(47); data.append(48); data.append(49); data.append(50); data.append(51); data.append(52); data.append(53); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_2/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_2() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(54); data.append(55); data.append(56); data.append(57); data.append(58); data.append(59); data.append(60); data.append(61); data.append(62); data.append(63); data.append(64); data.append(65); data.append(66); data.append(67); data.append(68); data.append(69); data.append(70); data.append(71); data.append(72); data.append(73); data.append(74); data.append(75); data.append(76); data.append(77); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/concat_u32_3d_three_tensors_axis_2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); shape.append(3); shape.append(9); let mut data = ArrayTrait::new(); data.append(0); data.append(1); data.append(2); data.append(27); data.append(28); data.append(29); data.append(54); data.append(55); data.append(56); data.append(3); data.append(4); data.append(5); data.append(30); data.append(31); data.append(32); data.append(57); data.append(58); data.append(59); data.append(6); data.append(7); data.append(8); data.append(33); data.append(34); data.append(35); data.append(60); data.append(61); data.append(62); data.append(9); data.append(10); data.append(11); data.append(36); data.append(37); data.append(38); data.append(63); data.append(64); data.append(65); data.append(12); data.append(13); data.append(14); data.append(39); data.append(40); data.append(41); data.append(66); data.append(67); data.append(68); data.append(15); data.append(16); data.append(17); data.append(42); data.append(43); data.append(44); data.append(69); data.append(70); data.append(71); data.append(18); data.append(19); data.append(20); data.append(45); data.append(46); data.append(47); data.append(72); data.append(73); data.append(74); data.append(21); data.append(22); data.append(23); data.append(48); data.append(49); data.append(50); data.append(75); data.append(76); data.append(77); data.append(24); data.append(25); data.append(26); data.append(51); data.append(52); data.append(53); data.append(78); data.append(79); data.append(80); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_no_padding.cairo
mod input_0; mod input_1; mod output_0; use orion::numbers::FixedTrait; use orion::operators::nn::NNTrait; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] fn test_conv_1D_no_padding() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); let y_0 = NNTrait::conv( @input_0, @input_1, Option::None, Option::None, Option::None, Option::None, Option::None, Option::None, Option::None ); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_no_padding/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(1); shape.append(1); shape.append(5); 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 }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_no_padding/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(1); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_no_padding/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(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_with_padding.cairo
mod input_0; mod input_1; mod output_0; use orion::numbers::FixedTrait; use orion::operators::nn::NNTrait; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] fn test_conv_1D_with_padding() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); let y_0 = NNTrait::conv( @input_0, @input_1, Option::None, Option::None, Option::None, Option::None, Option::None, Option::Some(array![1, 1].span()), Option::None ); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_with_padding/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(1); shape.append(1); shape.append(5); 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 }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_with_padding/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(1); shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_1D_with_padding/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(1); shape.append(5); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_2_groups.cairo
mod input_0; mod input_1; mod output_0; use orion::numbers::FixedTrait; use orion::operators::nn::NNTrait; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] fn test_conv_2D_with_2_groups() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); let y_0 = NNTrait::conv( @input_0, @input_1, Option::None, Option::None, Option::None, Option::Some(2), Option::None, Option::None, Option::None ); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_2_groups/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(1); shape.append(2); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 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 }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_2_groups/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(2); shape.append(1); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_2_groups/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(2); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 7667712, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_autopad_same.cairo
mod input_0; mod input_1; mod output_0; use orion::numbers::FixedTrait; use orion::operators::nn::NNTrait; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::nn::FP16x16NN; use orion::operators::nn::functional::conv::AUTO_PAD; #[test] #[available_gas(2000000000)] fn test_conv_2D_with_autopad_same() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); let y_0 = NNTrait::conv( @input_0, @input_1, Option::None, Option::Some(AUTO_PAD::SAME_LOWER), Option::None, Option::None, Option::Some(array![3, 3].span()), Option::None, Option::Some(array![2, 2].span()) ); assert_eq(y_0, z_0); }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_autopad_same/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(1); shape.append(1); shape.append(5); shape.append(5); 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 }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_autopad_same/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(1); shape.append(1); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion
tests/nodes/conv_2D_with_autopad_same/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(1); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 4128768, sign: false }); data.append(FP16x16 { mag: 7077888, sign: false }); data.append(FP16x16 { mag: 5308416, sign: false }); data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 7667712, sign: false }); data.append(FP16x16 { mag: 5505024, sign: false }); TensorTrait::new(shape.span(), data.span()) }
https://github.com/gizatechxyz/orion