Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[Layer Tests] Remove legacy frontend from layer tests (#30214)

Roman Kazantsevd60aa19be241
diff --git a/tests/layer_tests/common/layer_test_class.py b/tests/layer_tests/common/layer_test_class.py
index 633474f630f..7b0c430c73b 100644
--- a/tests/layer_tests/common/layer_test_class.py
+++ b/tests/layer_tests/common/layer_test_class.py
@@ -25,55 +25,38 @@ class CommonLayerTest:
" the specific framework")
def _test(self, framework_model, ref_net, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend=False, infer_timeout=60, enabled_transforms='',
+ infer_timeout=60, enabled_transforms='',
disabled_transforms='', **kwargs):
"""
:param enabled_transforms/disabled_transforms: string with idxs of transforms that should be enabled/disabled.
Example: "transform_1,transform_2"
"""
model_path = self.produce_model_path(framework_model=framework_model, save_path=temp_dir)
- self.use_legacy_frontend = use_legacy_frontend
# TODO Pass environment variables via subprocess environment
os.environ['MO_ENABLED_TRANSFORMS'] = enabled_transforms
os.environ['MO_DISABLED_TRANSFORMS'] = disabled_transforms
compress_to_fp16 = False if precision == 'FP32' else True
- if use_legacy_frontend:
- mo_params = {self.input_model_key: model_path,
- "output_dir": temp_dir,
- "compress_to_fp16": compress_to_fp16,
- "model_name": 'model'}
-
- if 'input_shapes' in kwargs and len(kwargs['input_shapes']):
- input_shapes_str = []
- for ishape in kwargs['input_shapes']:
- input_shapes_str.append('[' + ','.join([str(i) for i in ishape]) + ']')
- mo_params.update(dict(input_shape=','.join(input_shapes_str)))
-
- if 'input_names' in kwargs and len(kwargs['input_names']):
- mo_params.update(dict(input=','.join(kwargs['input_names'])))
- mo_params["use_legacy_frontend"] = True
- else:
- # pack input parameters for convert_model of OVC
- # that are different from MO
- mo_params = {"input_model": model_path,
- "output_dir": temp_dir,
- "compress_to_fp16": compress_to_fp16
- }
-
- if 'input_shapes' in kwargs and 'input_names' in kwargs:
- input_shapes = kwargs['input_shapes']
- input_names = kwargs['input_names']
- assert len(input_shapes) == len(input_names)
- input_dict = {}
- for input_name, input_shape in zip(input_names, input_shapes):
- input_dict[input_name] = input_shape
- mo_params.update(dict(input=input_dict))
- elif 'input_names' in kwargs:
- mo_params.update(dict(input=kwargs['input_names']))
- elif 'input_shapes' in kwargs:
- mo_params.update(dict(input=kwargs['input_shapes']))
+ # pack input parameters for convert_model of OVC
+ # that are different from MO
+ mo_params = {"input_model": model_path,
+ "output_dir": temp_dir,
+ "compress_to_fp16": compress_to_fp16
+ }
+
+ if 'input_shapes' in kwargs and 'input_names' in kwargs:
+ input_shapes = kwargs['input_shapes']
+ input_names = kwargs['input_names']
+ assert len(input_shapes) == len(input_names)
+ input_dict = {}
+ for input_name, input_shape in zip(input_names, input_shapes):
+ input_dict[input_name] = input_shape
+ mo_params.update(dict(input=input_dict))
+ elif 'input_names' in kwargs:
+ mo_params.update(dict(input=kwargs['input_names']))
+ elif 'input_shapes' in kwargs:
+ mo_params.update(dict(input=kwargs['input_shapes']))
exit_code, stderr = generate_ir_python_api(**mo_params)
@@ -99,8 +82,7 @@ class CommonLayerTest:
ie_engine = InferAPI(model=path_to_xml,
weights=path_to_bin,
- device=ie_device,
- use_legacy_frontend=use_legacy_frontend)
+ device=ie_device)
# Prepare feed dict
if 'kwargs_to_prepare_input' in kwargs and kwargs['kwargs_to_prepare_input']:
inputs_dict = self._prepare_input(ie_engine.get_inputs_info(precision),
diff --git a/tests/layer_tests/common/layer_utils.py b/tests/layer_tests/common/layer_utils.py
index e4826d7d8d3..9f05456d2d9 100644
--- a/tests/layer_tests/common/layer_utils.py
+++ b/tests/layer_tests/common/layer_utils.py
@@ -42,12 +42,11 @@ class BaseInfer:
class InferAPI(BaseInfer):
- def __init__(self, model, weights, device, use_legacy_frontend):
+ def __init__(self, model, weights, device):
super().__init__('OpenVINO')
self.device = device
self.model = model
self.weights = weights
- self.use_legacy_frontend = use_legacy_frontend
def fw_infer(self, input_data, config=None):
print("OpenVINO version: {}".format(ie2_get_version()))
@@ -69,14 +68,8 @@ class InferAPI(BaseInfer):
# For the new frontend we make this the right way because
# we know that tensor can have several names due to fusing
# and one of them the framework uses
- if not self.use_legacy_frontend:
- for tensor_name in out_obj.get_names():
- result[tensor_name] = out_tensor
- else:
- for tensor_name in out_obj.get_names():
- result[tensor_name] = out_tensor
- tensor_name = tensor_name.split(':')[0]
- result[tensor_name] = out_tensor
+ for tensor_name in out_obj.get_names():
+ result[tensor_name] = out_tensor
if "exec_net" in locals():
del exec_net
diff --git a/tests/layer_tests/common/tf2_layer_test_class.py b/tests/layer_tests/common/tf2_layer_test_class.py
index bfe5099b14d..d2bc265cbb0 100644
--- a/tests/layer_tests/common/tf2_layer_test_class.py
+++ b/tests/layer_tests/common/tf2_layer_test_class.py
@@ -33,43 +33,14 @@ class CommonTF2LayerTest(CommonLayerTest):
return self.get_tf2_keras_results(inputs_dict, model_path)
else:
# get results from tflite
- return get_tflite_results(self.use_legacy_frontend, inputs_dict, model_path)
+ return get_tflite_results(inputs_dict, model_path)
def get_tf2_keras_results(self, inputs_dict, model_path):
import tensorflow as tf
result = dict()
- if not self.use_legacy_frontend:
- imported = tf.saved_model.load(model_path)
- f = imported.signatures["serving_default"]
- result = f(**inputs_dict)
- else:
- # load a model
- loaded_model = tf.keras.models.load_model(model_path, custom_objects=None)
- # prepare input
- input_for_model = []
- # order inputs based on input names in tests
- # since TF2 Keras model accepts a list of tensors for prediction
- for input_name in sorted(inputs_dict):
- input_value = inputs_dict[input_name]
- input_for_model.append(input_value)
- if len(input_for_model) == 1:
- input_for_model = input_for_model[0]
-
- # infer by original framework and complete a dictionary with reference results
- tf_res_list = loaded_model(input_for_model)
- if tf.is_tensor(tf_res_list):
- tf_res_list = [tf_res_list]
- else:
- # in this case tf_res_list is a list of the single tuple of outputs
- tf_res_list = tf_res_list[0]
-
- for ind, tf_res in enumerate(tf_res_list):
- if ind == 0:
- output = "Identity"
- else:
- output = "Identity_{}".format(ind)
- tf_res = tf_res.numpy()
- result[output] = tf_res
+ imported = tf.saved_model.load(model_path)
+ f = imported.signatures["serving_default"]
+ result = f(**inputs_dict)
return result
diff --git a/tests/layer_tests/common/tf_layer_test_class.py b/tests/layer_tests/common/tf_layer_test_class.py
index 4b62b2467f2..77c011a7566 100644
--- a/tests/layer_tests/common/tf_layer_test_class.py
+++ b/tests/layer_tests/common/tf_layer_test_class.py
@@ -37,8 +37,7 @@ class CommonTFLayerTest:
graph_summary = summarize_graph(model_path=model_path)
outputs_list = graph_summary["outputs"]
fw_outputs_list = [out + ":0" for out in outputs_list]
- if not self.use_legacy_frontend:
- outputs_list = fw_outputs_list
+ outputs_list = fw_outputs_list
tf.compat.v1.reset_default_graph()
@@ -65,50 +64,33 @@ class CommonTFLayerTest:
return self.get_tf_results(inputs_dict, model_path)
else:
# get results from tflite
- return get_tflite_results(self.use_legacy_frontend, inputs_dict, model_path)
+ return get_tflite_results(inputs_dict, model_path)
def _test(self, framework_model, ref_net, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend=False, infer_timeout=60, **kwargs):
+ infer_timeout=60, **kwargs):
model_path = self.produce_model_path(framework_model=framework_model, save_path=temp_dir)
- self.use_legacy_frontend = use_legacy_frontend
compress_to_fp16 = False if precision == 'FP32' else True
- if use_legacy_frontend:
- mo_params = {self.input_model_key: model_path,
- "output_dir": temp_dir,
- "compress_to_fp16": compress_to_fp16,
- "model_name": 'model'}
-
- if 'input_shapes' in kwargs and len(kwargs['input_shapes']):
- input_shapes_str = []
- for ishape in kwargs['input_shapes']:
- input_shapes_str.append('[' + ','.join([str(i) for i in ishape]) + ']')
- mo_params.update(dict(input_shape=','.join(input_shapes_str)))
-
- if 'input_names' in kwargs and len(kwargs['input_names']):
- mo_params.update(dict(input=','.join(kwargs['input_names'])))
- mo_params["use_legacy_frontend"] = True
- else:
- # pack input parameters for convert_model of OVC
- # that are different from MO
- mo_params = {"input_model": model_path,
- "output_dir": temp_dir,
- "compress_to_fp16": compress_to_fp16
- }
-
- if 'input_shapes' in kwargs and 'input_names' in kwargs:
- input_shapes = kwargs['input_shapes']
- input_names = kwargs['input_names']
- assert len(input_shapes) == len(input_names)
- input_dict = {}
- for input_name, input_shape in zip(input_names, input_shapes):
- input_dict[input_name] = input_shape
- mo_params.update(dict(input=input_dict))
- elif 'input_names' in kwargs:
- mo_params.update(dict(input=kwargs['input_names']))
- elif 'input_shapes' in kwargs:
- mo_params.update(dict(input=kwargs['input_shapes']))
+ # pack input parameters for convert_model of OVC
+ # that are different from MO
+ mo_params = {"input_model": model_path,
+ "output_dir": temp_dir,
+ "compress_to_fp16": compress_to_fp16
+ }
+
+ if 'input_shapes' in kwargs and 'input_names' in kwargs:
+ input_shapes = kwargs['input_shapes']
+ input_names = kwargs['input_names']
+ assert len(input_shapes) == len(input_names)
+ input_dict = {}
+ for input_name, input_shape in zip(input_names, input_shapes):
+ input_dict[input_name] = input_shape
+ mo_params.update(dict(input=input_dict))
+ elif 'input_names' in kwargs:
+ mo_params.update(dict(input=kwargs['input_names']))
+ elif 'input_shapes' in kwargs:
+ mo_params.update(dict(input=kwargs['input_shapes']))
exit_code, stderr = generate_ir_python_api(**mo_params)
assert not exit_code, (
@@ -125,8 +107,7 @@ class CommonTFLayerTest:
ie_engine = InferAPI(model=path_to_xml,
weights=path_to_bin,
- device=ie_device,
- use_legacy_frontend=use_legacy_frontend)
+ device=ie_device)
# Prepare feed dict
if 'kwargs_to_prepare_input' in kwargs and kwargs['kwargs_to_prepare_input']:
inputs_dict = self._prepare_input(ie_engine.get_inputs_info(precision),
diff --git a/tests/layer_tests/common/tflite_layer_test_class.py b/tests/layer_tests/common/tflite_layer_test_class.py
index 25b7667d20e..48b8b4c509f 100644
--- a/tests/layer_tests/common/tflite_layer_test_class.py
+++ b/tests/layer_tests/common/tflite_layer_test_class.py
@@ -44,7 +44,7 @@ class TFLiteLayerTest(CommonLayerTest):
return self.model_path
def get_framework_results(self, inputs_dict, model_path):
- return get_tflite_results(self.use_legacy_frontend, inputs_dict, model_path)
+ return get_tflite_results(inputs_dict, model_path)
def check_tflite_model_has_only_allowed_ops(self):
if self.allowed_ops is None:
@@ -77,4 +77,4 @@ class TFLiteLayerTest(CommonLayerTest):
model = self.make_model(params)
self.model_path = self.produce_tflite_model(model, temp_dir)
self.check_tflite_model_has_only_allowed_ops()
- super()._test(model, None, ie_device, precision, None, temp_dir, False, **params)
+ super()._test(model, None, ie_device, precision, None, temp_dir, **params)
diff --git a/tests/layer_tests/common/utils/tflite_utils.py b/tests/layer_tests/common/utils/tflite_utils.py
index 5754e063a7f..a8dfd5346f5 100644
--- a/tests/layer_tests/common/utils/tflite_utils.py
+++ b/tests/layer_tests/common/utils/tflite_utils.py
@@ -1,3 +1,6 @@
+# Copyright (C) 2018-2025 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+
import itertools
import os
import warnings
@@ -80,7 +83,7 @@ def save_pb_to_tflite(pb_model):
return tflite_model_path
-def get_tflite_results(use_legacy_frontend, inputs_dict, model_path):
+def get_tflite_results(inputs_dict, model_path):
interpreter = tf.compat.v1.lite.Interpreter(model_path=model_path)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
diff --git a/tests/layer_tests/conftest.py b/tests/layer_tests/conftest.py
index ff7abe5ad3f..942e44a8b98 100644
--- a/tests/layer_tests/conftest.py
+++ b/tests/layer_tests/conftest.py
@@ -60,11 +60,6 @@ def pytest_addoption(parser):
default=11,
action="store",
help="Version of IR to generate by Model Optimizer")
- parser.addoption(
- "--use_legacy_frontend",
- required=False,
- action="store_true",
- help="Use Model Optimizer with legacy FrontEnd")
parser.addoption(
"--tflite",
required=False,
@@ -78,12 +73,6 @@ def ir_version(request):
return request.config.getoption('ir_version')
[email protected](scope="session")
-def use_legacy_frontend(request):
- """Fixture function for command-line option."""
- return request.config.getoption('use_legacy_frontend')
-
-
@pytest.fixture(scope="session")
def tflite(request):
"""Fixture function for command-line option."""
diff --git a/tests/layer_tests/onnx_tests/test_roi_align.py b/tests/layer_tests/onnx_tests/test_roi_align.py
index b0e6064ac25..a86cdfb7e98 100644
--- a/tests/layer_tests/onnx_tests/test_roi_align.py
+++ b/tests/layer_tests/onnx_tests/test_roi_align.py
@@ -147,5 +147,4 @@ class TestROIAlign(OnnxRuntimeLayerTest):
if ie_device != "GPU":
self._test(*self.create_net(**params, ir_version=ir_version, onnx_version=10), ie_device, precision,
ir_version,
- temp_dir=temp_dir,
- use_legacy_frontend=True)
+ temp_dir=temp_dir)
diff --git a/tests/layer_tests/ovc_python_api_tests/test_complex_params.py b/tests/layer_tests/ovc_python_api_tests/test_complex_params.py
index f1b166b8534..3ead8ff1ca1 100644
--- a/tests/layer_tests/ovc_python_api_tests/test_complex_params.py
+++ b/tests/layer_tests/ovc_python_api_tests/test_complex_params.py
@@ -89,7 +89,7 @@ class TestComplexParams(CommonMOConvertTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_mo_convert_tf_model_single_input_output(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
tf_net_path = self.create_tf_model_single_input_output(temp_dir)
test_params = params['params_test']
@@ -198,7 +198,7 @@ class TestComplexParams(CommonMOConvertTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_ovc_convert_model_with_comma_in_names(self, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
onnx_net_path = self.create_onnx_model_with_comma_in_names(temp_dir)
ref_model = self.create_ref_graph_with_comma_in_names()
test_params = {'input_model': onnx_net_path, 'output': 'relu_1,relu_2'}
@@ -208,7 +208,7 @@ class TestComplexParams(CommonMOConvertTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_ovc_convert_model_with_several_output(self, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
onnx_net_path = self.create_onnx_model_with_several_outputs(temp_dir)
convert_model_params = {'input_model': onnx_net_path, 'output': ['Relu_1_data', 'concat']}
cli_tool_params = {'input_model': onnx_net_path, 'output': 'Relu_1_data,concat'}
@@ -218,7 +218,7 @@ class TestComplexParams(CommonMOConvertTest):
@pytest.mark.nightly
@pytest.mark.precommit
- def test_non_numpy_types(self, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_non_numpy_types(self, ie_device, precision, ir_version, temp_dir):
import tensorflow as tf
def func(a, b):
return [a, b]
diff --git a/tests/layer_tests/ovc_python_api_tests/test_extensions.py b/tests/layer_tests/ovc_python_api_tests/test_extensions.py
index c16916a81b2..2a099d63583 100644
--- a/tests/layer_tests/ovc_python_api_tests/test_extensions.py
+++ b/tests/layer_tests/ovc_python_api_tests/test_extensions.py
@@ -113,7 +113,7 @@ class TestExtensions(CommonMOConvertTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_mo_convert_extensions(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
onnx_net_path = self.create_onnx_model(temp_dir)
test_params = params['params_test']
diff --git a/tests/layer_tests/ovc_python_api_tests/test_paddle.py b/tests/layer_tests/ovc_python_api_tests/test_paddle.py
index c7c4d0843c7..dab939df6c7 100644
--- a/tests/layer_tests/ovc_python_api_tests/test_paddle.py
+++ b/tests/layer_tests/ovc_python_api_tests/test_paddle.py
@@ -130,7 +130,7 @@ class TestPaddleConversionParams(CommonMOConvertTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
def test_conversion_params(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
fw_model = params['fw_model']
test_params = params['params_test']
ref_model = params['ref_model']
diff --git a/tests/layer_tests/ovc_python_api_tests/test_pytorch.py b/tests/layer_tests/ovc_python_api_tests/test_pytorch.py
index f6440d924fc..9bd9ccda103 100644
--- a/tests/layer_tests/ovc_python_api_tests/test_pytorch.py
+++ b/tests/layer_tests/ovc_python_api_tests/test_pytorch.py
@@ -1167,7 +1167,7 @@ class TestMoConvertPyTorch(CommonMOConvertTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_mo_import_from_memory(self, create_model, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
fw_model, graph_ref, mo_params = eval(create_model)(temp_dir)
test_params = {'input_model': fw_model}
@@ -1183,7 +1183,7 @@ class TestMoConvertPyTorch(CommonMOConvertTest):
@pytest.mark.precommit
def test_mo_import_from_memory_negative(self, create_model, exception,
ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
fw_model, graph_ref, mo_params = eval(create_model)(temp_dir)
test_params = {'input_model': fw_model}
@@ -1341,7 +1341,7 @@ class TestPytorchConversionParams(CommonMOConvertTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
def test_conversion_params(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
fw_model = params['fw_model']
test_params = params['params_test']
ref_model = params['ref_model']
@@ -1413,7 +1413,7 @@ class TestConvertModelForPyTorchModelOnDisk(CommonMOConvertTest):
@pytest.mark.precommit
def test_convert_model_for_pytorch_model_on_disk(self, create_model, model_format,
ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
fw_model, graph_ref, ovc_params = eval(create_model)(temp_dir)
with tempfile.NamedTemporaryFile(delete=False) as tmpfile:
@@ -1494,7 +1494,7 @@ class TestOVCForExportedProgramOnDisk(CommonMOConvertTest):
@pytest.mark.precommit
def test_ovc_for_exported_program_on_disk(self, create_model,
ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
fw_model, graph_ref, ovc_params = eval(create_model)(temp_dir)
example_input = ovc_params['example_input']
del ovc_params['example_input']
diff --git a/tests/layer_tests/ovc_python_api_tests/test_tf.py b/tests/layer_tests/ovc_python_api_tests/test_tf.py
index d31a7e98315..e48c441e984 100644
--- a/tests/layer_tests/ovc_python_api_tests/test_tf.py
+++ b/tests/layer_tests/ovc_python_api_tests/test_tf.py
@@ -1097,7 +1097,7 @@ class TestTFConversionParams(CommonMOConvertTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
def test_mo_convert_tf_model(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
fw_model_dict = params['fw_model']
ref_model_dict = params['ref_model']
test_params = params['params_test']
diff --git a/tests/layer_tests/tensorflow2_keras_tests/conftest.py b/tests/layer_tests/tensorflow2_keras_tests/conftest.py
index 130c19fdd2c..c465bcb6987 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/conftest.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/conftest.py
@@ -14,20 +14,3 @@ def pytest_generate_tests(metafunc):
params = get_params()
setattr(metafunc.cls, 'tflite', metafunc.config.getoption('tflite'))
metafunc.parametrize(test_gen_attrs_names, params, scope="function")
-
-
[email protected](scope='session', autouse=True)
-def rename_tf_fe_libs(request):
- try:
- import openvino as rt
- # path below is built considering the use of wheels
- openvino_lib_path = Path(rt.__file__).parent.parent / 'libs'
- except ImportError as err:
- raise Exception("Please set PYTHONPATH to OpenVINO Python or install wheel package") from err
-
- tf_fe_lib_names = ['libopenvino_tensorflow_fe', 'libopenvino_tensorflow_frontend']
-
- if request.config.getoption('use_legacy_frontend'):
- log.info('Using new frontend...')
- copy_files_by_pattern(openvino_lib_path, tf_fe_lib_names[0], tf_fe_lib_names[1])
-
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activation.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activation.py
index 2d8ecaf6f19..5a184779665 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activation.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activation.py
@@ -71,10 +71,8 @@ class TestKerasActivation(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_activation_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_activation_float32(self, params, ie_device, precision, ir_version, temp_dir):
if params['activation_func'] == "swish":
pytest.skip("Error: failed due to missing a required argument: x1")
self._test(*self.create_keras_activation_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activity_regularization.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activity_regularization.py
index b77377642c9..0641d982592 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activity_regularization.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activity_regularization.py
@@ -32,12 +32,10 @@ class TestKerasActivityRegularization(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_activity_regularization_case1_float32(self, params, ie_device, precision,
- ir_version, temp_dir,
- use_legacy_frontend):
+ ir_version, temp_dir):
pytest.skip("Error: failed due to missing a required argument: x1")
self._test(*self.create_keras_activity_regularization_net(**params, ir_version=ir_version),
- ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [
dict(l1_param=0.07, l2_param=0.05, input_names=["x1"], input_shapes=[[1]],
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_add.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_add.py
index 15b73d422bd..fe091ce9bc3 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_add.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_add.py
@@ -33,11 +33,9 @@ class TestKerasAdd(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_add_float32_precommit(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_add_float32_precommit(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_add_net(**params, ir_version=ir_version),
- ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_float32 = [dict(input_names=["x1", "x2"], input_shapes=[[5, 4], [5, 4]],
input_type=tf.float32),
@@ -51,11 +49,9 @@ class TestKerasAdd(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_add_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_add_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_add_net(**params, ir_version=ir_version),
- ie_device, precision, ir_version=ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, ir_version=ir_version, temp_dir=temp_dir, **params)
test_data_float32_several_inputs_precommit = [
dict(input_names=["x1", "x2", "x3"],
@@ -65,11 +61,9 @@ class TestKerasAdd(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs_precommit)
@pytest.mark.precommit
def test_keras_add_float32_several_inputs_precommit(self, params, ie_device, precision,
- ir_version, temp_dir,
- use_legacy_frontend):
+ ir_version, temp_dir):
self._test(*self.create_keras_add_net(**params, ir_version=ir_version),
- ie_device, precision, ir_version=ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, ir_version=ir_version, temp_dir=temp_dir, **params)
test_data_float32_several_inputs = [dict(input_names=["x1", "x2", "x3"],
input_shapes=[[5, 4], [5, 4], [5, 4]],
@@ -89,7 +83,6 @@ class TestKerasAdd(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs)
@pytest.mark.nightly
def test_keras_add_float32_several_inputs(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_add_net(**params, ir_version=ir_version),
- ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_additive_attention.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_additive_attention.py
index e70ca8a0ef9..21f12826ebf 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_additive_attention.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_additive_attention.py
@@ -32,10 +32,9 @@ class TestKerasAdditiveAttention(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_additive_attention_float32_case1(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_additive_attention_net(**params, ir_version=ir_version),
- ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [
dict(use_scale=False, dropout=0.5,
@@ -67,7 +66,6 @@ class TestKerasAdditiveAttention(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_extended_float32)
@pytest.mark.nightly
def test_keras_additive_attention_float32_case2(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_additive_attention_net(**params, ir_version=ir_version),
- ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_alpha_dropout.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_alpha_dropout.py
index 4d3efcd8b99..23afb1345ac 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_alpha_dropout.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_alpha_dropout.py
@@ -29,11 +29,10 @@ class TestKerasAlphaDropout(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_keras_alpha_dropout_case1_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
pytest.skip("Error: failed due to missing a required argument: x1")
self._test(*self.create_keras_alpha_dropout_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [dict(rate=0.5, input_names=["x1"], input_shapes=[[1]],
input_type=tf.float32),
@@ -49,7 +48,6 @@ class TestKerasAlphaDropout(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_extended_float32)
@pytest.mark.nightly
def test_keras_keras_alpha_dropout_case2_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_alpha_dropout_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_attention.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_attention.py
index 8e529070e3d..0232c85fcab 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_attention.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_attention.py
@@ -30,11 +30,9 @@ class TestKerasAttention(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_attention_float32_case1(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_attention_float32_case1(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_attention_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [
dict(use_scale=False, dropout=0.0,
@@ -66,8 +64,6 @@ class TestKerasAttention(CommonTF2LayerTest):
# TODO: Extend test with const inputs, ticket: 49295
@pytest.mark.parametrize("params", test_data_extended_float32)
@pytest.mark.nightly
- def test_keras_attention_float32_case2(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_attention_float32_case2(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_attention_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_average.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_average.py
index da47400167a..f10212348df 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_average.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_average.py
@@ -39,11 +39,9 @@ class TestKerasAverage(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_average_case1_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_average_case1_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_average_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [dict(input_names=["x1", "x2"], input_shapes=[[1], [1]],
input_type=tf.float32),
@@ -58,11 +56,9 @@ class TestKerasAverage(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_extended_float32)
@pytest.mark.nightly
- def test_keras_average_case2_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_average_case2_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_average_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_float32_several_inputs = [
dict(input_names=["x1", "x2", "x3"], input_shapes=[[1], [1], [1]], input_type=tf.float32),
@@ -76,7 +72,6 @@ class TestKerasAverage(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs)
@pytest.mark.nightly
def test_keras_average_float32_several_inputs(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_average_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_1D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_1D.py
index 916fbd4c9bd..a460b7ff7d2 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_1D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_1D.py
@@ -34,10 +34,9 @@ class TestKerasAveragePooling1D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_avg_pool_1D_case1_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_avg_pool_1D_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [
dict(pool_size=3, strides=None, padding='same', data_format='channels_first',
@@ -50,7 +49,6 @@ class TestKerasAveragePooling1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_extended_float32)
@pytest.mark.nightly
def test_keras_avg_pool_1D_case2_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_avg_pool_1D_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_2D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_2D.py
index a772f75927a..8c5fae55c56 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_2D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_2D.py
@@ -33,11 +33,9 @@ class TestKerasAvgPool2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_avg_pool_2D_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_avg_pool_2D_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_avg_pool_2D_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [
dict(pool_size=(3, 3), strides=None, padding='same', data_format='channels_last',
@@ -54,7 +52,6 @@ class TestKerasAvgPool2D(CommonTF2LayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_keras_avg_pool_2D_extended_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_avg_pool_2D_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_3D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_3D.py
index bdf60de9d08..87c2e87213d 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_3D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_3D.py
@@ -32,11 +32,9 @@ class TestKerasAvgPool3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_avg_pool_3D_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_avg_pool_3D_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_avg_pool_3D_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [
dict(pool_size=(3, 3, 3), strides=None, padding='same', data_format='channels_last',
@@ -52,7 +50,6 @@ class TestKerasAvgPool3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_extended_float32)
@pytest.mark.nightly
def test_keras_avg_pool_3D_extended_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_avg_pool_3D_net(**params, ir_version=ir_version), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_batch_normalization.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_batch_normalization.py
index beff34b5bc6..dcc2dd559ad 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_batch_normalization.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_batch_normalization.py
@@ -33,11 +33,10 @@ class TestKerasBatchNormalization(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_batch_normalization_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_batch_normalization_net(**params, ir_version=ir_version),
ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ temp_dir=temp_dir, ir_version=ir_version, **params)
test_data_extended_float32 = [dict(axis=1, momentum=0.5, epsilon=1e-4, center=True, scale=False,
input_names=["x1"], input_shapes=[[3, 4]],
@@ -58,7 +57,6 @@ class TestKerasBatchNormalization(CommonTF2LayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_keras_batch_normalization_extended_float32(self, params, ie_device, precision,
- ir_version, temp_dir, use_legacy_frontend):
+ ir_version, temp_dir):
self._test(*self.create_keras_batch_normalization_net(**params, ir_version=ir_version),
- ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ ie_device, precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_bidirectional.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_bidirectional.py
index 72d5155afa1..aa4a3b148c0 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_bidirectional.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_bidirectional.py
@@ -45,8 +45,7 @@ class TestKerasBidirectional(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_bidirectional_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_bidirectional_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_bidirectional_net(**params, ir_version=ir_version), ie_device,
precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_concatenate.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_concatenate.py
index e7ff6df9bea..0784c58a7c2 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_concatenate.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_concatenate.py
@@ -32,12 +32,11 @@ class TestKerasConcatenate(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_concatenate_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_concatenate_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_concatenate_net(**params, ir_version=ir_version), ie_device,
precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_extended_float32 = [
dict(axis=-1, input_names=["x1", "x2"], input_shapes=[[5, 4], [5, 4]],
@@ -58,8 +57,8 @@ class TestKerasConcatenate(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_extended_float32)
@pytest.mark.nightly
def test_keras_concatenate_extended_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_concatenate_net(**params, ir_version=ir_version), ie_device,
precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d.py
index b5bee051965..797a562b46c 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d.py
@@ -57,9 +57,8 @@ class TestKerasConv1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_keras_conv_1d_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_conv_1d_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_conv1d_net(**params, ir_version=ir_version), ie_device,
precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d_transpose.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d_transpose.py
index 5ec72a706c7..f5f2476b26d 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d_transpose.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d_transpose.py
@@ -63,8 +63,8 @@ class TestKerasConv1DTranspose(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(reason="Needs tensorflow 2.3.0.")
def test_keras_conv_1d_case1_transpose_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_conv1d_transpose_net(**params, ir_version=ir_version),
ie_device, precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d.py
index 6587e1df459..e7d8049ae89 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d.py
@@ -57,9 +57,8 @@ class TestKerasConv2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_keras_conv_2d_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_conv_2d_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_conv2d_net(**params, ir_version=ir_version), ie_device,
precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d_transpose.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d_transpose.py
index d58aa72d8d0..7ecdd248ccc 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d_transpose.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d_transpose.py
@@ -62,7 +62,7 @@ class TestKerasConv2DTranspose(CommonTF2LayerTest):
strides, padding, data_format, dilation_rate, activation,
use_bias,
ie_device, precision,
- ir_version, temp_dir, use_legacy_frontend):
+ ir_version, temp_dir):
params = {}
params['input_shapes'] = input_shapes
self._test(*self.create_keras_conv_2d_transpose_net(input_shapes, input_type,
@@ -72,4 +72,4 @@ class TestKerasConv2DTranspose(CommonTF2LayerTest):
use_bias),
ie_device, precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d.py
index 46d19efd36c..c02206f7ef1 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d.py
@@ -61,8 +61,7 @@ class TestKerasConv3D(CommonTF2LayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.xfail(reason="timeout issue for inference")
- def test_keras_conv_3d_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_conv_3d_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_conv3d_net(**params, ir_version=ir_version), ie_device,
precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d_transpose.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d_transpose.py
index df7c28201b7..f30bb6949e7 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d_transpose.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d_transpose.py
@@ -59,10 +59,10 @@ class TestKerasConv3DTranspose(CommonTF2LayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_keras_conv_3D_transpose_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
if platform.machine() in ['arm', 'armv7l', 'aarch64', 'arm64', 'ARM64']:
pytest.skip("timeout issue for inference on ARM")
self._test(*self.create_keras_conv_3d_transpose_net(**params, ir_version=ir_version),
ie_device, precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_lstm_2d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_lstm_2d.py
index 25c7a94f6c3..ac91712d8c4 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_lstm_2d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_lstm_2d.py
@@ -61,9 +61,8 @@ class TestKerasConvLSTM2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_keras_conv_lstm_2d_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_conv_lstm_2d_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_conv_lstm_2d_net(**params), ie_device,
precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_1d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_1d.py
index c5421184754..7018b4b5021 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_1d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_1d.py
@@ -31,8 +31,7 @@ class TestKerasCropping1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_keras_cropping_1d_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_cropping_1d_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_cropping_1d_net(**params, ir_version=ir_version), ie_device,
precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_2d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_2d.py
index 1fe8d3558af..28feaad19ff 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_2d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_2d.py
@@ -33,9 +33,8 @@ class TestKerasCropping2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_keras_cropping_2d_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_cropping_2d_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_cropping_2d_net(**params, ir_version=ir_version), ie_device,
precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_3d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_3d.py
index 295ddd1b89f..c495a9666aa 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_3d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_3d.py
@@ -34,9 +34,8 @@ class TestKerasCropping3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_keras_cropping_3d_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_cropping_3d_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_cropping_3d_net(**params, ir_version=ir_version), ie_device,
precision,
temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dense.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dense.py
index 5e387d4dcbd..89922446b39 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dense.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dense.py
@@ -42,12 +42,11 @@ class TestKerasDense(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_simple)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_dense_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_dense_float32(self, params, ie_device, precision, ir_version, temp_dir):
pytest.skip("Error: failed due to missing a required argument: x")
self._test(*self.create_keras_dense_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_activation = [
dict(input_names=["x"], input_shapes=[[5, 4]], input_type=tf.float32, units=1,
@@ -67,9 +66,8 @@ class TestKerasDense(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_activation)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_activation_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_activation_float32(self, params, ie_device, precision, ir_version, temp_dir):
pytest.skip("Error: failed due to missing a required argument: x")
self._test(*self.create_keras_dense_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_depthwiseconv2D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_depthwiseconv2D.py
index 3c50a016a40..4b32b1aa2f1 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_depthwiseconv2D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_depthwiseconv2D.py
@@ -51,11 +51,10 @@ class TestKerasDepthwiseConv2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_format_padding)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_dconv2D_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_dconv2D_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_dconv2D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_use_bias_true = [
dict(input_names=["x"], input_shapes=[[5, 7, 3, 3]], input_type=tf.float32, kernel_size=1,
@@ -77,11 +76,10 @@ class TestKerasDepthwiseConv2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_use_bias_true)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_use_bias_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_use_bias_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_dconv2D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_activations = [
dict(input_names=["x"], input_shapes=[[5, 7, 16, 3]], input_type=tf.float32, kernel_size=1,
@@ -103,8 +101,7 @@ class TestKerasDepthwiseConv2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_activations)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_activations_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_activations_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_dconv2D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dot.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dot.py
index ce0251ce860..811de82b452 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dot.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dot.py
@@ -49,10 +49,9 @@ class TestKerasDot(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_dot(self, input_shapes, axes, input_type, normalize,
- ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ ie_device, precision, temp_dir, ir_version):
params = {}
params['input_shapes'] = input_shapes
self._test(*self.create_keras_dot_net(input_shapes, axes, input_type, normalize),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dropout.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dropout.py
index 3ffbc10b30f..82c6fba9fa9 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dropout.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dropout.py
@@ -32,11 +32,10 @@ class TestKerasDropout(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_dropout_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_dropout_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_dropout_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [
dict(input_names=["x"], input_shapes=[[5, 2]], input_type=tf.float32, rate=0.1,
@@ -55,8 +54,7 @@ class TestKerasDropout(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_dropout_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_dropout_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_dropout_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_elu.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_elu.py
index 7d3abcce8ed..d7c24ac545f 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_elu.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_elu.py
@@ -32,11 +32,10 @@ class TestKerasELU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_keras_elu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_elu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_elu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [
dict(input_names=["x1"], input_shapes=[[5, 4]], input_type=tf.float32, alpha=1.0),
@@ -46,11 +45,10 @@ class TestKerasELU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_elu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_elu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_elu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_alpha2 = [dict(input_names=["x1"], input_shapes=[[5, 4]],
input_type=tf.float32, alpha=2.0),
@@ -64,8 +62,7 @@ class TestKerasELU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_alpha2)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_elu_float32_alpha2(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_elu_float32_alpha2(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_elu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_embedding.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_embedding.py
index 04695d5ba7c..40f739bfcf4 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_embedding.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_embedding.py
@@ -40,13 +40,12 @@ class TestKerasEmbedding(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_emb_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_emb_float32(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'CPU':
pytest.skip('155622: OpenVINO runtime timeout on CPU')
self._test(*self.create_keras_emb_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_mask_zero_false = [
dict(input_names=["x"], input_shapes=[[5, 16]], input_type=tf.float32, input_dim=256,
@@ -63,9 +62,9 @@ class TestKerasEmbedding(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_emb_without_zero_mask_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
if ie_device == 'CPU':
pytest.skip('155622: OpenVINO runtime timeout on CPU')
self._test(*self.create_keras_emb_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_flatten.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_flatten.py
index c7bab6d7ffd..6e5963d4eb6 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_flatten.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_flatten.py
@@ -34,8 +34,7 @@ class TestKerasFlatten(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_flatten_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_flatten_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_flatten_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling1D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling1D.py
index 0988d135977..42926f0b5cd 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling1D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling1D.py
@@ -35,7 +35,7 @@ class TestKerasGlobalAvgPool1D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_global_avg_pooling1D_float32(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_global_avg_pooling1D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling2D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling2D.py
index cc97ec90a73..cd4eb5f32ac 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling2D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling2D.py
@@ -34,7 +34,7 @@ class TestKerasGlobalAvgPool2D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_global_avg_pooling2D_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_global_avg_pooling2D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling3D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling3D.py
index 5fdd3499b4b..8ae7e9e1202 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling3D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling3D.py
@@ -34,7 +34,7 @@ class TestKerasGlobalAvgPool3D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_global_avg_pooling3D_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_global_avg_pooling3D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool1D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool1D.py
index 952b10b11a4..a1113e6fafd 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool1D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool1D.py
@@ -35,7 +35,7 @@ class TestKerasGlobalMaxPool1D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_global_max_pooling1D_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_global_max_pooling1D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool2D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool2D.py
index facc203ae07..4c7b36c700c 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool2D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool2D.py
@@ -35,7 +35,7 @@ class TestKerasGlobalMaxPool2D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_global_max_pooling2D_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_global_maxpool2D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool3D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool3D.py
index 7cf947b9483..28d1a1a4baf 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool3D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool3D.py
@@ -34,7 +34,7 @@ class TestKerasGlobalMaxPool3D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_global_maxpool3D_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_global_maxpool3D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru.py
index fad5c188d38..8e84f9cabbb 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru.py
@@ -50,12 +50,11 @@ class TestKerasGru(CommonTF2LayerTest):
def test_keras_gru(self, input_shapes, input_type, units,
activation, recurrent_activation,
dropouts, use_bias, flag1, flag2,
- ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ ie_device, precision, temp_dir, ir_version):
params = {}
params['input_shapes'] = input_shapes
self._test(*self.create_keras_gru_net(input_shapes, input_type, units,
activation, recurrent_activation,
dropouts, use_bias, flag1, flag2),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru_cell.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru_cell.py
index caee7f343b7..e6442d2efc4 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru_cell.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru_cell.py
@@ -49,8 +49,7 @@ class TestKerasGRUCell(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
@pytest.mark.xfail(reason="49537")
- def test_keras_grucell_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_grucell_float32(self, params, ie_device, precision, temp_dir, ir_version):
self._test(*self.create_keras_grucell_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lambda.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lambda.py
index 3898ad16d8d..6628e4f3070 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lambda.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lambda.py
@@ -79,8 +79,7 @@ class TestKerasLambda(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_lambda_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_lambda_float32(self, params, ie_device, precision, temp_dir, ir_version):
self._test(*self.create_keras_lambda_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_layer_normalization.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_layer_normalization.py
index 0d41e7f1e15..863875fe9ee 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_layer_normalization.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_layer_normalization.py
@@ -32,11 +32,10 @@ class TestKerasLayerNormalization(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_dense_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_dense_float32(self, params, ie_device, precision, temp_dir, ir_version):
self._test(*self.create_keras_lnorm_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [
dict(input_names=["x"], input_shapes=[[5, 10]], input_type=tf.float32, axis=1, epsilon=1e-6,
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_leakyrelu.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_leakyrelu.py
index 57af43f8048..72b238755c1 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_leakyrelu.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_leakyrelu.py
@@ -32,8 +32,7 @@ class TestKerasLeakyRelu(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_leaky_relu_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_leaky_relu_float32(self, params, ie_device, precision, temp_dir, ir_version):
self._test(*self.create_keras_leaky_relu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm.py
index c2765015cc9..780c1fa3776 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm.py
@@ -57,11 +57,10 @@ class TestKerasLSTM(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_simple)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_lstm_with_bias_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_lstm_with_bias_float32(self, params, ie_device, precision, temp_dir, ir_version):
self._test(*self.create_keras_lstm_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_without_bias = [
dict(input_names=["x"], input_shapes=[[2, 2, 7]], input_type=tf.float32, units=1,
@@ -81,10 +80,10 @@ class TestKerasLSTM(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_lstm_without_bias_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_lstm_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_different_flags = [
dict(input_names=["x"], input_shapes=[[2, 3, 2]], input_type=tf.float32, units=1,
@@ -101,10 +100,9 @@ class TestKerasLSTM(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_different_flags)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_lstm_flags_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_lstm_flags_float32(self, params, ie_device, precision, temp_dir, ir_version):
if platform.machine() in ['arm', 'armv7l', 'aarch64', 'arm64', 'ARM64']:
pytest.skip("inference mismatch issue on ARM")
self._test(*self.create_keras_lstm_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm_cell.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm_cell.py
index 77281f06dcf..27bdb27c517 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm_cell.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm_cell.py
@@ -53,8 +53,7 @@ class TestKerasLSTMCell(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
@pytest.mark.xfail(reason="49537")
- def test_keras_lstmcell_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_lstmcell_float32(self, params, ie_device, precision, temp_dir, ir_version):
self._test(*self.create_keras_lstmcell_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_masking.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_masking.py
index 679ddd3767d..6572f626771 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_masking.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_masking.py
@@ -36,8 +36,7 @@ class TestKerasMasking(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
@pytest.mark.xfail(reason="49567")
- def test_keras_masking_float32(self, params, ie_device, precision, temp_dir, ir_version,
- use_legacy_frontend):
+ def test_keras_masking_float32(self, params, ie_device, precision, temp_dir, ir_version):
self._test(*self.create_keras_masking_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maximum.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maximum.py
index f4046c9e427..54b2c4690b8 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maximum.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maximum.py
@@ -33,11 +33,10 @@ class TestKerasMaximum(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_maximum_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_maximum_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_maximum_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1", "x2"], input_shapes=[[5, 4], [5, 4]],
input_type=tf.float32),
@@ -51,11 +50,10 @@ class TestKerasMaximum(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_maximum_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_maximum_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_maximum_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_several_inputs_precommit = [
dict(input_names=["x1", "x2", "x3"],
@@ -65,10 +63,10 @@ class TestKerasMaximum(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs_precommit)
@pytest.mark.precommit
def test_keras_maximum_float32_several_inputs(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_maximum_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_several_inputs = [
dict(input_names=["x1", "x2", "x3"],
@@ -87,7 +85,7 @@ class TestKerasMaximum(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs)
@pytest.mark.nightly
def test_keras_maximum_float32_several_inputs(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_maximum_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool1D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool1D.py
index bc1f2b2f100..b1e043fd1c6 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool1D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool1D.py
@@ -44,10 +44,10 @@ class TestKerasMaxPool1D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_maxpool1D_pool_strides_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_maxpool1D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_p_dformat_float32 = [
dict(input_names=["x"], input_shapes=[[5, 6, 1]], input_type=tf.float32, pool_size=1,
@@ -64,7 +64,7 @@ class TestKerasMaxPool1D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_maxpool1D_padding_and_data_format(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_maxpool1D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool2D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool2D.py
index 227dfe0b49e..eaaa9ceae7b 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool2D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool2D.py
@@ -48,7 +48,7 @@ class TestKerasMaxPool2D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_maxpool2D_pool_strides_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_maxpool2D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool3D.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool3D.py
index d4798e342b8..dbdedd6e4ec 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool3D.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool3D.py
@@ -45,10 +45,10 @@ class TestKerasMaxPool3D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_maxpool3D_pool_strides_float32(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_maxpool3D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_p_dformat_float32 = [
dict(input_names=["x"], input_shapes=[[2, 2, 4, 6, 8]], input_type=tf.float32, pool_size=1,
@@ -65,7 +65,7 @@ class TestKerasMaxPool3D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_maxpool3D_padding_and_data_format(self, params, ie_device, precision, temp_dir,
- ir_version, use_legacy_frontend):
+ ir_version):
self._test(*self.create_keras_maxpool3D_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_minimum.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_minimum.py
index ffd6ab01ec4..6e75d94056c 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_minimum.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_minimum.py
@@ -33,11 +33,10 @@ class TestKerasMinimum(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_minimum_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_minimum_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_minimum_net(**params, ir_version=ir_version), ie_device,
precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1", "x2"], input_shapes=[[5, 4], [5, 4]],
input_type=tf.float32),
@@ -51,11 +50,10 @@ class TestKerasMinimum(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_minimum_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_minimum_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_minimum_net(**params, ir_version=ir_version), ie_device,
precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_several_inputs_precommit = [
dict(input_names=["x1", "x2", "x3"],
@@ -87,7 +85,7 @@ class TestKerasMinimum(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs)
@pytest.mark.nightly
def test_keras_minimum_float32_several_inputs(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_minimum_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiheadattention.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiheadattention.py
index 36706810025..584d29aa81f 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiheadattention.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiheadattention.py
@@ -79,11 +79,10 @@ class TestKerasMultiHeadAttention(CommonTF2LayerTest):
@pytest.mark.skip(reason='Einsum is unsupported in OVC')
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
- def test_keras_multiheadattention(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_multiheadattention(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_multiheadattention_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests to cover no bias cases
test_data_no_bias = [
@@ -108,7 +107,7 @@ class TestKerasMultiHeadAttention(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_no_bias)
@pytest.mark.nightly
def test_keras_multiheadattention_no_bias(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_multiheadattention_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiply.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiply.py
index e3b62352978..3ba8ce5a62d 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiply.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiply.py
@@ -33,11 +33,10 @@ class TestKerasMultiply(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_multiply_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_multiply_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_multiply_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1", "x2"], input_shapes=[[5, 4], [5, 4]],
input_type=tf.float32),
@@ -51,11 +50,10 @@ class TestKerasMultiply(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_multiply_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_multiply_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_multiply_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_several_inputs_precommit = [
dict(input_names=["x1", "x2", "x3"],
@@ -65,10 +63,10 @@ class TestKerasMultiply(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs_precommit)
@pytest.mark.precommit
def test_keras_multiply_float32_several_inputs(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_multiply_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_several_inputs = [dict(input_names=["x1", "x2", "x3"],
input_shapes=[[5, 4], [5, 4], [5, 4]],
@@ -88,7 +86,7 @@ class TestKerasMultiply(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_several_inputs)
@pytest.mark.nightly
def test_keras_multiply_float32_several_inputs(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_multiply_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_permute.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_permute.py
index 4ff73686469..c44825b29ed 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_permute.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_permute.py
@@ -30,8 +30,7 @@ class TestKerasPermute(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_permute_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_permute_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_permute_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_prelu.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_prelu.py
index 1f30adafeb6..a174b04215f 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_prelu.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_prelu.py
@@ -27,11 +27,10 @@ class TestKerasPReLU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_prelu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_prelu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_prelu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [
dict(input_names=["x1"], input_shapes=[[5, 4]], input_type=tf.float32, shared_axes=None),
@@ -43,11 +42,10 @@ class TestKerasPReLU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_prelu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_prelu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_prelu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32_shared_axes = [
dict(input_names=["x1"], input_shapes=[[5, 4]], input_type=tf.float32, shared_axes=[1]),
@@ -60,7 +58,7 @@ class TestKerasPReLU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_shared_axes)
@pytest.mark.nightly
def test_keras_prelu_float32_shared_axes(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_prelu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_relu.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_relu.py
index 9df3eb5b5da..e5022669824 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_relu.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_relu.py
@@ -31,11 +31,10 @@ class TestKerasRelu(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_relu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_relu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_relu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1"], input_shapes=[[5, 4]],
input_type=tf.float32),
@@ -48,8 +47,7 @@ class TestKerasRelu(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_relu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_relu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_relu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_repeatvector.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_repeatvector.py
index cf8d5b0d860..c36ee11c875 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_repeatvector.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_repeatvector.py
@@ -29,8 +29,7 @@ class TestKerasRepeatVector(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_repeatvector(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_repeatvector(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_repeatvector_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_reshape.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_reshape.py
index fa46b06f6a0..eabc6551fdd 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_reshape.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_reshape.py
@@ -33,8 +33,7 @@ class TestKerasReshape(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_reshape(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_reshape(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_reshape_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_rnn.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_rnn.py
index a84d89c25a2..a25651df057 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_rnn.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_rnn.py
@@ -53,11 +53,10 @@ class TestKerasRNN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_rnn(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_rnn(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_rnn_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for default parameter values
test_data_multiple_outputs = [
@@ -75,11 +74,10 @@ class TestKerasRNN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_multiple_outputs)
@pytest.mark.nightly
- def test_keras_rnn_multiple_outputs(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_rnn_multiple_outputs(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_rnn_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for other attributes: go_backward
test_data_others = [
@@ -95,8 +93,7 @@ class TestKerasRNN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_others)
@pytest.mark.nightly
- def test_keras_rnn_others(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_rnn_others(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_rnn_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv1d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv1d.py
index 51fbb4891f1..b15c5dc2c5e 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv1d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv1d.py
@@ -46,11 +46,10 @@ class TestKerasSeparableConv1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_separableconv1d(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_separableconv1d(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_separableconv1d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for different activations
test_data_different_activations = [
@@ -80,11 +79,10 @@ class TestKerasSeparableConv1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_different_activations)
@pytest.mark.nightly
def test_keras_separableconv1d_different_activations(self, params, ie_device, precision,
- ir_version, temp_dir,
- use_legacy_frontend):
+ ir_version, temp_dir):
self._test(*self.create_keras_separableconv1d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for different padding
test_data_different_padding = [
@@ -102,10 +100,10 @@ class TestKerasSeparableConv1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_different_padding)
@pytest.mark.nightly
def test_keras_separableconv1d_different_padding(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_separableconv1d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for different bias
test_data_different_bias = [
@@ -120,7 +118,7 @@ class TestKerasSeparableConv1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_different_bias)
@pytest.mark.nightly
def test_keras_separableconv1d_different_bias(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_separableconv1d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv2d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv2d.py
index 0c38060c896..4de4d67dbc5 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv2d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv2d.py
@@ -49,11 +49,10 @@ class TestKerasSeparableConv2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_separableconv2d(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_separableconv2d(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_separableconv2d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for different activations
test_data_different_activations = [
@@ -85,11 +84,10 @@ class TestKerasSeparableConv2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_different_activations)
@pytest.mark.nightly
def test_keras_separableconv2d_different_activations(self, params, ie_device, precision,
- ir_version, temp_dir,
- use_legacy_frontend):
+ ir_version, temp_dir):
self._test(*self.create_keras_separableconv2d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for different padding
test_data_different_padding = [
@@ -104,10 +102,10 @@ class TestKerasSeparableConv2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_different_padding)
@pytest.mark.nightly
def test_keras_separableconv2d_different_padding(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_separableconv2d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for different bias
test_data_different_bias = [
@@ -123,7 +121,7 @@ class TestKerasSeparableConv2D(CommonTF2LayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_keras_separableconv2d_different_bias(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_separableconv2d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_simplernn.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_simplernn.py
index 1d0034c711a..34deedfeea4 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_simplernn.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_simplernn.py
@@ -54,10 +54,10 @@ class TestKerasSimpleRNN(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_simplernn_different_activations(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_simplernn_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for RNN with dropout
test_data_dropout = [
@@ -73,11 +73,10 @@ class TestKerasSimpleRNN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_dropout)
@pytest.mark.nightly
- def test_keras_simplernn_dropout(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_simplernn_dropout(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_simplernn_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for RNN with other attributes
test_data_other = [
@@ -93,11 +92,10 @@ class TestKerasSimpleRNN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_other)
@pytest.mark.nightly
- def test_keras_simplernn_other(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_simplernn_other(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_simplernn_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
# Tests for RNN with multiple outputs
test_data_multipleoutput = [
@@ -122,7 +120,7 @@ class TestKerasSimpleRNN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_multipleoutput)
@pytest.mark.nightly
def test_keras_simplernn_test_data_multipleoutput(self, params, ie_device, precision,
- ir_version, temp_dir, use_legacy_frontend):
+ ir_version, temp_dir):
self._test(*self.create_keras_simplernn_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softmax.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softmax.py
index 486df7dafaf..fe3c4969057 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softmax.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softmax.py
@@ -31,11 +31,10 @@ class TestKerasSoftmax(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_softmax_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_softmax_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_softmax_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1"], input_shapes=[[5, 4]],
input_type=tf.float32),
@@ -48,8 +47,7 @@ class TestKerasSoftmax(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_softmax_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_softmax_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_softmax_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softplus.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softplus.py
index 11b24933553..1541c155cb2 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softplus.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softplus.py
@@ -32,11 +32,10 @@ class TestKerasSoftplus(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
@pytest.mark.xfail(reason="49516")
- def test_keras_softplus_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_softplus_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_softplus_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1"], input_shapes=[[5]], input_type=tf.float32),
dict(input_names=["x1"], input_shapes=[[5, 4]], input_type=tf.float32),
@@ -50,8 +49,7 @@ class TestKerasSoftplus(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
@pytest.mark.xfail(reason="49516")
- def test_keras_softplus_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_softplus_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_softplus_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout1d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout1d.py
index 888caaee861..130f24e4f19 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout1d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout1d.py
@@ -30,9 +30,8 @@ class TestKerasSpatialDropout1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_spatialdropout1d(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_spatialdropout1d(self, params, ie_device, precision, ir_version, temp_dir):
pytest.skip("Error: failed due to missing a required argument: x1")
self._test(*self.create_keras_spatialdropout1d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout2d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout2d.py
index 2116b3e43cf..640fe1b3da0 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout2d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout2d.py
@@ -33,12 +33,11 @@ class TestKerasSpatialDropout2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_spatialdropout2d(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_spatialdropout2d(self, params, ie_device, precision, ir_version, temp_dir):
pytest.skip("Error: failed due to missing a required argument: x1")
self._test(*self.create_keras_spatialdropout2d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_channels_first = [
dict(input_names=["x1"], input_shapes=[[4, 3, 2, 1]], input_type=tf.float32, rate=0.0,
@@ -52,7 +51,7 @@ class TestKerasSpatialDropout2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_channels_first)
@pytest.mark.nightly
def test_keras_spatialdropout2d_channels_first(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_spatialdropout2d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout3d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout3d.py
index ec7198c9cfa..458c266d6ca 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout3d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout3d.py
@@ -33,12 +33,11 @@ class TestKerasSpatialDropout3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_spatialdropout3d(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_spatialdropout3d(self, params, ie_device, precision, ir_version, temp_dir):
pytest.skip("Error: failed due to missing a required argument: x1")
self._test(*self.create_keras_spatialdropout3d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_channels_first = [
dict(input_names=["x1"], input_shapes=[[3, 2, 3, 4, 5]], input_type=tf.float32, rate=0.0,
@@ -52,7 +51,7 @@ class TestKerasSpatialDropout3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_channels_first)
@pytest.mark.nightly
def test_keras_spatialdropout3d_channels_first(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_spatialdropout3d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_stackedrnncells.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_stackedrnncells.py
index 416e52b4dc0..27ccec8e85b 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_stackedrnncells.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_stackedrnncells.py
@@ -50,8 +50,7 @@ class TestKerasStackedRNNCells(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_stackedrnncells(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_stackedrnncells(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_stackedrnncells_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_subtract.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_subtract.py
index 7c9f13868c0..1240538d38b 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_subtract.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_subtract.py
@@ -33,11 +33,10 @@ class TestKerasSubtract(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_subtract_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_subtract_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_subtract_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1", "x2"], input_shapes=[[5, 4], [5, 4]],
input_type=tf.float32),
@@ -51,8 +50,7 @@ class TestKerasSubtract(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_subtract_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_subtract_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_subtract_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_swish.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_swish.py
index e168bf2d655..cac58415494 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_swish.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_swish.py
@@ -31,11 +31,10 @@ class TestKerasSWish(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32_precommit)
@pytest.mark.precommit
- def test_keras_swish_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_swish_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_swish_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_float32 = [dict(input_names=["x1"], input_shapes=[[5]], input_type=tf.float32),
dict(input_names=["x1"], input_shapes=[[5, 4]], input_type=tf.float32),
@@ -47,8 +46,7 @@ class TestKerasSWish(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_keras_swish_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_swish_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_swish_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_text_vectorization.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_text_vectorization.py
index b71f33e9e54..5514269cd9f 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_text_vectorization.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_text_vectorization.py
@@ -51,7 +51,7 @@ class TestTextVectorization(CommonTF2LayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_text_vectorization(self, input_shapes, vocabulary, output_mode, output_sequence_length, strings_dictionary,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if platform.system() in ('Darwin') or platform.machine() in ['arm', 'armv7l',
'aarch64',
'arm64',
@@ -64,4 +64,4 @@ class TestTextVectorization(CommonTF2LayerTest):
params['output_sequence_length'] = output_sequence_length
params['strings_dictionary'] = strings_dictionary
self._test(*self.create_text_vectorization_net(**params), ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend, **params)
+ temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_thresholdedrelu.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_thresholdedrelu.py
index 27331602d43..36ee5e5a7b7 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_thresholdedrelu.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_thresholdedrelu.py
@@ -27,11 +27,10 @@ class TestKerasThresholdedReLU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.precommit
- def test_keras_thresholdedrelu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_thresholdedrelu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_thresholdedrelu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data = [
dict(input_names=["x1"], input_shapes=[[5, 2]], input_type=tf.float32, theta=0.0),
@@ -42,8 +41,7 @@ class TestKerasThresholdedReLU(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_keras_thresholdedrelu_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_thresholdedrelu_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_thresholdedrelu_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_timedistributed.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_timedistributed.py
index ecdcc30e299..14474596fd6 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_timedistributed.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_timedistributed.py
@@ -36,8 +36,7 @@ class TestKerasTimeDistributed(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_timedistributed(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_timedistributed(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_timedistributed_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling1d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling1d.py
index c8892c3e35e..155f156286b 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling1d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling1d.py
@@ -31,8 +31,7 @@ class TestKerasUpSampling1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_upsampling1d_float32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_upsampling1d_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_upsampling1d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling2d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling2d.py
index 4931dd6ceca..6c161dee788 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling2d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling2d.py
@@ -52,11 +52,10 @@ class TestKerasUpSampling2D(CommonTF2LayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_keras_upsampling2d_nearest(self, params, input_type, data_format, interpolation,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if input_type in [np.int8, np.uint8, np.int16, np.uint16, np.int32, np.int64]:
pytest.skip('151172: Check TF FE conversion. Accuracy issue on all platforms.')
self._test(*self.create_keras_upsampling2d_net(**params, input_type=input_type, data_format=data_format,
interpolation=interpolation, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling3d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling3d.py
index 389bdce13bc..e6e14288ab8 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling3d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling3d.py
@@ -34,11 +34,10 @@ class TestKerasUpSampling3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_upsampling3(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_upsampling3(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_upsampling3d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_channels_first = [
pytest.param(
@@ -54,7 +53,7 @@ class TestKerasUpSampling3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_channels_first)
@pytest.mark.nightly
def test_keras_upsampling2d_channels_first(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_upsampling3d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding1d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding1d.py
index 46996c31f7e..742e69012f0 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding1d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding1d.py
@@ -30,8 +30,7 @@ class TestKerasZeroPadding1D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_keras_zeropadding1d(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_keras_zeropadding1d(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_keras_zeropadding1d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding2d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding2d.py
index 01be9b6f7df..c63b0831c25 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding2d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding2d.py
@@ -51,7 +51,7 @@ class TestKerasZeroPadding2D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_channels_first)
@pytest.mark.nightly
def test_keras_zeropadding2d_channels_first(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_zeropadding2d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding3d.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding3d.py
index e88eaf5428c..19d8b7684cb 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding3d.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding3d.py
@@ -34,10 +34,10 @@ class TestKerasZeroPadding3D(CommonTF2LayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_keras_zeropadding3d_channels_last(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_zeropadding3d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
test_data_channels_first = [
dict(input_names=["x1"], input_shapes=[[1, 3, 8, 4, 5]], input_type=tf.float32,
@@ -51,7 +51,7 @@ class TestKerasZeroPadding3D(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_data_channels_first)
@pytest.mark.nightly
def test_keras_zeropadding3d_channels_first(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_keras_zeropadding3d_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_map_fn.py b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_map_fn.py
index e3e4b99f3d1..bd99d381c5d 100644
--- a/tests/layer_tests/tensorflow2_keras_tests/test_tf2_map_fn.py
+++ b/tests/layer_tests/tensorflow2_keras_tests/test_tf2_map_fn.py
@@ -107,9 +107,9 @@ class TestMapFN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_map_fn_net(**params, ir_version=ir_version), ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
test_multiple_inputs = [
@@ -125,9 +125,9 @@ class TestMapFN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_multiple_inputs)
@pytest.mark.nightly
- def test_multiple_inputs(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_multiple_inputs(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_map_fn_net(**params, ir_version=ir_version), ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
test_multiple_outputs = [
@@ -145,9 +145,9 @@ class TestMapFN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_multiple_outputs)
@pytest.mark.nightly
- def test_multiple_outputs(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_multiple_outputs(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_map_fn_net(**params, ir_version=ir_version), ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
test_multiple_inputs_outputs_int32 = [
@@ -166,8 +166,7 @@ class TestMapFN(CommonTF2LayerTest):
@pytest.mark.parametrize("params", test_multiple_inputs_outputs_int32)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_multiple_inputs_outputs_int32(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_multiple_inputs_outputs_int32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_map_fn_net(**params, ir_version=ir_version), ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
diff --git a/tests/layer_tests/tensorflow_tests/conftest.py b/tests/layer_tests/tensorflow_tests/conftest.py
index 9fb46cc954c..46f7841834b 100644
--- a/tests/layer_tests/tensorflow_tests/conftest.py
+++ b/tests/layer_tests/tensorflow_tests/conftest.py
@@ -14,20 +14,3 @@ def pytest_generate_tests(metafunc):
params = get_params()
setattr(metafunc.cls, 'tflite', metafunc.config.getoption('tflite'))
metafunc.parametrize(test_gen_attrs_names, params, scope="function")
-
-
[email protected](scope='session', autouse=True)
-def rename_tf_fe_libs(request):
- try:
- import openvino as rt
- # path below is built considering the use of wheels
- openvino_lib_path = Path(rt.__file__).parent.parent / 'libs'
- except ImportError as err:
- raise Exception("Please set PYTHONPATH to OpenVINO Python or install wheel package") from err
-
- tf_fe_lib_names = ['libopenvino_tensorflow_fe', 'libopenvino_tensorflow_frontend']
-
- if request.config.getoption('use_legacy_frontend'):
- log.info('Using legacy frontend...')
- copy_files_by_pattern(openvino_lib_path, tf_fe_lib_names[0], tf_fe_lib_names[1])
-
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Add.py b/tests/layer_tests/tensorflow_tests/test_tf_Add.py
index 16ef8d229c5..2d4e590d34f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Add.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Add.py
@@ -8,7 +8,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestAdd(CommonTFLayerTest):
- def create_add_placeholder_const_net(self, x_shape, y_shape, use_legacy_frontend):
+ def create_add_placeholder_const_net(self, x_shape, y_shape):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -36,11 +36,9 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_1D)
@pytest.mark.nightly
- def test_add_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params, use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_add_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_2D = [
dict(x_shape=[1, 1], y_shape=[1, 1]),
@@ -52,12 +50,9 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_add_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_add_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_3D = [
dict(x_shape=[1, 1, 1], y_shape=[1, 1, 1]),
@@ -72,12 +67,9 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_add_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_add_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(x_shape=[1, 1, 1, 1], y_shape=[1, 1, 1, 1]),
@@ -90,12 +82,9 @@ class TestAdd(CommonTFLayerTest):
# TODO mark as precommit (after successfully passing in nightly)
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_add_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_add_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(x_shape=[1, 1, 1, 1, 1], y_shape=[1, 1, 1, 1, 1]),
@@ -108,12 +97,9 @@ class TestAdd(CommonTFLayerTest):
# TODO mark as precommit (after successfully passing in nightly)
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_add_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version=ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_add_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version=ir_version, temp_dir=temp_dir)
###############################################################################################
# #
@@ -128,11 +114,9 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_1D)
@pytest.mark.nightly
def test_add_placeholder_const_broadcast_1D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version=ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version=ir_version, temp_dir=temp_dir)
test_data_broadcast_2D = [
dict(x_shape=[1, 1], y_shape=[1]),
@@ -146,11 +130,9 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_2D)
@pytest.mark.nightly
def test_add_placeholder_const_broadcast_2D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version=ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version=ir_version, temp_dir=temp_dir)
test_data_broadcast_3D = [
dict(x_shape=[1, 1, 1], y_shape=[1]),
@@ -171,11 +153,9 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_3D)
@pytest.mark.nightly
def test_add_placeholder_const_broadcast_3D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version=ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version=ir_version, temp_dir=temp_dir)
test_data_broadcast_4D = [
dict(x_shape=[1, 1, 1, 1], y_shape=[1]),
@@ -194,11 +174,9 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_add_placeholder_const_broadcast_4D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version=ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ temp_dir):
+ self._test(*self.create_add_placeholder_const_net(**params),
+ ie_device, precision, ir_version=ir_version, temp_dir=temp_dir)
test_data_broadcast_5D = [
dict(x_shape=[1, 1, 1, 1, 1], y_shape=[1]),
@@ -216,12 +194,11 @@ class TestAdd(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_add_placeholder_const_broadcast_5D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
# we do not perform transpose in the test in case of new frontend
- self._test(*self.create_add_placeholder_const_net(**params,
- use_legacy_frontend=use_legacy_frontend),
+ self._test(*self.create_add_placeholder_const_net(**params),
ie_device, precision,
- ir_version=ir_version, temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ ir_version=ir_version, temp_dir=temp_dir)
class TestComplexAdd(CommonTFLayerTest):
@@ -273,9 +250,7 @@ class TestComplexAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_add(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_add(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_addv2_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_AddN.py b/tests/layer_tests/tensorflow_tests/test_tf_AddN.py
index 6243898e170..10609aef250 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_AddN.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_AddN.py
@@ -13,8 +13,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestAddN(CommonTFLayerTest):
# input_shapes - should be an array, could be a single shape, or array of n-dimentional shapes
# ir_version - common parameter
- # use_legacy_frontend - common parameter
- def create_addn_placeholder_const_net(self, input_shapes, ir_version, use_legacy_frontend):
+ def create_addn_placeholder_const_net(self, input_shapes, ir_version):
"""
Tensorflow net IR net
@@ -27,9 +26,6 @@ class TestAddN(CommonTFLayerTest):
if len(input_shapes) == 0:
raise RuntimeError("Input list couldn't be empty")
- if len(input_shapes) == 1 and use_legacy_frontend:
- pytest.xfail(reason="96687")
-
tf.compat.v1.reset_default_graph()
# Create the graph and model
@@ -58,12 +54,9 @@ class TestAddN(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_addn_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_addn_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_addn_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_addn_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexAddN(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
@@ -98,8 +91,6 @@ class TestComplexAddN(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_addn(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_addn(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_addn_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_AddTypes.py b/tests/layer_tests/tensorflow_tests/test_tf_AddTypes.py
index 85e7ec8bff4..22c82cde85e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_AddTypes.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_AddTypes.py
@@ -49,10 +49,8 @@ class TestAddTypes(CommonTFLayerTest):
np.float16, np.float32, np.float64])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_add_types(self, const_shape, input_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_add_types(self, const_shape, input_type, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and input_type == np.int16:
pytest.skip("accuracy mismatch for int16 on GPU")
self._test(*self.create_add_types_net(const_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_AdjustContrastv2.py b/tests/layer_tests/tensorflow_tests/test_tf_AdjustContrastv2.py
index 4aabc61295b..f52bdab7819 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_AdjustContrastv2.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_AdjustContrastv2.py
@@ -36,8 +36,6 @@ class TestAdjustContrastv2(CommonTFLayerTest):
@pytest.mark.parametrize('input_type', [np.float32])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_adjust_contrast_basic(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_adjust_contrast_basic(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_adjust_contrast_net(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_AdjustHue.py b/tests/layer_tests/tensorflow_tests/test_tf_AdjustHue.py
index d862f72ed25..bcce6fd0997 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_AdjustHue.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_AdjustHue.py
@@ -48,8 +48,6 @@ class TestAdjustHue(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_adjust_hue_basic(self, input_shape, input_type, special_case,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_adjust_hue_net(input_shape, input_type, special_case),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_AdjustSaturation.py b/tests/layer_tests/tensorflow_tests/test_tf_AdjustSaturation.py
index 5269b5c500f..f8fd744ad57 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_AdjustSaturation.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_AdjustSaturation.py
@@ -45,11 +45,10 @@ class TestAdjustSaturation(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_adjust_saturation_basic(self, input_shape, input_type, special_case,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and input_shape in [[5, 23, 27, 3], [3, 4, 13, 15, 3]]:
pytest.skip("151264: accuracy error on GPU")
if platform.machine() in ["aarch64", "arm64", "ARM64"] and input_shape in [[5, 23, 27, 3], [3, 4, 13, 15, 3]]:
pytest.skip("151263: accuracy error on ARM")
self._test(*self.create_adjust_saturation_net(input_shape, input_type, special_case),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Angle.py b/tests/layer_tests/tensorflow_tests/test_tf_Angle.py
index 57df1aa03d9..367e1676a85 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Angle.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Angle.py
@@ -40,8 +40,6 @@ class TestAngle(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_angle(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_angle(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_angle_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ApproximateEqual.py b/tests/layer_tests/tensorflow_tests/test_tf_ApproximateEqual.py
index 66df8c1e4fe..19f2430b68a 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ApproximateEqual.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ApproximateEqual.py
@@ -38,10 +38,8 @@ class TestApproximateEqual(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_approximate_equal_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_approximate_equal_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and precision == 'FP16':
pytest.skip("Accuracy mismatch on GPU")
self._test(*self.create_approximate_equal_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ArgMinMax.py b/tests/layer_tests/tensorflow_tests/test_tf_ArgMinMax.py
index 5ea8b8e6508..301778e3b6c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ArgMinMax.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ArgMinMax.py
@@ -66,7 +66,7 @@ class TestArgMinMax(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_argmin_max_net(self, input_shape, dimension, input_type, output_type, op_type,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if platform.machine() in ['aarch64', 'arm64', 'ARM64']:
pytest.skip('153077: Segmentation fault on ARM')
if ie_device == 'GPU' and input_type == np.float32 and input_shape == [10, 15, 20]:
@@ -74,5 +74,4 @@ class TestArgMinMax(CommonTFLayerTest):
self._test(*self.create_argmin_max_net(input_shape=input_shape, dimension=dimension,
input_type=input_type, output_type=output_type,
op_type=op_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_AssignOps.py b/tests/layer_tests/tensorflow_tests/test_tf_AssignOps.py
index f9cf6a90ba6..f464ef85756 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_AssignOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_AssignOps.py
@@ -97,30 +97,24 @@ class TestAssignOps(CommonTFLayerTest):
np.float16, np.float32, np.float64])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_assign(self, const_shape, input_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_assign(self, const_shape, input_type, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and input_type == np.int16:
pytest.skip("accuracy mismatch for int16 on GPU")
self._test(*self.create_assign_net(const_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.parametrize("const_shape", [[], [2], [3, 4], [3, 2, 1, 4]])
@pytest.mark.parametrize("assign_op", ['tf.raw_ops.AssignAdd', 'tf.raw_ops.AssignSub'])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_assign_ops(self, const_shape, assign_op, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_assign_ops(self, const_shape, assign_op, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_assign_op_net(const_shape, OPS[assign_op]),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.parametrize("const_shape", [[], [2], [3, 4], [3, 2, 1, 4]])
@pytest.mark.parametrize("assign_op", ['tf.raw_ops.AssignAdd', 'tf.raw_ops.AssignSub'])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_assign_ops2(self, const_shape, assign_op, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_assign_ops2(self, const_shape, assign_op, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_assign_op_net2(const_shape, OPS[assign_op]),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_AssignVariableOps.py b/tests/layer_tests/tensorflow_tests/test_tf_AssignVariableOps.py
index 278011a709e..33076a973db 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_AssignVariableOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_AssignVariableOps.py
@@ -43,8 +43,6 @@ class TestAssignVariableOps(CommonTFLayerTest):
@pytest.mark.parametrize("const_shape", [[], [2], [3, 4], [3, 2, 1, 4]])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_assign_variable_ops(self, const_shape, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_assign_variable_ops(self, const_shape, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_assign_variable_ops_net(const_shape),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Atan2.py b/tests/layer_tests/tensorflow_tests/test_tf_Atan2.py
index 6a5848b7dd6..8e139b1bc7d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Atan2.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Atan2.py
@@ -39,8 +39,6 @@ class TestAtan2(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_atan2_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_atan2_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_atan2_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpace.py b/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpace.py
index e33c53291d1..beac5dc7b40 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpace.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpace.py
@@ -32,11 +32,9 @@ class TestBatchToSpace(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_batch_to_space_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_batch_to_space_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_batch_to_space_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(in_shape=[4, 1, 1, 3], block_shape_value=[2, 2], crops_value=[[0, 0], [0, 0]]),
@@ -47,11 +45,9 @@ class TestBatchToSpace(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_batch_to_space_4D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_batch_to_space_4D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_batch_to_space_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(in_shape=[144, 2, 1, 4, 1], block_shape_value=[3, 4, 2, 2],
@@ -60,8 +56,6 @@ class TestBatchToSpace(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_batch_to_space_5D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_batch_to_space_5D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_batch_to_space_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpaceND.py b/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpaceND.py
index ea6d5aa339b..885b560f839 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpaceND.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BatchToSpaceND.py
@@ -28,8 +28,6 @@ class TestBatchToSpaceND(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_batch_to_space_nd_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_batch_to_space_nd_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_batch_to_space_nd_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BiasAdd.py b/tests/layer_tests/tensorflow_tests/test_tf_BiasAdd.py
index 2f6f33422d8..f5e48dadbf8 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BiasAdd.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BiasAdd.py
@@ -8,7 +8,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestBiasAdd(CommonTFLayerTest):
- def create_bias_add_placeholder_const_net(self, shape, ir_version, use_legacy_frontend, output_type=tf.float32):
+ def create_bias_add_placeholder_const_net(self, shape, ir_version, output_type=tf.float32):
tf.compat.v1.reset_default_graph()
# Create the graph and model
@@ -32,7 +32,7 @@ class TestBiasAdd(CommonTFLayerTest):
return tf_net, ref_net
- def create_bias_add_2_consts_net(self, shape, ir_version, use_legacy_frontend, output_type=tf.float32):
+ def create_bias_add_2_consts_net(self, shape, ir_version, output_type=tf.float32):
tf.compat.v1.reset_default_graph()
tf_concat_axis = -1
@@ -67,21 +67,15 @@ class TestBiasAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_bias_add_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_bias_add_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_bias_add_2_consts_2D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_bias_add_2_consts_2D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_3D = [
pytest.param(dict(shape=[1, 1, 224]), marks=pytest.mark.xfail(reason="*-19053")),
@@ -90,21 +84,15 @@ class TestBiasAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_bias_add_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_bias_add_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_bias_add_2_consts_3D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_bias_add_2_consts_3D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(shape=[1, 1, 100, 224]),
@@ -115,23 +103,17 @@ class TestBiasAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_bias_add_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_bias_add_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_bias_add_2_consts_4D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_bias_add_2_consts_4D(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'CPU':
pytest.skip('155622: OpenVINO runtime timeout on CPU')
- self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(shape=[1, 1, 50, 100, 224]),
@@ -141,21 +123,15 @@ class TestBiasAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_bias_add_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_bias_add_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_bias_add_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_bias_add_2_consts_5D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_bias_add_2_consts_5D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_bias_add_2_consts_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexBiasAdd(CommonTFLayerTest):
@@ -177,7 +153,7 @@ class TestComplexBiasAdd(CommonTFLayerTest):
return inputs_data
- def create_complex_bias_add_net(self, input_shape, bias_shape, data_format, ir_version, use_legacy_frontend, output_type=tf.float32):
+ def create_complex_bias_add_net(self, input_shape, bias_shape, data_format, ir_version, output_type=tf.float32):
tf.compat.v1.reset_default_graph()
with tf.compat.v1.Session() as sess:
@@ -208,9 +184,6 @@ class TestComplexBiasAdd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_bias_add(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_complex_bias_add_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ def test_complex_bias_add(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_complex_bias_add_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BinaryComparison.py b/tests/layer_tests/tensorflow_tests/test_tf_BinaryComparison.py
index d8c8dfc8d60..22e067fe200 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BinaryComparison.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BinaryComparison.py
@@ -87,10 +87,8 @@ class TestBinaryComparison(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_binary_comparison(self, input_shape1, input_shape2, binary_op, is_const, input_type,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and input_type == np.int16 and is_const:
pytest.skip('150501: Accuracy error on GPU for int16 type and constant operand')
self._test(*self.create_binary_comparison_net(input_shape1, input_shape2, binary_op, is_const, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BinaryOps.py b/tests/layer_tests/tensorflow_tests/test_tf_BinaryOps.py
index 794f4785a23..0af5fb3177f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BinaryOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BinaryOps.py
@@ -90,13 +90,10 @@ class TestBinaryOps(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_binary_op(self, x_shape, y_shape, ie_device, precision, ir_version, temp_dir, op_type,
- use_legacy_frontend):
- if use_legacy_frontend and op_type in ['Xdivy']:
- pytest.skip("Xdivy op is supported only by new TF FE.")
+ def test_binary_op(self, x_shape, y_shape, ie_device, precision, ir_version, temp_dir, op_type):
if op_type in ['Pow', 'Mod'] and ie_device == 'GPU':
pytest.skip("For Mod and Pow GPU has inference mismatch")
if op_type in ['Mod', 'FloorDiv', 'FloorMod']:
pytest.skip("Inference mismatch for Mod and FloorDiv")
self._test(*self.create_add_placeholder_const_net(x_shape=x_shape, y_shape=y_shape, op_type=op_type), ie_device,
- precision, ir_version, temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Bitwise.py b/tests/layer_tests/tensorflow_tests/test_tf_Bitwise.py
index 709cb6b5d0e..5db7f45086d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Bitwise.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Bitwise.py
@@ -65,9 +65,9 @@ class TestBitwise(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_bitwise(self, x_shape, y_shape, is_y_const, input_type, op_type, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
if ie_device == 'GPU':
pytest.skip("148540: Bitwise ops are not supported on GPU")
self._test(*self.create_bitwise_net(x_shape=x_shape, y_shape=y_shape, is_y_const=is_y_const,
input_type=input_type, op_type=op_type),
- ie_device, precision, ir_version, temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BitwiseShift.py b/tests/layer_tests/tensorflow_tests/test_tf_BitwiseShift.py
index aa8b7bf6e5d..79d135d3ff1 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BitwiseShift.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BitwiseShift.py
@@ -67,11 +67,9 @@ class TestBitwise(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_bitwise(self, x_shape, y_shape, is_y_const, input_type, op_type, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
if ie_device == 'GPU' and input_type in [np.uint64]:
pytest.skip("149424: uint64 type is not supported on GPU")
- if use_legacy_frontend:
- pytest.skip("BitwiseShift ops are supported only by new TF FE")
self._test(*self.create_bitwise_net(x_shape=x_shape, y_shape=y_shape, is_y_const=is_y_const,
input_type=input_type, op_type=op_type),
- ie_device, precision, ir_version, temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BlockLSTM.py b/tests/layer_tests/tensorflow_tests/test_tf_BlockLSTM.py
index 58bbd6ef487..5205c8d5b5f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BlockLSTM.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BlockLSTM.py
@@ -55,11 +55,10 @@ class TestBlockLSTM(CommonTFLayerTest):
@pytest.mark.precommit
def test_block_lstm(self, time_len, seq_len_max, input_size, hidden_size, batch_size,
forget_bias, cell_clip, use_peephole,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Skip BlockLSTM test on GPU")
self._test(*self.create_block_lstm(time_len, seq_len_max, input_size, hidden_size, batch_size,
forget_bias, cell_clip, use_peephole),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, custom_eps=3 * 1e-3)
+ custom_eps=3 * 1e-3)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BroadcastArgs.py b/tests/layer_tests/tensorflow_tests/test_tf_BroadcastArgs.py
index 85b78581e1c..23f3063a1be 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BroadcastArgs.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BroadcastArgs.py
@@ -55,7 +55,6 @@ class TestBroadcastArgs(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_broadcast_args_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_broadcast_args_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_broadcast_args_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_BroadcastTo.py b/tests/layer_tests/tensorflow_tests/test_tf_BroadcastTo.py
index ae1ff0dfac6..b9953cdb532 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_BroadcastTo.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_BroadcastTo.py
@@ -13,8 +13,7 @@ class TestBroadcastTo(CommonTFLayerTest):
# input_shape - shape a tensor for a broadcast
# broadcast_shape - shape of output
# ir_version - common parameter
- # use_legacy_frontend - common parameter
- def create_broadcastto_placeholder_const_net(self, input_shape, broadcast_shape, ir_version, use_legacy_frontend):
+ def create_broadcastto_placeholder_const_net(self, input_shape, broadcast_shape, ir_version):
"""
Tensorflow net IR net
@@ -47,9 +46,6 @@ class TestBroadcastTo(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_broadcastto_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_broadcastto_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ def test_broadcastto_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_broadcastto_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Bucketize.py b/tests/layer_tests/tensorflow_tests/test_tf_Bucketize.py
index b4a039d314c..4c90f7652ff 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Bucketize.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Bucketize.py
@@ -59,12 +59,10 @@ class TestBucketize(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_bucketize(self, input_shape, input_type, boundaries_size,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and boundaries_size == 0:
pytest.skip("152562: sporadic accuracy issue for boundaries_size == 0 on GPU")
if platform.machine() in ["aarch64", "arm64", "ARM64"] and boundaries_size == 0:
pytest.skip("149853: segmentation fault or signal 11 for boundaries_size == 0 on CPU")
self._test(*self.create_bucketize_net(input_shape, input_type, boundaries_size),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_CTCGreedyDecoder.py b/tests/layer_tests/tensorflow_tests/test_tf_CTCGreedyDecoder.py
index 58dac290442..aa4f8db9d74 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_CTCGreedyDecoder.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_CTCGreedyDecoder.py
@@ -15,9 +15,8 @@ class TestCTCGreedyDecoder(CommonTFLayerTest):
# input_shape - shape a tensor for a decoder
# merge_repeated - bool, enables/disable merge repeated classes in decoder
# ir_version - common parameter
- # use_legacy_frontend - common parameter
def create_ctcgreedydecoder_placeholder_const_net(self, input_shape, merge_repeated,
- ir_version, use_legacy_frontend):
+ ir_version):
"""
Tensorflow net IR net
@@ -25,9 +24,6 @@ class TestCTCGreedyDecoder(CommonTFLayerTest):
"""
- if use_legacy_frontend == False:
- pytest.skip('Legacy path isn\'t supported by CTCGreedyDecoder')
-
seq_lens = np.array([input_shape[2]], dtype=np.int32)
tf.compat.v1.reset_default_graph()
@@ -60,11 +56,10 @@ class TestCTCGreedyDecoder(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.parametrize("merge_repeated", [False, True])
@pytest.mark.nightly
- def test_ctcgreedydecoder_placeholder_const(self, params, merge_repeated, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_ctcgreedydecoder_placeholder_const(self, params, merge_repeated, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104860')
self._test(*self.create_ctcgreedydecoder_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, merge_repeated=merge_repeated),
+ merge_repeated=merge_repeated),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, merge_repeated=merge_repeated)
+ merge_repeated=merge_repeated)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_CTCLoss.py b/tests/layer_tests/tensorflow_tests/test_tf_CTCLoss.py
index bec964844a9..1ffb7e4bf81 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_CTCLoss.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_CTCLoss.py
@@ -62,10 +62,8 @@ class TestCTCLoss(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
def test_ctcloss_placeholder_const(self, params, preprocess_collapse_repeated, ctc_merge_repeated,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_ctcloss_placeholder_const_net(**params,
preprocess_collapse_repeated=preprocess_collapse_repeated,
ctc_merge_repeated=ctc_merge_repeated),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Cast.py b/tests/layer_tests/tensorflow_tests/test_tf_Cast.py
index 3d980e8798f..3ba0fb06e00 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Cast.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Cast.py
@@ -24,9 +24,7 @@ class TestCastOp(CommonTFLayerTest):
# output_type - type of output value
# truncate - boolean flag of truncation
# ir_version - common parameter
- # use_legacy_frontend - common parameter
- def create_cast_op_placeholder_const_net(self, input_shape, input_type, output_type, truncate, ir_version,
- use_legacy_frontend):
+ def create_cast_op_placeholder_const_net(self, input_shape, input_type, output_type, truncate, ir_version):
if (input_type == output_type):
pytest.skip("Input and output types shouldn't be equal")
@@ -67,13 +65,10 @@ class TestCastOp(CommonTFLayerTest):
@pytest.mark.parametrize("truncate", [False, True])
@pytest.mark.nightly
def test_cast_op_placeholder_const(self, params, input_type, output_type, truncate, ie_device, precision,
- ir_version, temp_dir,
- use_legacy_frontend):
+ ir_version, temp_dir):
if ie_device == 'GPU' and output_type == np.float64:
pytest.skip("accuracy mismatch float64 output_type on GPU")
self._test(*self.create_cast_op_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend,
input_type=input_type,
output_type=output_type, truncate=truncate),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_CheckNumerics.py b/tests/layer_tests/tensorflow_tests/test_tf_CheckNumerics.py
index f926364395d..8229dc9483c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_CheckNumerics.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_CheckNumerics.py
@@ -45,9 +45,7 @@ class TestCheckNumerics(CommonTFLayerTest):
@pytest.mark.parametrize("input_shape, input_type, op", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_check_numerics_basic(self, input_shape, input_type, op, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_check_numerics_basic(self, input_shape, input_type, op, ie_device, precision, ir_version, temp_dir):
params = dict(input_shape=input_shape, input_type=input_type, op=OPS[op])
self._test(*self.create_check_numerics_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ClipByValue.py b/tests/layer_tests/tensorflow_tests/test_tf_ClipByValue.py
index deced05748b..6d88b171ae2 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ClipByValue.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ClipByValue.py
@@ -42,9 +42,8 @@ class TestClipByValue(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_clip_by_value_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_clip_by_value_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_clip_by_value_net(**params), ie_device,
- precision, temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ precision, temp_dir=temp_dir, ir_version=ir_version,
**params)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ComplexAbs.py b/tests/layer_tests/tensorflow_tests/test_tf_ComplexAbs.py
index c80af1d3aec..90ddc231091 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ComplexAbs.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ComplexAbs.py
@@ -36,8 +36,6 @@ class TestComplexAbs(CommonTFLayerTest):
@pytest.mark.parametrize('input_shape', [[], [2], [1, 3], [2, 3, 4], [3, 4, 5, 6]])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_abs(self, input_shape, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_abs(self, input_shape, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_abs_net(input_shape),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ComplexFFT.py b/tests/layer_tests/tensorflow_tests/test_tf_ComplexFFT.py
index ca7fb119f69..d2529b1a7f5 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ComplexFFT.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ComplexFFT.py
@@ -74,8 +74,7 @@ class TestComplexFFT(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_complex_fft_basic(self, input_shape, shift_roll, axis_roll, fft_op,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if platform.machine() in ['aarch64', 'arm64', 'ARM64'] and fft_op in ['tf.raw_ops.FFT3D', 'tf.raw_ops.IFFT3D']:
pytest.skip('151532: accuracy error on ARM')
custom_eps = 1e-2
@@ -84,7 +83,7 @@ class TestComplexFFT(CommonTFLayerTest):
self._test(*self.create_complex_fft_net(input_shape=input_shape, shift_roll=shift_roll,
axis_roll=axis_roll, fft_op=OPS[fft_op]),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=custom_eps)
+ custom_eps=custom_eps)
class TestComplexRFFT(CommonTFLayerTest):
@@ -119,14 +118,13 @@ class TestComplexRFFT(CommonTFLayerTest):
])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_rfft_basic(self, input_shape, fft_length, rfft_op, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_rfft_basic(self, input_shape, fft_length, rfft_op, ie_device, precision, ir_version, temp_dir):
custom_eps = None
if ie_device == 'GPU' and rfft_op in ['tf.raw_ops.RFFT2D']:
custom_eps = 2 * 1e-2
self._test(*self.create_complex_rfft_net(input_shape=input_shape, fft_length=fft_length, rfft_op=OPS[rfft_op]),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=custom_eps)
+ custom_eps=custom_eps)
class TestComplexIRFFT(CommonTFLayerTest):
@@ -156,11 +154,9 @@ class TestComplexIRFFT(CommonTFLayerTest):
])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_irfft_basic(self, input_shape, fft_length, irfft_op, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_irfft_basic(self, input_shape, fft_length, irfft_op, ie_device, precision, ir_version, temp_dir):
if ie_device == 'CPU' and input_shape == [1, 10, 20, 30, 5]:
pytest.skip('124452: accuracy issue on CPU')
self._test(*self.create_complex_irfft_net(input_shape=input_shape, fft_length=fft_length,
irfft_op=OPS[irfft_op]),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Concat.py b/tests/layer_tests/tensorflow_tests/test_tf_Concat.py
index 8f5a9354fc7..ec0e7c8173a 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Concat.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Concat.py
@@ -7,7 +7,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestConcat(CommonTFLayerTest):
- def create_concat_net(self, input_shapes, axis, is_v2, ir_version, use_legacy_frontend):
+ def create_concat_net(self, input_shapes, axis, is_v2, ir_version):
# tf.concat is equivalent to tf.raw_ops.ConcatV2
# only tf.concat accepts one input
import tensorflow as tf
@@ -40,11 +40,9 @@ class TestConcat(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_concat_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_concat_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_concat_basic(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_concat_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_1D = [
dict(input_shapes=[[1], [2]], axis=0, is_v2=False),
@@ -52,11 +50,9 @@ class TestConcat(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_1D)
@pytest.mark.nightly
- def test_concat_1D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_concat_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_concat_1D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_concat_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_2D = [
dict(input_shapes=[[1, 4], [1, 2]], axis=-1, is_v2=True)
@@ -64,11 +60,9 @@ class TestConcat(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_concat_2D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_concat_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_concat_2D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_concat_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_3D = [
dict(input_shapes=[[1, 3, 2], [1, 3, 5]], axis=-1, is_v2=True),
@@ -77,11 +71,9 @@ class TestConcat(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_concat_3D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_concat_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_concat_3D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_concat_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(input_shapes=[[1, 3, 5, 7], [3, 3, 5, 7], [2, 3, 5, 7]], axis=0, is_v2=False),
@@ -91,11 +83,9 @@ class TestConcat(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_concat_4D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_concat_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_concat_4D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_concat_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(input_shapes=[[1, 3, 5, 7, 8], [2, 3, 5, 7, 8]], axis=0, is_v2=True),
@@ -103,8 +93,6 @@ class TestConcat(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_concat_5D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_concat_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_concat_5D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_concat_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Conj.py b/tests/layer_tests/tensorflow_tests/test_tf_Conj.py
index e2d24e82d59..b2da0d16cc5 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Conj.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Conj.py
@@ -54,8 +54,6 @@ class TestComplexConjugate(CommonTFLayerTest):
@pytest.mark.parametrize("input_shape", [[1, 2], [1, 2, 3], [1, 2, 3, 4], [1, 2, 3, 4, 5]])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_conjugate(self, input_shape, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_conjugate(self, input_shape, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_conjugate_net(input_shape),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ConjugateTranspose.py b/tests/layer_tests/tensorflow_tests/test_tf_ConjugateTranspose.py
index 5cbb63e100e..23d01b8391d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ConjugateTranspose.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ConjugateTranspose.py
@@ -63,11 +63,9 @@ class TestComplexConjugateTranspose(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_conjugate_transpose(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_conjugate_transpose(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_conjugate_transpose_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestConjugateTranspose(CommonTFLayerTest):
@@ -113,8 +111,6 @@ class TestConjugateTranspose(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_conjugate_transpose(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_conjugate_transpose(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_conjugate_transpose_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Conv2D.py b/tests/layer_tests/tensorflow_tests/test_tf_Conv2D.py
index a6f31400641..c7bbee450cf 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Conv2D.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Conv2D.py
@@ -15,9 +15,8 @@ class TestConv2D(CommonTFLayerTest):
# input_strides - should be an array, defines strides of a sliding window to use
# input_padding - should be a string, defines padding algorithm
# ir_version - common parameter
- # use_legacy_frontend - common parameter
def create_conv2d_placeholder_const_net(self, input_shape, input_filter, input_strides, input_padding, dilations,
- ir_version, use_legacy_frontend):
+ ir_version):
"""
Tensorflow net IR net
@@ -35,7 +34,7 @@ class TestConv2D(CommonTFLayerTest):
# Batch Height Width Channel
expl_paddings = [0, 0, 1, 1, 1, 1, 0, 0]
- if input_padding == 'EXPLICIT' and use_legacy_frontend == False:
+ if input_padding == 'EXPLICIT':
pytest.xfail(reason="100300")
tf.compat.v1.reset_default_graph()
@@ -81,11 +80,8 @@ class TestConv2D(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.parametrize("padding", ['EXPLICIT', 'SAME', 'VALID'])
@pytest.mark.nightly
- def test_conv2d_placeholder_const(self, params, padding, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_conv2d_placeholder_const(self, params, padding, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104862')
- self._test(*self.create_conv2d_placeholder_const_net(**params, input_padding=padding, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, input_padding=padding, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_conv2d_placeholder_const_net(**params, input_padding=padding, ir_version=ir_version),
+ ie_device, precision, ir_version, input_padding=padding, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Conv2DBackpropInput.py b/tests/layer_tests/tensorflow_tests/test_tf_Conv2DBackpropInput.py
index 4383da19f73..a3d45ebd86b 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Conv2DBackpropInput.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Conv2DBackpropInput.py
@@ -59,10 +59,10 @@ class TestConv2DBackpropInput(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_create_conv2d_backprop_input(self, params, padding, input_type,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
custom_eps = None
if input_type == np.float16:
custom_eps = 2 * 1e-3
self._test(*self.create_conv2d_backprop_input_net(**params, padding=padding, input_type=input_type),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=custom_eps)
+ custom_eps=custom_eps)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Conv3D.py b/tests/layer_tests/tensorflow_tests/test_tf_Conv3D.py
index fb3b406418b..0162bbe4558 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Conv3D.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Conv3D.py
@@ -15,9 +15,8 @@ class TestConv3D(CommonTFLayerTest):
# input_strides - should be an array, defines strides of a sliding window to use
# input_padding - should be a string, defines padding algorithm
# ir_version - common parameter
- # use_legacy_frontend - common parameter
def create_conv3d_placeholder_const_net(self, input_shape, input_filter, input_strides, input_padding, dilations,
- ir_version, use_legacy_frontend):
+ ir_version):
"""
Tensorflow net IR net
@@ -75,11 +74,8 @@ class TestConv3D(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.parametrize("padding", ['SAME', 'VALID'])
@pytest.mark.nightly
- def test_conv3d_placeholder_const(self, params, padding, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_conv3d_placeholder_const(self, params, padding, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Unable to convert data format b_fs_zyx_fsv16 to weights format issue on GPU")
- self._test(*self.create_conv3d_placeholder_const_net(**params, input_padding=padding, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, input_padding=padding, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_conv3d_placeholder_const_net(**params, input_padding=padding, ir_version=ir_version),
+ ie_device, precision, ir_version, input_padding=padding, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Conv3DBackprop.py b/tests/layer_tests/tensorflow_tests/test_tf_Conv3DBackprop.py
index c4570ca0e37..b0b0e1d1221 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Conv3DBackprop.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Conv3DBackprop.py
@@ -16,9 +16,8 @@ class TestConv3DBackprop(CommonTFLayerTest):
# input_strides - should be an array, defines strides of a sliding window to use
# input_padding - should be a string, defines padding algorithm
# ir_version - common parameter
- # use_legacy_frontend - common parameter
def create_conv3dbackprop_placeholder_const_net(self, input_shape, input_filter, out_backprop, input_strides,
- input_padding, dilations, ir_version, use_legacy_frontend):
+ input_padding, dilations, ir_version):
"""
TensorFlow net IR net
@@ -81,11 +80,8 @@ class TestConv3DBackprop(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_conv3dbackprop_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_conv3dbackprop_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Unable to convert data format b_fs_zyx_fsv16 to weights format issue on GPU")
- self._test(*self.create_conv3dbackprop_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_conv3dbackprop_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_CropAndResize.py b/tests/layer_tests/tensorflow_tests/test_tf_CropAndResize.py
index 560edfc7d30..ff0edd233d7 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_CropAndResize.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_CropAndResize.py
@@ -57,8 +57,6 @@ class TestCropAndResize(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(platform.machine() in ["aarch64", "arm64", "ARM64"],
reason='Ticket - 122716')
- def test_crop_and_resize_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_crop_and_resize_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_crop_and_resize_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Cumsum.py b/tests/layer_tests/tensorflow_tests/test_tf_Cumsum.py
index d4e1be357f7..3b5cf90085d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Cumsum.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Cumsum.py
@@ -49,11 +49,9 @@ class TestCumsum(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.precommit
@pytest.mark.nightly
- def test_cumsum_basic(self, params, exclusive, reverse, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_cumsum_basic(self, params, exclusive, reverse, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_cumsum_net(**params, exclusive=exclusive, reverse=reverse),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexCumsum(CommonTFLayerTest):
@@ -109,8 +107,6 @@ class TestComplexCumsum(CommonTFLayerTest):
@pytest.mark.parametrize("reverse", [False, True, None])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_cumsum_basic(self, params, exclusive, reverse, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_cumsum_basic(self, params, exclusive, reverse, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_cumsum_net(**params, exclusive=exclusive, reverse=reverse),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_DepthToSpace.py b/tests/layer_tests/tensorflow_tests/test_tf_DepthToSpace.py
index 75b62fa78b2..695b5e03c29 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_DepthToSpace.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_DepthToSpace.py
@@ -28,8 +28,6 @@ class TestDepthToSpace(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_depth_to_space_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_depth_to_space_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_depth_to_space_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Div.py b/tests/layer_tests/tensorflow_tests/test_tf_Div.py
index 161e94a93d8..a59559d3948 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Div.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Div.py
@@ -43,8 +43,6 @@ class TestDiv(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_div_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_div_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_div_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_DivNoNan.py b/tests/layer_tests/tensorflow_tests/test_tf_DivNoNan.py
index 6f6ab3bf273..fd0cc0ef164 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_DivNoNan.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_DivNoNan.py
@@ -44,7 +44,6 @@ class TestDivNoNan(CommonTFLayerTest):
@pytest.mark.nightly
def test_div_no_nan_basic(self, x_shape, y_shape, input_type,
ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_div_no_nan_net(x_shape, y_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_DynamicPartition.py b/tests/layer_tests/tensorflow_tests/test_tf_DynamicPartition.py
index 2511b41afc1..4ef2abf7311 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_DynamicPartition.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_DynamicPartition.py
@@ -44,15 +44,11 @@ class TestDynamicPartition(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_dynamic_partition_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_dynamic_partition_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855')
- if use_legacy_frontend:
- pytest.skip("DynamicPartition operation is not supported via legacy frontend.")
self._test(*self.create_dynamic_partition_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_other_types = [
dict(data_shape=[10], partitions_shape=[10], num_partitions=10, data_type=tf.int32),
@@ -61,12 +57,8 @@ class TestDynamicPartition(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_other_types)
@pytest.mark.nightly
- def test_dynamic_partition_other_types(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_dynamic_partition_other_types(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855')
- if use_legacy_frontend:
- pytest.skip("DynamicPartition operation is not supported via legacy frontend.")
self._test(*self.create_dynamic_partition_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Eltwise.py b/tests/layer_tests/tensorflow_tests/test_tf_Eltwise.py
index 1c18331f1a8..eef18514f06 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Eltwise.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Eltwise.py
@@ -7,7 +7,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestEltwise(CommonTFLayerTest):
- def create_eltwise_net(self, shape, operation, ir_version, use_legacy_frontend):
+ def create_eltwise_net(self, shape, operation, ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -40,11 +40,9 @@ class TestEltwise(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_eltwise(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_eltwise_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_eltwise(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_eltwise_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = []
for operation in ['sum', 'max', 'mul']:
@@ -53,11 +51,8 @@ class TestEltwise(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_eltwise_5D_precommit(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_eltwise_5D_precommit(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("5D tensors is not supported on GPU")
- self._test(*self.create_eltwise_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_eltwise_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_EnsureShape.py b/tests/layer_tests/tensorflow_tests/test_tf_EnsureShape.py
index dfceee0003e..0d09f147bf3 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_EnsureShape.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_EnsureShape.py
@@ -37,10 +37,8 @@ class TestEnsureShape(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_ensure_shape_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_ensure_shape_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("timeout issue on GPU")
self._test(*self.create_ensure_shape_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Equal.py b/tests/layer_tests/tensorflow_tests/test_tf_Equal.py
index b0f8400ea0c..d6e690a22a3 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Equal.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Equal.py
@@ -39,13 +39,12 @@ class TestTFEqual(CommonTFLayerTest):
return inputs_dict
# ir_version - common parameter
- # use_legacy_frontend - common parameter
# x_shape - first argument, should be an array (shape)
# output_type - type of operands (numpy types: int32, int64, float16, etc...), different types for operands are not suppoted by TF
# y_shape - second argument, should be an array (shape). Might be None if y_value is passed
# x_value - fills x_shape by chosen value, uses randint instead
# y_value - if y_shape is None - uses y_value as scalar, otherwise fills y_shape by chosen value, uses randint instead
- def create_tf_equal_net(self, ir_version, use_legacy_frontend, x_shape, output_type, y_shape=None, x_value=None,
+ def create_tf_equal_net(self, ir_version, x_shape, output_type, y_shape=None, x_value=None,
y_value=None):
self.x_value = x_value
self.y_value = y_value
@@ -111,11 +110,11 @@ class TestTFEqual(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_int32)
@pytest.mark.nightly
- def test_tf_equal_int32(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_tf_equal_int32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tf_equal_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, output_type=np.int32),
+ output_type=np.int32),
ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
test_data_int64 = [
@@ -136,11 +135,11 @@ class TestTFEqual(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_int64)
@pytest.mark.nightly
- def test_tf_equal_int64(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_tf_equal_int64(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tf_equal_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, output_type=np.int64),
+ output_type=np.int64),
ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
# Values for checking important corner cases for float values
@@ -163,11 +162,11 @@ class TestTFEqual(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_float16)
@pytest.mark.nightly
- def test_tf_equal_float16(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_tf_equal_float16(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tf_equal_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, output_type=np.float16),
+ output_type=np.float16),
ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
test_data_float32 = [
@@ -185,11 +184,11 @@ class TestTFEqual(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_float32)
@pytest.mark.nightly
- def test_tf_equal_float32(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_tf_equal_float32(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tf_equal_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, output_type=np.float32),
+ output_type=np.float32),
ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
test_data_float64 = [
@@ -207,11 +206,11 @@ class TestTFEqual(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_float64)
@pytest.mark.nightly
- def test_tf_equal_float64(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_tf_equal_float64(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tf_equal_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, output_type=np.float64),
+ output_type=np.float64),
ie_device, precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ temp_dir=temp_dir, ir_version=ir_version,
**params)
@@ -250,15 +249,13 @@ class TestEqualStr(CommonTFLayerTest):
'arm64', 'ARM64'],
reason='126314, 132699: Build tokenizers for ARM and MacOS')
def test_equal_str(self, x_shape, y_shape,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if x_shape == [] and y_shape == []:
pytest.skip("156746: EqualStr operation outputs 1D tensor for two input scalars")
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_equal_net(x_shape=x_shape, y_shape=y_shape),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexEqual(CommonTFLayerTest):
@@ -306,10 +303,7 @@ class TestComplexEqual(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_equal(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_equal(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_equal_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend
- )
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Erfc.py b/tests/layer_tests/tensorflow_tests/test_tf_Erfc.py
index 9b9ce48e013..ad11b86e31b 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Erfc.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Erfc.py
@@ -35,8 +35,6 @@ class TestAddTypes(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_erfc(self, input_shape, input_type,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_erfc_net(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ExpandDims.py b/tests/layer_tests/tensorflow_tests/test_tf_ExpandDims.py
index d236005142e..e84bc5160ec 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ExpandDims.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ExpandDims.py
@@ -37,10 +37,9 @@ class TestExpandDims(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_basic)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_expand_dims_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_expand_dims_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_expand_dims_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestExpandDimsComplex(CommonTFLayerTest):
@@ -88,7 +87,6 @@ class TestExpandDimsComplex(CommonTFLayerTest):
@pytest.mark.parametrize("op_args", test_basic)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_expand_dims_basic_complex(self, axis_dtype, op_args, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_expand_dims_basic_complex(self, axis_dtype, op_args, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_expand_dims_complex_net(axis_dtype, **op_args),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Expm1.py b/tests/layer_tests/tensorflow_tests/test_tf_Expm1.py
index eb2ff2379db..adcf5f58c2c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Expm1.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Expm1.py
@@ -33,8 +33,6 @@ class TestExpm1(CommonTFLayerTest):
@pytest.mark.parametrize('x_type', [np.float16, np.float32, np.float64])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_expm1(self, x_shape, x_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_expm1(self, x_shape, x_type, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_expm1_net(x_shape, x_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ExtractImagePatches.py b/tests/layer_tests/tensorflow_tests/test_tf_ExtractImagePatches.py
index a85507ae5f8..886bb80ce1b 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ExtractImagePatches.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ExtractImagePatches.py
@@ -36,10 +36,8 @@ class TestExtractImagePatches(CommonTFLayerTest):
@pytest.mark.parametrize("padding", ["SAME", "VALID"])
@pytest.mark.nightly
@pytest.mark.precommit
- def test_extract_image_patches_basic(self, params, padding, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_extract_image_patches_basic(self, params, padding, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and padding == 'SAME':
pytest.skip("accuracy mismatch for VALID padding on GPU")
self._test(*self.create_extract_image_patches_net(**params, padding=padding),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Eye.py b/tests/layer_tests/tensorflow_tests/test_tf_Eye.py
index e72f98ea22f..769ba976d77 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Eye.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Eye.py
@@ -53,12 +53,7 @@ class TestTFEye(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_tf_eye(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- if not use_legacy_frontend:
- pytest.xfail(reason="132517: MatrixDiagV3 needs to be supported")
- if ie_device == 'GPU':
- pytest.skip("Roll is not supported on GPU")
+ def test_tf_eye(self, params, ie_device, precision, ir_version, temp_dir):
+ pytest.xfail(reason="132517: MatrixDiagV3 needs to be supported")
self._test(*self.create_tf_eye_net(**params), ie_device,
- precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
- **params)
+ precision, temp_dir=temp_dir, ir_version=ir_version, **params)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantWithMinMaxVars.py b/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantWithMinMaxVars.py
index f3c439a7851..155dab40bc9 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantWithMinMaxVars.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantWithMinMaxVars.py
@@ -52,11 +52,10 @@ class TestFakeQuantWithMinMaxVars(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_fake_quant_with_min_max_vars_basic(self, inputs_shape, min_value, max_value, num_bits, narrow_range, fake_quant_op, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_fake_quant_with_min_max_vars_basic(self, inputs_shape, min_value, max_value, num_bits, narrow_range, fake_quant_op, ie_device, precision, ir_version, temp_dir):
params = dict(inputs_shape=inputs_shape, min_value=min_value, max_value=max_value, num_bits=num_bits, narrow_range=narrow_range)
self._test(*self.create_fake_quant_with_min_max_vars_net(**params, fake_quant_op=OPS[fake_quant_op]),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_per_channel_basic = [
[[2, 6, 4], [-4, -3, -5, -8], [4, 7, 9, 5], None, None, 'tf.raw_ops.FakeQuantWithMinMaxVarsPerChannel'],
@@ -66,8 +65,7 @@ class TestFakeQuantWithMinMaxVars(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.xfail("104822")
- def test_fake_quant_with_min_max_vars_per_channel_basic(self, inputs_shape, min_value, max_value, num_bits, narrow_range, fake_quant_op, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_fake_quant_with_min_max_vars_per_channel_basic(self, inputs_shape, min_value, max_value, num_bits, narrow_range, fake_quant_op, ie_device, precision, ir_version, temp_dir):
params=dict(inputs_shape=inputs_shape, min_value=min_value, max_value=max_value, num_bits=num_bits, narrow_range=narrow_range, fake_quant_op=OPS[fake_quant_op])
self._test(*self.create_fake_quant_with_min_max_vars_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantize.py b/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantize.py
index 852ff87231a..df78600d251 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantize.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_FakeQuantize.py
@@ -31,7 +31,7 @@ class TestFakeQuantize(CommonTFLayerTest):
])}
def create_fake_quantize_net(self, il, ih, num_bits, narrow_range, nudged_il, nudged_ih,
- expected_step, ir_version, use_legacy_frontend):
+ expected_step, ir_version):
# original tf model
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -102,10 +102,7 @@ class TestFakeQuantize(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_fake_quantize(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_fake_quantize_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend), ie_device,
+ def test_fake_quantize(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_fake_quantize_net(**params, ir_version=ir_version), ie_device,
precision, ir_version,
- kwargs_to_prepare_input=params, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ kwargs_to_prepare_input=params, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Fill.py b/tests/layer_tests/tensorflow_tests/test_tf_Fill.py
index c7a922254e9..96dcb0736e9 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Fill.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Fill.py
@@ -22,8 +22,7 @@ class TestFillOps(CommonTFLayerTest):
# input_shape - should be an array
# value - value which should be set to tensor
# ir_version - common parameter
- # use_legacy_frontend - common parameter
- def create_fill_ops_placeholder_const_net(self, input_shape, value, ir_version, use_legacy_frontend):
+ def create_fill_ops_placeholder_const_net(self, input_shape, value, ir_version):
self.stored_shape = input_shape
import tensorflow as tf
@@ -51,9 +50,6 @@ class TestFillOps(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_fill_ops_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_fill_ops_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ def test_fill_ops_placeholder_const(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_fill_ops_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_FloorDiv.py b/tests/layer_tests/tensorflow_tests/test_tf_FloorDiv.py
index 4e3efc7e023..d5892888f0e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_FloorDiv.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_FloorDiv.py
@@ -13,7 +13,7 @@ def list_arm_platforms():
return ['arm', 'armv7l', 'aarch64', 'arm64', 'ARM64']
class TestFloorDiv(CommonTFLayerTest):
- def create_add_placeholder_const_net(self, x_shape, dtype, ir_version, use_legacy_frontend):
+ def create_add_placeholder_const_net(self, x_shape, dtype, ir_version):
import tensorflow as tf
self.dtype = dtype
tf.compat.v1.reset_default_graph()
@@ -62,17 +62,14 @@ class TestFloorDiv(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_1D)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_add_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_add_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir):
if platform.system() == 'Linux' and platform.machine() in list_arm_platforms() and np.issubdtype(params['dtype'], np.signedinteger):
pytest.xfail(reason='Ticket CVS-132377 - Divide inconsistent behavior on different systems')
elif platform.system() == 'Darwin' and platform.machine() in list_arm_platforms():
pytest.xfail(reason='Ticket - 132699')
- self._test(*self.create_add_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_add_placeholder_const_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestFloorDivStaticInput(CommonTFLayerTest):
@@ -81,7 +78,7 @@ class TestFloorDivStaticInput(CommonTFLayerTest):
step = 1
dtype = np.int32
- def create_flordiv_tf_net(self, min, max, step, y, dtype, ir_version, use_legacy_frontend):
+ def create_flordiv_tf_net(self, min, max, step, y, dtype, ir_version):
import tensorflow as tf
x = np.arange(min, max, step, dtype=dtype)
@@ -125,9 +122,6 @@ class TestFloorDivStaticInput(CommonTFLayerTest):
reason='Ticket CVS-132377 - Divide inconsistent behavior on different systems')
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() in list_arm_platforms(),
reason='Ticket - 132699')
- def test_floordiv(self, params, dtype, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_flordiv_tf_net(**params, dtype=dtype, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_floordiv(self, params, dtype, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_flordiv_tf_net(**params, dtype=dtype, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_FusedBatchNorm.py b/tests/layer_tests/tensorflow_tests/test_tf_FusedBatchNorm.py
index 7de5088af2e..924e2ba5f92 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_FusedBatchNorm.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_FusedBatchNorm.py
@@ -105,8 +105,6 @@ class TestFusedBatchNorm(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_fused_batch_norm_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_fused_batch_norm_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_fused_batch_norm_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_GRUBlockCell.py b/tests/layer_tests/tensorflow_tests/test_tf_GRUBlockCell.py
index b95deaee77c..f03f6e31baf 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_GRUBlockCell.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_GRUBlockCell.py
@@ -53,10 +53,9 @@ class TestGRUBlockCell(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_gru_block_cell(self, batch_size, input_size, hidden_size,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Skip TF GRUBlockCell test on GPU")
self._test(*self.create_gru_block_cell(batch_size, input_size, hidden_size),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, custom_eps=1e-3)
+ custom_eps=1e-3)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Gather.py b/tests/layer_tests/tensorflow_tests/test_tf_Gather.py
index 702db00272d..dd41cc6971e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Gather.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Gather.py
@@ -72,10 +72,8 @@ class TestGather(CommonTFLayerTest):
@pytest.mark.parametrize("indices_type", [np.int32, np.int64])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_gather(self, params, params_type, indices_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_gather(self, params, params_type, indices_type, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("timeout issue on GPU")
self._test(*self.create_gather_net(**params, params_type=params_type, indices_type=indices_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_GatherNd.py b/tests/layer_tests/tensorflow_tests/test_tf_GatherNd.py
index f49d0460886..785d11ebcab 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_GatherNd.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_GatherNd.py
@@ -58,7 +58,6 @@ class TestGatherNd(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_gather_nd_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_gather_nd_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_gather_nd_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py b/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py
index 5557f3dfd7d..e0a47d2ad56 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py
@@ -41,10 +41,9 @@ class TestHSVToRGB(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_hsv_to_rgb_basic(self, input_shape, input_type, special_case,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip('158898: accuracy issue on GPU')
self._test(*self.create_hsv_to_rgb_net(input_shape, input_type, special_case),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=3 * 1e-3)
+ custom_eps=3 * 1e-3)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Identity.py b/tests/layer_tests/tensorflow_tests/test_tf_Identity.py
index 9237b1c79f8..f0676c41e3d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Identity.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Identity.py
@@ -38,9 +38,7 @@ class TestIdentity(CommonTFLayerTest):
@pytest.mark.parametrize("input_shape, identity_op", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_identity_basic(self, input_shape, identity_op, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_identity_basic(self, input_shape, identity_op, ie_device, precision, ir_version, temp_dir):
params = dict(input_shape=input_shape, identity_op=OPS[identity_op])
self._test(*self.create_identity_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_IdentityN.py b/tests/layer_tests/tensorflow_tests/test_tf_IdentityN.py
index 393e76fe049..7c62170011e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_IdentityN.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_IdentityN.py
@@ -38,8 +38,6 @@ class TestIdentityN(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_split_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_split_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_identityn_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_If.py b/tests/layer_tests/tensorflow_tests/test_tf_If.py
index b3fed7ab63a..e50ac41e83a 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_If.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_If.py
@@ -69,13 +69,11 @@ class TestIfFloat(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855: If operation is not supported by GPU')
self._test(*self.create_if_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestIfInt(CommonTFLayerTest):
@@ -139,13 +137,11 @@ class TestIfInt(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855: If operation is not supported by GPU')
self._test(*self.create_if_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestNestedIf(CommonTFLayerTest):
@@ -217,13 +213,11 @@ class TestNestedIf(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855: If operation is not supported by GPU')
self._test(*self.create_if_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestSequantialIfs(CommonTFLayerTest):
@@ -307,10 +301,8 @@ class TestSequantialIfs(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_if_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855: If operation is not supported by GPU')
self._test(*self.create_sequential_ifs_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Inv.py b/tests/layer_tests/tensorflow_tests/test_tf_Inv.py
index dd0cafa50ab..09b3b508f38 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Inv.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Inv.py
@@ -37,11 +37,9 @@ class TestInv(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_inv_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_inv_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_inv_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexInv(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
@@ -80,9 +78,7 @@ class TestComplexInv(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_inv(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_inv(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_inv_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_InvertPermutation.py b/tests/layer_tests/tensorflow_tests/test_tf_InvertPermutation.py
index 831b13cac95..877c4db1868 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_InvertPermutation.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_InvertPermutation.py
@@ -37,8 +37,6 @@ class TestInvertPermutation(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_invert_permutation_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_invert_permutation_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_invert_permutation_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_IsFinite.py b/tests/layer_tests/tensorflow_tests/test_tf_IsFinite.py
index 54cbf060efc..7d447a5cc23 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_IsFinite.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_IsFinite.py
@@ -39,12 +39,8 @@ class TestIsFinite(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_is_finite_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_is_finite_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855')
- if use_legacy_frontend:
- pytest.skip("IsFinite operation is not supported via legacy frontend.")
self._test(*self.create_is_finite_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_IsInf.py b/tests/layer_tests/tensorflow_tests/test_tf_IsInf.py
index be664ef62b0..778cde90b0b 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_IsInf.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_IsInf.py
@@ -37,12 +37,8 @@ class TestIsInf(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_is_inf_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_is_inf_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855')
- if use_legacy_frontend:
- pytest.skip("IsInf operation is not supported via legacy frontend.")
self._test(*self.create_is_inf_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_IsNan.py b/tests/layer_tests/tensorflow_tests/test_tf_IsNan.py
index 64c8bece63e..ba2b7ad888c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_IsNan.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_IsNan.py
@@ -39,12 +39,8 @@ class TestIsNan(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_is_nan_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_is_nan_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.xfail('104855')
- if use_legacy_frontend:
- pytest.skip("IsNan operation is not supported via legacy frontend.")
self._test(*self.create_is_nan_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_L2Loss.py b/tests/layer_tests/tensorflow_tests/test_tf_L2Loss.py
index eaa362cc6dc..ce54b28bdeb 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_L2Loss.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_L2Loss.py
@@ -34,8 +34,7 @@ class TestL2Loss(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_l2_loss_basic(self, input_shape, input_type,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
custom_eps = None
if input_type == np.float16:
custom_eps = 3 * 1e-3
@@ -43,4 +42,4 @@ class TestL2Loss(CommonTFLayerTest):
pytest.skip("150321: Accessing out-of-range dimension on GPU")
self._test(*self.create_l2_loss_net(input_shape, input_type),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=custom_eps)
+ custom_eps=custom_eps)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LRN.py b/tests/layer_tests/tensorflow_tests/test_tf_LRN.py
index 0b2b61d7c93..f077cb5b86c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_LRN.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_LRN.py
@@ -28,8 +28,6 @@ class TestLRN(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
#@pytest.mark.precommit - ticket 116032
@pytest.mark.nightly
- def test_lrn_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_lrn_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_lrn_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LeakyRelu.py b/tests/layer_tests/tensorflow_tests/test_tf_LeakyRelu.py
index dd17b9c95dc..736bd0e8273 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_LeakyRelu.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_LeakyRelu.py
@@ -37,7 +37,6 @@ class TestLeakyRelu(CommonTFLayerTest):
@pytest.mark.nightly
def test_leaky_relu(self, features_shape, features_type, alpha,
ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_leaky_relu_net(features_shape, features_type, alpha),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LinSpace.py b/tests/layer_tests/tensorflow_tests/test_tf_LinSpace.py
index d0416130da9..58e094e294c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_LinSpace.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_LinSpace.py
@@ -43,8 +43,6 @@ class TestLinSpace(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_lin_space_basic(self, start_value, stop_value, num_value, input_type, num_type,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_lin_space_net(start_value, stop_value, num_value, input_type, num_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ListDiff.py b/tests/layer_tests/tensorflow_tests/test_tf_ListDiff.py
index 136ee344a4a..febd438ed2f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ListDiff.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ListDiff.py
@@ -41,8 +41,6 @@ class TestListDiff(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_list_diff_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_list_diff_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_list_diff_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Log1p.py b/tests/layer_tests/tensorflow_tests/test_tf_Log1p.py
index 6e9ca74436e..c540392a474 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Log1p.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Log1p.py
@@ -36,8 +36,6 @@ class TestLog1p(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_log1p_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_log1p_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_log1p_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LogSoftmax.py b/tests/layer_tests/tensorflow_tests/test_tf_LogSoftmax.py
index a8bac0c2e5e..8fb5f175de5 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_LogSoftmax.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_LogSoftmax.py
@@ -35,10 +35,10 @@ class TestLogSoftmax(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_log_softmax_basic(self, input_shape, input_type,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
custom_eps = None
if input_type == np.float16:
custom_eps = 1e-3
self._test(*self.create_log_softmax_net(input_shape, input_type),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=custom_eps)
+ custom_eps=custom_eps)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LogicalBinaryOps.py b/tests/layer_tests/tensorflow_tests/test_tf_LogicalBinaryOps.py
index 292252b231c..d7a4ab0da62 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_LogicalBinaryOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_LogicalBinaryOps.py
@@ -48,7 +48,7 @@ class TestLogicalBinaryOps(CommonTFLayerTest):
@pytest.mark.precommit
def test_logical_binary_op(self, x_shape, y_shape, op_type,
ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_logical_binary_ops_net(x_shape=x_shape, y_shape=y_shape, op_type=op_type),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py b/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py
index 9f2c845fb2a..c9af4074e0a 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py
@@ -84,12 +84,10 @@ class TestLookupTableFindOps(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_lookup_table_find(self, hash_table_type, keys_shape, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_lookup_table_find(self, hash_table_type, keys_shape, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extesion is not supported on GPU or "
"No layout format available for gather:LookupTableFind issue")
self._test(*self.create_lookup_table_find_net(hash_table_type=hash_table_type,
keys_shape=keys_shape, **params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LookupTableSize.py b/tests/layer_tests/tensorflow_tests/test_tf_LookupTableSize.py
index 8bf70c7d8f7..f465d6de2f7 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_LookupTableSize.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_LookupTableSize.py
@@ -66,9 +66,7 @@ class TestLookupTableSizeOps(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_lookup_table_size(self, hash_table_type, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_lookup_table_size(self, hash_table_type, params, ie_device, precision, ir_version, temp_dir):
keys_type = params['keys_type']
self._test(*self.create_lookup_table_size_net(hash_table_type=hash_table_type, **params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_MatMul.py b/tests/layer_tests/tensorflow_tests/test_tf_MatMul.py
index 691d4822228..d502a8468e4 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_MatMul.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_MatMul.py
@@ -8,7 +8,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestMatMul(CommonTFLayerTest):
- def create_net_with_matmul_op(self, x_shape, y_shape, x_bool, y_bool, op_type, ir_version, use_legacy_frontend):
+ def create_net_with_matmul_op(self, x_shape, y_shape, x_bool, y_bool, op_type, ir_version):
import tensorflow as tf
op_type_to_tf = {
'BatchMatMul': tf.raw_ops.BatchMatMul,
@@ -58,12 +58,10 @@ class TestMatMul(CommonTFLayerTest):
])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_matmul_op_precommit(self, params, ie_device, precision, ir_version, temp_dir, op_type,
- use_legacy_frontend):
+ def test_matmul_op_precommit(self, params, ie_device, precision, ir_version, temp_dir, op_type):
self._test(*self.create_net_with_matmul_op(**params, ir_version=ir_version, op_type=op_type,
- use_legacy_frontend=use_legacy_frontend, x_bool=False, y_bool=False),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ x_bool=False, y_bool=False),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data = test_data_precommit + [
dict(x_shape=[2, 3, 4, 4], y_shape=[2, 3, 4, 4]), #Tests 4D shapes
@@ -85,8 +83,7 @@ class TestMatMul(CommonTFLayerTest):
])
@pytest.mark.nightly
def test_matmul_op_nightly(self, params, ie_device, precision, ir_version, temp_dir, op_type,
- x_bool, y_bool, use_legacy_frontend):
+ x_bool, y_bool):
self._test(*self.create_net_with_matmul_op(**params, ir_version=ir_version, op_type=op_type,
- use_legacy_frontend=use_legacy_frontend, x_bool=x_bool, y_bool=y_bool),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ x_bool=x_bool, y_bool=y_bool),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_MatrixBandPart.py b/tests/layer_tests/tensorflow_tests/test_tf_MatrixBandPart.py
index ad0055f9ef3..ea16890577a 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_MatrixBandPart.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_MatrixBandPart.py
@@ -34,8 +34,6 @@ class TestMatrixBandPart(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_matrix_band_part_basic(self, input_shape, input_type, num_lower, num_upper,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_matrix_band_part_net(input_shape, input_type, num_lower, num_upper),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_MatrixDiag.py b/tests/layer_tests/tensorflow_tests/test_tf_MatrixDiag.py
index 8688ae0472e..ba4e3befe17 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_MatrixDiag.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_MatrixDiag.py
@@ -37,8 +37,6 @@ class TestMatrixDiag(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_matrix_diag_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_matrix_diag_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_matrix_diag_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_MatrixInverse.py b/tests/layer_tests/tensorflow_tests/test_tf_MatrixInverse.py
index ac26071bd3f..223d2da6cad 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_MatrixInverse.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_MatrixInverse.py
@@ -56,9 +56,8 @@ class TestMatrixInverse(CommonTFLayerTest):
@pytest.mark.parametrize("adjoint", [None, False, True])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_matrix_inverse_basic(self, input_shape, adjoint, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_matrix_inverse_basic(self, input_shape, adjoint, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("GPU does not support Inverse operation")
self._test(*self.create_matrix_inverse_net(input_shape=input_shape, adjoint=adjoint),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_MaxPoolWithArgmax.py b/tests/layer_tests/tensorflow_tests/test_tf_MaxPoolWithArgmax.py
index fa8e6208b31..1574e05e794 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_MaxPoolWithArgmax.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_MaxPoolWithArgmax.py
@@ -67,11 +67,9 @@ class TestMaxPoolWithArgmax(CommonTFLayerTest):
reason='Ticket - 126314, 122716')
def test_max_pool_with_argmax_basic(self, params, input_type, padding, targmax,
include_batch_in_index, with_second_output,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_max_pool_with_argmax_net(**params, input_type=input_type, padding=padding, targmax=targmax,
include_batch_in_index=include_batch_in_index,
with_second_output=with_second_output),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_MinMax.py b/tests/layer_tests/tensorflow_tests/test_tf_MinMax.py
index d6d447992b6..b87baad62e4 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_MinMax.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_MinMax.py
@@ -15,8 +15,7 @@ class TestMinMaxOps(CommonTFLayerTest):
# axis - array which points on axis for the operation
# op_type - type of tested operation
# ir_version - common parameter
- # use_legacy_frontend - common parameter
- def create_minmax_ops_placeholder_const_net(self, input_shape, axis, op_type, keep_dims, ir_version, use_legacy_frontend):
+ def create_minmax_ops_placeholder_const_net(self, input_shape, axis, op_type, keep_dims, ir_version):
"""
Tensorflow net IR net
@@ -58,9 +57,7 @@ class TestMinMaxOps(CommonTFLayerTest):
@pytest.mark.parametrize("keep_dims", [False, True])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_minmax_ops_placeholder_const(self, params, op_type, keep_dims, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_minmax_ops_placeholder_const(self, params, op_type, keep_dims, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_minmax_ops_placeholder_const_net(**params, op_type=op_type, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, keep_dims=keep_dims),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ keep_dims=keep_dims),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Mul.py b/tests/layer_tests/tensorflow_tests/test_tf_Mul.py
index ed9f05d6472..2c9d95f007d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Mul.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Mul.py
@@ -38,11 +38,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_1D)
@pytest.mark.nightly
- def test_mul_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_mul_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_2D = [
dict(x_shape=[1, 1], y_shape=[1, 1]),
@@ -54,11 +52,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_mul_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_mul_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_3D = [
dict(x_shape=[1, 1, 1], y_shape=[1, 1, 1]),
@@ -73,11 +69,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_mul_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_mul_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(x_shape=[1, 1, 1, 1], y_shape=[1, 1, 1, 1]),
@@ -89,11 +83,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_mul_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_mul_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(x_shape=[1, 1, 1, 1, 1], y_shape=[1, 1, 1, 1, 1]),
@@ -106,11 +98,9 @@ class TestMul(CommonTFLayerTest):
# TODO mark as precommit (after successfully passing in nightly)
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_mul_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_mul_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
###############################################################################################
# #
@@ -125,10 +115,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_1D)
@pytest.mark.nightly
def test_mul_placeholder_const_broadcast_1D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_broadcast_2D = [
dict(x_shape=[1, 1], y_shape=[1]),
@@ -142,10 +131,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_2D)
@pytest.mark.nightly
def test_mul_placeholder_const_broadcast_2D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_broadcast_3D = [
dict(x_shape=[1, 1, 1], y_shape=[1]),
@@ -167,10 +155,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_3D)
@pytest.mark.nightly
def test_mul_placeholder_const_broadcast_3D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_broadcast_4D = [
dict(x_shape=[1, 1, 1, 1], y_shape=[1]),
@@ -189,10 +176,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_mul_placeholder_const_broadcast_4D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_broadcast_5D = [
dict(x_shape=[1, 1, 1, 1, 1], y_shape=[1]),
@@ -209,10 +195,9 @@ class TestMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_5D)
@pytest.mark.nightly
def test_mul_placeholder_const_broadcast_5D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_mul_placeholder_const_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexMul(CommonTFLayerTest):
@@ -263,9 +248,7 @@ class TestComplexMul(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_mul(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_mul(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_mul_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_MulNoNan.py b/tests/layer_tests/tensorflow_tests/test_tf_MulNoNan.py
index 0613ca19006..b5ce2489724 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_MulNoNan.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_MulNoNan.py
@@ -40,8 +40,6 @@ class TestMulNoNan(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_mul_no_nan_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_mul_no_nan_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_mul_no_nan_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Multinomial.py b/tests/layer_tests/tensorflow_tests/test_tf_Multinomial.py
index ee2391285fb..ee696cf0979 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Multinomial.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Multinomial.py
@@ -119,9 +119,7 @@ class TestMultinomial(CommonTFLayerTest):
ie_device,
precision,
ir_version,
- temp_dir,
- use_legacy_frontend,
- ):
+ temp_dir):
if ie_device == "GPU":
pytest.skip("Multinomial is not supported on GPU")
net = getattr(self, f"create_tf_multinomial_net_{test_type}")
@@ -137,6 +135,5 @@ class TestMultinomial(CommonTFLayerTest):
precision,
temp_dir=temp_dir,
ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend,
kwargs_to_prepare_input={"input:0": input, "num_samples:0": num_samples},
)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_NestedWhile.py b/tests/layer_tests/tensorflow_tests/test_tf_NestedWhile.py
index 636d7cd6d23..a4a1c69663c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_NestedWhile.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_NestedWhile.py
@@ -70,14 +70,12 @@ class TestNestedWhile(CommonTFLayerTest):
return g, None
@pytest.mark.nightly
- def test_simple_while(self, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_simple_while(), ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_simple_while(self, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_simple_while(), ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_nested_while(self, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_nested_while(self, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("loop:while_0 : outer input 'less:Less0' does not have primitive map issue on GPU")
- self._test(*self.create_nested_while(), ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_nested_while(), ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_NonMaxSupression.py b/tests/layer_tests/tensorflow_tests/test_tf_NonMaxSupression.py
index 2d0d668248a..6617aa8d01b 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_NonMaxSupression.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_NonMaxSupression.py
@@ -86,20 +86,18 @@ class TestNonMaxSuppression(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_NonMaxSuppression(self, test_params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_NonMaxSuppression(self, test_params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Skip TF NonMaxSuppresion test on GPU")
self._test(*self.create_nms_net(test_params), ie_device, precision,
- ir_version, temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ ir_version, temp_dir=temp_dir)
@pytest.mark.parametrize("test_params", test_params)
@pytest.mark.nightly
@pytest.mark.precommit
@pytest.mark.precommit
- def test_NonMaxSuppressionWithScores(self, test_params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_NonMaxSuppressionWithScores(self, test_params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Skip TF NonMaxSuppresionWithScores test on GPU")
self._test(*self.create_nms_net(test_params, with_scores=True), ie_device, precision,
- ir_version, temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_NormalizeL2.py b/tests/layer_tests/tensorflow_tests/test_tf_NormalizeL2.py
index 9d7fb234c81..3dd338b8deb 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_NormalizeL2.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_NormalizeL2.py
@@ -36,11 +36,9 @@ class TestNormalizeL2(CommonTFLayerTest):
'aarch64',
'arm64', 'ARM64'),
reason='Ticket - 126314, 122716')
- def test_normalize_l2_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_normalize_l2_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_normalize_l2_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_complex = [
dict(shape=[2, 3, 5, 4], axes=[1, 2, 3]),
@@ -49,8 +47,6 @@ class TestNormalizeL2(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_complex)
@pytest.mark.nightly
- def test_normalize_l2_complex(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_normalize_l2_complex(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_normalize_l2_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_OneHot.py b/tests/layer_tests/tensorflow_tests/test_tf_OneHot.py
index 5993becf588..8afba53e5f3 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_OneHot.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_OneHot.py
@@ -32,10 +32,9 @@ class TestOneHot(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_one_hot_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_one_hot_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_one_hot_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_complex = [
dict(shape=[3, 4], depth=1, on_value=1.0, off_value=-5.0, axis=-2),
@@ -44,7 +43,6 @@ class TestOneHot(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.nightly
- def test_one_hot_complex(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_one_hot_complex(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_one_hot_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_OnesLike.py b/tests/layer_tests/tensorflow_tests/test_tf_OnesLike.py
index 4088b03222b..b6bf25b8a81 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_OnesLike.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_OnesLike.py
@@ -38,11 +38,9 @@ class TestOnesLike(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_ones_like(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_ones_like(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_ones_like_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexOnesLike(CommonTFLayerTest):
@@ -83,8 +81,6 @@ class TestComplexOnesLike(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_ones_like(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_ones_like(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_ones_like_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Pack.py b/tests/layer_tests/tensorflow_tests/test_tf_Pack.py
index 53d7dc7fdfc..da2919d1ad5 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Pack.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Pack.py
@@ -46,11 +46,9 @@ class TestPack(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_pack_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_pack_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_pack_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_negative_axis = [
dict(input_shape=[2, 4], input_num=2, axis=-1, input_type=np.float32),
@@ -60,11 +58,9 @@ class TestPack(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_negative_axis)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_pack_negative_axis(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_pack_negative_axis(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_pack_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexPack(CommonTFLayerTest):
@@ -102,11 +98,9 @@ class TestComplexPack(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_pack_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_pack_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_pack_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_negative_axis = [
dict(input_shape=[2, 4], input_num=2, axis=-1),
@@ -116,8 +110,6 @@ class TestComplexPack(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_negative_axis)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_pack_negative_axis(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_pack_negative_axis(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_pack_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Pad.py b/tests/layer_tests/tensorflow_tests/test_tf_Pad.py
index 44f0c8410e2..f53890345b0 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Pad.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Pad.py
@@ -39,10 +39,9 @@ class TestPad(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_pad_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_pad_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_pad_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexPad(CommonTFLayerTest):
@@ -83,10 +82,9 @@ class TestComplexPad(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_pad_complex(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_pad_complex(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_pad_complex_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexPadV2(CommonTFLayerTest):
@@ -129,7 +127,6 @@ class TestComplexPadV2(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_pad_v2_complex(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_pad_v2_complex(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_pad_complex_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ParallelDynamicStitch.py b/tests/layer_tests/tensorflow_tests/test_tf_ParallelDynamicStitch.py
index 664210aff4d..68b3d2b5261 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ParallelDynamicStitch.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ParallelDynamicStitch.py
@@ -70,15 +70,11 @@ class TestParallelDynamicStitch(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_parallel_dynamic_stitch_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("DynamicStitch operation is not supported via legacy frontend.")
+ def test_parallel_dynamic_stitch_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("GPU error: Invalid constant blob dimensions")
self._test(*self.create_parallel_dynamic_stitch_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_different_types = [
dict(data_input_cnt=4, shape_of_element=[3, 2], data_type=tf.float64),
@@ -88,12 +84,8 @@ class TestParallelDynamicStitch(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_different_types)
@pytest.mark.nightly
- def test_parallel_dynamic_stitch_different_types(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("DynamicStitch operation is not supported via legacy frontend.")
+ def test_parallel_dynamic_stitch_different_types(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("GPU error: Invalid constant blob dimensions")
self._test(*self.create_parallel_dynamic_stitch_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Placeholder.py b/tests/layer_tests/tensorflow_tests/test_tf_Placeholder.py
index 1a8fb27ce51..df5476fbc8d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Placeholder.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Placeholder.py
@@ -47,10 +47,8 @@ class TestPlaceholder(CommonTFLayerTest):
np.float16, np.float32, np.float64, str, np.str_])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_placeholder(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_placeholder(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and (input_type == str or input_type == np.str_):
pytest.skip("string tensor is not supported on GPU")
self._test(*self.create_placeholder_net(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Pooling.py b/tests/layer_tests/tensorflow_tests/test_tf_Pooling.py
index 7ea9a4eb92a..ce0b8f84fa5 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Pooling.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Pooling.py
@@ -9,7 +9,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestPooling(CommonTFLayerTest):
def create_pooling_net(self, kernel_size, strides, pads, in_shape, out_shape, method,
- ir_version, use_legacy_frontend):
+ ir_version):
"""
Tensorflow net IR net
@@ -146,11 +146,9 @@ class TestPooling(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_pool_4D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_pooling_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_pool_4D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_pooling_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = []
for method in ['max', 'avg']:
@@ -229,10 +227,8 @@ class TestPooling(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_pool_5D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_pool_5D(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("5D tensors is not supported on GPU")
- self._test(*self.create_pooling_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_pooling_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_RGBToHSV.py b/tests/layer_tests/tensorflow_tests/test_tf_RGBToHSV.py
index 253b67ba148..22e924915b8 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_RGBToHSV.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_RGBToHSV.py
@@ -47,8 +47,6 @@ class TestRGBToHSV(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_adjust_hue_basic(self, input_shape, input_type, special_case,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_rgb_to_hsv_net(input_shape, input_type, special_case),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.py b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.py
index f0832676f0f..31be696c75b 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.py
@@ -54,11 +54,10 @@ class TestRaggedTensorToSparse(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_ragged_tensor_to_sparse(self, rt_dense_values_shape, rt_dense_values_type, rt_nested_splits,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_ragged_tensor_to_sparse_net(rt_dense_values_shape=rt_dense_values_shape,
rt_dense_values_type=rt_dense_values_type,
rt_nested_splits=rt_nested_splits),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.py b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.py
index 0267874eb98..bf99ca389e1 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.py
@@ -52,7 +52,7 @@ class TestRaggedTensorToTensor(CommonTFLayerTest):
@pytest.mark.nightly
def test_ragged_tensor_to_tensor(self, shape_type, shape_value, values_shape, values_type, default_value,
row_partition_tensors, row_partition_types,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_ragged_tensor_to_tensor_net(shape_type=shape_type, shape_value=shape_value,
@@ -60,8 +60,7 @@ class TestRaggedTensorToTensor(CommonTFLayerTest):
default_value=default_value,
row_partition_tensors=row_partition_tensors,
row_partition_types=row_partition_types),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestRaggedTensorToTensorRowIds(CommonTFLayerTest):
@@ -106,7 +105,7 @@ class TestRaggedTensorToTensorRowIds(CommonTFLayerTest):
@pytest.mark.nightly
def test_ragged_tensor_to_tensor(self, shape_type, shape_value, values_shape, values_type, default_value,
row_partition_tensors, row_partition_types,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_ragged_tensor_to_tensor_net(shape_type=shape_type, shape_value=shape_value,
@@ -114,5 +113,4 @@ class TestRaggedTensorToTensorRowIds(CommonTFLayerTest):
default_value=default_value,
row_partition_tensors=row_partition_tensors,
row_partition_types=row_partition_types),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_RandomUniform.py b/tests/layer_tests/tensorflow_tests/test_tf_RandomUniform.py
index 01d269f8636..96da74ace0f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_RandomUniform.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_RandomUniform.py
@@ -39,8 +39,7 @@ class TestRandomUniform(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_random_uniform(self, shape_value, shape_type, dtype, seed, seed2,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if dtype == np.float16 or dtype == np.float64:
pytest.skip('156027: Incorrect specification of RandomUniform for float16 and float64 output type')
if platform.machine() in ["aarch64", "arm64", "ARM64"]:
@@ -48,5 +47,4 @@ class TestRandomUniform(CommonTFLayerTest):
if ie_device == 'GPU':
pytest.skip('156056: Accuracy error on GPU')
self._test(*self.create_tf_random_uniform_net(shape_value, shape_type, dtype, seed, seed2),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_RandomUniformInt.py b/tests/layer_tests/tensorflow_tests/test_tf_RandomUniformInt.py
index c2252886e45..56cebe01318 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_RandomUniformInt.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_RandomUniformInt.py
@@ -42,10 +42,9 @@ class TestRandomUniformInt(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.precommit
def test_random_uniform_int(self, shape_value, shape_type, minval_type, minval_value, maxval_value, seed, seed2,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if minval_type == np.int64:
pytest.skip('156027: Incorrect specification of RandomUniform for np.int64 output type')
self._test(*self.create_tf_random_uniform_int_net(shape_value, shape_type, minval_type,
minval_value, maxval_value, seed, seed2),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Range.py b/tests/layer_tests/tensorflow_tests/test_tf_Range.py
index 476119cf494..23efb3f6d00 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Range.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Range.py
@@ -51,8 +51,6 @@ class TestRange(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_range_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_range_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_range_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Rank.py b/tests/layer_tests/tensorflow_tests/test_tf_Rank.py
index 0503c04349f..8f2d724488f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Rank.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Rank.py
@@ -29,11 +29,9 @@ class TestRank(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_rank_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_rank_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_rank_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexRank(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
@@ -70,8 +68,6 @@ class TestComplexRank(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_rank(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_rank(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_rank_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ReLU6.py b/tests/layer_tests/tensorflow_tests/test_tf_ReLU6.py
index 4ad3218920c..cd837f28fab 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ReLU6.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ReLU6.py
@@ -6,7 +6,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestReLU6(CommonTFLayerTest):
- def create_relu6_net(self, shape, ir_version, use_legacy_frontend):
+ def create_relu6_net(self, shape, ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -29,12 +29,9 @@ class TestReLU6(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_relu6_precommit(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_relu6_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_relu6_precommit(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_relu6_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data = [dict(shape=[1]),
pytest.param(dict(shape=[1, 224]), marks=pytest.mark.precommit),
@@ -44,8 +41,6 @@ class TestReLU6(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_relu6(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_relu6_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_relu6(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_relu6_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Reciprocal.py b/tests/layer_tests/tensorflow_tests/test_tf_Reciprocal.py
index 59abd94028c..fdc0cd88a08 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Reciprocal.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Reciprocal.py
@@ -36,11 +36,9 @@ class TestReciprocal(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_reciprocal_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_reciprocal_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_reciprocal_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexReciprocal(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
@@ -79,8 +77,6 @@ class TestComplexReciprocal(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_reciprocal(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_reciprocal(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_reciprocal_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ReduceArithmeticOps.py b/tests/layer_tests/tensorflow_tests/test_tf_ReduceArithmeticOps.py
index 022b55c7aaf..ef264a47d7d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ReduceArithmeticOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ReduceArithmeticOps.py
@@ -17,7 +17,7 @@ class TestReduceArithmeticOps(CommonTFLayerTest):
inputs_data['input:0'] = np.random.randint(-10, 10, x_shape).astype(np.float32)
return inputs_data
- def create_reduce_net(self, shape, axis, operation, keep_dims, ir_version, use_legacy_frontend):
+ def create_reduce_net(self, shape, axis, operation, keep_dims, ir_version):
import tensorflow as tf
ops_mapping = {
"Max": tf.raw_ops.Max,
@@ -47,12 +47,9 @@ class TestReduceArithmeticOps(CommonTFLayerTest):
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.nightly
@pytest.mark.precommit
- def test_reduce(self, params, operation, keep_dims, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_reduce_net(**params, operation=operation, keep_dims=keep_dims, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_reduce(self, params, operation, keep_dims, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_reduce_net(**params, operation=operation, keep_dims=keep_dims, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexProd(CommonTFLayerTest):
@@ -66,7 +63,7 @@ class TestComplexProd(CommonTFLayerTest):
return inputs_data
- def create_complex_prod_net(self, shape, axis, keep_dims, ir_version, use_legacy_frontend):
+ def create_complex_prod_net(self, shape, axis, keep_dims, ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
with tf.compat.v1.Session() as sess:
@@ -95,13 +92,10 @@ class TestComplexProd(CommonTFLayerTest):
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.nightly
@pytest.mark.precommit
- def test_reduce(self, params, keep_dims, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_reduce(self, params, keep_dims, ie_device, precision, ir_version, temp_dir):
if platform.machine() in ["aarch64", "arm64", "ARM64"]:
pytest.skip("GFI-26601: accuracy error on ARM")
if ie_device == 'GPU' and params['shape'] in [[2, 3, 5], [3, 1, 2, 4]]:
pytest.skip('GPU plugin accuracy error')
- self._test(*self.create_complex_prod_net(**params, keep_dims=keep_dims, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_complex_prod_net(**params, keep_dims=keep_dims, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ReduceLogicalOps.py b/tests/layer_tests/tensorflow_tests/test_tf_ReduceLogicalOps.py
index 829474e46c2..78ac11ab372 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ReduceLogicalOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ReduceLogicalOps.py
@@ -21,8 +21,7 @@ class TestLogicalOps(CommonTFLayerTest):
# axis - array which points on axis for the operation
# op_type - type of tested operation
# ir_version - common parameter
- # use_legacy_frontend - common parameter
- def create_logical_ops_placeholder_const_net(self, input_shape, axis, op_type, ir_version, use_legacy_frontend):
+ def create_logical_ops_placeholder_const_net(self, input_shape, axis, op_type, ir_version):
"""
Tensorflow net IR net
@@ -64,9 +63,6 @@ class TestLogicalOps(CommonTFLayerTest):
@pytest.mark.parametrize("op_type", ['All', 'Any'])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_logical_ops_placeholder_const(self, params, op_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_logical_ops_placeholder_const_net(**params, op_type=op_type, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_logical_ops_placeholder_const(self, params, op_type, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_logical_ops_placeholder_const_net(**params, op_type=op_type, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Resample_pattern_new.py b/tests/layer_tests/tensorflow_tests/test_tf_Resample_pattern_new.py
index 2db02ace11c..a6e49891897 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Resample_pattern_new.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Resample_pattern_new.py
@@ -12,7 +12,7 @@ class TestResamplePattern(CommonTFLayerTest):
inputs_dict[input] = np.random.randint(1, 256, inputs_dict[input]).astype(np.float32)
return inputs_dict
- def create_resample_net(self, shape, factor, use_legacy_frontend):
+ def create_resample_net(self, shape, factor):
"""
The sub-graph in TF that could be expressed as a single Resample operation.
"""
@@ -47,7 +47,6 @@ class TestResamplePattern(CommonTFLayerTest):
# TODO mark as precommit (after successfully passing in nightly)
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_resample(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_resample_net(params['shape'], params['factor'], use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_resample(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_resample_net(params['shape'], params['factor']),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Reshape.py b/tests/layer_tests/tensorflow_tests/test_tf_Reshape.py
index 24409024625..feedf8ab3a8 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Reshape.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Reshape.py
@@ -44,13 +44,11 @@ class TestReshape(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_reshape_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_reshape_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and params['target_shape'] == []:
pytest.skip("timeout issue on GPU")
self._test(*self.create_reshape_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexReshape(CommonTFLayerTest):
@@ -90,9 +88,7 @@ class TestComplexReshape(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_reshape(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_reshape(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_transpose_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Resize.py b/tests/layer_tests/tensorflow_tests/test_tf_Resize.py
index e0f09ba7293..907cdd527ff 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Resize.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Resize.py
@@ -60,11 +60,10 @@ class TestResize(CommonTFLayerTest):
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
def test_resize_basic(self, images_shape, images_type, size_value, align_corners, half_pixel_centers, resize_op,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and images_type == tf.int32 and resize_op == 'tf.raw_ops.ResizeNearestNeighbor':
pytest.skip("Couldn't find a suitable kernel for interpolate:Interpolate_8438725 issue on GPU")
params = dict(images_shape=images_shape, images_type=images_type, size_value=size_value,
align_corners=align_corners, half_pixel_centers=half_pixel_centers, resize_op=OPS[resize_op])
self._test(*self.create_resize_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ReverseSequence.py b/tests/layer_tests/tensorflow_tests/test_tf_ReverseSequence.py
index 483f83b7d91..390ff2a78cf 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ReverseSequence.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ReverseSequence.py
@@ -46,8 +46,6 @@ class TestReverseSequence(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_reverse_sequence_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_reverse_sequence_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_reverse_sequence_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Rint.py b/tests/layer_tests/tensorflow_tests/test_tf_Rint.py
index 4f67e74d69a..37a5934dd9a 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Rint.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Rint.py
@@ -39,7 +39,6 @@ class TestRint(CommonTFLayerTest):
'arm64', 'ARM64'],
reason='Ticket - 126314, 132699')
def test_rint_basic(self, input_shape, input_type, ie_device, precision,
- ir_version, temp_dir, use_legacy_frontend):
+ ir_version, temp_dir):
self._test(*self.create_tf_rint_net(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Roll.py b/tests/layer_tests/tensorflow_tests/test_tf_Roll.py
index 760cb60251b..098b672f5f6 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Roll.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Roll.py
@@ -7,7 +7,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestTFRoll(CommonTFLayerTest):
- def create_tf_roll_net(self, shift, axis, x_shape, input_type, ir_version, use_legacy_frontend):
+ def create_tf_roll_net(self, shift, axis, x_shape, input_type, ir_version):
tf.compat.v1.reset_default_graph()
# Create the graph and model
@@ -36,11 +36,9 @@ class TestTFRoll(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_tf_roll(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_tf_roll(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Roll is not supported on GPU")
- self._test(*self.create_tf_roll_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend), ie_device,
- precision,
- temp_dir=temp_dir, ir_version=ir_version, use_legacy_frontend=use_legacy_frontend,
+ self._test(*self.create_tf_roll_net(**params, ir_version=ir_version), ie_device,
+ precision, temp_dir=temp_dir, ir_version=ir_version,
**params)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Round.py b/tests/layer_tests/tensorflow_tests/test_tf_Round.py
index 40bf51d36cd..7534fa6e352 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Round.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Round.py
@@ -38,12 +38,11 @@ class TestRound(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_round_basic(self, input_shape, input_type, ie_device, precision,
- ir_version, temp_dir, use_legacy_frontend):
+ ir_version, temp_dir):
if input_type in [np.int8, np.int16, np.int32, np.int64]:
pytest.skip('TensorFlow issue: https://github.com/tensorflow/tensorflow/issues/74789')
if platform.machine() in ["aarch64", "arm64", "ARM64"] and \
input_type == np.float32 and input_shape == [10, 5, 1, 5]:
pytest.skip("150999: Accuracy issue on CPU")
self._test(*self.create_tf_round_net(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Rsqrt.py b/tests/layer_tests/tensorflow_tests/test_tf_Rsqrt.py
index 74ea833a668..479949a9778 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Rsqrt.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Rsqrt.py
@@ -15,7 +15,7 @@ class TestRsqrt(CommonTFLayerTest):
inputs_dict[input] = np.random.randint(1, 256, inputs_dict[input]).astype(np.float32)
return inputs_dict
- def create_rsqrt_net(self, shape, ir_version, use_legacy_frontend):
+ def create_rsqrt_net(self, shape, ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -38,12 +38,9 @@ class TestRsqrt(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_rsqrt_precommit(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_rsqrt_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_rsqrt_precommit(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_rsqrt_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data = [dict(shape=[1]),
pytest.param(dict(shape=[1, 224]), marks=pytest.mark.precommit),
@@ -53,11 +50,9 @@ class TestRsqrt(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_rsqrt(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_rsqrt_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_rsqrt(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_rsqrt_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexRsqrt(CommonTFLayerTest):
@@ -101,7 +96,6 @@ class TestComplexRsqrt(CommonTFLayerTest):
@pytest.mark.parametrize('shape', [[1], [1, 3], [2, 3, 22], [1, 3, 10, 22]])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_rsqrt(self, shape, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_rsqrt(self, shape, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_rsqrt_net(shape),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py b/tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py
index 574cd6f7ec9..f734c315851 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py
@@ -10,8 +10,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
rng = np.random.default_rng(475912)
class TestTFScatterND(CommonTFLayerTest):
- def create_tf_scatternd_placeholder_const_net(self, x_shape, indices, updates, ir_version,
- use_legacy_frontend):
+ def create_tf_scatternd_placeholder_const_net(self, x_shape, indices, updates, ir_version):
#
# Create Tensorflow model
#
@@ -69,12 +68,10 @@ class TestTFScatterND(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_tf_scatter_nd(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_tf_scatternd_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ def test_tf_scatter_nd(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_tf_scatternd_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
class TestTFScatterNDComplex(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
@@ -88,7 +85,7 @@ class TestTFScatterNDComplex(CommonTFLayerTest):
return inputs_data
def create_tf_scatternd_complex_placeholder_const_net(self, x_shape, indices, updates_shape, indices_type,
- ir_version, use_legacy_frontend):
+ ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
with tf.compat.v1.Session() as sess:
@@ -120,9 +117,7 @@ class TestTFScatterNDComplex(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
@pytest.mark.precommit
- def test_tf_scatter_nd_complex(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_tf_scatternd_complex_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ def test_tf_scatter_nd_complex(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_tf_scatternd_complex_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, temp_dir=temp_dir, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend, **params)
+ **params)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SegmentSum.py b/tests/layer_tests/tensorflow_tests/test_tf_SegmentSum.py
index 721804aae1c..28004d1c95f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SegmentSum.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SegmentSum.py
@@ -45,13 +45,9 @@ class TestSegmentSum(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_segment_sum_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("SegmentSum operation is not supported via legacy frontend.")
+ def test_segment_sum_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_segment_sum_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_different_types = [
dict(data_shape=[2, 3], segment_ids_shape=[2], data_type=tf.int32, segment_ids_type=tf.int32),
@@ -62,13 +58,9 @@ class TestSegmentSum(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_different_types)
@pytest.mark.nightly
- def test_segment_sum_different_types(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("SegmentSum operation is not supported via legacy frontend.")
+ def test_segment_sum_different_types(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_segment_sum_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestSegmentSumComplex(CommonTFLayerTest):
@@ -114,10 +106,6 @@ class TestSegmentSumComplex(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_segment_sum(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("SegmentSum operation is not supported via legacy frontend.")
+ def test_complex_segment_sum(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_segment_sum_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Select.py b/tests/layer_tests/tensorflow_tests/test_tf_Select.py
index 3753f52451c..991a342cef0 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Select.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Select.py
@@ -45,13 +45,9 @@ class TestSelect(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_select_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("Select tests are not passing for the legacy frontend.")
+ def test_select_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_select_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexSelect(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
@@ -96,10 +92,6 @@ class TestComplexSelect(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_select(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("Select tests are not passing for the legacy frontend.")
+ def test_complex_select(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_select_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SelectV2.py b/tests/layer_tests/tensorflow_tests/test_tf_SelectV2.py
index d199275bf34..155e3ae085f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SelectV2.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SelectV2.py
@@ -44,13 +44,9 @@ class TestSelectV2(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_select_v2_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("Select tests are not passing for the legacy frontend.")
+ def test_select_v2_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_select_v2_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexSelectV2(CommonTFLayerTest):
@@ -95,8 +91,6 @@ class TestComplexSelectV2(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_select_v2(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_select_v2(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_complex_select_v2_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
\ No newline at end of file
+ ie_device, precision, ir_version, temp_dir=temp_dir)
\ No newline at end of file
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Shape.py b/tests/layer_tests/tensorflow_tests/test_tf_Shape.py
index 91afe4bb610..0d5cded74fa 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Shape.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Shape.py
@@ -50,15 +50,13 @@ class TestShape(CommonTFLayerTest):
@pytest.mark.parametrize("out_type", [tf.int32, tf.int64])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_shape_basic(self, input_shape, input_type, out_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_shape_basic(self, input_shape, input_type, out_type, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and (input_shape == [] or input_type == str or input_type == np.str_):
pytest.skip("scalar shape is not supported or string type is not supported on GPU")
if input_shape == [] and out_type == tf.int64:
pytest.skip('129100 - Hangs or segfault')
self._test(*self.create_shape_net(input_shape=input_shape, input_type=input_type, out_type=out_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexShape(CommonTFLayerTest):
@@ -97,11 +95,9 @@ class TestComplexShape(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_shape(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_shape(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and params['input_shape'] == []:
pytest.skip("scalar shape is not supported or string type is not supported on GPU")
self._test(
*self.create_complex_shape_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ShapeN.py b/tests/layer_tests/tensorflow_tests/test_tf_ShapeN.py
index 4fa8fe06a4a..ee091a3f6cb 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ShapeN.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ShapeN.py
@@ -31,8 +31,6 @@ class TestShapeN(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_shape_n_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_shape_n_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_shape_n_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Size.py b/tests/layer_tests/tensorflow_tests/test_tf_Size.py
index 8d8c57b4f66..404355d0524 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Size.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Size.py
@@ -38,11 +38,9 @@ class TestSize(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_size_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_size_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_size_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexSize(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
@@ -79,9 +77,7 @@ class TestComplexSize(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_size(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_size(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_size_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Slice.py b/tests/layer_tests/tensorflow_tests/test_tf_Slice.py
index b1a2b2d56e7..2bbab8340da 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Slice.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Slice.py
@@ -30,7 +30,6 @@ class TestSlice(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_slice_basic(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_slice_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_slice_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Softmax.py b/tests/layer_tests/tensorflow_tests/test_tf_Softmax.py
index ed1ba433c43..5a45e0e56c1 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Softmax.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Softmax.py
@@ -34,11 +34,10 @@ class TestSoftmax(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_softmax(self, input_shape, input_type,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
custom_eps = None
if input_type == np.float16:
custom_eps = 1e-3
self._test(*self.create_softmax_net(input_shape, input_type),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=custom_eps)
+ custom_eps=custom_eps)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Softsign.py b/tests/layer_tests/tensorflow_tests/test_tf_Softsign.py
index 8b7182b7fdb..6cb1b2d6bca 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Softsign.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Softsign.py
@@ -6,7 +6,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestSoftsign(CommonTFLayerTest):
- def create_softsign_net(self, shape, ir_version, use_legacy_frontend):
+ def create_softsign_net(self, shape, ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -32,9 +32,6 @@ class TestSoftsign(CommonTFLayerTest):
])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_softsign(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_softsign_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_softsign(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_softsign_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatch.py b/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatch.py
index e126e51ce6d..8d87068c6b8 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatch.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatch.py
@@ -37,11 +37,9 @@ class TestSpaceToBatch(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
reason='Ticket - 122716')
- def test_space_to_batch_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_space_to_batch_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_space_to_batch_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(in_shape=[1, 2, 2, 3], block_shape_value=[2, 2], pads_value=[[0, 0], [0, 0]]),
@@ -50,11 +48,9 @@ class TestSpaceToBatch(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_space_to_batch_4D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_space_to_batch_4D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_space_to_batch_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(in_shape=[3, 3, 4, 5, 2], block_shape_value=[3, 4, 2],
@@ -65,8 +61,6 @@ class TestSpaceToBatch(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_space_to_batch_5D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_space_to_batch_5D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_space_to_batch_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatchND.py b/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatchND.py
index 55d7581361f..914881e1e5c 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatchND.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatchND.py
@@ -28,8 +28,6 @@ class TestSpaceToBatchND(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_space_to_batch_nd_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_space_to_batch_nd_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_space_to_batch_nd_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SpaceToDepth.py b/tests/layer_tests/tensorflow_tests/test_tf_SpaceToDepth.py
index de608b6a84c..5338f75fc86 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SpaceToDepth.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SpaceToDepth.py
@@ -28,8 +28,6 @@ class TestSpaceToDepth(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_space_to_depth_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_space_to_depth_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_space_to_depth_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SparseSegmentOp.py b/tests/layer_tests/tensorflow_tests/test_tf_SparseSegmentOp.py
index 763fb3b7a44..3dbdc369047 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SparseSegmentOp.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SparseSegmentOp.py
@@ -75,8 +75,7 @@ class TestSparseSegmentMean(CommonTFLayerTest):
@pytest.mark.nightly
def test_sparse_segment_mean(self, op_type, data_type, indices_type, segment_indices_type,
shape, indices_shape, segments_num,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
kwargs = {}
if ie_device == 'GPU':
kwargs = {
@@ -85,4 +84,4 @@ class TestSparseSegmentMean(CommonTFLayerTest):
self._test(*self.create_sparse_segment_mean(op_type, data_type, indices_type, segment_indices_type,
shape, indices_shape, segments_num),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, **kwargs)
+ **kwargs)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseAdd.py b/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseAdd.py
index 598be1afe34..a6a7996af22 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseAdd.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseAdd.py
@@ -76,9 +76,7 @@ class TestSparseTensorDenseAdd(CommonTFLayerTest):
@pytest.mark.nightly
def test_sparse_tensor_dense_add(self, data_type, indices_type,
a_shape, b_shape, nnz,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_sparse_tensor_dense_add_net(data_type, indices_type,
a_shape, b_shape, nnz),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseMatMul.py b/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseMatMul.py
index a65eaaebc66..eaca41dd9c4 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseMatMul.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseMatMul.py
@@ -89,10 +89,8 @@ class TestSparseTensorDenseMatMul(CommonTFLayerTest):
def test_sparse_tensor_dense_mat_mul(self, data_type, indices_type,
adjoint_a, adjoint_b,
a_shape, b_shape, nnz,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_sparse_tensor_dense_mat_mul_net(data_type, indices_type,
adjoint_a, adjoint_b,
a_shape, b_shape, nnz),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Split.py b/tests/layer_tests/tensorflow_tests/test_tf_Split.py
index cc0eceb8131..e4e69041201 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Split.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Split.py
@@ -30,10 +30,8 @@ class TestSplit(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_split_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_split_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and params['value_shape'] == [4, 3, 2, 7]:
pytest.skip("accuracy issue on GPU")
self._test(*self.create_split_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SplitV.py b/tests/layer_tests/tensorflow_tests/test_tf_SplitV.py
index 7d6866eeba5..2412c2a05c1 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SplitV.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SplitV.py
@@ -35,10 +35,8 @@ class TestSplitV(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(os.getenv("GITHUB_ACTIONS") == 'true', reason="Ticket - 113359")
- def test_split_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_split_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and params['value_shape'] == [3]:
pytest.skip("accuracy issue on GPU")
self._test(*self.create_splitv_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Squeeze.py b/tests/layer_tests/tensorflow_tests/test_tf_Squeeze.py
index b0f213d9f24..784820ea75e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Squeeze.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Squeeze.py
@@ -39,11 +39,9 @@ class TestSqueeze(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_squeeze_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_squeeze_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_squeeze_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_1D = [
dict(input_shape=[1], axis=[], input_type=np.float32),
@@ -52,10 +50,9 @@ class TestSqueeze(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_1D)
@pytest.mark.nightly
- def test_squeeze_1D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_squeeze_1D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_squeeze_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_2D = [
dict(input_shape=[1, 2], axis=[0], input_type=np.float32),
@@ -64,10 +61,9 @@ class TestSqueeze(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_squeeze_2D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_squeeze_2D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_squeeze_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_3D = [
dict(input_shape=[2, 1, 3], axis=[], input_type=np.float32),
@@ -76,10 +72,9 @@ class TestSqueeze(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_squeeze_3D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_squeeze_3D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_squeeze_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(input_shape=[1, 1, 5, 10], axis=[], input_type=np.int32),
@@ -89,10 +84,9 @@ class TestSqueeze(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_squeeze_4D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_squeeze_4D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_squeeze_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(input_shape=[1, 1, 5, 10, 22], axis=[], input_type=np.float32),
@@ -105,10 +99,9 @@ class TestSqueeze(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_squeeze_5D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
+ def test_squeeze_5D(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_squeeze_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexSqueeze(CommonTFLayerTest):
@@ -149,9 +142,7 @@ class TestComplexSqueeze(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_squeeze(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_squeeze(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_squeeze_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py b/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py
index 3db9704573d..1309cc7bdf8 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py
@@ -40,11 +40,9 @@ class TestStaticRegexReplace(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_static_regex_replace(self, input_shape, pattern, rewrite, replace_global,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_static_regex_replace_net(input_shape=input_shape, pattern=pattern, rewrite=rewrite,
replace_global=replace_global),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StridedSlice.py b/tests/layer_tests/tensorflow_tests/test_tf_StridedSlice.py
index 68ea9377285..64e57cd6df3 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_StridedSlice.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_StridedSlice.py
@@ -45,12 +45,11 @@ class TestStridedSlice(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_strided_slice_basic(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
if ie_device == 'GPU' and (params['input_shape'] == [1, 5, 5, 3] or params['input_shape'] == [3, 4, 5, 7]):
pytest.skip("Invalid Batch offset: exceeds data for output issue on GPU")
self._test(*self.create_strided_slice_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_squeeze_data = [
dict(input_shape=[1, 5], begin_value=[0, 0], end_value=[1, 5], strides_value=[1, 1], begin_mask=0,
@@ -86,10 +85,9 @@ class TestStridedSlice(CommonTFLayerTest):
@pytest.mark.parametrize('params', test_squeeze_data)
@pytest.mark.nightly
def test_strided_slice_replace_with_squeeze(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_strided_slice_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_unsqueeze_data = [
dict(input_shape=[1, 5], begin_value=[0, 0], end_value=[1, 5], strides_value=[1, 1], begin_mask=0,
@@ -116,10 +114,9 @@ class TestStridedSlice(CommonTFLayerTest):
@pytest.mark.parametrize('params', test_unsqueeze_data)
@pytest.mark.nightly
def test_strided_slice_replace_with_unsqueeze(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
self._test(*self.create_strided_slice_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexStridedSlice(CommonTFLayerTest):
@@ -227,11 +224,9 @@ class TestComplexStridedSlice(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_strided_slice(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_strided_slice(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("accuracy issue on GPU")
self._test(
*self.create_complex_strided_slice_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StringLower.py b/tests/layer_tests/tensorflow_tests/test_tf_StringLower.py
index 89cd79fdf58..a0ac651ec09 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_StringLower.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_StringLower.py
@@ -45,14 +45,12 @@ class TestStringLower(CommonTFLayerTest):
['第一句話在這裡', '第二句話在這裡', '第三句話在這裡']])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_string_lower(self, input_shape, encoding, strings_dictionary, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_string_lower(self, input_shape, encoding, strings_dictionary, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_string_lower_net(input_shape=input_shape, encoding=encoding,
strings_dictionary=strings_dictionary),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestStringLowerOVC:
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.py b/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.py
index 93cc7e85234..bed72142063 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.py
@@ -41,10 +41,8 @@ class TestStringSplitV2(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_string_split_v2(self, input_shape, sep, maxsplit,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_string_split_v2_net(input_shape=input_shape, sep=sep, maxsplit=maxsplit),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.py b/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.py
index eee7a765260..1a192f18224 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.py
@@ -44,11 +44,9 @@ class TestStringToHashBucketFast(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_string_to_hash_bucket_fast(self, input_shape, num_buckets, strings_dictionary, ie_device, precision,
- ir_version, temp_dir,
- use_legacy_frontend):
+ ir_version, temp_dir):
if ie_device == 'GPU' or run_in_jenkins():
pytest.skip("operation extension is not supported on GPU")
self._test(*self.create_string_to_hash_bucket_fast_net(input_shape=input_shape, num_buckets=num_buckets,
strings_dictionary=strings_dictionary),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Sub.py b/tests/layer_tests/tensorflow_tests/test_tf_Sub.py
index d9fae01c81d..0d7d5d27abd 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Sub.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Sub.py
@@ -8,7 +8,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class TestSub(CommonTFLayerTest):
- def create_sub_placeholder_const_net(self, x_shape, y_shape, ir_version, use_legacy_frontend):
+ def create_sub_placeholder_const_net(self, x_shape, y_shape, ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -41,12 +41,10 @@ class TestSub(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_1D)
@pytest.mark.nightly
- def test_sub_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ def test_sub_placeholder_const_1D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_2D = [
dict(x_shape=[1, 1], y_shape=[1, 1]),
@@ -57,12 +55,10 @@ class TestSub(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_sub_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ def test_sub_placeholder_const_2D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_3D = [
dict(x_shape=[1, 1, 1], y_shape=[1, 1, 1]),
@@ -75,12 +71,10 @@ class TestSub(CommonTFLayerTest):
# TODO mark as precommit (after successfully passing in nightly)
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_sub_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ def test_sub_placeholder_const_3D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_4D = [
dict(x_shape=[1, 1, 1, 1], y_shape=[1, 1, 1, 1]),
@@ -92,12 +86,10 @@ class TestSub(CommonTFLayerTest):
# TODO mark as precommit (after successfully passing in nightly)
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_sub_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ def test_sub_placeholder_const_4D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_5D = [
dict(x_shape=[1, 1, 1, 1, 1], y_shape=[1, 1, 1, 1, 1]),
@@ -109,12 +101,10 @@ class TestSub(CommonTFLayerTest):
# TODO mark as precommit (after successfully passing in nightly)
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_sub_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ def test_sub_placeholder_const_5D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
###############################################################################################
# #
@@ -129,11 +119,10 @@ class TestSub(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_1D)
@pytest.mark.nightly
def test_sub_placeholder_const_broadcast_1D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_broadcast_2D = [
dict(x_shape=[1, 1], y_shape=[1]),
@@ -146,11 +135,10 @@ class TestSub(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_2D)
@pytest.mark.nightly
def test_sub_placeholder_const_broadcast_2D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_broadcast_3D = [
dict(x_shape=[1, 1, 1], y_shape=[1]),
@@ -166,11 +154,10 @@ class TestSub(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_3D)
@pytest.mark.nightly
def test_sub_placeholder_const_broadcast_3D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_broadcast_4D = [
dict(x_shape=[1, 1, 1, 1], y_shape=[1]),
@@ -189,11 +176,10 @@ class TestSub(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_4D)
@pytest.mark.nightly
def test_sub_placeholder_const_broadcast_4D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
test_data_broadcast_5D = [
dict(x_shape=[1, 1, 1, 1, 1], y_shape=[1, 1, 1, 1, 1]),
@@ -211,11 +197,10 @@ class TestSub(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_broadcast_5D)
@pytest.mark.nightly
def test_sub_placeholder_const_broadcast_5D(self, params, ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
- self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
+ temp_dir):
+ self._test(*self.create_sub_placeholder_const_net(**params, ir_version=ir_version),
ie_device, precision, ir_version,
- temp_dir=temp_dir, use_legacy_frontend=use_legacy_frontend)
+ temp_dir=temp_dir)
class TestComplexSub(CommonTFLayerTest):
@@ -243,7 +228,7 @@ class TestComplexSub(CommonTFLayerTest):
return inputs_data
- def create_complex_sub_net(self, x_shape, y_shape, ir_version, use_legacy_frontend):
+ def create_complex_sub_net(self, x_shape, y_shape, ir_version):
import tensorflow as tf
tf.compat.v1.reset_default_graph()
@@ -278,8 +263,6 @@ class TestComplexSub(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_complex_sub(self, x_shape, y_shape,
- ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_complex_sub_net(x_shape, y_shape, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_complex_sub_net(x_shape, y_shape, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Swish.py b/tests/layer_tests/tensorflow_tests/test_tf_Swish.py
index f0868220267..9bee7299b29 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Swish.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Swish.py
@@ -39,11 +39,10 @@ class TestSwish(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_swish(self, input_type, input_shape,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
custom_eps = None
if input_type == np.float16:
custom_eps = 3 * 1e-3
self._test(*self.create_swish_net(input_type, input_shape),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=custom_eps)
+ custom_eps=custom_eps)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_SwitchMerge.py b/tests/layer_tests/tensorflow_tests/test_tf_SwitchMerge.py
index 9fc8b08099e..1dc8a4ae14d 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_SwitchMerge.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_SwitchMerge.py
@@ -58,11 +58,9 @@ class TestSwitchMerge(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_merge_eliminating_several_cond_flows(self, params, cond_value, x_type, ie_device, precision, ir_version,
- temp_dir,
- use_legacy_frontend):
+ temp_dir):
self._test(*self.merge_eliminating_several_cond_flows_net(**params, cond_value=cond_value, x_type=x_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestSwitchMergeWithVariablePredicate(CommonTFLayerTest):
@@ -101,10 +99,8 @@ class TestSwitchMergeWithVariablePredicate(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_switch_merge_with_variable_predicate(self, x_shape, cond_shape, cond_value,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("156244: accuracy error on GPU")
self._test(*self.switch_merge_with_variable_predicate_net(x_shape, cond_shape, cond_value),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TensorArrayOps.py b/tests/layer_tests/tensorflow_tests/test_tf_TensorArrayOps.py
index 2124660feb7..82ac7551f88 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TensorArrayOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TensorArrayOps.py
@@ -51,11 +51,9 @@ class TestTensorArraySizeV3(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_tensor_array_size_v3(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_array_size_v3(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tensor_array_size_v3(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestTensorArrayReadV3(CommonTFLayerTest):
@@ -95,13 +93,11 @@ class TestTensorArrayReadV3(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_tensor_array_read_v3(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_array_read_v3(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("segmentation fault or accuracy issue on GPU")
self._test(*self.create_tensor_array_read_v3(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestTensorArrayWriteGatherV3(CommonTFLayerTest):
@@ -163,14 +159,12 @@ class TestTensorArrayWriteGatherV3(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_tensor_array_write_v3(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_array_write_v3(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and (params['data_shape'] == [6] or params['data_shape'] == [7]):
pytest.skip("Every input must have the same size issue or accuracy issue on GPU")
self._test(*self.create_tensor_array_write_v3(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestTensorArrayConcatV3(CommonTFLayerTest):
@@ -209,8 +203,6 @@ class TestTensorArrayConcatV3(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_tensor_array_concat_v3(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_array_concat_v3(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tensor_array_concat_v3(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TensorListConcatV2.py b/tests/layer_tests/tensorflow_tests/test_tf_TensorListConcatV2.py
index e3bb02e02a1..feae8818ad4 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TensorListConcatV2.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TensorListConcatV2.py
@@ -40,8 +40,6 @@ class TestTensorListConcatV2(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_tensor_list_concat_v2(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_list_concat_v2(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tensor_list_concat_v2(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TensorListLength.py b/tests/layer_tests/tensorflow_tests/test_tf_TensorListLength.py
index f3e361073db..3391e856ff5 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TensorListLength.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TensorListLength.py
@@ -41,11 +41,9 @@ class TestTensorListLength(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_tensor_list_length_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_list_length_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tensor_list_length(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestTensorListLengthEmptyList(CommonTFLayerTest):
@@ -80,8 +78,6 @@ class TestTensorListLengthEmptyList(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_tensor_list_length_empty_list(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_list_length_empty_list(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tensor_list_length_empty_list(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TensorListPushBack.py b/tests/layer_tests/tensorflow_tests/test_tf_TensorListPushBack.py
index d3e55d92339..e0e382da9a8 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TensorListPushBack.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TensorListPushBack.py
@@ -47,8 +47,6 @@ class TestTensorListPushBack(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_tensor_list_push_back(self, element_shape, max_num_elements, element_dtype, ie_device, precision,
- ir_version, temp_dir,
- use_legacy_frontend):
+ ir_version, temp_dir):
self._test(*self.create_tensor_list_push_back(element_shape, max_num_elements, element_dtype),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TensorListResize.py b/tests/layer_tests/tensorflow_tests/test_tf_TensorListResize.py
index 4303a766da1..066ad0bcf73 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TensorListResize.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TensorListResize.py
@@ -45,8 +45,6 @@ class TestTensorListResize(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_tensor_list_resize_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tensor_list_resize_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tensor_list_resize(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterAdd.py b/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterAdd.py
index 8e6a64c141f..e9999079180 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterAdd.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterAdd.py
@@ -79,11 +79,9 @@ class TestTensorScatterAdd(CommonTFLayerTest):
@pytest.mark.nightly
def test_tensor_scatter_add(self, data_type, indices_type,
tensor_shape, updates_shape, indices_shape,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("160549: ScatterNDUpdate(opset15) is not supported on GPU")
self._test(*self.create_tensor_scatter_add_net(data_type, indices_type,
tensor_shape, updates_shape, indices_shape),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterUpdate.py b/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterUpdate.py
index f37fbcd6e60..948e7e6598e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterUpdate.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TensorScatterUpdate.py
@@ -81,9 +81,7 @@ class TestTensorScatterUpdate(CommonTFLayerTest):
@pytest.mark.nightly
def test_sparse_tensor_dense_add(self, data_type, indices_type,
tensor_shape, updates_shape, indices_shape,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tensor_scatter_update_net(data_type, indices_type,
tensor_shape, updates_shape, indices_shape),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Tile.py b/tests/layer_tests/tensorflow_tests/test_tf_Tile.py
index b80bffb07c6..4db3ac33c69 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Tile.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Tile.py
@@ -39,8 +39,6 @@ class TestTile(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_tile_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_tile_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tile_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ToBool.py b/tests/layer_tests/tensorflow_tests/test_tf_ToBool.py
index 0439a912050..cd506efc4c4 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ToBool.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ToBool.py
@@ -46,8 +46,6 @@ class TestToBool(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_to_bool_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_to_bool_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_tobool_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TopK.py b/tests/layer_tests/tensorflow_tests/test_tf_TopK.py
index 5ac6fd80d8a..293c90a9ce0 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TopK.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TopK.py
@@ -7,7 +7,7 @@ from common.tf_layer_test_class import CommonTFLayerTest
class Test_TopK(CommonTFLayerTest):
@staticmethod
- def create_topK_net(shape, k, ir_version, use_legacy_frontend):
+ def create_topK_net(shape, k, ir_version):
pytest.xfail(reason="95063")
import tensorflow as tf
@@ -33,11 +33,9 @@ class Test_TopK(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_1D)
@pytest.mark.nightly
- def test_TopK_1D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_topK_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_TopK_1D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_topK_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_2D = [
dict(shape=[14, 15], k=10),
@@ -46,11 +44,9 @@ class Test_TopK(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_2D)
@pytest.mark.nightly
- def test_TopK_2D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_topK_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_TopK_2D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_topK_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_3D = [
dict(shape=[13, 14, 15], k=10),
@@ -59,11 +55,9 @@ class Test_TopK(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_3D)
@pytest.mark.nightly
- def test_TopK_3D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_topK_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_TopK_3D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_topK_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_4D = [
dict(shape=[12, 13, 14, 15], k=10),
@@ -72,11 +66,9 @@ class Test_TopK(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_4D)
@pytest.mark.nightly
- def test_TopK_4D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_topK_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_TopK_4D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_topK_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_5D = [
dict(shape=[11, 12, 13, 14, 15], k=10),
@@ -85,8 +77,6 @@ class Test_TopK(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_5D)
@pytest.mark.nightly
- def test_TopK_5D(self, params, ie_device, precision, ir_version, temp_dir, use_legacy_frontend):
- self._test(*self.create_topK_net(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ def test_TopK_5D(self, params, ie_device, precision, ir_version, temp_dir):
+ self._test(*self.create_topK_net(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TopKV2.py b/tests/layer_tests/tensorflow_tests/test_tf_TopKV2.py
index 525921acaf2..3ef09f5d84e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TopKV2.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TopKV2.py
@@ -54,11 +54,10 @@ class TestTopKV2(CommonTFLayerTest):
@pytest.mark.nightly
def test_topk_v2(self, input_shape, input_type, k, k_type, sorted, index_type,
ie_device, precision, ir_version,
- temp_dir, use_legacy_frontend):
+ temp_dir):
if platform.machine() in ['arm', 'armv7l', 'aarch64', 'arm64', 'ARM64'] and \
input_type in [np.int32, np.uint8, np.int16, np.int8, np.int64,
np.uint16, np.uint32, np.uint64]:
pytest.skip('156588: Segmenation fault or OpenVINO hangs for TopKV2 on ARM')
self._test(*self.create_topk_v2_net(input_shape, input_type, k, k_type, sorted, index_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Transpose.py b/tests/layer_tests/tensorflow_tests/test_tf_Transpose.py
index 5fd36f891c7..3ddf3161405 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Transpose.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Transpose.py
@@ -27,11 +27,9 @@ class TestTranspose(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_transpose_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_transpose_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_transpose_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestComplexTranspose(CommonTFLayerTest):
@@ -71,9 +69,7 @@ class TestComplexTranspose(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_complex_transpose(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_complex_transpose(self, params, ie_device, precision, ir_version, temp_dir):
self._test(
*self.create_complex_transpose_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TruncateDiv.py b/tests/layer_tests/tensorflow_tests/test_tf_TruncateDiv.py
index c790e48699b..642116f2714 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TruncateDiv.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TruncateDiv.py
@@ -48,10 +48,8 @@ class TestTruncateDiv(CommonTFLayerTest):
'aarch64',
'arm64', 'ARM64'),
reason='Ticket - 126314, 122716')
- def test_truncate_div_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_truncate_div_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("Requested activation is not supported for integer type or accuracy issue on GPU")
self._test(*self.create_truncate_div_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_TruncateMod.py b/tests/layer_tests/tensorflow_tests/test_tf_TruncateMod.py
index 97793987f06..8ff1abfb851 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_TruncateMod.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_TruncateMod.py
@@ -42,10 +42,8 @@ class TestTruncateMod(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_truncate_mod_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_truncate_mod_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("accuracy issue on GPU")
self._test(*self.create_truncate_mod_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_UnaryOps.py b/tests/layer_tests/tensorflow_tests/test_tf_UnaryOps.py
index 8dd5a0e9c24..50050515156 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_UnaryOps.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_UnaryOps.py
@@ -47,7 +47,7 @@ class TestUnaryOps(CommonTFLayerTest):
return inputs_dict
- def create_net_with_mish(self, shape, ir_version, use_legacy_frontend):
+ def create_net_with_mish(self, shape, ir_version):
import tensorflow as tf
import tensorflow_addons as tfa
@@ -64,7 +64,7 @@ class TestUnaryOps(CommonTFLayerTest):
return tf_net, ref_net
- def create_net_with_unary_op(self, shape, ir_version, op_type, use_legacy_frontend):
+ def create_net_with_unary_op(self, shape, ir_version, op_type):
import tensorflow as tf
self.current_op_type = op_type
@@ -132,32 +132,24 @@ class TestUnaryOps(CommonTFLayerTest):
'Square',
'BitwiseNot'])
@pytest.mark.nightly
- def test_unary_op_precommit(self, params, ie_device, precision, ir_version, temp_dir, op_type,
- use_legacy_frontend):
- if use_legacy_frontend and op_type in ['BitwiseNot']:
- pytest.skip("Bitwise ops are supported only by new TF FE.")
+ def test_unary_op_precommit(self, params, ie_device, precision, ir_version, temp_dir, op_type):
if ie_device == 'GPU':
pytest.skip("5D tensors is not supported on GPU")
- self._test(*self.create_net_with_unary_op(**params, ir_version=ir_version, op_type=op_type,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_net_with_unary_op(**params, ir_version=ir_version, op_type=op_type),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.xfail(sys.version_info > (3, 10),
reason="tensorflow_addons package is not available for Python 3.11 and higher")
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.nightly
- def test_unary_op_mish_precommit(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_unary_op_mish_precommit(self, params, ie_device, precision, ir_version, temp_dir):
"""
TODO: Move to `test_unary_op_precommit()` once tensorflow_addons package is available for Python 3.11
"""
if ie_device == 'GPU':
pytest.skip("5D tensors is not supported on GPU")
- self._test(*self.create_net_with_mish(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_net_with_mish(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data = [pytest.param(dict(shape=[10, 12]), marks=pytest.mark.precommit),
dict(shape=[8, 10, 12]),
@@ -185,29 +177,21 @@ class TestUnaryOps(CommonTFLayerTest):
@pytest.mark.nightly
@pytest.mark.skipif(sys.platform == 'darwin', reason="Ticket - 122182")
@pytest.mark.xfail(platform.machine() in ["aarch64", "arm64", "ARM64"], reason='Ticket - 122716')
- def test_unary_op(self, params, ie_device, precision, ir_version, temp_dir, op_type,
- use_legacy_frontend):
- if use_legacy_frontend and op_type in ['BitwiseNot']:
- pytest.skip("Bitwise ops are supported only by new TF FE.")
+ def test_unary_op(self, params, ie_device, precision, ir_version, temp_dir, op_type):
if ie_device == 'GPU':
pytest.skip("5D tensors is not supported on GPU")
- self._test(*self.create_net_with_unary_op(**params, ir_version=ir_version, op_type=op_type,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_net_with_unary_op(**params, ir_version=ir_version, op_type=op_type),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
@pytest.mark.xfail(sys.version_info > (3, 10),
reason="tensorflow_addons package is not available for Python 3.11 and higher")
@pytest.mark.parametrize("params", test_data)
@pytest.mark.nightly
- def test_unary_op_mish(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_unary_op_mish(self, params, ie_device, precision, ir_version, temp_dir):
"""
TODO: Move to `test_unary_op()` once tensorflow_addons package is available for Python 3.11
"""
if ie_device == 'GPU':
pytest.skip("5D tensors is not supported on GPU")
- self._test(*self.create_net_with_mish(**params, ir_version=ir_version,
- use_legacy_frontend=use_legacy_frontend),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ self._test(*self.create_net_with_mish(**params, ir_version=ir_version),
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_UnaryOpsAllRealDomain.py b/tests/layer_tests/tensorflow_tests/test_tf_UnaryOpsAllRealDomain.py
index c0be406133a..fe15be3efeb 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_UnaryOpsAllRealDomain.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_UnaryOpsAllRealDomain.py
@@ -61,10 +61,9 @@ class TestUnaryOpsAllRealDomain(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_unary_ops(self, input_shape, input_type, op_type,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
if platform.machine() in ["aarch64", "arm64", "ARM64"] and op_type in ['Cos', 'Cosh', 'Sinh', 'Exp']:
pytest.skip("159585: accuracy error on ARM")
self._test(*self.create_unary_net(input_shape, input_type, op_type),
ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend, custom_eps=3 * 1e-3)
+ custom_eps=3 * 1e-3)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Unique.py b/tests/layer_tests/tensorflow_tests/test_tf_Unique.py
index af274279040..c72a2f80c4e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Unique.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Unique.py
@@ -38,13 +38,9 @@ class TestUnique(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_unique_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("Unique operation is not supported via legacy frontend.")
+ def test_unique_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_unique_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
test_data_other_types = [
dict(x_shape=[10], data_type=tf.int32, out_idx=tf.int32),
@@ -53,10 +49,6 @@ class TestUnique(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_other_types)
@pytest.mark.nightly
- def test_unique_other_types(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
- if use_legacy_frontend:
- pytest.skip("Unique operation is not supported via legacy frontend.")
+ def test_unique_other_types(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_unique_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_UniqueWithCounts.py b/tests/layer_tests/tensorflow_tests/test_tf_UniqueWithCounts.py
index b7e90f6d7bd..fc92f43b1d8 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_UniqueWithCounts.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_UniqueWithCounts.py
@@ -38,12 +38,8 @@ class TestUnique(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_unique_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_unique_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU' and params['x_shape'] == [1]:
pytest.skip("Input unique:UniqueWithCounts.out2 hasn't been found in primitive_ids map issue on GPU")
- if use_legacy_frontend:
- pytest.skip("Unique operation is not supported via legacy frontend.")
self._test(*self.create_unique_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Unpack.py b/tests/layer_tests/tensorflow_tests/test_tf_Unpack.py
index f198d9ab13a..999cae221ed 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Unpack.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Unpack.py
@@ -48,8 +48,6 @@ class TestUnpack(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_unpack_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_unpack_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_unpack_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_UnravelIndex.py b/tests/layer_tests/tensorflow_tests/test_tf_UnravelIndex.py
index 985b3d51212..3df96185a9f 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_UnravelIndex.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_UnravelIndex.py
@@ -37,8 +37,6 @@ class TestUnravelIndex(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_unravel_index_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_unravel_index_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_unravel_index_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_UnsortedSegmentSum.py b/tests/layer_tests/tensorflow_tests/test_tf_UnsortedSegmentSum.py
index 509baf522c5..a7e5c74389b 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_UnsortedSegmentSum.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_UnsortedSegmentSum.py
@@ -55,10 +55,8 @@ class TestUnsortedSegmentSum(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_unsorted_segment_sum_basic(self, params, data_type, segment_ids_type, num_segments_type, ie_device,
- precision, ir_version, temp_dir,
- use_legacy_frontend):
+ precision, ir_version, temp_dir):
self._test(*self.create_unsorted_segment_sum_net(**params,
data_type=data_type, segment_ids_type=segment_ids_type,
num_segments_type=num_segments_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Where.py b/tests/layer_tests/tensorflow_tests/test_tf_Where.py
index ec8129f5b6a..89e4fabfac4 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Where.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Where.py
@@ -36,8 +36,6 @@ class TestWhere(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_where_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_where_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_where_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_While.py b/tests/layer_tests/tensorflow_tests/test_tf_While.py
index bc903b27896..9fd72f930c1 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_While.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_While.py
@@ -59,11 +59,9 @@ class TestWhile(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_while_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_while_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_while_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestWhileShapeVariant(CommonTFLayerTest):
@@ -119,11 +117,9 @@ class TestWhileShapeVariant(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_while_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_while_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_while_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
class TestWhileWithNestedIf(CommonTFLayerTest):
@@ -193,10 +189,8 @@ class TestWhileWithNestedIf(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
@pytest.mark.skipif(platform == 'darwin', reason="Ticket - 122182")
- def test_while_with_nested_if_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_while_with_nested_if_basic(self, params, ie_device, precision, ir_version, temp_dir):
if ie_device == 'GPU':
pytest.skip("accuracy issue on GPU")
self._test(*self.create_while_with_nested_if_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Xlog1py.py b/tests/layer_tests/tensorflow_tests/test_tf_Xlog1py.py
index 54e4f8136b4..2ee95b793b2 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Xlog1py.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Xlog1py.py
@@ -43,8 +43,6 @@ class TestXlog1py(CommonTFLayerTest):
@pytest.mark.parametrize('input_type', [np.float16, np.float32, np.float64])
@pytest.mark.precommit
@pytest.mark.nightly
- def test_xlog1py_basic(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_xlog1py_basic(self, input_shape, input_type, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_xlog1py_net(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_Xlogy.py b/tests/layer_tests/tensorflow_tests/test_tf_Xlogy.py
index 9da0bc70e84..9796c413912 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_Xlogy.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_Xlogy.py
@@ -43,8 +43,6 @@ class TestXlogy(CommonTFLayerTest):
@pytest.mark.precommit
@pytest.mark.nightly
def test_xlogy_basic(self, input_shape, input_type,
- ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ ie_device, precision, ir_version, temp_dir):
self._test(*self.create_xlogy_net(input_shape, input_type),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_ZerosLike.py b/tests/layer_tests/tensorflow_tests/test_tf_ZerosLike.py
index 02a967bec4e..1e32b447f2e 100644
--- a/tests/layer_tests/tensorflow_tests/test_tf_ZerosLike.py
+++ b/tests/layer_tests/tensorflow_tests/test_tf_ZerosLike.py
@@ -28,8 +28,6 @@ class TestZerosLike(CommonTFLayerTest):
@pytest.mark.parametrize("params", test_data_basic)
@pytest.mark.precommit
@pytest.mark.nightly
- def test_zeros_like_basic(self, params, ie_device, precision, ir_version, temp_dir,
- use_legacy_frontend):
+ def test_zeros_like_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_zeros_like_net(**params),
- ie_device, precision, ir_version, temp_dir=temp_dir,
- use_legacy_frontend=use_legacy_frontend)
+ ie_device, precision, ir_version, temp_dir=temp_dir)