repo
stringclasses
454 values
file_path
stringlengths
5
201
extension
stringclasses
1 value
content
stringlengths
8
509k
num_lines
int64
3
16.9k
size_bytes
int64
8
511k
openvino
tests/layer_tests/tensorflow_tests/test_tf_BatchToSpace.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestBatchToSpace(CommonTFLayerTest): def create_batch_to_space_net(self, in_shape, crops_value, block_shape_value): import tensorflow as tf ...
62
2,732
openvino
tests/layer_tests/tensorflow_tests/test_tf_TopKV2.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(235436) class TestTopKV2(CommonTFLayerTest): def _prepare_input(self, in...
64
3,278
openvino
tests/layer_tests/tensorflow_tests/test_tf_Cast.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest # Testing Cast operation (Initial Implementation) # Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Cast class TestCastOp(...
75
2,967
openvino
tests/layer_tests/tensorflow_tests/test_tf_Xlogy.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import mix_two_arrays_with_several_values rng = np.random.default_rng(235345) class TestXlogy...
49
2,090
openvino
tests/layer_tests/tensorflow_tests/test_tf_EnsureShape.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestEnsureShape(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'tensor:0' in inputs_...
45
1,761
openvino
tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(23345) class TestHSVToRGB(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
50
2,132
openvino
tests/layer_tests/tensorflow_tests/test_tf_OneHot.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestOneHot(CommonTFLayerTest): @staticmethod def create_one_hot_net(shape, depth, on_value, off_value, axis): import tensorflow as tf ...
49
1,912
openvino
tests/layer_tests/tensorflow_tests/test_tf_Conv3D.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest # Testing operation Conv3D # Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Conv3D class TestConv3D(CommonTFLayerTest): # input_shape - ...
82
3,778
openvino
tests/layer_tests/tensorflow_tests/test_tf_ReduceArithmeticOps.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(475912) class TestReduceArithmeticOps(CommonTFLayerTest): def _prepare_input(self, inputs_info):...
102
4,161
openvino
tests/layer_tests/tensorflow_tests/test_tf_AdjustContrastv2.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(2323534) class TestAdjustContrastv2(CommonTFLayerTest): def _prepare_input(self, inputs_...
42
1,769
openvino
tests/layer_tests/tensorflow_tests/test_tf_UnsortedSegmentMax.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(56234) class TestUnsortedSegmentMax(CommonTFLayerTest): def _prepare_input(self, inputs_...
81
4,073
openvino
tests/layer_tests/tensorflow_tests/test_tf_Add.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestAdd(CommonTFLayerTest): def create_add_placeholder_const_net(self, x_shape, y_shape): import tensorflow as tf tf.c...
257
12,250
openvino
tests/layer_tests/tensorflow_tests/test_tf_Conv2DBackpropInput.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import logging import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(475912) class TestConv2DBackpropInput(CommonTFLayerTest): def _prepare_in...
69
3,145
openvino
tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import run_in_jenkins rng = np.random.default_rng() class TestStaticRegexReplace(CommonTFLaye...
49
2,171
openvino
tests/layer_tests/tensorflow_tests/test_tf_Mul.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestMul(CommonTFLayerTest): def create_mul_placeholder_const_net(self, x_shape, y_shape): import tensorflow as tf tf....
255
11,885
openvino
tests/layer_tests/tensorflow_tests/test_tf_Reciprocal.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestReciprocal(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs_info ...
82
3,236
openvino
tests/layer_tests/tensorflow_tests/test_tf_MaxPoolWithArgmax.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestMaxPoolWithArgmax(CommonTFLayerTest): def _prepare_input(self, inputs_info): asser...
76
3,427
openvino
tests/layer_tests/tensorflow_tests/test_tf_AddN.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest # Testing operation AddN # Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/AddN class TestAddN(Comm...
97
3,856
openvino
tests/layer_tests/tensorflow_tests/test_tf_StridedSlice.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestStridedSlice(CommonTFLayerTest): def create_strided_slice_net(self, input_shape, begin_value, end_value, strides_value, begin_mask, end_mask, ...
233
15,393
openvino
tests/layer_tests/tensorflow_tests/test_tf_NonMaxSupression.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestNonMaxSuppression(CommonTFLayerTest): # overload inputs generation to suit NMS use case ...
158
6,138
openvino
tests/layer_tests/tensorflow_tests/test_tf_BroadcastArgs.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestBroadcastArgs(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 's0:0' in inputs_in...
61
2,456
openvino
tests/layer_tests/tensorflow_tests/test_tf_RandomUniform.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestRandomUniform(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 's...
47
1,964
openvino
tests/layer_tests/tensorflow_tests/test_tf_MinMax.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest # Testing Min, Max operations (Initial Implementation) # Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Min # ...
64
2,342
openvino
tests/layer_tests/tensorflow_tests/test_tf_Sub.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestSub(CommonTFLayerTest): def create_sub_placeholder_const_net(self, x_shape, y_shape, ir_version): import tensorflow as tf ...
269
11,563
openvino
tests/layer_tests/tensorflow_tests/test_tf_Range.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestRange(CommonTFLayerTest): def _prepare_input(self, inputs_info): inputs_data = {} if self.n...
57
2,243
openvino
tests/layer_tests/tensorflow_tests/test_tf_FloorDiv.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import platform from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng() def list_arm_platforms(): return ['arm', 'armv7l', 'aarch64', 'arm64', 'ARM64'] class TestFlo...
128
4,842
openvino
tests/layer_tests/tensorflow_tests/test_tf_BinaryComparison.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import mix_array_with_several_values rng = np.random.default_rng(23356) class TestBinaryCompa...
95
4,199
openvino
tests/layer_tests/tensorflow_tests/test_tf_UnsortedSegmentSum.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(23254) class TestUnsortedSegmentSum(CommonTFLayerTest): def _prepare_input(self, inputs_...
63
3,219
openvino
tests/layer_tests/tensorflow_tests/test_tf_SelectV2.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestSelectV2(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'cond:0' in inputs_info,...
96
4,585
openvino
tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import mix_array_with_value, run_in_jenkins rng = np.random.default_rng() class TestLookupTab...
94
5,003
openvino
tests/layer_tests/tensorflow_tests/test_tf_Equal.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import run_in_jenkins # Testing operation Equal # Documentation: https://www.te...
310
15,372
openvino
tests/layer_tests/tensorflow_tests/test_tf_IsInf.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import mix_array_with_value class TestIsInf(CommonTFLayerTest): def _prepare_input(self, i...
45
1,612
openvino
tests/layer_tests/tensorflow_tests/test_tf_Softsign.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestSoftsign(CommonTFLayerTest): def create_softsign_net(self, shape, ir_version): import tensorflow as tf tf.compat.v1.reset_default_gra...
38
1,318
openvino
tests/layer_tests/tensorflow_tests/test_tf_ZerosLike.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestZerosLike(CommonTFLayerTest): def create_zeros_like_net(self, x_shape): tf.compat.v1.reset_default_graph() # C...
34
1,098
openvino
tests/layer_tests/tensorflow_tests/test_tf_CropAndResize.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestCropAndResize(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'i...
63
2,915
openvino
tests/layer_tests/tensorflow_tests/test_tf_Eye.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestTFEye(CommonTFLayerTest): eye_output_type_param = np.float32 # Overload inputs generation to fill dumm...
60
2,868
openvino
tests/layer_tests/tensorflow_tests/test_tf_Reverse.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestReverse(CommonTFLayerTest): def create_reverse_net(self, shape, dims): import tensorflow as tf tf.compat.v1.reset_default_graph() ...
33
1,184
openvino
tests/layer_tests/tensorflow_tests/test_tf_TopK.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class Test_TopK(CommonTFLayerTest): @staticmethod def create_topK_net(shape, k, ir_version): pytest.xfail(reason="95063") import tensorflow...
83
2,849
openvino
tests/layer_tests/tensorflow_tests/test_tf_Pad.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestPad(CommonTFLayerTest): def create_pad_net(self, input_shape, pads_values, const_value, pad_mode, pad_op): ...
133
6,285
openvino
tests/layer_tests/tensorflow_tests/test_tf_Inv.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestInv(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs_info ...
85
3,281
openvino
tests/layer_tests/tensorflow_tests/test_tf_SparseFillEmptyRows.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(475912) class TestSparseFillEmptyRows(CommonTFLayerTest): def _prepare_input(self, input...
95
4,204
openvino
tests/layer_tests/tensorflow_tests/test_tf_AdjustHue.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(2323534) class TestAdjustHue(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
54
2,312
openvino
tests/layer_tests/tensorflow_tests/test_tf_ReverseSequence.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestReverseSequence(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'input:0' in inpu...
105
5,115
openvino
tests/layer_tests/tensorflow_tests/test_tf_UnaryOpsAllRealDomain.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(253512) class TestUnaryOpsAllRealDomain(CommonTFLayerTest): def _prepare...
70
2,809
openvino
tests/layer_tests/tensorflow_tests/test_tf_DepthToSpace.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestDepthToSpace(CommonTFLayerTest): def create_depth_to_space_net(self, input_shape, block_size, data_format): tf.compat....
34
1,375
openvino
tests/layer_tests/tensorflow_tests/test_tf_Rank.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest import numpy as np import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestRank(CommonTFLayerTest): def create_rank_net(self, input_shape, input_type): tf.compat.v1.reset_def...
74
2,865
openvino
tests/layer_tests/tensorflow_tests/test_tf_Fill.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest # Testing Fill operation (Initial Implementation) # Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Fill class TestFillOps(...
55
1,877
openvino
tests/layer_tests/tensorflow_tests/test_tf_InvertPermutation.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestInvertPermutation(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs...
43
1,538
openvino
tests/layer_tests/tensorflow_tests/test_tf_IsNan.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import mix_array_with_value class TestIsNan(CommonTFLayerTest): def _prepare_input(self, i...
47
1,704
openvino
tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatch.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestSpaceToBatch(CommonTFLayerTest): def create_space_to_batch_net(self, in_shape, pads_value, block_shape_value): import tensor...
67
2,752
openvino
tests/layer_tests/tensorflow_tests/test_tf_If.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(32345) class TestIfFloat(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
309
14,313
openvino
tests/layer_tests/tensorflow_tests/test_tf_Identity.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest OPS = { 'tf.raw_ops.Identity': tf.raw_ops.Identity, 'tf.raw_ops.PreventGradient': tf.raw_ops.PreventGradient, 'tf.raw_ops.Snapsh...
45
1,574
openvino
tests/layer_tests/tensorflow_tests/test_tf_Size.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestSize(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'input:0' in inputs_info ...
84
3,263
openvino
tests/layer_tests/tensorflow_tests/test_tf_SegmentMax.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng() class TestSegmentMax(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
101
4,393
openvino
tests/layer_tests/tensorflow_tests/test_tf_Conj.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest # Testing operation Conj # Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Conj class TestComplexCo...
60
2,141
openvino
tests/layer_tests/tensorflow_tests/test_tf_BiasAdd.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestBiasAdd(CommonTFLayerTest): def create_bias_add_placeholder_const_net(self, shape, ir_version, output_type=...
189
8,106
openvino
tests/layer_tests/tensorflow_tests/test_tf_Expm1.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(345345) class TestExpm1(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
39
1,409
openvino
tests/layer_tests/tensorflow_tests/test_tf_RandomUniformInt.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestRandomUniformInt(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'shape:0' in inp...
51
2,408
openvino
tests/layer_tests/tensorflow_tests/test_tf_ClipByValue.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestClipByValue(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 't:0' in inputs_info,...
50
2,018
openvino
tests/layer_tests/tensorflow_tests/test_tf_ReverseV2.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestReverseV2(CommonTFLayerTest): def create_reverse_v2_net(self, shape, axis): import tensorflow as tf tf.compat.v1.reset_default_graph()...
34
1,180
openvino
tests/layer_tests/tensorflow_tests/test_tf_Pack.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestPack(CommonTFLayerTest): def _prepare_input(self, inputs_info): inputs_data = {} for input_...
116
4,602
openvino
tests/layer_tests/tensorflow_tests/test_tf_FakeQuantize.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestFakeQuantize(CommonTFLayerTest): def _prepare_input(self, inputs_dict, kwargs): assert len(inputs_dict) == 1 assert...
109
5,446
openvino
tests/layer_tests/tensorflow_tests/test_tf_Eltwise.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestEltwise(CommonTFLayerTest): def create_eltwise_net(self, shape, operation, ir_version): import tensorflow as tf tf.compat.v1.reset_d...
59
2,257
openvino
tests/layer_tests/tensorflow_tests/test_tf_ListDiff.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestListDiff(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs_info, "T...
47
1,775
openvino
tests/layer_tests/tensorflow_tests/test_tf_SparseSegmentOp.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(475912) class TestSparseSegmentMean(CommonTFLayerTest): def _prepare_input(self, inputs_...
88
3,591
openvino
tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseAdd.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(475912) class TestSparseTensorDenseAdd(CommonTFLayerTest): def _prepare_...
83
3,447
openvino
tests/layer_tests/tensorflow_tests/test_tf_UnaryOps.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import sys from common.tf_layer_test_class import CommonTFLayerTest class TestUnaryOps(CommonTFLayerTest): current_op_type = None def _prepare_input(self, inputs_dict): ...
198
8,056
openvino
tests/layer_tests/tensorflow_tests/test_tf_TensorScatterUpdate.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(872173) class TestTensorScatterUpdate(CommonTFLayerTest): def _prepare_i...
88
3,784
openvino
tests/layer_tests/tensorflow_tests/test_tf_MatrixBandPart.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng() class TestMatrixBandPart(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
40
1,742
openvino
tests/layer_tests/tensorflow_tests/test_tf_ExpandDims.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(62362) class TestExpandDims(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
93
3,553
openvino
tests/layer_tests/tensorflow_tests/test_tf_ReLU6.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from common.tf_layer_test_class import CommonTFLayerTest class TestReLU6(CommonTFLayerTest): def create_relu6_net(self, shape, ir_version): import tensorflow as tf tf.compat.v1.reset_default_graph() ...
47
1,644
openvino
tests/layer_tests/tensorflow_tests/test_tf_IsFinite.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import mix_array_with_value class TestIsFinite(CommonTFLayerTest): def _prepare_input(self...
47
1,719
openvino
tests/layer_tests/tensorflow_tests/test_tf_TensorArrayOps.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest def create_tensor_array(data_shape, data_type): size = data_shape[0] data = tf.compat.v1.placeholder(data_type, d...
209
9,740
openvino
tests/layer_tests/tensorflow_tests/test_tf_Log1p.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestLog1p(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs_info ...
42
1,312
openvino
tests/layer_tests/tensorflow_tests/test_tf_AsString.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import run_in_jenkins rng = np.random.default_rng() class TestAsString(CommonTFLayerTest): ...
72
2,993
openvino
tests/layer_tests/tensorflow_tests/test_tf_BitwiseShift.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(21097) op_type_to_tf = { 'LeftShift': tf.raw_ops.RightShift, 'RightSh...
76
3,162
openvino
tests/layer_tests/tensorflow_tests/test_tf_TensorListResize.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from sys import platform import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestTensorListResize(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
51
2,205
openvino
tests/layer_tests/tensorflow_tests/test_tf_SpaceToBatchND.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestSpaceToBatchND(CommonTFLayerTest): def create_space_to_batch_nd_net(self, input_shape, block_shape, paddings): tf.comp...
34
1,374
openvino
tests/layer_tests/tensorflow_tests/test_tf_Cumsum.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest # Testing Cumsum operation # Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Cumsum class TestCumsum(CommonTFLayerTest): ...
112
4,230
openvino
tests/layer_tests/tensorflow_tests/test_tf_Angle.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestAngle(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'y:0' in inputs_info ...
46
1,778
openvino
tests/layer_tests/tensorflow_tests/test_tf_Atan2.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestAtan2(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'y:0' in inputs_info ...
135
5,554
openvino
tests/layer_tests/tensorflow_tests/test_tf_Resize.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest OPS = { 'tf.raw_ops.ResizeBilinear': tf.raw_ops.ResizeBilinear, 'tf.raw_ops.ResizeNearestNeighbor...
70
3,608
openvino
tests/layer_tests/tensorflow_tests/test_tf_ArgMinMax.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest # Testing operation ArgMin, ArgMax (Initial Implementation) # Documentation: https://www.tensorflow.org/ap...
78
3,937
openvino
tests/layer_tests/tensorflow_tests/test_tf_Div.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestDiv(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs_info ...
49
1,926
openvino
tests/layer_tests/tensorflow_tests/test_tf_BinaryOps.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng() def generate_input(x_shape, x_type, bound=False): # usual function domain lower = -25 ...
100
3,778
openvino
tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import numpy as np import pytest from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(475912) class TestTFScatterND(CommonTFLayerTest): def create_tf_scatternd_placeholder_const_net(...
124
5,680
openvino
tests/layer_tests/tensorflow_tests/test_tf_GatherNd.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestGatherNd(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'params:0' in inputs_inf...
64
2,866
openvino
tests/layer_tests/tensorflow_tests/test_tf_ComplexFFT.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest OPS = { 'tf.raw_ops.IRFFT': tf.raw_ops.IRFFT, 'tf.raw_ops.IRFFT2D': tf.raw_ops.IRFFT2D, 'tf.ra...
163
7,301
openvino
tests/layer_tests/tensorflow_tests/test_tf_Where.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestWhere(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'condition:0' in inputs_inf...
42
1,569
openvino
tests/layer_tests/tensorflow_tests/test_tf_BlockLSTM.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest rng = np.random.default_rng(2024) class TestBlockLSTM(CommonTFLayerTest): def _prepare_input(self, inputs_info): ...
65
3,356
openvino
tests/layer_tests/tensorflow_tests/test_tf_UniqueWithCounts.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestUnique(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs_info, "Tes...
46
1,862
openvino
tests/layer_tests/tensorflow_tests/test_tf_LookupTableSize.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import platform import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest from common.utils.tf_utils import mix_array_with_value, run_in_jenkins rng = np.random.default_rng() cla...
73
3,565
openvino
tests/layer_tests/tensorflow_tests/test_tf_LinSpace.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestLinSpace(CommonTFLayerTest): def _prepare_input(self, _): inputs_data = {} inputs_data['sta...
49
2,088
openvino
tests/layer_tests/tensorflow_tests/test_tf_OnesLike.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestOnesLike(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x:0' in inputs_info ...
87
3,366
openvino
tests/layer_tests/tensorflow_tests/test_tf_MatrixInverse.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestMatrixInverse(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'input:0' in inputs_...
63
2,626
openvino
tests/layer_tests/tensorflow_tests/test_tf_Roll.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest import tensorflow as tf 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): tf.compat.v1.re...
45
1,996
openvino
tests/layer_tests/tensorflow_tests/test_tf_Shape.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestShape(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'input:0' in inputs_info ...
104
4,547
openvino
tests/layer_tests/tensorflow_tests/conftest.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import inspect import logging as log from pathlib import Path import pytest from common.layer_test_class import get_params from common.utils.common_utils import copy_files_by_pattern def pytest_generate_tests(metafunc): test_gen_at...
17
551
openvino
tests/layer_tests/tensorflow_tests/test_tf_Rint.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import platform import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestRint(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'input:0' in...
45
1,878
openvino
tests/model_hub_tests/pytorch/test_detectron2.py
.py
# Copyright (C) 2018-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os import sys import subprocess import platform import pytest import torch from models_hub_common.utils import get_models_list, compare_two_tensors, retry from torch_utils import TestTorchConvertModel, process_pytest_marks, skip_...
140
6,566