file_path
stringlengths 7
180
| content
stringlengths 0
811k
| repo
stringclasses 11
values |
---|---|---|
tests/nodes/col2im/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);
shape.append(5);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
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: 0, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_5D.cairo | mod input_0;
mod output_0;
use orion::operators::nn::NNTrait;
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::numbers::FixedTrait;
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::nn::FP16x16NN;
#[test]
#[available_gas(2000000000)]
fn test_col2im_5D() {
let input_0 = input_0::input_0();
let z_0 = output_0::output_0();
let y_0 = NNTrait::col2im(
@input_0,
array![3, 4, 5].span(),
array![1, 1, 5].span(),
Option::None,
Option::None,
Option::None
);
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_5D/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(10);
shape.append(12);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3342336, sign: false });
data.append(FP16x16 { mag: 3670016, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
data.append(FP16x16 { mag: 3407872, sign: false });
data.append(FP16x16 { mag: 3735552, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 3145728, sign: false });
data.append(FP16x16 { mag: 3473408, sign: false });
data.append(FP16x16 { mag: 3801088, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 3211264, sign: false });
data.append(FP16x16 { mag: 3538944, sign: false });
data.append(FP16x16 { mag: 3866624, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2949120, sign: false });
data.append(FP16x16 { mag: 3276800, sign: false });
data.append(FP16x16 { mag: 3604480, sign: false });
data.append(FP16x16 { mag: 3932160, sign: false });
data.append(FP16x16 { mag: 3997696, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4653056, sign: false });
data.append(FP16x16 { mag: 4980736, sign: false });
data.append(FP16x16 { mag: 5308416, sign: false });
data.append(FP16x16 { mag: 5636096, sign: false });
data.append(FP16x16 { mag: 5963776, sign: false });
data.append(FP16x16 { mag: 6291456, sign: false });
data.append(FP16x16 { mag: 6619136, sign: false });
data.append(FP16x16 { mag: 6946816, sign: false });
data.append(FP16x16 { mag: 7274496, sign: false });
data.append(FP16x16 { mag: 7602176, sign: false });
data.append(FP16x16 { mag: 4063232, sign: false });
data.append(FP16x16 { mag: 4390912, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 5046272, sign: false });
data.append(FP16x16 { mag: 5373952, sign: false });
data.append(FP16x16 { mag: 5701632, sign: false });
data.append(FP16x16 { mag: 6029312, sign: false });
data.append(FP16x16 { mag: 6356992, sign: false });
data.append(FP16x16 { mag: 6684672, sign: false });
data.append(FP16x16 { mag: 7012352, sign: false });
data.append(FP16x16 { mag: 7340032, sign: false });
data.append(FP16x16 { mag: 7667712, sign: false });
data.append(FP16x16 { mag: 4128768, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 4784128, sign: false });
data.append(FP16x16 { mag: 5111808, sign: false });
data.append(FP16x16 { mag: 5439488, sign: false });
data.append(FP16x16 { mag: 5767168, sign: false });
data.append(FP16x16 { mag: 6094848, sign: false });
data.append(FP16x16 { mag: 6422528, sign: false });
data.append(FP16x16 { mag: 6750208, sign: false });
data.append(FP16x16 { mag: 7077888, sign: false });
data.append(FP16x16 { mag: 7405568, sign: false });
data.append(FP16x16 { mag: 7733248, sign: false });
data.append(FP16x16 { mag: 4194304, sign: false });
data.append(FP16x16 { mag: 4521984, sign: false });
data.append(FP16x16 { mag: 4849664, sign: false });
data.append(FP16x16 { mag: 5177344, sign: false });
data.append(FP16x16 { mag: 5505024, sign: false });
data.append(FP16x16 { mag: 5832704, sign: false });
data.append(FP16x16 { mag: 6160384, sign: false });
data.append(FP16x16 { mag: 6488064, sign: false });
data.append(FP16x16 { mag: 6815744, sign: false });
data.append(FP16x16 { mag: 7143424, sign: false });
data.append(FP16x16 { mag: 7471104, sign: false });
data.append(FP16x16 { mag: 7798784, sign: false });
data.append(FP16x16 { mag: 4259840, sign: false });
data.append(FP16x16 { mag: 4587520, sign: false });
data.append(FP16x16 { mag: 4915200, sign: false });
data.append(FP16x16 { mag: 5242880, sign: false });
data.append(FP16x16 { mag: 5570560, sign: false });
data.append(FP16x16 { mag: 5898240, sign: false });
data.append(FP16x16 { mag: 6225920, sign: false });
data.append(FP16x16 { mag: 6553600, sign: false });
data.append(FP16x16 { mag: 6881280, sign: false });
data.append(FP16x16 { mag: 7208960, sign: false });
data.append(FP16x16 { mag: 7536640, sign: false });
data.append(FP16x16 { mag: 7864320, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_5D/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(3);
shape.append(4);
shape.append(5);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 2949120, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
data.append(FP16x16 { mag: 3145728, sign: false });
data.append(FP16x16 { mag: 3211264, sign: false });
data.append(FP16x16 { mag: 3276800, sign: false });
data.append(FP16x16 { mag: 3342336, sign: false });
data.append(FP16x16 { mag: 3407872, sign: false });
data.append(FP16x16 { mag: 3473408, sign: false });
data.append(FP16x16 { mag: 3538944, sign: false });
data.append(FP16x16 { mag: 3604480, sign: false });
data.append(FP16x16 { mag: 3670016, sign: false });
data.append(FP16x16 { mag: 3735552, sign: false });
data.append(FP16x16 { mag: 3801088, sign: false });
data.append(FP16x16 { mag: 3866624, sign: false });
data.append(FP16x16 { mag: 3932160, sign: false });
data.append(FP16x16 { mag: 3997696, sign: false });
data.append(FP16x16 { mag: 4063232, sign: false });
data.append(FP16x16 { mag: 4128768, sign: false });
data.append(FP16x16 { mag: 4194304, sign: false });
data.append(FP16x16 { mag: 4259840, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4390912, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 4521984, sign: false });
data.append(FP16x16 { mag: 4587520, sign: false });
data.append(FP16x16 { mag: 4653056, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 4784128, sign: false });
data.append(FP16x16 { mag: 4849664, sign: false });
data.append(FP16x16 { mag: 4915200, sign: false });
data.append(FP16x16 { mag: 4980736, sign: false });
data.append(FP16x16 { mag: 5046272, sign: false });
data.append(FP16x16 { mag: 5111808, sign: false });
data.append(FP16x16 { mag: 5177344, sign: false });
data.append(FP16x16 { mag: 5242880, sign: false });
data.append(FP16x16 { mag: 5308416, sign: false });
data.append(FP16x16 { mag: 5373952, sign: false });
data.append(FP16x16 { mag: 5439488, sign: false });
data.append(FP16x16 { mag: 5505024, sign: false });
data.append(FP16x16 { mag: 5570560, sign: false });
data.append(FP16x16 { mag: 5636096, sign: false });
data.append(FP16x16 { mag: 5701632, sign: false });
data.append(FP16x16 { mag: 5767168, sign: false });
data.append(FP16x16 { mag: 5832704, sign: false });
data.append(FP16x16 { mag: 5898240, sign: false });
data.append(FP16x16 { mag: 5963776, sign: false });
data.append(FP16x16 { mag: 6029312, sign: false });
data.append(FP16x16 { mag: 6094848, sign: false });
data.append(FP16x16 { mag: 6160384, sign: false });
data.append(FP16x16 { mag: 6225920, sign: false });
data.append(FP16x16 { mag: 6291456, sign: false });
data.append(FP16x16 { mag: 6356992, sign: false });
data.append(FP16x16 { mag: 6422528, sign: false });
data.append(FP16x16 { mag: 6488064, sign: false });
data.append(FP16x16 { mag: 6553600, sign: false });
data.append(FP16x16 { mag: 6619136, sign: false });
data.append(FP16x16 { mag: 6684672, sign: false });
data.append(FP16x16 { mag: 6750208, sign: false });
data.append(FP16x16 { mag: 6815744, sign: false });
data.append(FP16x16 { mag: 6881280, sign: false });
data.append(FP16x16 { mag: 6946816, sign: false });
data.append(FP16x16 { mag: 7012352, sign: false });
data.append(FP16x16 { mag: 7077888, sign: false });
data.append(FP16x16 { mag: 7143424, sign: false });
data.append(FP16x16 { mag: 7208960, sign: false });
data.append(FP16x16 { mag: 7274496, sign: false });
data.append(FP16x16 { mag: 7340032, sign: false });
data.append(FP16x16 { mag: 7405568, sign: false });
data.append(FP16x16 { mag: 7471104, sign: false });
data.append(FP16x16 { mag: 7536640, sign: false });
data.append(FP16x16 { mag: 7602176, sign: false });
data.append(FP16x16 { mag: 7667712, sign: false });
data.append(FP16x16 { mag: 7733248, sign: false });
data.append(FP16x16 { mag: 7798784, sign: false });
data.append(FP16x16 { mag: 7864320, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_dilations.cairo | mod input_0;
mod output_0;
use orion::operators::nn::NNTrait;
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::numbers::FixedTrait;
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::nn::FP16x16NN;
#[test]
#[available_gas(2000000000)]
fn test_col2im_dilations() {
let input_0 = input_0::input_0();
let z_0 = output_0::output_0();
let y_0 = NNTrait::col2im(
@input_0,
array![6, 6].span(),
array![2, 2].span(),
Option::Some(array![1, 5].span()),
Option::None,
Option::None
);
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_dilations/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(4);
shape.append(5);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_dilations/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(6);
shape.append(6);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_pads.cairo | mod input_0;
mod output_0;
use orion::operators::nn::NNTrait;
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::numbers::FixedTrait;
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::nn::FP16x16NN;
#[test]
#[available_gas(2000000000)]
fn test_col2im_pads() {
let input_0 = input_0::input_0();
let z_0 = output_0::output_0();
let y_0 = NNTrait::col2im(
@input_0,
array![5, 5].span(),
array![1, 5].span(),
Option::None,
Option::Some(array![0, 1, 0, 1].span()),
Option::None
);
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_pads/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(5);
shape.append(15);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3342336, sign: false });
data.append(FP16x16 { mag: 3670016, sign: false });
data.append(FP16x16 { mag: 3997696, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4653056, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
data.append(FP16x16 { mag: 3407872, sign: false });
data.append(FP16x16 { mag: 3735552, sign: false });
data.append(FP16x16 { mag: 4063232, sign: false });
data.append(FP16x16 { mag: 4390912, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 3145728, sign: false });
data.append(FP16x16 { mag: 3473408, sign: false });
data.append(FP16x16 { mag: 3801088, sign: false });
data.append(FP16x16 { mag: 4128768, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 4784128, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 3211264, sign: false });
data.append(FP16x16 { mag: 3538944, sign: false });
data.append(FP16x16 { mag: 3866624, sign: false });
data.append(FP16x16 { mag: 4194304, sign: false });
data.append(FP16x16 { mag: 4521984, sign: false });
data.append(FP16x16 { mag: 4849664, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2949120, sign: false });
data.append(FP16x16 { mag: 3276800, sign: false });
data.append(FP16x16 { mag: 3604480, sign: false });
data.append(FP16x16 { mag: 3932160, sign: false });
data.append(FP16x16 { mag: 4259840, sign: false });
data.append(FP16x16 { mag: 4587520, sign: false });
data.append(FP16x16 { mag: 4915200, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_pads/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);
shape.append(5);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4521984, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 3538944, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 7274496, sign: false });
data.append(FP16x16 { mag: 7471104, sign: false });
data.append(FP16x16 { mag: 7667712, sign: false });
data.append(FP16x16 { mag: 5505024, sign: false });
data.append(FP16x16 { mag: 6422528, sign: false });
data.append(FP16x16 { mag: 10223616, sign: false });
data.append(FP16x16 { mag: 10420224, sign: false });
data.append(FP16x16 { mag: 10616832, sign: false });
data.append(FP16x16 { mag: 7471104, sign: false });
data.append(FP16x16 { mag: 8388608, sign: false });
data.append(FP16x16 { mag: 13172736, sign: false });
data.append(FP16x16 { mag: 13369344, sign: false });
data.append(FP16x16 { mag: 13565952, sign: false });
data.append(FP16x16 { mag: 9437184, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_strides.cairo | mod input_0;
mod output_0;
use orion::operators::nn::NNTrait;
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::numbers::FixedTrait;
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::nn::FP16x16NN;
#[test]
#[available_gas(2000000000)]
fn test_col2im_strides() {
let input_0 = input_0::input_0();
let z_0 = output_0::output_0();
let y_0 = NNTrait::col2im(
@input_0,
array![5, 5].span(),
array![3, 3].span(),
Option::None,
Option::None,
Option::Some(array![2, 2].span())
);
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_strides/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(9);
shape.append(4);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, 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: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/col2im_strides/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);
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: 65536, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 0, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis1.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp16x16_3d_axis1() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis1/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn input_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(4);
shape.append(3);
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 });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 2949120, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
data.append(FP16x16 { mag: 3145728, sign: false });
data.append(FP16x16 { mag: 3211264, sign: false });
data.append(FP16x16 { mag: 3276800, sign: false });
data.append(FP16x16 { mag: 3342336, sign: false });
data.append(FP16x16 { mag: 3407872, sign: false });
data.append(FP16x16 { mag: 3473408, sign: false });
data.append(FP16x16 { mag: 3538944, sign: false });
data.append(FP16x16 { mag: 3604480, sign: false });
data.append(FP16x16 { mag: 3670016, sign: false });
data.append(FP16x16 { mag: 3735552, sign: false });
data.append(FP16x16 { mag: 3801088, sign: false });
data.append(FP16x16 { mag: 3866624, sign: false });
data.append(FP16x16 { mag: 3932160, sign: false });
data.append(FP16x16 { mag: 3997696, sign: false });
data.append(FP16x16 { mag: 4063232, sign: false });
data.append(FP16x16 { mag: 4128768, sign: false });
data.append(FP16x16 { mag: 4194304, sign: false });
data.append(FP16x16 { mag: 4259840, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4390912, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 4521984, sign: false });
data.append(FP16x16 { mag: 4587520, sign: false });
data.append(FP16x16 { mag: 4653056, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 4784128, sign: false });
data.append(FP16x16 { mag: 4849664, sign: false });
data.append(FP16x16 { mag: 4915200, sign: false });
data.append(FP16x16 { mag: 4980736, sign: false });
data.append(FP16x16 { mag: 5046272, sign: false });
data.append(FP16x16 { mag: 5111808, sign: false });
data.append(FP16x16 { mag: 5177344, sign: false });
data.append(FP16x16 { mag: 5242880, sign: false });
data.append(FP16x16 { mag: 5308416, sign: false });
data.append(FP16x16 { mag: 5373952, sign: false });
data.append(FP16x16 { mag: 5439488, sign: false });
data.append(FP16x16 { mag: 5505024, sign: false });
data.append(FP16x16 { mag: 5570560, sign: false });
data.append(FP16x16 { mag: 5636096, sign: false });
data.append(FP16x16 { mag: 5701632, sign: false });
data.append(FP16x16 { mag: 5767168, sign: false });
data.append(FP16x16 { mag: 5832704, sign: false });
data.append(FP16x16 { mag: 5898240, sign: false });
data.append(FP16x16 { mag: 5963776, sign: false });
data.append(FP16x16 { mag: 6029312, sign: false });
data.append(FP16x16 { mag: 6094848, sign: false });
data.append(FP16x16 { mag: 6160384, sign: false });
data.append(FP16x16 { mag: 6225920, sign: false });
data.append(FP16x16 { mag: 6291456, sign: false });
data.append(FP16x16 { mag: 6356992, sign: false });
data.append(FP16x16 { mag: 6422528, sign: false });
data.append(FP16x16 { mag: 6488064, sign: false });
data.append(FP16x16 { mag: 6553600, sign: false });
data.append(FP16x16 { mag: 6619136, sign: false });
data.append(FP16x16 { mag: 6684672, sign: false });
data.append(FP16x16 { mag: 6750208, sign: false });
data.append(FP16x16 { mag: 6815744, sign: false });
data.append(FP16x16 { mag: 6881280, sign: false });
data.append(FP16x16 { mag: 6946816, sign: false });
data.append(FP16x16 { mag: 7012352, sign: false });
data.append(FP16x16 { mag: 7077888, sign: false });
data.append(FP16x16 { mag: 7143424, sign: false });
data.append(FP16x16 { mag: 7208960, sign: false });
data.append(FP16x16 { mag: 7274496, sign: false });
data.append(FP16x16 { mag: 7340032, sign: false });
data.append(FP16x16 { mag: 7405568, sign: false });
data.append(FP16x16 { mag: 7471104, sign: false });
data.append(FP16x16 { mag: 7536640, sign: false });
data.append(FP16x16 { mag: 7602176, sign: false });
data.append(FP16x16 { mag: 7667712, sign: false });
data.append(FP16x16 { mag: 7733248, sign: false });
data.append(FP16x16 { mag: 7798784, sign: false });
data.append(FP16x16 { mag: 7864320, sign: false });
data.append(FP16x16 { mag: 7929856, sign: false });
data.append(FP16x16 { mag: 7995392, sign: false });
data.append(FP16x16 { mag: 8060928, sign: false });
data.append(FP16x16 { mag: 8126464, sign: false });
data.append(FP16x16 { mag: 8192000, sign: false });
data.append(FP16x16 { mag: 8257536, sign: false });
data.append(FP16x16 { mag: 8323072, sign: false });
data.append(FP16x16 { mag: 8388608, sign: false });
data.append(FP16x16 { mag: 8454144, sign: false });
data.append(FP16x16 { mag: 8519680, sign: false });
data.append(FP16x16 { mag: 8585216, sign: false });
data.append(FP16x16 { mag: 8650752, sign: false });
data.append(FP16x16 { mag: 8716288, sign: false });
data.append(FP16x16 { mag: 8781824, sign: false });
data.append(FP16x16 { mag: 8847360, sign: false });
data.append(FP16x16 { mag: 8912896, sign: false });
data.append(FP16x16 { mag: 8978432, sign: false });
data.append(FP16x16 { mag: 9043968, sign: false });
data.append(FP16x16 { mag: 9109504, sign: false });
data.append(FP16x16 { mag: 9175040, sign: false });
data.append(FP16x16 { mag: 9240576, sign: false });
data.append(FP16x16 { mag: 9306112, sign: false });
data.append(FP16x16 { mag: 9371648, sign: false });
data.append(FP16x16 { mag: 9437184, sign: false });
data.append(FP16x16 { mag: 9502720, sign: false });
data.append(FP16x16 { mag: 9568256, sign: false });
data.append(FP16x16 { mag: 9633792, sign: false });
data.append(FP16x16 { mag: 9699328, sign: false });
data.append(FP16x16 { mag: 9764864, sign: false });
data.append(FP16x16 { mag: 9830400, sign: false });
data.append(FP16x16 { mag: 9895936, sign: false });
data.append(FP16x16 { mag: 9961472, sign: false });
data.append(FP16x16 { mag: 10027008, sign: false });
data.append(FP16x16 { mag: 10092544, sign: false });
data.append(FP16x16 { mag: 10158080, sign: false });
data.append(FP16x16 { mag: 10223616, sign: false });
data.append(FP16x16 { mag: 10289152, sign: false });
data.append(FP16x16 { mag: 10354688, sign: false });
data.append(FP16x16 { mag: 10420224, sign: false });
data.append(FP16x16 { mag: 10485760, sign: false });
data.append(FP16x16 { mag: 10551296, sign: false });
data.append(FP16x16 { mag: 10616832, sign: false });
data.append(FP16x16 { mag: 10682368, sign: false });
data.append(FP16x16 { mag: 10747904, sign: false });
data.append(FP16x16 { mag: 10813440, sign: false });
data.append(FP16x16 { mag: 10878976, sign: false });
data.append(FP16x16 { mag: 10944512, sign: false });
data.append(FP16x16 { mag: 11010048, sign: false });
data.append(FP16x16 { mag: 11075584, sign: false });
data.append(FP16x16 { mag: 11141120, sign: false });
data.append(FP16x16 { mag: 11206656, sign: false });
data.append(FP16x16 { mag: 11272192, sign: false });
data.append(FP16x16 { mag: 11337728, sign: false });
data.append(FP16x16 { mag: 11403264, sign: false });
data.append(FP16x16 { mag: 11468800, sign: false });
data.append(FP16x16 { mag: 11534336, sign: false });
data.append(FP16x16 { mag: 11599872, sign: false });
data.append(FP16x16 { mag: 11665408, sign: false });
data.append(FP16x16 { mag: 11730944, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis1/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(4);
let mut data = ArrayTrait::new();
data.append(1);
data.append(1);
data.append(1);
data.append(0);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis1/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn output_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
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 });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 3932160, sign: false });
data.append(FP16x16 { mag: 3997696, sign: false });
data.append(FP16x16 { mag: 4063232, sign: false });
data.append(FP16x16 { mag: 4128768, sign: false });
data.append(FP16x16 { mag: 4194304, sign: false });
data.append(FP16x16 { mag: 4259840, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4390912, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 4521984, sign: false });
data.append(FP16x16 { mag: 4587520, sign: false });
data.append(FP16x16 { mag: 4653056, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 4784128, sign: false });
data.append(FP16x16 { mag: 4849664, sign: false });
data.append(FP16x16 { mag: 4915200, sign: false });
data.append(FP16x16 { mag: 4980736, sign: false });
data.append(FP16x16 { mag: 5046272, sign: false });
data.append(FP16x16 { mag: 5111808, sign: false });
data.append(FP16x16 { mag: 5177344, sign: false });
data.append(FP16x16 { mag: 5242880, sign: false });
data.append(FP16x16 { mag: 5308416, sign: false });
data.append(FP16x16 { mag: 5373952, sign: false });
data.append(FP16x16 { mag: 5439488, sign: false });
data.append(FP16x16 { mag: 5505024, sign: false });
data.append(FP16x16 { mag: 5570560, sign: false });
data.append(FP16x16 { mag: 5636096, sign: false });
data.append(FP16x16 { mag: 5701632, sign: false });
data.append(FP16x16 { mag: 5767168, sign: false });
data.append(FP16x16 { mag: 5832704, sign: false });
data.append(FP16x16 { mag: 5898240, sign: false });
data.append(FP16x16 { mag: 5963776, sign: false });
data.append(FP16x16 { mag: 6029312, sign: false });
data.append(FP16x16 { mag: 6094848, sign: false });
data.append(FP16x16 { mag: 6160384, sign: false });
data.append(FP16x16 { mag: 6225920, sign: false });
data.append(FP16x16 { mag: 6291456, sign: false });
data.append(FP16x16 { mag: 6356992, sign: false });
data.append(FP16x16 { mag: 6422528, sign: false });
data.append(FP16x16 { mag: 6488064, sign: false });
data.append(FP16x16 { mag: 6553600, sign: false });
data.append(FP16x16 { mag: 6619136, sign: false });
data.append(FP16x16 { mag: 6684672, sign: false });
data.append(FP16x16 { mag: 6750208, sign: false });
data.append(FP16x16 { mag: 6815744, sign: false });
data.append(FP16x16 { mag: 7864320, sign: false });
data.append(FP16x16 { mag: 7929856, sign: false });
data.append(FP16x16 { mag: 7995392, sign: false });
data.append(FP16x16 { mag: 8060928, sign: false });
data.append(FP16x16 { mag: 8126464, sign: false });
data.append(FP16x16 { mag: 8192000, sign: false });
data.append(FP16x16 { mag: 8257536, sign: false });
data.append(FP16x16 { mag: 8323072, sign: false });
data.append(FP16x16 { mag: 8388608, sign: false });
data.append(FP16x16 { mag: 8454144, sign: false });
data.append(FP16x16 { mag: 8519680, sign: false });
data.append(FP16x16 { mag: 8585216, sign: false });
data.append(FP16x16 { mag: 8650752, sign: false });
data.append(FP16x16 { mag: 8716288, sign: false });
data.append(FP16x16 { mag: 8781824, sign: false });
data.append(FP16x16 { mag: 8847360, sign: false });
data.append(FP16x16 { mag: 8912896, sign: false });
data.append(FP16x16 { mag: 8978432, sign: false });
data.append(FP16x16 { mag: 9043968, sign: false });
data.append(FP16x16 { mag: 9109504, sign: false });
data.append(FP16x16 { mag: 9175040, sign: false });
data.append(FP16x16 { mag: 9240576, sign: false });
data.append(FP16x16 { mag: 9306112, sign: false });
data.append(FP16x16 { mag: 9371648, sign: false });
data.append(FP16x16 { mag: 9437184, sign: false });
data.append(FP16x16 { mag: 9502720, sign: false });
data.append(FP16x16 { mag: 9568256, sign: false });
data.append(FP16x16 { mag: 9633792, sign: false });
data.append(FP16x16 { mag: 9699328, sign: false });
data.append(FP16x16 { mag: 9764864, sign: false });
data.append(FP16x16 { mag: 9830400, sign: false });
data.append(FP16x16 { mag: 9895936, sign: false });
data.append(FP16x16 { mag: 9961472, sign: false });
data.append(FP16x16 { mag: 10027008, sign: false });
data.append(FP16x16 { mag: 10092544, sign: false });
data.append(FP16x16 { mag: 10158080, sign: false });
data.append(FP16x16 { mag: 10223616, sign: false });
data.append(FP16x16 { mag: 10289152, sign: false });
data.append(FP16x16 { mag: 10354688, sign: false });
data.append(FP16x16 { mag: 10420224, sign: false });
data.append(FP16x16 { mag: 10485760, sign: false });
data.append(FP16x16 { mag: 10551296, sign: false });
data.append(FP16x16 { mag: 10616832, sign: false });
data.append(FP16x16 { mag: 10682368, sign: false });
data.append(FP16x16 { mag: 10747904, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis2.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp16x16_3d_axis2() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis2/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(4);
shape.append(3);
shape.append(4);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 2949120, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis2/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(4);
let mut data = ArrayTrait::new();
data.append(1);
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis2/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(4);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, 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: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, 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: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis3.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp16x16_3d_axis3() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(3));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis3/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(4);
shape.append(3);
shape.append(4);
shape.append(2);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 2949120, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
data.append(FP16x16 { mag: 3145728, sign: false });
data.append(FP16x16 { mag: 3211264, sign: false });
data.append(FP16x16 { mag: 3276800, sign: false });
data.append(FP16x16 { mag: 3342336, sign: false });
data.append(FP16x16 { mag: 3407872, sign: false });
data.append(FP16x16 { mag: 3473408, sign: false });
data.append(FP16x16 { mag: 3538944, sign: false });
data.append(FP16x16 { mag: 3604480, sign: false });
data.append(FP16x16 { mag: 3670016, sign: false });
data.append(FP16x16 { mag: 3735552, sign: false });
data.append(FP16x16 { mag: 3801088, sign: false });
data.append(FP16x16 { mag: 3866624, sign: false });
data.append(FP16x16 { mag: 3932160, sign: false });
data.append(FP16x16 { mag: 3997696, sign: false });
data.append(FP16x16 { mag: 4063232, sign: false });
data.append(FP16x16 { mag: 4128768, sign: false });
data.append(FP16x16 { mag: 4194304, sign: false });
data.append(FP16x16 { mag: 4259840, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4390912, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 4521984, sign: false });
data.append(FP16x16 { mag: 4587520, sign: false });
data.append(FP16x16 { mag: 4653056, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 4784128, sign: false });
data.append(FP16x16 { mag: 4849664, sign: false });
data.append(FP16x16 { mag: 4915200, sign: false });
data.append(FP16x16 { mag: 4980736, sign: false });
data.append(FP16x16 { mag: 5046272, sign: false });
data.append(FP16x16 { mag: 5111808, sign: false });
data.append(FP16x16 { mag: 5177344, sign: false });
data.append(FP16x16 { mag: 5242880, sign: false });
data.append(FP16x16 { mag: 5308416, sign: false });
data.append(FP16x16 { mag: 5373952, sign: false });
data.append(FP16x16 { mag: 5439488, sign: false });
data.append(FP16x16 { mag: 5505024, sign: false });
data.append(FP16x16 { mag: 5570560, sign: false });
data.append(FP16x16 { mag: 5636096, sign: false });
data.append(FP16x16 { mag: 5701632, sign: false });
data.append(FP16x16 { mag: 5767168, sign: false });
data.append(FP16x16 { mag: 5832704, sign: false });
data.append(FP16x16 { mag: 5898240, sign: false });
data.append(FP16x16 { mag: 5963776, sign: false });
data.append(FP16x16 { mag: 6029312, sign: false });
data.append(FP16x16 { mag: 6094848, sign: false });
data.append(FP16x16 { mag: 6160384, sign: false });
data.append(FP16x16 { mag: 6225920, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis3/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(2);
let mut data = ArrayTrait::new();
data.append(1);
data.append(0);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_axis3/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(4);
shape.append(3);
shape.append(4);
shape.append(1);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3145728, sign: false });
data.append(FP16x16 { mag: 3276800, sign: false });
data.append(FP16x16 { mag: 3407872, sign: false });
data.append(FP16x16 { mag: 3538944, sign: false });
data.append(FP16x16 { mag: 3670016, sign: false });
data.append(FP16x16 { mag: 3801088, sign: false });
data.append(FP16x16 { mag: 3932160, sign: false });
data.append(FP16x16 { mag: 4063232, sign: false });
data.append(FP16x16 { mag: 4194304, sign: false });
data.append(FP16x16 { mag: 4325376, sign: false });
data.append(FP16x16 { mag: 4456448, sign: false });
data.append(FP16x16 { mag: 4587520, sign: false });
data.append(FP16x16 { mag: 4718592, sign: false });
data.append(FP16x16 { mag: 4849664, sign: false });
data.append(FP16x16 { mag: 4980736, sign: false });
data.append(FP16x16 { mag: 5111808, sign: false });
data.append(FP16x16 { mag: 5242880, sign: false });
data.append(FP16x16 { mag: 5373952, sign: false });
data.append(FP16x16 { mag: 5505024, sign: false });
data.append(FP16x16 { mag: 5636096, sign: false });
data.append(FP16x16 { mag: 5767168, sign: false });
data.append(FP16x16 { mag: 5898240, sign: false });
data.append(FP16x16 { mag: 6029312, sign: false });
data.append(FP16x16 { mag: 6160384, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_default.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp16x16_3d_default() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_default/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn input_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_default/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_default/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn output_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(2);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_noaxis.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::FP16x16TensorPartialEq;
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp16x16_3d_noaxis() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::None(()));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_noaxis/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn input_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_noaxis/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(9);
let mut data = ArrayTrait::new();
data.append(1);
data.append(0);
data.append(1);
data.append(0);
data.append(1);
data.append(1);
data.append(1);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp16x16_3d_noaxis/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(7);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 131072, 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 });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis1.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::FP8x23TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp8x23_3d_axis1() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis1/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd};
use orion::numbers::{FixedTrait, FP8x23};
fn input_0() -> Tensor<FP8x23> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP8x23 { mag: 0, sign: false });
data.append(FP8x23 { mag: 8388608, sign: false });
data.append(FP8x23 { mag: 16777216, sign: false });
data.append(FP8x23 { mag: 25165824, sign: false });
data.append(FP8x23 { mag: 33554432, sign: false });
data.append(FP8x23 { mag: 41943040, sign: false });
data.append(FP8x23 { mag: 50331648, sign: false });
data.append(FP8x23 { mag: 58720256, sign: false });
data.append(FP8x23 { mag: 67108864, sign: false });
data.append(FP8x23 { mag: 75497472, sign: false });
data.append(FP8x23 { mag: 83886080, sign: false });
data.append(FP8x23 { mag: 92274688, sign: false });
data.append(FP8x23 { mag: 100663296, sign: false });
data.append(FP8x23 { mag: 109051904, sign: false });
data.append(FP8x23 { mag: 117440512, sign: false });
data.append(FP8x23 { mag: 125829120, sign: false });
data.append(FP8x23 { mag: 134217728, sign: false });
data.append(FP8x23 { mag: 142606336, sign: false });
data.append(FP8x23 { mag: 150994944, sign: false });
data.append(FP8x23 { mag: 159383552, sign: false });
data.append(FP8x23 { mag: 167772160, sign: false });
data.append(FP8x23 { mag: 176160768, sign: false });
data.append(FP8x23 { mag: 184549376, sign: false });
data.append(FP8x23 { mag: 192937984, sign: false });
data.append(FP8x23 { mag: 201326592, sign: false });
data.append(FP8x23 { mag: 209715200, sign: false });
data.append(FP8x23 { mag: 218103808, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis1/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis1/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(2);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP8x23 { mag: 25165824, sign: false });
data.append(FP8x23 { mag: 33554432, sign: false });
data.append(FP8x23 { mag: 41943040, sign: false });
data.append(FP8x23 { mag: 50331648, sign: false });
data.append(FP8x23 { mag: 58720256, sign: false });
data.append(FP8x23 { mag: 67108864, sign: false });
data.append(FP8x23 { mag: 100663296, sign: false });
data.append(FP8x23 { mag: 109051904, sign: false });
data.append(FP8x23 { mag: 117440512, sign: false });
data.append(FP8x23 { mag: 125829120, sign: false });
data.append(FP8x23 { mag: 134217728, sign: false });
data.append(FP8x23 { mag: 142606336, sign: false });
data.append(FP8x23 { mag: 176160768, sign: false });
data.append(FP8x23 { mag: 184549376, sign: false });
data.append(FP8x23 { mag: 192937984, sign: false });
data.append(FP8x23 { mag: 201326592, sign: false });
data.append(FP8x23 { mag: 209715200, sign: false });
data.append(FP8x23 { mag: 218103808, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis2.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::FP8x23TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp8x23_3d_axis2() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis2/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd};
use orion::numbers::{FixedTrait, FP8x23};
fn input_0() -> Tensor<FP8x23> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP8x23 { mag: 0, sign: false });
data.append(FP8x23 { mag: 8388608, sign: false });
data.append(FP8x23 { mag: 16777216, sign: false });
data.append(FP8x23 { mag: 25165824, sign: false });
data.append(FP8x23 { mag: 33554432, sign: false });
data.append(FP8x23 { mag: 41943040, sign: false });
data.append(FP8x23 { mag: 50331648, sign: false });
data.append(FP8x23 { mag: 58720256, sign: false });
data.append(FP8x23 { mag: 67108864, sign: false });
data.append(FP8x23 { mag: 75497472, sign: false });
data.append(FP8x23 { mag: 83886080, sign: false });
data.append(FP8x23 { mag: 92274688, sign: false });
data.append(FP8x23 { mag: 100663296, sign: false });
data.append(FP8x23 { mag: 109051904, sign: false });
data.append(FP8x23 { mag: 117440512, sign: false });
data.append(FP8x23 { mag: 125829120, sign: false });
data.append(FP8x23 { mag: 134217728, sign: false });
data.append(FP8x23 { mag: 142606336, sign: false });
data.append(FP8x23 { mag: 150994944, sign: false });
data.append(FP8x23 { mag: 159383552, sign: false });
data.append(FP8x23 { mag: 167772160, sign: false });
data.append(FP8x23 { mag: 176160768, sign: false });
data.append(FP8x23 { mag: 184549376, sign: false });
data.append(FP8x23 { mag: 192937984, sign: false });
data.append(FP8x23 { mag: 201326592, sign: false });
data.append(FP8x23 { mag: 209715200, sign: false });
data.append(FP8x23 { mag: 218103808, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis2/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_axis2/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(2);
let mut data = ArrayTrait::new();
data.append(FP8x23 { mag: 8388608, sign: false });
data.append(FP8x23 { mag: 16777216, sign: false });
data.append(FP8x23 { mag: 33554432, sign: false });
data.append(FP8x23 { mag: 41943040, sign: false });
data.append(FP8x23 { mag: 58720256, sign: false });
data.append(FP8x23 { mag: 67108864, sign: false });
data.append(FP8x23 { mag: 83886080, sign: false });
data.append(FP8x23 { mag: 92274688, sign: false });
data.append(FP8x23 { mag: 109051904, sign: false });
data.append(FP8x23 { mag: 117440512, sign: false });
data.append(FP8x23 { mag: 134217728, sign: false });
data.append(FP8x23 { mag: 142606336, sign: false });
data.append(FP8x23 { mag: 159383552, sign: false });
data.append(FP8x23 { mag: 167772160, sign: false });
data.append(FP8x23 { mag: 184549376, sign: false });
data.append(FP8x23 { mag: 192937984, sign: false });
data.append(FP8x23 { mag: 209715200, sign: false });
data.append(FP8x23 { mag: 218103808, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_default.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::FP8x23TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_fp8x23_3d_default() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_default/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd};
use orion::numbers::{FixedTrait, FP8x23};
fn input_0() -> Tensor<FP8x23> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP8x23 { mag: 0, sign: false });
data.append(FP8x23 { mag: 8388608, sign: false });
data.append(FP8x23 { mag: 16777216, sign: false });
data.append(FP8x23 { mag: 25165824, sign: false });
data.append(FP8x23 { mag: 33554432, sign: false });
data.append(FP8x23 { mag: 41943040, sign: false });
data.append(FP8x23 { mag: 50331648, sign: false });
data.append(FP8x23 { mag: 58720256, sign: false });
data.append(FP8x23 { mag: 67108864, sign: false });
data.append(FP8x23 { mag: 75497472, sign: false });
data.append(FP8x23 { mag: 83886080, sign: false });
data.append(FP8x23 { mag: 92274688, sign: false });
data.append(FP8x23 { mag: 100663296, sign: false });
data.append(FP8x23 { mag: 109051904, sign: false });
data.append(FP8x23 { mag: 117440512, sign: false });
data.append(FP8x23 { mag: 125829120, sign: false });
data.append(FP8x23 { mag: 134217728, sign: false });
data.append(FP8x23 { mag: 142606336, sign: false });
data.append(FP8x23 { mag: 150994944, sign: false });
data.append(FP8x23 { mag: 159383552, sign: false });
data.append(FP8x23 { mag: 167772160, sign: false });
data.append(FP8x23 { mag: 176160768, sign: false });
data.append(FP8x23 { mag: 184549376, sign: false });
data.append(FP8x23 { mag: 192937984, sign: false });
data.append(FP8x23 { mag: 201326592, sign: false });
data.append(FP8x23 { mag: 209715200, sign: false });
data.append(FP8x23 { mag: 218103808, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_default/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_fp8x23_3d_default/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd};
use orion::numbers::{FixedTrait, FP8x23};
fn output_0() -> Tensor<FP8x23> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(2);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP8x23 { mag: 75497472, sign: false });
data.append(FP8x23 { mag: 83886080, sign: false });
data.append(FP8x23 { mag: 92274688, sign: false });
data.append(FP8x23 { mag: 100663296, sign: false });
data.append(FP8x23 { mag: 109051904, sign: false });
data.append(FP8x23 { mag: 117440512, sign: false });
data.append(FP8x23 { mag: 125829120, sign: false });
data.append(FP8x23 { mag: 134217728, sign: false });
data.append(FP8x23 { mag: 142606336, sign: false });
data.append(FP8x23 { mag: 150994944, sign: false });
data.append(FP8x23 { mag: 159383552, sign: false });
data.append(FP8x23 { mag: 167772160, sign: false });
data.append(FP8x23 { mag: 176160768, sign: false });
data.append(FP8x23 { mag: 184549376, sign: false });
data.append(FP8x23 { mag: 192937984, sign: false });
data.append(FP8x23 { mag: 201326592, sign: false });
data.append(FP8x23 { mag: 209715200, sign: false });
data.append(FP8x23 { mag: 218103808, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_axis1.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::I32TensorPartialEq;
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_i32_3d_axis1() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_axis1/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> 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/compress_i32_3d_axis1/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_axis1/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<i32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(2);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(3);
data.append(4);
data.append(5);
data.append(6);
data.append(7);
data.append(8);
data.append(12);
data.append(13);
data.append(14);
data.append(15);
data.append(16);
data.append(17);
data.append(21);
data.append(22);
data.append(23);
data.append(24);
data.append(25);
data.append(26);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_axis2.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::I32TensorPartialEq;
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_i32_3d_axis2() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_axis2/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> 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/compress_i32_3d_axis2/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_axis2/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<i32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(2);
let mut data = ArrayTrait::new();
data.append(1);
data.append(2);
data.append(4);
data.append(5);
data.append(7);
data.append(8);
data.append(10);
data.append(11);
data.append(13);
data.append(14);
data.append(16);
data.append(17);
data.append(19);
data.append(20);
data.append(22);
data.append(23);
data.append(25);
data.append(26);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_default.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::I32TensorPartialEq;
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
#[test]
#[available_gas(2000000000)]
fn test_compress_i32_3d_default() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_default/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> 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/compress_i32_3d_default/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i32_3d_default/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I32Tensor, I32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<i32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(2);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
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/compress_i8_3d_axis1.cairo | mod input_0;
mod input_1;
mod output_0;
use orion::operators::tensor::I8TensorPartialEq;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_i8_3d_axis1() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_axis1/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<i8> {
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/compress_i8_3d_axis1/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_axis1/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<i8> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(2);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(3);
data.append(4);
data.append(5);
data.append(6);
data.append(7);
data.append(8);
data.append(12);
data.append(13);
data.append(14);
data.append(15);
data.append(16);
data.append(17);
data.append(21);
data.append(22);
data.append(23);
data.append(24);
data.append(25);
data.append(26);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_axis2.cairo | mod input_0;
mod input_1;
mod output_0;
use orion::operators::tensor::I8TensorPartialEq;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_i8_3d_axis2() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_axis2/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<i8> {
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/compress_i8_3d_axis2/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_axis2/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<i8> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(2);
let mut data = ArrayTrait::new();
data.append(1);
data.append(2);
data.append(4);
data.append(5);
data.append(7);
data.append(8);
data.append(10);
data.append(11);
data.append(13);
data.append(14);
data.append(16);
data.append(17);
data.append(19);
data.append(20);
data.append(22);
data.append(23);
data.append(25);
data.append(26);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_default.cairo | mod input_0;
mod input_1;
mod output_0;
use orion::operators::tensor::I8TensorPartialEq;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_i8_3d_default() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_default/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<i8> {
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/compress_i8_3d_default/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_i8_3d_default/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{I8Tensor, I8TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<i8> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(2);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
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/compress_u32_3d_axis1.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_u32_3d_axis1() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis1/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(4);
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);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis1/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis1/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(2);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(3);
data.append(4);
data.append(5);
data.append(6);
data.append(7);
data.append(8);
data.append(15);
data.append(16);
data.append(17);
data.append(18);
data.append(19);
data.append(20);
data.append(27);
data.append(28);
data.append(29);
data.append(30);
data.append(31);
data.append(32);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_u32_3d_axis2() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(4);
shape.append(4);
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);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(4);
shape.append(2);
let mut data = ArrayTrait::new();
data.append(1);
data.append(2);
data.append(5);
data.append(6);
data.append(9);
data.append(10);
data.append(13);
data.append(14);
data.append(17);
data.append(18);
data.append(21);
data.append(22);
data.append(25);
data.append(26);
data.append(29);
data.append(30);
data.append(33);
data.append(34);
data.append(37);
data.append(38);
data.append(41);
data.append(42);
data.append(45);
data.append(46);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2_2.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_u32_3d_axis2_2() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2_2/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(4);
shape.append(5);
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);
data.append(54);
data.append(55);
data.append(56);
data.append(57);
data.append(58);
data.append(59);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2_2/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis2_2/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(4);
shape.append(2);
let mut data = ArrayTrait::new();
data.append(1);
data.append(2);
data.append(6);
data.append(7);
data.append(11);
data.append(12);
data.append(16);
data.append(17);
data.append(21);
data.append(22);
data.append(26);
data.append(27);
data.append(31);
data.append(32);
data.append(36);
data.append(37);
data.append(41);
data.append(42);
data.append(46);
data.append(47);
data.append(51);
data.append(52);
data.append(56);
data.append(57);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis3.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_u32_3d_axis3() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(3));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis3/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(5);
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);
data.append(6);
data.append(7);
data.append(8);
data.append(9);
data.append(10);
data.append(11);
data.append(12);
data.append(13);
data.append(14);
data.append(15);
data.append(16);
data.append(17);
data.append(18);
data.append(19);
data.append(20);
data.append(21);
data.append(22);
data.append(23);
data.append(24);
data.append(25);
data.append(26);
data.append(27);
data.append(28);
data.append(29);
data.append(30);
data.append(31);
data.append(32);
data.append(33);
data.append(34);
data.append(35);
data.append(36);
data.append(37);
data.append(38);
data.append(39);
data.append(40);
data.append(41);
data.append(42);
data.append(43);
data.append(44);
data.append(45);
data.append(46);
data.append(47);
data.append(48);
data.append(49);
data.append(50);
data.append(51);
data.append(52);
data.append(53);
data.append(54);
data.append(55);
data.append(56);
data.append(57);
data.append(58);
data.append(59);
data.append(60);
data.append(61);
data.append(62);
data.append(63);
data.append(64);
data.append(65);
data.append(66);
data.append(67);
data.append(68);
data.append(69);
data.append(70);
data.append(71);
data.append(72);
data.append(73);
data.append(74);
data.append(75);
data.append(76);
data.append(77);
data.append(78);
data.append(79);
data.append(80);
data.append(81);
data.append(82);
data.append(83);
data.append(84);
data.append(85);
data.append(86);
data.append(87);
data.append(88);
data.append(89);
data.append(90);
data.append(91);
data.append(92);
data.append(93);
data.append(94);
data.append(95);
data.append(96);
data.append(97);
data.append(98);
data.append(99);
data.append(100);
data.append(101);
data.append(102);
data.append(103);
data.append(104);
data.append(105);
data.append(106);
data.append(107);
data.append(108);
data.append(109);
data.append(110);
data.append(111);
data.append(112);
data.append(113);
data.append(114);
data.append(115);
data.append(116);
data.append(117);
data.append(118);
data.append(119);
data.append(120);
data.append(121);
data.append(122);
data.append(123);
data.append(124);
data.append(125);
data.append(126);
data.append(127);
data.append(128);
data.append(129);
data.append(130);
data.append(131);
data.append(132);
data.append(133);
data.append(134);
data.append(135);
data.append(136);
data.append(137);
data.append(138);
data.append(139);
data.append(140);
data.append(141);
data.append(142);
data.append(143);
data.append(144);
data.append(145);
data.append(146);
data.append(147);
data.append(148);
data.append(149);
data.append(150);
data.append(151);
data.append(152);
data.append(153);
data.append(154);
data.append(155);
data.append(156);
data.append(157);
data.append(158);
data.append(159);
data.append(160);
data.append(161);
data.append(162);
data.append(163);
data.append(164);
data.append(165);
data.append(166);
data.append(167);
data.append(168);
data.append(169);
data.append(170);
data.append(171);
data.append(172);
data.append(173);
data.append(174);
data.append(175);
data.append(176);
data.append(177);
data.append(178);
data.append(179);
data.append(180);
data.append(181);
data.append(182);
data.append(183);
data.append(184);
data.append(185);
data.append(186);
data.append(187);
data.append(188);
data.append(189);
data.append(190);
data.append(191);
data.append(192);
data.append(193);
data.append(194);
data.append(195);
data.append(196);
data.append(197);
data.append(198);
data.append(199);
data.append(200);
data.append(201);
data.append(202);
data.append(203);
data.append(204);
data.append(205);
data.append(206);
data.append(207);
data.append(208);
data.append(209);
data.append(210);
data.append(211);
data.append(212);
data.append(213);
data.append(214);
data.append(215);
data.append(216);
data.append(217);
data.append(218);
data.append(219);
data.append(220);
data.append(221);
data.append(222);
data.append(223);
data.append(224);
data.append(225);
data.append(226);
data.append(227);
data.append(228);
data.append(229);
data.append(230);
data.append(231);
data.append(232);
data.append(233);
data.append(234);
data.append(235);
data.append(236);
data.append(237);
data.append(238);
data.append(239);
data.append(240);
data.append(241);
data.append(242);
data.append(243);
data.append(244);
data.append(245);
data.append(246);
data.append(247);
data.append(248);
data.append(249);
data.append(250);
data.append(251);
data.append(252);
data.append(253);
data.append(254);
data.append(255);
data.append(256);
data.append(257);
data.append(258);
data.append(259);
data.append(260);
data.append(261);
data.append(262);
data.append(263);
data.append(264);
data.append(265);
data.append(266);
data.append(267);
data.append(268);
data.append(269);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis3/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(6);
let mut data = ArrayTrait::new();
data.append(0);
data.append(1);
data.append(1);
data.append(1);
data.append(0);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_axis3/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(5);
shape.append(4);
let mut data = ArrayTrait::new();
data.append(1);
data.append(2);
data.append(3);
data.append(5);
data.append(7);
data.append(8);
data.append(9);
data.append(11);
data.append(13);
data.append(14);
data.append(15);
data.append(17);
data.append(19);
data.append(20);
data.append(21);
data.append(23);
data.append(25);
data.append(26);
data.append(27);
data.append(29);
data.append(31);
data.append(32);
data.append(33);
data.append(35);
data.append(37);
data.append(38);
data.append(39);
data.append(41);
data.append(43);
data.append(44);
data.append(45);
data.append(47);
data.append(49);
data.append(50);
data.append(51);
data.append(53);
data.append(55);
data.append(56);
data.append(57);
data.append(59);
data.append(61);
data.append(62);
data.append(63);
data.append(65);
data.append(67);
data.append(68);
data.append(69);
data.append(71);
data.append(73);
data.append(74);
data.append(75);
data.append(77);
data.append(79);
data.append(80);
data.append(81);
data.append(83);
data.append(85);
data.append(86);
data.append(87);
data.append(89);
data.append(91);
data.append(92);
data.append(93);
data.append(95);
data.append(97);
data.append(98);
data.append(99);
data.append(101);
data.append(103);
data.append(104);
data.append(105);
data.append(107);
data.append(109);
data.append(110);
data.append(111);
data.append(113);
data.append(115);
data.append(116);
data.append(117);
data.append(119);
data.append(121);
data.append(122);
data.append(123);
data.append(125);
data.append(127);
data.append(128);
data.append(129);
data.append(131);
data.append(133);
data.append(134);
data.append(135);
data.append(137);
data.append(139);
data.append(140);
data.append(141);
data.append(143);
data.append(145);
data.append(146);
data.append(147);
data.append(149);
data.append(151);
data.append(152);
data.append(153);
data.append(155);
data.append(157);
data.append(158);
data.append(159);
data.append(161);
data.append(163);
data.append(164);
data.append(165);
data.append(167);
data.append(169);
data.append(170);
data.append(171);
data.append(173);
data.append(175);
data.append(176);
data.append(177);
data.append(179);
data.append(181);
data.append(182);
data.append(183);
data.append(185);
data.append(187);
data.append(188);
data.append(189);
data.append(191);
data.append(193);
data.append(194);
data.append(195);
data.append(197);
data.append(199);
data.append(200);
data.append(201);
data.append(203);
data.append(205);
data.append(206);
data.append(207);
data.append(209);
data.append(211);
data.append(212);
data.append(213);
data.append(215);
data.append(217);
data.append(218);
data.append(219);
data.append(221);
data.append(223);
data.append(224);
data.append(225);
data.append(227);
data.append(229);
data.append(230);
data.append(231);
data.append(233);
data.append(235);
data.append(236);
data.append(237);
data.append(239);
data.append(241);
data.append(242);
data.append(243);
data.append(245);
data.append(247);
data.append(248);
data.append(249);
data.append(251);
data.append(253);
data.append(254);
data.append(255);
data.append(257);
data.append(259);
data.append(260);
data.append(261);
data.append(263);
data.append(265);
data.append(266);
data.append(267);
data.append(269);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_default.cairo | mod input_0;
mod input_1;
mod output_0;
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::U32TensorPartialEq;
use orion::operators::tensor::{TensorTrait, Tensor};
#[test]
#[available_gas(2000000000)]
fn test_compress_u32_3d_default() {
let input_0 = input_0::input_0();
let input_1 = input_1::input_1();
let z_0 = output_0::output_0();
let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0));
assert_eq(y_0, z_0);
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_default/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(4);
shape.append(4);
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);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_default/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn input_1() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(2);
let mut data = ArrayTrait::new();
data.append(1);
data.append(1);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/compress_u32_3d_default/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{U32Tensor, U32TensorAdd};
use orion::numbers::NumberTrait;
fn output_0() -> Tensor<u32> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(2);
shape.append(4);
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);
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_1d.cairo | mod input_0;
mod input_1;
mod output_0;
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::FP16x16TensorPartialEq;
use core::array::{ArrayTrait, SpanTrait};
#[test]
#[available_gas(2000000000)]
fn test_concat_fp16x16_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_fp16x16_1d/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn input_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
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 });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_1d/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn input_1() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_1d/output_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn output_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(6);
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 });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_2d.cairo | mod input_0;
mod input_1;
mod output_0;
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::FP16x16TensorPartialEq;
use core::array::{ArrayTrait, SpanTrait};
#[test]
#[available_gas(2000000000)]
fn test_concat_fp16x16_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_fp16x16_2d/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(2);
shape.append(2);
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 });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_2d/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(2);
let mut data = ArrayTrait::new();
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 });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_2d/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(4);
shape.append(2);
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 });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_3d_axis_1.cairo | mod input_0;
mod input_1;
mod output_0;
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::utils::{assert_eq, assert_seq_eq};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::FP16x16TensorPartialEq;
use core::array::{ArrayTrait, SpanTrait};
#[test]
#[available_gas(2000000000)]
fn test_concat_fp16x16_3d_axis_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_fp16x16_3d_axis_1/input_0.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn input_0() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 0, sign: false });
data.append(FP16x16 { mag: 65536, sign: false });
data.append(FP16x16 { mag: 131072, sign: false });
data.append(FP16x16 { mag: 196608, sign: false });
data.append(FP16x16 { mag: 262144, sign: false });
data.append(FP16x16 { mag: 327680, sign: false });
data.append(FP16x16 { mag: 393216, sign: false });
data.append(FP16x16 { mag: 458752, sign: false });
data.append(FP16x16 { mag: 524288, sign: false });
data.append(FP16x16 { mag: 589824, sign: false });
data.append(FP16x16 { mag: 655360, sign: false });
data.append(FP16x16 { mag: 720896, sign: false });
data.append(FP16x16 { mag: 786432, sign: false });
data.append(FP16x16 { mag: 851968, sign: false });
data.append(FP16x16 { mag: 917504, sign: false });
data.append(FP16x16 { mag: 983040, sign: false });
data.append(FP16x16 { mag: 1048576, sign: false });
data.append(FP16x16 { mag: 1114112, sign: false });
data.append(FP16x16 { mag: 1179648, sign: false });
data.append(FP16x16 { mag: 1245184, sign: false });
data.append(FP16x16 { mag: 1310720, sign: false });
data.append(FP16x16 { mag: 1376256, sign: false });
data.append(FP16x16 { mag: 1441792, sign: false });
data.append(FP16x16 { mag: 1507328, sign: false });
data.append(FP16x16 { mag: 1572864, sign: false });
data.append(FP16x16 { mag: 1638400, sign: false });
data.append(FP16x16 { mag: 1703936, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |
tests/nodes/concat_fp16x16_3d_axis_1/input_1.cairo | use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor};
use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd};
use orion::numbers::{FixedTrait, FP16x16};
fn input_1() -> Tensor<FP16x16> {
let mut shape = ArrayTrait::<usize>::new();
shape.append(3);
shape.append(3);
shape.append(3);
let mut data = ArrayTrait::new();
data.append(FP16x16 { mag: 1769472, sign: false });
data.append(FP16x16 { mag: 1835008, sign: false });
data.append(FP16x16 { mag: 1900544, sign: false });
data.append(FP16x16 { mag: 1966080, sign: false });
data.append(FP16x16 { mag: 2031616, sign: false });
data.append(FP16x16 { mag: 2097152, sign: false });
data.append(FP16x16 { mag: 2162688, sign: false });
data.append(FP16x16 { mag: 2228224, sign: false });
data.append(FP16x16 { mag: 2293760, sign: false });
data.append(FP16x16 { mag: 2359296, sign: false });
data.append(FP16x16 { mag: 2424832, sign: false });
data.append(FP16x16 { mag: 2490368, sign: false });
data.append(FP16x16 { mag: 2555904, sign: false });
data.append(FP16x16 { mag: 2621440, sign: false });
data.append(FP16x16 { mag: 2686976, sign: false });
data.append(FP16x16 { mag: 2752512, sign: false });
data.append(FP16x16 { mag: 2818048, sign: false });
data.append(FP16x16 { mag: 2883584, sign: false });
data.append(FP16x16 { mag: 2949120, sign: false });
data.append(FP16x16 { mag: 3014656, sign: false });
data.append(FP16x16 { mag: 3080192, sign: false });
data.append(FP16x16 { mag: 3145728, sign: false });
data.append(FP16x16 { mag: 3211264, sign: false });
data.append(FP16x16 { mag: 3276800, sign: false });
data.append(FP16x16 { mag: 3342336, sign: false });
data.append(FP16x16 { mag: 3407872, sign: false });
data.append(FP16x16 { mag: 3473408, sign: false });
TensorTrait::new(shape.span(), data.span())
}
| https://github.com/gizatechxyz/orion |