README.md
1<!--- Licensed to the Apache Software Foundation (ASF) under one -->
2<!--- or more contributor license agreements. See the NOTICE file -->
3<!--- distributed with this work for additional information -->
4<!--- regarding copyright ownership. The ASF licenses this file -->
5<!--- to you under the Apache License, Version 2.0 (the -->
6<!--- "License"); you may not use this file except in compliance -->
7<!--- with the License. You may obtain a copy of the License at -->
8<!--- -->
9<!--- http://www.apache.org/licenses/LICENSE-2.0 -->
10<!--- -->
11<!--- Unless required by applicable law or agreed to in writing, -->
12<!--- software distributed under the License is distributed on an -->
13<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
14<!--- KIND, either express or implied. See the License for the -->
15<!--- specific language governing permissions and limitations -->
16<!--- under the License. -->
17
18# ONNX tests
19
20## Directory structure:
21
22```bash
23.
24├── README.md
25├── backend.py
26├── backend_rep.py
27├── backend_test.py
28├── gluon_backend_test.py
29├── mxnet_backend_test.py
30├── mxnet_export_test.py
31├── test_cases.py
32├── test_models.py
33└── test_node.py
34```
35
36* `backend.py` - MXNetBackend. This file contains prepare(). \
37This class can be used for both, MXNet and Gluon backend.
38* `backend_rep.py` - MXNetBackendRep and GluonBackendRep for running inference
39* `backend_test.py` - prepare tests by including tests from `test_cases.py`
40* `gluon_backend_test.py` - Set backend as gluon and execute ONNX tests for ONNX->Gluon import.
41* `mxnet_backend_test.py` - Set backend as gluon and add tests for ONNX->MXNet import/export.
42Since MXNetBackend for export, tests both import and export, the test list in this file is
43a union of tests that execute for import and export, export alone, and import alone.
44* `mxnet_export_test.py` - Execute unit tests for testing MXNet export code - this is not specific to
45any operator.
46* `test_cases.py` - list of test cases for operators/models that are supported
47for "both", import and export, "import" alone, or "export" alone.
48* `test_models.py` - custom tests for models
49* `test_node.py` - custom tests for operators. These tests are written independent of ONNX tests, in case
50ONNX doesn't have tests yet or for MXNet specific operators.
51