LLM inference in C/C++
C++ ggml
tests: export-graph-ops: exit gracefully when called w/o arguments (#25619)
Christian Kastner657e01125aa4
diff --git a/tests/test-export-graph-ops.cpp b/tests/test-export-graph-ops.cppindex 7d8118dcd6..46ded13985 100644--- a/tests/test-export-graph-ops.cpp+++ b/tests/test-export-graph-ops.cpp@@ -152,6 +152,10 @@ int main(int argc, char ** argv) {init_result = common_init_from_params(params);ctx = init_result->context();+ if (!ctx) {+ LOG_ERR("failed to initialize params\n");+ return 1;+ }} else {#ifdef LLAMA_HF_FETCHauto [hf_repo, hf_quant] = common_download_split_repo_tag(params.model.hf_repo);