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_lite_tests/test_tfl_BroadcastArgs.py | .py | import numpy as np
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [1, 5], 'broadcast_shape': [5, 5]},
{'shape': [1], 'broadcast_shape': [7]}
]
class TestTFLiteBroadcastArgsLayerTest(TFLiteLayerTest):
inputs = ["Input", "Input1"]... | 43 | 1,656 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_ZerosLike.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': ([None], [10])},
{'shape': ([None, 10], [1, 10])},
{'shape': ([1, 10, None], [1, 10, 10])},
{'shape': ([None, 2, 3, 4], [5, 2, 3, 4])},
{'shape': ([5, 2, None, 4], [5, 2, 3, 4... | 42 | 1,479 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Gather.py | .py | import numpy as np
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
np.random.seed(42)
test_params = [
{'shape': [1, 10], 'indices_shape': [1, 5]},
{'shape': [2, 3, 5, 5], 'indices_shape': [4, 5]},
{'shape': [1, 5, 5], 'indices_shape': [2, 4, 5]},
{'sha... | 39 | 1,374 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_DepthwiseConv2D.py | .py | import numpy as np
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
np.random.seed(42)
test_params = [
{'shape': [1, 22, 22, 8], 'ksize': [3, 3, 8, 2], 'strides': [1, 2, 2, 1], 'padding': 'SAME',
'dilations': [1, 1]},
{'shape': [1, 22, 22, 9], 'ksize': [3,... | 40 | 1,643 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_SegmentSum.py | .py | import platform
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [4], 'segment_ids': [0, 0, 1, 1]},
{'shape': [4], 'segment_ids': [0, 1, 2, 2]},
{'shape': [4], 'segment_ids': [0, 1, 2, 3]},
{'shape': [4], 'segment_ids': [0, 0, ... | 49 | 1,919 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_L2Normalization.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
from common.utils.tflite_utils import additional_test_params
from common.utils.tflite_utils import parametrize_tests
test_params = [
{'shape': [1]},
{'shape': [1, 22]},
{'shape': [1, 1, 8]},
{'shape': [1, ... | 38 | 1,355 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_HardSwish.py | .py | import pytest
import tensorflow as tf
import numpy as np
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [1]},
{'shape': [2, 3]},
{'shape': [1, 1, 1, 1]},
{'shape': [1, 3, 4, 3]},
{'shape': [3, 15, 14, 3]},
]
class TestTFLiteHardSwishLayerTest(TFLiteLayerTest... | 41 | 1,428 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Shape.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from functools import partial
import numpy as np
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
from common.utils.tflite_utils import parametrize_tests
test_params = [
{'shape': [1... | 52 | 1,802 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Reshape.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [2, 6], 'out_shape': [2, 3, 2]},
{'shape': [2, 4, 6], 'out_shape': [2, -1]},
{'shape': [1], 'out_shape': []},
]
class TestTFLiteReshapeLayerTest(TFLiteLayerTest):
inputs = ["Inp... | 35 | 1,237 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Squeeze.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [1, 3], 'axis': [0]},
{'shape': [2, 1], 'axis': [1]},
{'shape': [1, 1, 2], 'axis': [0, 1]},
{'shape': [1, 1, 2, 2], 'axis': [1]},
{'shape': [1, 1, 2, 2], 'axis': [1, 1]},
... | 37 | 1,330 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_SpaceToBatchND.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [8, 10, 10, 3], 'block_shape': [2, 2], 'paddings': [[0, 2], [0, 0]]},
{'shape': [24, 10, 10, 1], 'block_shape': [6, 6], 'paddings': [[2, 0], [0, 2]]}
]
class TestTFLiteSpaceToBatchNDLay... | 33 | 1,316 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_StridedSlice.py | .py | import numpy as np
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [12, 2, 2, 5], 'dtype': np.int32, 'strides': [2, 1, 3, 1], 'begin': [0, 0, 0, 0], 'end': [12, 2, 2, 5],
'begin_mask': None, 'end_mask': None, 'shrink_axis_mask': 4},
... | 70 | 3,373 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_TopKV2.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [2], 'k': 2, 'sorted': True},
{'shape': [2, 3], 'k': 1, 'sorted': False},
{'shape': [2, 3, 5], 'k': 2, 'sorted': True},
{'shape': [2, 3, 5, 10], 'k': 9, 'sorted': False},
]
clas... | 34 | 1,191 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_DepthToSpace.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [8, 10, 10, 16], 'block_size': 2},
{'shape': [24, 10, 10, 50], 'block_size': 5},
]
class TestTFLiteDepthToSpaceLayerTest(TFLiteLayerTest):
inputs = ["Input"]
outputs = ["DepthTo... | 32 | 1,184 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Pack.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [3], 'num_tensors': 2},
{'shape': [1, 22], 'num_tensors': 10},
{'shape': [1, 1, 8], 'num_tensors': 5},
{'shape': [1, 22, 22, 8], 'num_tensors': 5},
{'shape': [1, 22, 22, 8, 3]... | 41 | 1,447 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Slice.py | .py | import string
import numpy as np
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
# OV doesn't support string format
# {'shape': [12, 2, 2, 5], 'begin': [0, 0, 0, 0], 'size': [8, 2, 2, 3], 'dtype': tf.string},
{'shape': [12, 2, 2, 5], 'begin... | 58 | 2,401 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_ExpandDims.py | .py | import pytest
import tensorflow as tf
import numpy as np
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [2], 'axis': [0]},
{'shape': [2, 2], 'axis': [2]},
{'shape': [2, 2], 'axis': [0, 2]},
{'shape': [5, 2, 2, 2], 'axis': [1]},
{'shape': [5, 2, 2, 2], 'axis': ... | 47 | 1,644 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Binary.py | .py | import platform
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
from common.utils.tflite_utils import parametrize_tests
test_ops = [
{'op_name': 'EQUAL', 'op_func': 'tf.math.equal'},
{'op_name': 'FLOOR_MOD', 'op_func': 'tf.math.floormod', 'kwargs_to_prepare_inp... | 57 | 2,679 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Conv3D.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.tflite_layer_test_class import TFLiteLayerTest
np.random.seed(42)
test_params = [
{'shape': [1, 16, 28, 28, 3], 'ksize': [1, 3, 3, 3, 1], 'strides': (1, 1, 1, 1,... | 45 | 2,282 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_ReverseV2.py | .py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [1], 'axis': [-1]},
{'shape': [1], 'axis': [0]},
{'shape': [2, 6], 'axis': [-1, -2]},
{'shape': [2, 6], 'axis': [1]},
{'shape': [2, 4, 6], 'axis': [0, -2]},
{'shape': [2, ... | 44 | 1,671 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_BroadcastTo.py | .py | import platform
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [1, 1, 1, 1, 40], 'broadcast_shape': [1, 1, 56, 56, 40]},
{'shape': [1, 1, 1, 1, 10], 'broadcast_shape': [1, 1, 10, 10, 10]}
]
class TestTFLiteBroadcastToLayerTest(TFLi... | 38 | 1,486 |
openvino | tests/layer_tests/tensorflow_lite_tests/test_tfl_Conv2D.py | .py | import numpy as np
import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
np.random.seed(42)
test_params = [
{'shape': [1, 22, 22, 8], 'ksize': [32, 3, 4, 4], 'strides': 2, 'padding': 'SAME', 'dilations': [1, 1, 1, 1]},
{'shape': [1, 22, 22, 9], 'ksize': [32, 3, 3, 3... | 40 | 1,807 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Xlog1py.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 TestXlog... | 49 | 2,076 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Rsqrt.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
rng = np.random.default_rng(123813)
class TestRsqrt(CommonTFLayerTest):
def _prepare_input(self, inputs_dict):
for input in inputs_... | 102 | 3,552 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Transpose.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 TestTranspose(CommonTFLayerTest):
def create_transpose_net(self, x_shape, perm_value):
tf.compat.v1.reset_default_graph()
... | 76 | 3,033 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Softmax.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(54654675)
class TestSoftmax(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 44 | 1,664 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_RGBToHSV.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(3476123)
class TestRGBToHSV(CommonTFLayerTest):
def _prepare_input(self,... | 53 | 2,156 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_LogicalBinaryOps.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 TestLogicalBinaryOps(CommonTFLayerTest):
def _prepare_input(self, inputs_in... | 55 | 2,037 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_UnravelIndex.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 TestUnravelIndex(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'indices:0' in input... | 43 | 1,671 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_AddTypes.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 TestAddTypes(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 57 | 2,632 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Gather.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 TestGather(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
as... | 80 | 3,666 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Squeeze.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 TestSqueeze(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'input:0' in inputs_info
... | 149 | 6,282 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Unique.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... | 55 | 2,077 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_AssignOps.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()
OPS = {
'tf.raw_ops.AssignAdd': tf.raw_ops.AssignAdd,
'tf.raw_ops.AssignSub': tf.ra... | 121 | 5,809 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Multinomial.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
import numpy as np
class TestMultinomial(CommonTFLayerTest):
def _prepare_input(self, inputs_dict, kwargs):
inputs_dict["num_sam... | 140 | 4,935 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Bitwise.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 = {
'BitwiseAnd': tf.raw_ops.BitwiseAnd,
'Bitwis... | 74 | 2,959 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_AssignVariableOps.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 TestAssignVariableOps(CommonTFLayerTest):
def _prepare_input(self, inputs_info):... | 49 | 2,354 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Pooling.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 TestPooling(CommonTFLayerTest):
def create_pooling_net(self, kernel_size, strides, pads, in_shape, out_shape, method,
... | 235 | 15,226 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Conv3DBackprop.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 Conv3DBackpropInputV2
# Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Conv3DBackpropInputV2
class TestConv3DBackprop(Co... | 88 | 4,847 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Conv2D.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 Conv2D
# Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Conv2D
class TestConv2D(CommonTFLayerTest):
# input_shape - ... | 88 | 4,149 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.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 TestStringSplitV2(CommonTFLayerTest... | 49 | 2,089 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_IdentityN.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 TestIdentityN(CommonTFLayerTest):
def create_identityn_net(self, value_shape, size_splits_values, axis_value):
tf.compat.v... | 44 | 1,959 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_NestedWhile.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 TestNestedWhile(CommonTFLayerTest):
def create_simple_while(self):
import tensorflow as tf
g = tf.Graph()
with g.as_default():
... | 82 | 3,493 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_CheckNumerics.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
OPS = {
"tf.raw_ops.CheckNumerics": tf.raw_ops.CheckNumerics,
"tf.raw_ops.CheckNumericsV2": tf.raw_ops.CheckNumer... | 52 | 1,992 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Select.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 TestSelect(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'cond:0' in inputs_info, "... | 98 | 4,637 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Resample_pattern_new.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 TestResamplePattern(CommonTFLayerTest):
def _prepare_input(self, inputs_dict):
for input in inputs_dict.keys():
inp... | 53 | 1,990 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_L2Loss.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(233453)
class TestL2Loss(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 46 | 1,818 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_LeakyRelu.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(54654675)
class TestLeakyRelu(CommonTFLayerTest):
def _prepare_input(self, inputs_info):... | 43 | 1,742 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.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 TestRaggedTensorToSparse(CommonTFLa... | 64 | 3,325 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ToBool.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 TestToBool(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'x:0' in inputs_info
... | 52 | 1,995 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ConjugateTranspose.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 ConjugateTranspose
# Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/ConjugateTr... | 117 | 4,113 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_TruncateMod.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 TestTruncateMod(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'x:0' in inputs_info
... | 50 | 1,910 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_MulNoNan.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 TestMulNoNan(CommonTFLayerTest):
def _prepare_input(self,... | 45 | 1,924 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ReduceLogicalOps.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 Logical operations (Initial Implementation)
# Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/All
# ... | 69 | 2,538 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_TensorScatterAdd.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(872173)
class TestTensorScatterAdd(CommonTFLayerTest):
def _prepare_input(self, inputs_i... | 88 | 3,813 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_FusedBatchNorm.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 TestFusedBatchNorm(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 111 | 5,603 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Swish.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(325)
class TestSwish(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 49 | 1,807 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ExtractImagePatches.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 TestExtractImagePatches(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
# generate elements ... | 44 | 2,031 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_MatrixDiag.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 TestMatrixDiag(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'diagonal:0' in inputs... | 43 | 1,590 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ShapeN.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 TestShapeN(CommonTFLayerTest):
def create_shape_n_net(self, input_shapes, out_type):
tf.compat.v1.reset_default_graph()
... | 37 | 1,336 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Reshape.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 TestReshape(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'tensor:0' in inputs_info... | 95 | 3,832 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ComplexAbs.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(346546756)
class TestComplexAbs(CommonTFLayerTest):
def _prepare_input(self, inputs_info... | 42 | 1,731 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_DivNoNan.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
rng = np.random.default_rng(23235)
class TestDivNoNan(CommonTFLay... | 50 | 1,955 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_TensorListLength.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 TestTensorListLength(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 84 | 3,618 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_TensorListConcatV2.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 sys import platform
class TestTensorListConcatV2(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 46 | 2,143 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Unpack.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 TestUnpack(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'x:0' in inputs_info, "Tes... | 54 | 2,060 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_AdjustSaturation.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(2323534)
class TestAdjustSaturation(CommonTFLayerTest):
def _prepare_inp... | 55 | 2,562 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_DynamicPartition.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 TestDynamicPartition(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'data:0' in inpu... | 65 | 3,046 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_CTCLoss.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
# Testing operation CTCLoss
# Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_... | 70 | 2,967 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ParallelDynamicStitch.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 TestParallelDynamicStitch(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
inputs_data = {}
... | 92 | 4,269 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_SpaceToDepth.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 TestSpaceToDepth(CommonTFLayerTest):
def create_space_to_depth_net(self, input_shape, block_size, data_format):
tf.compat.... | 34 | 1,377 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Erfc.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(3453466)
class TestAddTypes(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 41 | 1,480 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_CTCGreedyDecoder.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
from common.tf_layer_test_class import CommonTFLayerTest
import numpy as np
import tensorflow as tf
# Testing operation CTCGreedyDecoder
# Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/CTCGreedyDec... | 66 | 2,354 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_SparseTensorDenseMatMul.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 TestSparseTensorDenseMatMul(CommonTFLayerTest):
def _prepa... | 97 | 4,052 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Round.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(23536)
class TestRound(CommonTFLayerTest):
def _prepare_input(self, inpu... | 49 | 2,133 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Slice.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 TestSlice(CommonTFLayerTest):
def create_slice_net(self, input_shape, input_type, begin_value, size_value):
tf.compat.v1.r... | 36 | 1,451 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_FakeQuantWithMinMaxVars.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.FakeQuantWithMinMaxVarsPerChannel': tf.raw_ops.FakeQuantWithMinMaxVarsPerChannel... | 72 | 3,583 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Split.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 TestSplit(CommonTFLayerTest):
def create_split_net(self, value_shape, axis_value, num_split):
tf.compat.v1.reset_default_g... | 38 | 1,539 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_ApproximateEqual.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import tensorflow as tf
import pytest
from common.tf_layer_test_class import CommonTFLayerTest
class TestApproximateEqual(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
rng = np.random.default_r... | 46 | 1,986 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_TensorListPushBack.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 sys import platform
class TestTensorListPushBack(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 53 | 2,608 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_SplitV.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import os
import pytest
import tensorflow as tf
from common.tf_layer_test_class import CommonTFLayerTest
class TestSplitV(CommonTFLayerTest):
def create_splitv_net(self, value_shape, size_splits_values, axis_value):
tf.comp... | 43 | 1,922 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.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 TestStringToHashBucketFast(CommonTF... | 53 | 2,437 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_NormalizeL2.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 TestNormalizeL2(CommonTFLayerTest):
@staticmethod
def create_normalize_l2_net(shape, axes):
import tensorflow as tf
t... | 53 | 2,052 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_BatchToSpaceND.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 TestBatchToSpaceND(CommonTFLayerTest):
def create_batch_to_space_nd_net(self, input_shape, block_shape, crops):
tf.compat.... | 34 | 1,348 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_MatMul.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 TestMatMul(CommonTFLayerTest):
def create_net_with_matmul_op(self, x_shape, y_shape, x_bool, y_bool, op_type, ir_version):
imp... | 90 | 3,880 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_LRN.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import os
import pytest
import tensorflow as tf
from common.tf_layer_test_class import CommonTFLayerTest
class TestLRN(CommonTFLayerTest):
def create_lrn_net(self, input_shape, depth_radius, bias, alpha, beta):
tf.compat.v1... | 34 | 1,264 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_LogSoftmax.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(435435)
class TestLogSoftmax(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 45 | 1,697 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_BroadcastTo.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 BroadcastTo operation
# Documentation: https://www.tensorflow.org/api_docs/python/tf/raw_ops/BroadcastTo
class TestBroadcastTo(CommonT... | 51 | 1,771 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_While.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 TestWhile(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert '... | 197 | 8,769 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Bucketize.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_several_values
rng = np.random.default_rng(3476123)
cla... | 69 | 3,113 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_SegmentSum.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 TestSegmentSum(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'data... | 112 | 5,328 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Tile.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 TestTile(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'input:0' in inputs_info
... | 45 | 1,641 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_TruncateDiv.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 TestTruncateDiv(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'x:0... | 56 | 2,392 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Concat.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 TestConcat(CommonTFLayerTest):
def create_concat_net(self, input_shapes, axis, is_v2, ir_version):
# tf.concat is equivalent to tf.raw_ops.Concat... | 99 | 4,235 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Bincount.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
rng = np.random.default_rng()
class TestBincount(CommonTFLayerTest):
def _prepare_input(self, inputs... | 65 | 2,466 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_GRUBlockCell.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 TestGRUBlockCell(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 62 | 2,488 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.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 TestRaggedTensorToTensor(CommonTFLa... | 117 | 6,770 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_SwitchMerge.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 TestSwitchMerge(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'x:0' in inputs_info
... | 105 | 4,505 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_Placeholder.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 TestPlaceholder(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
... | 55 | 2,560 |
openvino | tests/layer_tests/tensorflow_tests/test_tf_StringLower.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import os
import pytest
import tensorflow as tf
from common.tf_layer_test_class import CommonTFLayerTest
from common.utils.common_utils import generate_ir_ovc
from common.utils.tf_utils import run_in_jenkins
rng = np.... | 91 | 4,261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.