This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ONNX tests | ||
|
||
## Directory structure: | ||
|
||
```bash | ||
. | ||
├── README.md | ||
├── backend.py | ||
├── backend_rep.py | ||
├── backend_test.py | ||
├── gluon_backend_test.py | ||
├── mxnet_backend_test.py | ||
├── mxnet_export_test.py | ||
├── test_cases.py | ||
├── test_models.py | ||
└── test_node.py | ||
``` | ||
|
||
* `backend.py` - MXNetBackend. This file contains prepare(). \ | ||
This class can be used for both, MXNet and Gluon backend. | ||
* `backend_rep.py` - MXNetBackendRep and GluonBackendRep for running inference | ||
* `backend_test.py` - prepare tests by including tests from `test_cases.py` | ||
* `gluon_backend_test.py` - Set backend as gluon and execute ONNX tests for ONNX->Gluon import. | ||
* `mxnet_backend_test.py` - Set backend as gluon and add tests for ONNX->MXNet import/export. | ||
Since MXNetBackend for export, tests both import and export, the test list in this file is | ||
a union of tests that execute for import and export, export alone, and import alone. | ||
* `mxnet_export_test.py` - Execute unit tests for testing MXNet export code - this is not specific to | ||
any operator. | ||
* `test_cases.py` - list of test cases for operators/models that are supported | ||
for "both", import and export, "import" alone, or "export" alone. | ||
* `test_models.py` - custom tests for models | ||
* `test_node.py` - custom tests for operators. These tests are written independent of ONNX tests, in case | ||
ONNX doesn't have tests yet or for MXNet specific operators. |