Files
openvino/tests/layer_tests
Surya Siddharth Pemmaraju e14d1b2a07 Torchscript backend (#17132)
* Added torch script backend

* Added ts_backend to pytorch layer tests

* Added use_ts_backend fixture to the test suite to activate the
torchscript backend

* Fixed failing test_dict layer test

* Added USE_TS_BACKEND as an env variable

* Removed use_ts_backend fixture

* Added more tests for ts backend

* Added more information in the comments about usage

* Removed convolution3d test from precommit_ts_backend

* Added some torchscript backend tests to ci

* Removed tests from CI as torch.compile doesn't support 3.11 currently

* Fixed linter issues

* Addressed PR comments and linter issues
2023-05-17 14:58:38 +02:00
..
2023-05-15 15:03:09 +04:00
2021-06-16 12:50:16 +03:00
2023-01-16 11:02:17 +04:00
2023-05-17 14:58:38 +02: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:
    pip3 install -r requirements.txt
    
  • Set up environment variables for layer tests (if you use wheel package path to python api could be removed):
    export PYTHONPATH="path_to_openvino"/tests/layer_tests/:"path_to_openvino"/tools/mo:"path to python api"
    
  • If there is need to use specific libs it is possible to specify path to them using OV_LIBRARY_PATH env variable
    export OV_LIBRARY_PATH="path_to_libs"
    
  • To parametrize tests by device and precision (optional)
    export TEST_DEVICE="CPU;GPU"
    export TEST_PRECISION="FP32;FP16"
    

Run tests

py.test