file_path
stringlengths
7
180
content
stringlengths
0
811k
repo
stringclasses
11 values
tests/nodes/linear_fp16x16.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::operators::nn::FP16x16NN; use orion::numbers::FixedTrait; use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_linear_fp16x16(...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp16x16/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut ...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp16x16/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp16x16/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut ...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp16x16/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp8x23.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; #[test] #[available_gas(2000000000)] fn test_linear_fp8x23() {...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp8x23/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp8x23/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp8x23/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut data...
https://github.com/gizatechxyz/orion
tests/nodes/linear_fp8x23/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut dat...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i32.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::I32NN; use orion::operators::nn::NNTrait; use orion::operators::tensor::I32TensorPartialEq; use orion::numbers::FixedTrait; #[test] #[available_gas(2000000000)] fn test_linear_i32() { let ...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i32/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(5); data....
https://github.com/gizatechxyz/orion
tests/nodes/linear_i32/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i32/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_2() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut data = ArrayTrait::new(); data.append(-3); data...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i32/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut data = ArrayTrait::new(); data.append(36); dat...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i8.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::operators::tensor::I8TensorPartialEq; use orion::numbers::FixedTrait; use orion::operators::nn::I8NN; #[test] #[available_gas(2000000000)] fn test_linear_i8() { let inp...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i8/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(-2); data.ap...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i8/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.ap...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i8/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_2() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut data = ArrayTrait::new(); data.append(2); data.app...
https://github.com/gizatechxyz/orion
tests/nodes/linear_i8/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut data = ArrayTrait::new(); data.append(2); data.ap...
https://github.com/gizatechxyz/orion
tests/nodes/linear_u32.cairo
mod input_0; mod input_1; mod input_2; mod output_0; use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; use orion::operators::nn::U32NN; #[test] #[available_gas(2000000000)] fn test_linear_u32() { let ...
https://github.com/gizatechxyz/orion
tests/nodes/linear_u32/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(1); data....
https://github.com/gizatechxyz/orion
tests/nodes/linear_u32/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/linear_u32/input_2.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_2() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut data = ArrayTrait::new(); data.append(4); data....
https://github.com/gizatechxyz/orion
tests/nodes/linear_u32/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor<u32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); let mut data = ArrayTrait::new(); data.append(17); dat...
https://github.com/gizatechxyz/orion
tests/nodes/log_fp16x16.cairo
mod input_0; mod output_0; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(200000...
https://github.com/gizatechxyz/orion
tests/nodes/log_fp16x16/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/log_fp16x16/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.ap...
https://github.com/gizatechxyz/orion
tests/nodes/log_fp8x23.cairo
mod input_0; mod output_0; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(200000000...
https://github.com/gizatechxyz/orion
tests/nodes/log_fp8x23/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/log_fp8x23/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp16x16_axis_0.cairo
mod input_0; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::nn::NNTrait; use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] fn test_logsoftmax_fp16x16_axis_0() { let inp...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.ap...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp16x16_axis_1.cairo
mod input_0; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::nn::NNTrait; use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] fn test_logsoftmax_fp16x16_axis_1() { let inp...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.ap...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp8x23_axis_0.cairo
mod input_0; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; use orion::operators::nn::NNTrait; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_logsoftmax_fp8x23_axis_0() { let input_...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp8x23_axis_1.cairo
mod input_0; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; use orion::operators::nn::NNTrait; use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_logsoftmax_fp8x23_axis_1() { let input_...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1d.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[availab...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut ...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut ...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); let mut...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1x2.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[availab...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1x2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1x2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_1x2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.ap...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x1.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[availab...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.ap...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x2.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[availab...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.app...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp16x16_2x2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor<FP16x16> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.ap...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1d.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); let mut dat...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1x2.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1x2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1x2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_1x2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x1.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x2.cairo
mod input_0; mod input_1; mod output_0; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_fp8x23_2x2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor<FP8x23> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1d.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(20000...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(-96); dat...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(23); data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); let mut data = ArrayTrait::new(); data.append(2338); T...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1x2.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(20000...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1x2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1x2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(1); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_1x2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); dat...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x1.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(20000...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x1/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(1); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x1/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x1/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); dat...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x2.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(20000...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i32_2x2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor<i32> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); dat...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1d.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(20000000...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1d/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(-2); data.ap...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1d/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(3); let mut data = ArrayTrait::new(); data.append(-2); data.ap...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1d/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); let mut data = ArrayTrait::new(); data.append(10); Tensor...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1x2.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(20000000...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1x2/input_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); data.ap...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1x2/input_1.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(2); shape.append(1); let mut data = ArrayTrait::new(); data.ap...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_1x2/output_0.cairo
use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor<i8> { let mut shape = ArrayTrait::<usize>::new(); shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); data.a...
https://github.com/gizatechxyz/orion
tests/nodes/matmul_i8_2x1.cairo
mod input_0; mod input_1; mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(20000000...
https://github.com/gizatechxyz/orion