2021-06-16 12:50:16 +03:00
|
|
|
# Layer tests
|
|
|
|
|
|
|
|
|
|
This folder layer tests framework code and test files.
|
|
|
|
|
|
|
|
|
|
## Getting Started
|
|
|
|
|
|
|
|
|
|
#### Pre-requisites
|
|
|
|
|
|
|
|
|
|
* OpenVINO should be configured as usual.
|
|
|
|
|
|
|
|
|
|
#### Setup
|
|
|
|
|
|
|
|
|
|
* Install requirements:
|
|
|
|
|
```bash
|
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
|
```
|
2022-09-20 13:43:37 +04:00
|
|
|
* Set up environment variables for layer tests (if you use wheel package path to python api could be removed):
|
2021-06-16 12:50:16 +03:00
|
|
|
```bash
|
2022-08-30 13:51:03 +04:00
|
|
|
export PYTHONPATH="path_to_openvino"/tests/layer_tests/:"path_to_openvino"/tools/mo:"path to python api"
|
2021-06-16 12:50:16 +03:00
|
|
|
```
|
2022-09-20 13:43:37 +04:00
|
|
|
* If there is need to use specific libs it is possible to specify path to them using OV_LIBRARY_PATH env variable
|
2021-06-16 12:50:16 +03:00
|
|
|
```bash
|
2022-09-20 13:43:37 +04:00
|
|
|
export OV_LIBRARY_PATH="path_to_libs"
|
2021-06-16 12:50:16 +03:00
|
|
|
```
|
2022-09-20 13:43:37 +04:00
|
|
|
* To parametrize tests by device and precision (optional)
|
|
|
|
|
```bash
|
|
|
|
|
export TEST_DEVICE="CPU;GPU"
|
|
|
|
|
export TEST_PRECISION="FP32;FP16"
|
|
|
|
|
```
|
2021-06-16 12:50:16 +03:00
|
|
|
|
|
|
|
|
## Run tests
|
|
|
|
|
```bash
|
|
|
|
|
py.test
|
|
|
|
|
```
|