Skip to content

Commit

Permalink
patch examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto committed Nov 29, 2023
1 parent 8f89584 commit fb9b81a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
16 changes: 13 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions examples/notebooks/nbeats_timeseries_forecasting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -834,12 +834,18 @@
},
"outputs": [],
"source": [
"run_args = ezkl.PyRunArgs()\n",
"run_args.input_visibility = \"private\"\n",
"run_args.param_visibility = \"fixed\"\n",
"run_args.output_visibility = \"public\"\n",
"run_args.variables = [(\"batch_size\", 1)]\n",
"\n",
"!RUST_LOG=trace\n",
"# TODO: Dictionary outputs\n",
"res = ezkl.gen_settings(model_path, settings_path)\n",
"assert res == True\n",
"\n",
"res = ezkl.calibrate_settings(data_path, model_path, settings_path, \"resources\")\n",
"res = ezkl.calibrate_settings(data_path, model_path, settings_path, \"resources\", max_logrows = 20, scales = [5,6])\n",
"assert res == True"
]
},
Expand Down Expand Up @@ -965,9 +971,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.9.13"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
}
6 changes: 3 additions & 3 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ mod native_tests {
"1l_prelu",
];

const TESTS: [&str; 67] = [
const TESTS: [&str; 66] = [
"1l_mlp",
"1l_slice",
"1l_concat",
Expand Down Expand Up @@ -268,7 +268,7 @@ mod native_tests {
"sklearn_mlp",
"1l_mean",
"rounding_ops",
"mean_as_constrain",
// "mean_as_constrain",
"arange",
"layernorm",
];
Expand Down Expand Up @@ -497,7 +497,7 @@ mod native_tests {
}
});

seq!(N in 0..=66 {
seq!(N in 0..=65 {

#(#[test_case(TESTS[N])])*
#[ignore]
Expand Down

0 comments on commit fb9b81a

Please sign in to comment.