Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test-generator dependency #18512

Merged
merged 230 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
28ed8a9
changed from generator to unittest
PRATHAM-SPS Jun 30, 2023
b80c106
common_test.py tested for pylint 7.96/10
PRATHAM-SPS Jul 5, 2023
f2d0321
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 5, 2023
59a2194
ChangeRandomUniformOutputType_test pylint 10/10
PRATHAM-SPS Jul 5, 2023
ba626d2
replaced generator functionality from compress...
PRATHAM-SPS Jul 7, 2023
aa1d9da
replaced generator functionality in MatMulNormal..
PRATHAM-SPS Jul 7, 2023
066dd37
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 7, 2023
355deee
replaced generator functionality in ShuffleChan...
PRATHAM-SPS Jul 8, 2023
82a78b5
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 8, 2023
9a37fc2
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 9, 2023
73a117b
replaced generator functionality in import_from_mo_test.py
PRATHAM-SPS Jul 9, 2023
6bd6541
replaced generator functionality in meta_data_test.py
PRATHAM-SPS Jul 9, 2023
c8c2577
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 10, 2023
f9ff9f1
replaced generator functionality in extractor_test.py
PRATHAM-SPS Jul 10, 2023
66d97f7
replaced generator functionality in interpolate_reshape_test.py
PRATHAM-SPS Jul 10, 2023
0119853
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 11, 2023
5869473
replaced generator functionality in Pack_test.py
PRATHAM-SPS Jul 11, 2023
6e0661e
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Jul 11, 2023
d276ca5
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 11, 2023
42e8518
replaced generator functionality in rank_decomposer_test.py
PRATHAM-SPS Jul 11, 2023
3c4ddd7
replaced generator functionality in size_replacer_test.py
PRATHAM-SPS Jul 11, 2023
d82f637
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Jul 12, 2023
a6b3b23
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 12, 2023
c2920ee
replaced generator functionality in utils_test.py
PRATHAM-SPS Jul 13, 2023
148be7e
replaced generator functionality in eltwise_test.py
PRATHAM-SPS Jul 13, 2023
fefa6a9
replaced generator functionality in concat_test.py
PRATHAM-SPS Jul 13, 2023
9bee32a
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 13, 2023
e47cddd
replaced generator functionality in tdnn_component_replacer_test.py
PRATHAM-SPS Jul 13, 2023
4a9238d
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 13, 2023
554a19a
replaced generator functionality in MXFFTToDFT_test.py
PRATHAM-SPS Jul 13, 2023
bdee884
replaced generator functionality in activation_ext_test.py
PRATHAM-SPS Jul 14, 2023
220c2db
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 14, 2023
67d5f6a
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 15, 2023
89fcbc9
replaced generator functionality in AttributedSliceToSlice_test
PRATHAM-SPS Jul 15, 2023
e8b45df
replaced generator functionality in squeeze_ext_test.py
PRATHAM-SPS Jul 15, 2023
86b7e1e
replaced generator functionality in transpose_ext_test.py
PRATHAM-SPS Jul 15, 2023
ecf7b80
replaced generator functionality in unsqueeze_ext_test.py
PRATHAM-SPS Jul 15, 2023
18b5c74
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 16, 2023
500ba1e
replaced generator functionality in ObjectDetectionAPI_test.py
PRATHAM-SPS Jul 16, 2023
84b10f0
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 17, 2023
64f9065
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 18, 2023
9259b8e
replaced generator functionality in RFFTRealImagToRFFTSplit_test.py
PRATHAM-SPS Jul 18, 2023
06526ba
replaced generator functionality in TFFFTToDFT_test.py
PRATHAM-SPS Jul 18, 2023
1ddd5df
replaced generator functionality in WhereDecomposition_test.py
PRATHAM-SPS Jul 18, 2023
dd03679
replaced generator functionality in graph_test.py
PRATHAM-SPS Jul 18, 2023
5dfced1
replaced generator functionality in ConvertGroupedStridedSlice_test.py
PRATHAM-SPS Jul 18, 2023
53ae042
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 18, 2023
e2774f3
replaced generator functionality in dequantize_linear_resolver_test.py
PRATHAM-SPS Jul 18, 2023
c65089f
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Jul 18, 2023
a660aee
replaced generator functionality in FusedBatchNormTraining_test.py
PRATHAM-SPS Jul 18, 2023
7ebbdb3
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 19, 2023
479f333
replaced generator functionality in L2NormFusing_test.py
PRATHAM-SPS Jul 19, 2023
cbfb2ea
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Jul 19, 2023
0343bed
replaced generator functionality in PreserveRuntimeInfo_test.py
PRATHAM-SPS Jul 19, 2023
ba10cca
replaced generator functionality in quantize_linear_resolver_test.py
PRATHAM-SPS Jul 19, 2023
8418447
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 19, 2023
87ccdab
replaced generator functionality in UpsampleToResample_test.py
PRATHAM-SPS Jul 19, 2023
c6243e3
replaced generator functionality in broadcast_test.py
PRATHAM-SPS Jul 19, 2023
eacae43
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 19, 2023
10b62dd
replaced generator functionality in loader_test.py
PRATHAM-SPS Jul 19, 2023
ae59650
replaced generator functionality in cast_test.py
PRATHAM-SPS Jul 19, 2023
696c4fc
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 19, 2023
1e90feb
replaced generator functionality in Complex_test.py
PRATHAM-SPS Jul 19, 2023
392af13
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Jul 19, 2023
4b67a09
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 19, 2023
e40d432
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 20, 2023
0e7d717
replaced generator functionality in dft_signal_size_canonicalization_…
PRATHAM-SPS Jul 20, 2023
d1dda4e
replaced generator functionality in div_value_propagation_test.py
PRATHAM-SPS Jul 20, 2023
3fc36f2
replaced generator functionality in einsum_test.py
PRATHAM-SPS Jul 20, 2023
2ae88d8
replaced generator functionality in expand_dims_test.py
PRATHAM-SPS Jul 20, 2023
a55994c
replaced generator functionality in ExtractImagePatches_test.py
PRATHAM-SPS Jul 20, 2023
03fc63a
replaced generator functionality in eye_test.py
PRATHAM-SPS Jul 20, 2023
b6a5f4f
replaced generator functionality in gatherelements_test.py
PRATHAM-SPS Jul 20, 2023
f07c4e5
replaced generator functionality in If_test.py
PRATHAM-SPS Jul 20, 2023
664c364
replaced generator functionality in interpolate_test.py
PRATHAM-SPS Jul 20, 2023
b617cdc
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 20, 2023
b79c4f6
replaced generator functionality in MatMul_test.py
PRATHAM-SPS Jul 20, 2023
913b50b
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Jul 20, 2023
5fe9fb9
replaced generator functionality in MatMul_value_propagation_test.py
PRATHAM-SPS Jul 20, 2023
d52a46e
replaced generator functionality in one_hot_test.py
PRATHAM-SPS Jul 20, 2023
f5510f3
replaced generator functionality in ONNXResize11_test.py
PRATHAM-SPS Jul 20, 2023
e0a38f5
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 20, 2023
74b7217
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 20, 2023
53e2b03
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 21, 2023
25347ab
replaced generator functionality in ReduceOps_test.py
PRATHAM-SPS Jul 21, 2023
b8f7d4e
replaced generator functionality in reshape_test.py
PRATHAM-SPS Jul 22, 2023
59af33c
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 22, 2023
b71f411
replaced generator functionality in scatter_test.py
PRATHAM-SPS Jul 22, 2023
aeb18fb
replaced generator functionality in slice_test.py
PRATHAM-SPS Jul 22, 2023
cba7bbd
replaced generator functionality in conversion_with_layout_test.py
PRATHAM-SPS Jul 22, 2023
e69a985
replaced generator functionality in conversion_incorrect_models_test.py
PRATHAM-SPS Jul 22, 2023
0063acc
replaced generator functionality in conversion_basic_models_test.py
PRATHAM-SPS Jul 22, 2023
c586df5
replaced generator functionality in split_test.py
PRATHAM-SPS Jul 22, 2023
3f2aa49
replaced generator functionality in squeeze_test.py
PRATHAM-SPS Jul 22, 2023
49a069a
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 23, 2023
000beda
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 24, 2023
bbd5413
replaced generator functionality in mo_fallback_test_actual.py
PRATHAM-SPS Jul 24, 2023
9a2dcf0
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Jul 24, 2023
3977e61
replaced generator functionality in layer_to_class_test.py
PRATHAM-SPS Jul 24, 2023
8af8498
replaced generator functionality in ir_engine_test.py
PRATHAM-SPS Jul 24, 2023
f706d17
replaced generator functionality in mo_fallback_test_tf_fe.py
PRATHAM-SPS Jul 24, 2023
86f4c79
replaced generator functionality in freeze_placeholder_test.py
PRATHAM-SPS Jul 24, 2023
4f904fb
replaced generator functionality in broadcasting_test.py
PRATHAM-SPS Jul 25, 2023
c8fb06a
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 25, 2023
09f99ae
replaced generator functionality in broadcasting_test.py
PRATHAM-SPS Jul 25, 2023
a97283f
replaced generator functionality in transpose_test.py
PRATHAM-SPS Jul 25, 2023
adcd028
replaced generator functionality in custom_replacement_config_test.py
PRATHAM-SPS Jul 25, 2023
6a1a185
replaced generator functionality in unsqueeze_test.py
PRATHAM-SPS Jul 25, 2023
4df58aa
replaced generator functionality in upsample_test.py
PRATHAM-SPS Jul 25, 2023
155bade
replaced generator functionality in upsample_test.py
PRATHAM-SPS Jul 25, 2023
c0f6b3f
Removed test-generator dependency from openvino/tools/constraints.txt
PRATHAM-SPS Jul 25, 2023
bcf83eb
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 26, 2023
9a3f0eb
replaced generator functionality in freeze_placeholder_test.py
PRATHAM-SPS Jul 26, 2023
89e6b37
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 26, 2023
a10e6a2
replaced generator functionality in conversion_incorrect_models_test.py
PRATHAM-SPS Jul 26, 2023
8584dcb
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Jul 26, 2023
fbc6b21
Merge branch 'master' into generator_to_unittest
andrei-kochin Aug 4, 2023
01f8f43
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 4, 2023
ec05195
removed test-generator from requirements_dev,constraints.txt,requirem…
PRATHAM-SPS Aug 4, 2023
9a70555
removed import generator from CorrectPaddingsForPadAfterComplex_test.py
PRATHAM-SPS Aug 4, 2023
a69083b
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 8, 2023
d5e27e2
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 10, 2023
a384f76
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 16, 2023
2e4d5d8
Merge branch 'openvinotoolkit:master' into generator_to_unittest
PRATHAM-SPS Aug 18, 2023
64e1fe0
adding test_generator dep..
PRATHAM-SPS Aug 18, 2023
010b74e
revert back constraints.txt
PRATHAM-SPS Aug 18, 2023
4637432
revert back requirements_dev
PRATHAM-SPS Aug 18, 2023
190cbff
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 19, 2023
ecbe9cc
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 21, 2023
214bf56
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 24, 2023
ff539a5
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 28, 2023
7117c03
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 29, 2023
f2136a1
pytest:- MatMulNormalizer_test.py
PRATHAM-SPS Aug 29, 2023
d1ffe22
pytest:- ShuffleChannelPatternOptimization_test.py
PRATHAM-SPS Aug 29, 2023
65aaca8
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 29, 2023
30af8a0
pytest:- import_from_mo_test.py
PRATHAM-SPS Aug 29, 2023
31c211b
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Aug 30, 2023
4450368
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 7, 2023
7f70170
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 13, 2023
d4b0c88
generator_to_pytest interpolate_reshape_test.py
PRATHAM-SPS Sep 13, 2023
7940a5e
pytest:- rank_decomposer_test.py
PRATHAM-SPS Sep 13, 2023
84e5de8
pytest:- size_replacer_test.py
PRATHAM-SPS Sep 13, 2023
42645a6
pytest:- concat_test.py
PRATHAM-SPS Sep 13, 2023
28b0fb1
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 13, 2023
d967c60
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 18, 2023
2595b87
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 20, 2023
d9ba1a2
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 20, 2023
a537b77
pytest:- eltwise_test.py
PRATHAM-SPS Sep 20, 2023
3580886
pytest:- utils_test.py
PRATHAM-SPS Sep 20, 2023
9bc710f
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 20, 2023
385a25f
pytest:- tdnn_component_replacer_test.py
PRATHAM-SPS Sep 20, 2023
18cf6f3
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Sep 20, 2023
4f23c7b
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 20, 2023
6a00399
pytest:- MXFFTToDFT_test.py
PRATHAM-SPS Sep 20, 2023
238aea2
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 20, 2023
7fa9a3a
pytest:- activation_ext_test.py
PRATHAM-SPS Sep 20, 2023
b09654a
pytest:- AttributedSliceToSlice_test.py
PRATHAM-SPS Sep 20, 2023
9f03051
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 22, 2023
d2290c1
pytest:- squeeze_ext_test.py
PRATHAM-SPS Sep 22, 2023
62864b5
pytest:- transpose_ext_test.py
PRATHAM-SPS Sep 22, 2023
28b49b3
pytest:- unsqueeze_ext_test.py
PRATHAM-SPS Sep 22, 2023
3a42c86
pytest:- ObjectDetectionAPI_test.py
PRATHAM-SPS Sep 22, 2023
5131069
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 22, 2023
8093266
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 22, 2023
7f899d1
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 25, 2023
22831e5
pytest:- RFFTRealImagToRFFTSplit_test.py
PRATHAM-SPS Sep 25, 2023
a610b8d
pytest:- TFFFTToDFT_test.py
PRATHAM-SPS Sep 25, 2023
67d0112
pytest:- WhereDecomposition_test.py
PRATHAM-SPS Sep 25, 2023
253389f
pytest:- graph_test.py
PRATHAM-SPS Sep 25, 2023
56c0950
pytest:- ConvertGroupedStridedSlice_test.py
PRATHAM-SPS Sep 25, 2023
0fe8c29
dequantize_linear_resolver_test.py
PRATHAM-SPS Sep 25, 2023
ea8aafc
pytest:- FusedBatchNormTraining_test.py
PRATHAM-SPS Sep 25, 2023
9823c75
pytest:- L2NormFusing_test.py
PRATHAM-SPS Sep 25, 2023
f5a86fe
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 25, 2023
d3d6b1e
pytest:- PreserveRuntimeInfo_test.py
PRATHAM-SPS Sep 25, 2023
095486d
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Sep 25, 2023
1b5d7b7
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 25, 2023
1b5e4d2
pytest:- quantize_linear_resolver_test.py
PRATHAM-SPS Sep 25, 2023
9faa033
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Sep 25, 2023
63cd79b
pytest:- UpsampleToResample_test.py
PRATHAM-SPS Sep 25, 2023
81746e9
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 25, 2023
520493f
pytest:- broadcast_test.py
PRATHAM-SPS Sep 25, 2023
7b267e4
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 25, 2023
61bf6b1
pytest:- cast_test.py
PRATHAM-SPS Sep 25, 2023
8740bbd
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Sep 25, 2023
4221b06
pytest:- Complex_test.py
PRATHAM-SPS Sep 25, 2023
45fe02d
pytest:- dft_signal_size_canonicalization_test.py
PRATHAM-SPS Sep 25, 2023
c01c2c9
pytest:- div_value_propagation_test.py
PRATHAM-SPS Sep 25, 2023
160bd6b
pytest:- einsum_test.py
PRATHAM-SPS Sep 25, 2023
0291246
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 26, 2023
9a4b426
pytest:- expand_dims_test.py
PRATHAM-SPS Sep 26, 2023
d873dcc
pytest:- ExtractImagePatches_test.py
PRATHAM-SPS Sep 26, 2023
fc40c7f
pytest:- eye_test.py
PRATHAM-SPS Sep 26, 2023
5823005
pytest:- gatherelements_test.py
PRATHAM-SPS Sep 26, 2023
1b7a4b2
pytest:- If_test.py
PRATHAM-SPS Sep 26, 2023
f6a4015
pytest:- interpolate_test.py
PRATHAM-SPS Sep 26, 2023
8c63e82
pytest:- MatMul_test.py
PRATHAM-SPS Sep 26, 2023
c27806c
pytest:- MatMul_value_propagation_test.py
PRATHAM-SPS Sep 26, 2023
4d02128
pytest:- one_hot_test.py
PRATHAM-SPS Sep 26, 2023
621cc81
pytest:- ONNXResize11_test.py
PRATHAM-SPS Sep 26, 2023
54ba399
pytest:- ReduceOps_test.py
PRATHAM-SPS Sep 26, 2023
cf9b2dc
pytest:- reshape_test.py
PRATHAM-SPS Sep 26, 2023
18cbc37
scatter_test.py
PRATHAM-SPS Sep 26, 2023
0f0b82a
pytest:- slice_test.py
PRATHAM-SPS Sep 26, 2023
e98d1ed
pytest:- split_test.py
PRATHAM-SPS Sep 26, 2023
b7101ea
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 26, 2023
02e6208
pytest:- squeeze_test.py
PRATHAM-SPS Sep 26, 2023
0d881f8
pytest:- transpose_test.py
PRATHAM-SPS Sep 27, 2023
c39b890
pytest:- unsqueeze_test.py
PRATHAM-SPS Sep 27, 2023
aace7c7
pytest:- upsample_test.py
PRATHAM-SPS Sep 27, 2023
e0d42a3
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 27, 2023
378478e
pytest:- common_test.py
PRATHAM-SPS Sep 27, 2023
3ccac8b
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Sep 27, 2023
db15250
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Oct 8, 2023
a7c9412
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Oct 9, 2023
0a0f054
pytest:- broadcasting_test.py
PRATHAM-SPS Oct 9, 2023
f9a7334
Merge branch 'master' into generator_to_unittest
PRATHAM-SPS Oct 9, 2023
c1af56e
revert back ir_engine_test.py
PRATHAM-SPS Oct 9, 2023
9cbd8e4
Merge branch 'generator_to_unittest' of https://github.com/PRATHAM-SP…
PRATHAM-SPS Oct 9, 2023
4e482c4
revertback :- custom_replacement_config_test.py
PRATHAM-SPS Oct 9, 2023
7b37f5e
revertback:- mo_fallback_test_actual.py
PRATHAM-SPS Oct 9, 2023
d18228c
revertback:- mo_fallback_test_tf_fe.py
PRATHAM-SPS Oct 9, 2023
976d4b7
pytest:- layer_to_class_test.py
PRATHAM-SPS Oct 9, 2023
f469981
revertback:- conversion_basic_models_test.py
PRATHAM-SPS Oct 9, 2023
be0f401
revertback:- conversion_incorrect_models_test.py
PRATHAM-SPS Oct 9, 2023
3914cb6
revertback:- conversion_with_layout_test
PRATHAM-SPS Oct 9, 2023
2daf1e3
revertback:- constraints.txt
PRATHAM-SPS Oct 9, 2023
0773b2f
revertback:- loader_test.py
PRATHAM-SPS Oct 9, 2023
62cc056
pytest:- Pack_test.py
PRATHAM-SPS Oct 9, 2023
b07a587
revertback:- freeze_placeholder_test.py
PRATHAM-SPS Oct 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions tools/mo/unit_tests/mo/back/MatMulNormalizer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from argparse import Namespace

