Skip to content

Commit 93b6d99

Browse files
authored
Create test data for round tripping tests (#18)
Since the repo does not have enough git lfs space to store binary files, I removed all initializers and use textproto to create the round tripping tests. --------- Signed-off-by: Justin Chu <[email protected]>
1 parent 470f02c commit 93b6d99

File tree

10 files changed

+111393
-4
lines changed

10 files changed

+111393
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Pull Test Data
5252
run: git lfs pull
5353
- name: Run tests
54-
run: nox -t ${{ matrix.nox-tag }} --forcecolor -- --cov=onnx_ir --cov-report=xml --cov-append --cov-branch -n=auto --junitxml junit.xml
54+
run: nox -t ${{ matrix.nox-tag }} --forcecolor -- --cov=src/onnx_ir --cov-report=xml --cov-append --cov-branch -n=auto --junitxml junit.xml
5555
- name: Upload coverage to Codecov
5656
if: always()
5757
uses: codecov/codecov-action@v5

REUSE.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ path = [
1414
"**/*.ipynb",
1515
"**/*.md",
1616
"**/*.rst",
17+
"**/*.textproto",
1718
"**/*.toml",
1819
"**/*.yml",
1920
"CODEOWNERS",

testdata/e2e_models/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Models for end-to-end testing
2+
3+
The models under this directory are generated with [tools/create_test_model.py](/tools/create_test_model.py). ONNX models have all initializer data stripped and save as the textproto format.
4+
5+
If a particular test requires the initializer data to be present, it should create random weights based on the tensor dtype/shape and add them to the `TensorProto`s in `model.graph.initializer`.

0 commit comments

Comments
 (0)