]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
test-backend-ops: allow loading tests from file and parsing model operators into...
authorRuben Ortlam <redacted>
Thu, 12 Mar 2026 12:26:00 +0000 (13:26 +0100)
committerGitHub <redacted>
Thu, 12 Mar 2026 12:26:00 +0000 (13:26 +0100)
commit128142fe7dd02cc87e178778ae80affcc8836304
tree283381f9a233d3ce924b989d119b6f85b3591dee
parent6de1bc631d1a27e1f71fef2e6f8fad4ea3f5cf67
test-backend-ops: allow loading tests from file and parsing model operators into file (#19896)

* tests: allow loading test-backend-ops tests from json

* add error threshold based on op

* add error when file cannot be read

* add graph operator json extraction tool

* add nb parameter for non-contiguous input tensors

* fix view check

* only use view if non-contiguous/permuted, use C++ random instead of rand()

* replace internal API calls with public llama_graph_reserve call

* reduce test description length

* fix nb[0] not getting set for view

* add name to tests

* fix inplace error

* use text file instead of json

* move llama_graph_reserve function to new llama-ext header, move export-graph-ops to tests/

* fix missing declaration

* use pragma once

* fix indent

* fix Windows build
common/arg.cpp
common/common.h
src/llama-context.cpp
src/llama-ext.h [new file with mode: 0644]
tests/CMakeLists.txt
tests/export-graph-ops.cpp [new file with mode: 0644]
tests/test-backend-ops.cpp