import numpy as np
from generator import generate, generator
import pytest

from openvino.tools.mo.back.MatMulNormalizer import SmartReshape_HC_Reshape_MatMul, PullTransposeThroughFQUp
from openvino.tools.mo.ops.MatMul import MatMul
Expand All @@ -19,10 +19,9 @@
from unit_tests.utils.graph import regular_op_with_empty_data as op_with_empty_data


@generator
class SmartReshape_HC_Reshape_MatMulTest(unittest.TestCase):
@generate(
*[
class TestSmartReshape_HC_Reshape_MatMulTest():
@pytest.mark.parametrize("in1_shape, in2_shape, reshape_pattern, transpose_a, transpose_b, updated_pattern",
[
([1, 20, 30], [30, 40], [20, -1], False, False, [-1, 30]),
([1, 20, 30], [40, 30], [20, -1], False, True, [-1, 30]),
([1, 30, 20], [30, 40], [-1, 20], True, False, [30, -1]),
Expand Down Expand Up @@ -59,9 +58,9 @@ def test_reshape_on_the_A_input(self,
graph_ref.clean_up()

(flag, resp) = compare_graphs(graph, graph_ref, 'output', check_op_attrs=True)
self.assertTrue(flag, resp)
assert flag, resp

@generate(*[
@pytest.mark.parametrize("in1_shape, in2_shape, reshape_pattern, transpose_a, transpose_b, updated_pattern",[
([20, 30], [1, 30, 40], [-1, 40], False, False, [30, -1]),
([20, 30], [1, 40, 30], [40, -1], False, True, [-1, 30]),
([30, 20], [1, 30, 40], [-1, 40], True, False, [30, -1]),
Expand Down Expand Up @@ -97,7 +96,7 @@ def test_reshape_on_the_B_input(self,
graph_ref.clean_up()

(flag, resp) = compare_graphs(graph, graph_ref, 'output', check_op_attrs=True)
self.assertTrue(flag, resp)
assert flag, resp


class FQTransposePullerTest(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import unittest
from argparse import Namespace

from generator import generate, generator
import pytest

from openvino.tools.mo.back.ShuffleChannelPatternOptimization import ShuffleChannelFusion, DepthToSpaceFusion
from openvino.tools.mo.ops.depth_to_space import DepthToSpaceOp
Expand All @@ -18,8 +16,7 @@
valued_const_with_data, connect, regular_op_with_empty_data


@generator
class ShuffleChannelFusionTest(unittest.TestCase):
class TestShuffleChannelFusionTest():
@staticmethod
def get_graphs(input_shape, reshape_0_pattern, order, reshape_1_pattern, group):
nodes = {
Expand Down Expand Up @@ -67,7 +64,7 @@ def get_graphs(input_shape, reshape_0_pattern, order, reshape_1_pattern, group):

return graph, graph_ref

@generate(*[
@pytest.mark.parametrize("input_shape, reshape_0_pattern, order, reshape_1_pattern, group",[
([1, 512, 7, 6], [1, 2, 256, 7, 6], [0, 2, 1, 3, 4], [1, 512, 7, 6], 2),
([2, 512, 7, 6], [2, 2, 256, 7, 6], [0, 2, 1, 3, 4], [2, 512, 7, 6], 2),
([1, 200, 200, 200], [1, 50, 4, 200, 200], [0, 2, 1, 3, 4], [1, 200, 200, 200], 50),
Expand All @@ -77,11 +74,11 @@ def test_fusion(self, input_shape, reshape_0_pattern, order, reshape_1_pattern,
ShuffleChannelFusion().find_and_replace_pattern(graph)
graph.clean_up()
(flag, resp) = compare_graphs(graph, graph_ref, 'output')
self.assertTrue(flag, resp)
self.assertTrue(len(graph.get_op_nodes(name='final_reshape')) == 1 and
graph.get_op_nodes(name='final_reshape')[0].op == 'ShuffleChannels')
assert flag, resp
assert len(graph.get_op_nodes(name='final_reshape')) == 1 and \
graph.get_op_nodes(name='final_reshape')[0].op == 'ShuffleChannels'

@generate(*[
@pytest.mark.parametrize("input_shape, reshape_0_pattern, order, reshape_1_pattern, group",[
([1, 512, 7, 6], [0, 2, 256, 7, 6], [0, 2, 1, 3, 4], [1, 512, 7, 6], 2),
([1, 512, 7, 6], [1, 2, 256, 7, 6], [0, 2, 1, 4, 3], [1, 512, 7, 6], 2),
([1, 512, 7, 6], [1, 2, 256, 7, 6], [0, 2, 1, 3, 4], [-1, 512, 7, 6], 2),
Expand All @@ -91,11 +88,10 @@ def test_negative(self, input_shape, reshape_0_pattern, order, reshape_1_pattern
graph_ref = graph.copy()
ShuffleChannelFusion().find_and_replace_pattern(graph)
(flag, resp) = compare_graphs(graph, graph_ref, 'output')
self.assertTrue(flag, resp)
assert flag, resp


@generator
class DepthToSpaceFusionTest(unittest.TestCase):
class TestDepthToSpaceFusionTest():
@staticmethod
def get_graphs(input_shape, reshape_0_pattern, order, reshape_1_pattern, block_size):
nodes = {
Expand Down Expand Up @@ -145,7 +141,7 @@ def get_graphs(input_shape, reshape_0_pattern, order, reshape_1_pattern, block_s

return graph, graph_ref

@generate(*[
@pytest.mark.parametrize("input_shape, reshape_0_pattern, order, reshape_1_pattern, block_size",[
([1, 512, 7, 6], [1, 2, 2, 128, 7, 6], [0, 1, 4, 2, 5, 3], [1, 128, 14, 12], 2),
([2, 512, 7, 6], [2, 2, 2, 128, 7, 6], [0, 1, 4, 2, 5, 3], [2, 128, 14, 12], 2),
([1, 200, 200, 200], [1, 2, 2, 50, 200, 200], [0, 1, 4, 2, 5, 3], [1, 50, 400, 400], 2),
Expand All @@ -155,11 +151,11 @@ def test_fusion(self, input_shape, reshape_0_pattern, order, reshape_1_pattern,
DepthToSpaceFusion().find_and_replace_pattern(graph)
graph.clean_up()
(flag, resp) = compare_graphs(graph, graph_ref, 'output')
self.assertTrue(flag, resp)
self.assertTrue(len(graph.get_op_nodes(name='final_reshape')) == 1 and
graph.get_op_nodes(name='final_reshape')[0].op == 'DepthToSpace')
assert flag, resp
assert len(graph.get_op_nodes(name='final_reshape')) == 1 and \
graph.get_op_nodes(name='final_reshape')[0].op == 'DepthToSpace'

@generate(*[
@pytest.mark.parametrize("input_shape, reshape_0_pattern, order, reshape_1_pattern, group",[
([1, 512, 7, 6], [0, 2, 2, 128, 7, 6], [0, 1, 4, 2, 5, 3], [1, 128, 14, 12], 2),
([2, 512, 7, 6], [2, 2, 2, 128, 7, 6], [0, 1, 4, 2, 5, 3], [-1, 128, 14, 12], 2),
([1, 200, 200, 200], [1, 2, 2, 50, 200, 200], [0, 1, 4, 2, 3, 5], [1, 50, 400, 400], 2),
Expand All @@ -169,4 +165,4 @@ def test_negative(self, input_shape, reshape_0_pattern, order, reshape_1_pattern
graph_ref = graph.copy()
DepthToSpaceFusion().find_and_replace_pattern(graph)
(flag, resp) = compare_graphs(graph, graph_ref, 'output')
self.assertTrue(flag, resp)
assert flag, resp
8 changes: 3 additions & 5 deletions tools/mo/unit_tests/mo/convert/import_from_mo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
import tempfile
from pathlib import Path

from generator import generator, generate
import pytest
from openvino.runtime import serialize

from openvino.tools.mo import InputCutInfo, LayoutMap
from openvino.tools.mo.utils.ir_engine.ir_engine import IREngine
from unit_tests.mo.unit_test_with_mocked_telemetry import UnitTestWithMockedTelemetry
from unit_tests.utils.graph import build_graph
from utils import create_onnx_model, save_to_onnx


@generator
class ConvertImportMOTest(UnitTestWithMockedTelemetry):
class TestConvertImportMOTest():
test_directory = os.path.dirname(os.path.realpath(__file__))

@staticmethod
Expand Down Expand Up @@ -79,7 +77,7 @@ def create_model_ref():
])
return ref_graph

@generate(*[
@pytest.mark.parametrize("params",[
({}),
({'input': InputCutInfo(name='LeakyRelu_out', shape=None, type=None, value=None)}),
({'layout': {'input': LayoutMap(source_layout='NCHW', target_layout='NHWC')}}),
Expand Down
2 changes: 0 additions & 2 deletions tools/mo/unit_tests/mo/convert/meta_data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import tempfile
from pathlib import Path

from generator import generator
from openvino.runtime import get_version as get_rt_version
from openvino.runtime import serialize

Expand All @@ -18,7 +17,6 @@
from openvino.tools.mo.utils.ir_reader.restore_graph import restore_graph_from_ir, save_restored_graph


@generator
class MetaDataTest(UnitTestWithMockedTelemetry):
test_directory = os.path.dirname(os.path.realpath(__file__))

Expand Down
11 changes: 5 additions & 6 deletions tools/mo/unit_tests/mo/front/Pack_test.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import unittest

import numpy as np
from generator import generator, generate
import pytest

from openvino.tools.mo.front.Pack import Pack
from openvino.tools.mo.front.common.partial_infer.utils import int64_array
Expand Down Expand Up @@ -34,10 +33,10 @@
}


@generator
class PackTest(unittest.TestCase):
class TestPackTest():

@generate(*[(2, 2, 0), (3, 3, 0), (4, 4, 0), (4, 4, 1), (4, 1, 0), (4, 1, 1)])
@pytest.mark.parametrize("num_inputs, num_placeholders, axis", [(2, 2, 0), (3, 3, 0), (4, 4, 0),
(4, 4, 1), (4, 1, 0), (4, 1, 1)])
def test_pack_test_all(self, num_inputs: int, num_placeholders: int, axis: list):

graph_edges = []
Expand Down Expand Up @@ -79,4 +78,4 @@ def test_pack_test_all(self, num_inputs: int, num_placeholders: int, axis: list)
replacer.find_and_replace_pattern(graph)

(flag, resp) = compare_graphs(graph, graph_ref, 'last', check_op_attrs=True)
self.assertTrue(flag, resp)
assert flag, resp
20 changes: 10 additions & 10 deletions tools/mo/unit_tests/mo/front/common/partial_infer/concat_test.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import unittest
import pytest

import numpy as np
from generator import generate, generator

from openvino.tools.mo.front.common.partial_infer.concat import concat_infer
from openvino.tools.mo.front.common.partial_infer.utils import shape_array, dynamic_dimension_value, strict_compare_tensors
Expand All @@ -20,9 +19,9 @@
}


@generator
class TestConcatPartialInfer(unittest.TestCase):
@generate(*[([1, 3, 227, 227], [1, 3, 220, 227], [1, 3, 447, 227], 2),
class TestConcatPartialInfer():
@pytest.mark.parametrize("shape1, shape2, output_shape, axis",[([1, 3, 227, 227], [1, 3, 220, 227],
[1, 3, 447, 227], 2),
([1, 3, 227, 227], [1, 3, 227, 220], [1, 3, 227, 447], -1),
([1, 3, dynamic_dimension_value, 227], [1, dynamic_dimension_value, 227, 220], [1, 3, 227, 447], -1),
([1, 3, 10, 227], [1, 3, 10, dynamic_dimension_value], [1, 3, 10, dynamic_dimension_value], -1),
Expand All @@ -43,9 +42,10 @@ def test_concat_infer(self, shape1, shape2, output_shape, axis):
concat_node = Node(graph, 'concat')
concat_infer(concat_node)
res_shape = graph.node['node_3']['shape']
self.assertTrue(strict_compare_tensors(output_shape, res_shape))
assert strict_compare_tensors(output_shape, res_shape)

@generate(*[(shape_array([1]), shape_array([4]), shape_array([1, 4]), 0),
@pytest.mark.parametrize("value1, value2, output_value, axis",[(shape_array([1]),
shape_array([4]), shape_array([1, 4]), 0),
(shape_array([dynamic_dimension_value]), shape_array([4]),
shape_array([dynamic_dimension_value, 4]), -1),
])
Expand All @@ -65,7 +65,7 @@ def test_concat_value_infer(self, value1, value2, output_value, axis):
concat_node = Node(graph, 'concat')
concat_infer(concat_node)
res_value = graph.node['node_3']['value']
self.assertTrue(strict_compare_tensors(output_value, res_value))
assert strict_compare_tensors(output_value, res_value)

def test_concat_infer_not_match(self):
graph = build_graph(nodes_attributes,
Expand All @@ -81,7 +81,7 @@ def test_concat_infer_not_match(self):
})

concat_node = Node(graph, 'concat')
with self.assertRaisesRegex(Error, "Concat input shapes do not match for node*"):
with pytest.raises(Error, match="Concat input shapes do not match for node*"):
concat_infer(concat_node)

def test_concat_infer_no_shape(self):
Expand All @@ -98,5 +98,5 @@ def test_concat_infer_no_shape(self):
})

concat_node = Node(graph, 'concat')
with self.assertRaisesRegex(Error, "One of the input shapes is not defined for node *"):
with pytest.raises(Error, match="One of the input shapes is not defined for node *"):
concat_infer(concat_node)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import unittest

import numpy as np
from generator import generator, generate
import pytest

from openvino.tools.mo.front.common.partial_infer.eltwise import eltwise_infer, eltwise_reverse_infer
from openvino.tools.mo.front.common.partial_infer.utils import shape_array, strict_compare_tensors, \
Expand All @@ -24,9 +24,9 @@
}


@generator
class TestEltwiseInfer(unittest.TestCase):
@generate(*[

class TestEltwiseInfer():
@pytest.mark.parametrize("value1, shape1, value2, shape2, shape_infer, exp_value, exp_shape",[
(np.array(2), [], np.array(3), [], lambda a, b: np.multiply(a, b), np.array(6), []),
(np.array(2), [], np.array(3), [], lambda a, b: np.maximum(a, b), np.array(3), []),
(np.array(2), [], np.array(3), [], lambda a, b: np.add(a, b), np.array(5), []),
Expand Down Expand Up @@ -67,8 +67,8 @@ def test_eltwise_infer(self, value1, shape1, value2, shape2, shape_infer, exp_va
res_shape = graph.node['node_3']['shape']
res_value = eltwise_node.out_node().value
if exp_value is not None:
self.assertTrue(strict_compare_tensors(res_value, shape_array(exp_value)))
self.assertTrue(strict_compare_tensors(res_shape, shape_array(exp_shape)))
assert strict_compare_tensors(res_value, shape_array(exp_value))
assert strict_compare_tensors(res_shape, shape_array(exp_shape))

def test_eltwise_infer_none_val(self):
graph = build_graph(nodes_attributes,
Expand All @@ -89,9 +89,9 @@ def test_eltwise_infer_none_val(self):
res_shape = graph.node['node_3']['shape']
res_value = eltwise_node.out_node().value
for i in range(0, len(exp_shape)):
self.assertEqual(exp_shape[i], res_shape[i])
assert exp_shape[i] == res_shape[i]

self.assertIsNone(res_value)
assert res_value is None

def test_eltwise_infer_none_min_max(self):
graph = build_graph(nodes_attributes,
Expand All @@ -107,7 +107,7 @@ def test_eltwise_infer_none_min_max(self):
graph.graph['layout'] = 'NCHW'
eltwise_node = Node(graph, 'eltw_1')

with self.assertRaisesRegex(Error, 'Input shapes mismatch*'):
with pytest.raises(Error, match='Input shapes mismatch*'):
eltwise_infer(eltwise_node)


Expand Down
Loading
Loading