openvino/tests/layer_tests
Piotr Krzemiński 0860db0dc3
[PT FE] Add aten::ArgSort & aten::Sort (#15769)
* [PT FE] Add aten::argsort implementation & tests

* [PT FE] Fix formatting

* [PT FE] Fix incorrect node type for Gather

* [PT FE] Fix Reshape missing argument

* [PT FE] Simplify syntax, fix int/int64 conversion error

* [PT FE] Fix argsort incorrectly sorting negative dimension, fix tests

* [PT FE] Revert modify test class

* [PT FE] Fix formatting of argsort

* [PT FE] Fix define macro style

* [PT FE] Add missing EOF

* [PT FE] Add stable==false check, add support for different constructor calls

* [PT FE] Add aten::sort implementation & tests

* [PT FE] Apply style changes, add XFail test for stable sorting

* Update sort.cpp

* Update sort.cpp

* [PT FE] Apply style changes from aten::sort t PR

* Update test_argsort.py

* [PT FE] Apply suggested modifications

* Update test_argsort.py

* [PT FE] Apply review suggestions, add tests and extract sort method to utils

* [PT FE] Use utils sort function to implement argsort

* [PT FE] Fix input size check 4->5

* [PT FE] Implement improved tests

* [PT FE] Implement improved tests

* [PT FE] Add xfail to not yet supported tests

* [PT FE] Merge 2 implementations of sort and argsort into a single file

* [PT FE] Remove redundant sort_elements from utils

* [PT FE] Add num_inputs_check

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-03-05 20:12:32 +01:00
..
common Adds layer tests for binary and reduce tflite operations (#15791) 2023-02-24 14:46:29 +04:00
mo_python_api_tests convert_model() legacy extensions fix (#15742) 2023-03-03 09:59:30 +04:00
onnx_tests [Tests] Fix rest of NumPy deprecated types (#15245) 2023-01-21 11:17:52 +00:00
py_frontend_tests Fix issue with If and bool type (#15457) 2023-02-02 22:32:40 +01:00
pytorch_tests [PT FE] Add aten::ArgSort & aten::Sort (#15769) 2023-03-05 20:12:32 +01:00
tensorflow2_keras_tests [TF FE] Support TensorList operations and RNN layers (#15503) 2023-02-06 22:38:21 +00:00
tensorflow_lite_tests Adds layer tests for binary and reduce tflite operations (#15791) 2023-02-24 14:46:29 +04:00
tensorflow_tests [TF FE] Mark-up xfailed layer tests on GPU in nightly (#15981) 2023-02-27 21:14:21 +00:00
.gitignore Add layer tests (#5789) 2021-06-16 12:50:16 +03:00
CMakeLists.txt Updated copyright headers (#15124) 2023-01-16 11:02:17 +04:00
README.md Refactor of renaming ov libraries for layer tests with key --use_new_frontend (#12846) 2022-09-20 13:43:37 +04:00
conftest.py Updated copyright headers (#15124) 2023-01-16 11:02:17 +04:00
pytest.ini Remove unsued map initialization (#11621) 2022-05-05 00:50:34 +02:00
requirements.txt Add PyTorch Frontend (#15069) 2023-01-18 18:16:57 +04:00

README.md

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