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/onnx_tests/test_pooling.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
fro... | 494 | 23,482 |
openvino | tests/layer_tests/onnx_tests/test_upsample.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import math
import os
import pytest
import torch
from common.layer_test_class import CommonLayerTest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestUpsample(OnnxRuntimeLayerTest):
def crea... | 194 | 7,283 |
openvino | tests/layer_tests/onnx_tests/test_loop.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestLoop(OnnxRuntimeLayerTest):
@staticmethod
def create_const(name, tensor_type, value):
from onnx ... | 287 | 11,183 |
openvino | tests/layer_tests/onnx_tests/test_reshape.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
from unit_tests.utils.... | 297 | 12,083 |
openvino | tests/layer_tests/onnx_tests/test_trigonometry.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
fro... | 321 | 12,797 |
openvino | tests/layer_tests/onnx_tests/test_resize.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
fro... | 697 | 35,618 |
openvino | tests/layer_tests/onnx_tests/test_gemm.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import os
import numpy as np
import pytest
import torch
from common.layer_test_class import CommonLayerTest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestGemm(OnnxRuntimeLayerTest):
def _... | 342 | 11,969 |
openvino | tests/layer_tests/onnx_tests/test_concat.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
from unit_tests.utils.... | 291 | 10,219 |
openvino | tests/layer_tests/onnx_tests/test_or.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
fro... | 284 | 10,329 |
openvino | tests/layer_tests/onnx_tests/test_softsign.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
from unit_tests.utils.... | 188 | 6,297 |
openvino | tests/layer_tests/onnx_tests/test_instance_normalization.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestInstanceNormalization(OnnxRuntimeLayerTest):
def create_net(self, shape, epsilon, precision, ir_version):
... | 112 | 3,737 |
openvino | tests/layer_tests/onnx_tests/test_embedding_bag.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import os
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
import torch
import torch.nn as nn
from common.layer_test_class import CommonLayerTest, check_ir_version
from unit_tests.util... | 139 | 6,264 |
openvino | tests/layer_tests/onnx_tests/test_softmax.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
fro... | 175 | 7,510 |
openvino | tests/layer_tests/onnx_tests/test_cumsum.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
fro... | 280 | 9,803 |
openvino | tests/layer_tests/onnx_tests/test_reduce_lp.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import platform
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onn... | 282 | 11,026 |
openvino | tests/layer_tests/onnx_tests/test_reciprocal.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestReciprocal(OnnxRuntimeLayerTest):
def create_net(self, shape, ir_version):
"""
ONNX net ... | 174 | 5,306 |
openvino | tests/layer_tests/onnx_tests/test_scale.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestScale(OnnxRuntimeLayerTest):
def create_net(self, shape, scale, ir_version):
"""
ONNX net ... | 148 | 4,245 |
openvino | tests/layer_tests/onnx_tests/test_add_sub_mul_div.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestOperations(OnnxRuntimeLayerTest):
def create_net(self, shape1, shape2, op, precision, ir_version, opset=None... | 362 | 15,166 |
openvino | tests/layer_tests/onnx_tests/test_slice.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestSlice(OnnxRuntimeLayerTest):
def create_net(self, shape, axes, ends, starts, ir_version, opset=6, steps=None... | 419 | 17,063 |
openvino | tests/layer_tests/onnx_tests/test_fusedgemm.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
class TestFusedGemm(OnnxRuntimeLayerTest):
def _prepare_input(self, inputs_dict):
for input in inputs_dict.keys... | 150 | 5,284 |
openvino | tests/layer_tests/onnx_tests/test_sign.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
from unit_tests.utils.... | 181 | 6,024 |
openvino | tests/layer_tests/onnx_tests/test_where.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
pytest.importorskip("openvino.tools.mo", reason="Ticket - 157136")
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest, onnx_make_model
fro... | 104 | 4,291 |
openvino | tests/layer_tests/onnx_tests/conftest.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import inspect
from common.layer_test_class import get_params
def pytest_generate_tests(metafunc):
test_gen_attrs_names = list(inspect.signature(get_params).parameters)
params = get_params()
metafunc.parametrize(test_gen_a... | 13 | 358 |
openvino | tests/layer_tests/py_frontend_tests/test_torchvision_preprocessor.py | .py | # -*- coding: utf-8 -*-
# Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import copy
import platform
import numpy as np
import pytest
import torch
import torch.nn.functional as f
import torchvision.transforms as transforms
from PIL import Image
from openvino import Type, Core
from ope... | 273 | 10,313 |
openvino | tests/layer_tests/py_frontend_tests/test_torch_decoder.py | .py | # -*- coding: utf-8 -*-
# Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import torch
import pytest
from packaging import version
class AtenDiv(torch.nn.Module):
# aten::div can have str or NoneType constant
def __init__(self, rounding_mode):
super(AtenDiv, self).__in... | 781 | 29,543 |
openvino | tests/layer_tests/py_frontend_tests/test_torch_frontend.py | .py | # -*- coding: utf-8 -*-
# Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import glob
import itertools
import math
import os
import re
import sys
import logging
import platform
from pathlib import Path
import torch
import numpy as np
import pytest
from openvino.frontend import FrontEn... | 3,180 | 129,834 |
openvino | tests/layer_tests/py_frontend_tests/test_paddle_frontend.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from pathlib import Path
import os
import glob
import re
import sys
# ticket 95904
#import paddle
#from paddle.jit import to_static
#from paddle.static import InputSpec
import pytest
from openvino.frontend import FrontEndManager
from ... | 179 | 5,500 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_simplernn.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSimpleRNN(CommonTF2LayerTest):
def create_keras_simplernn_net(self, input_names, input_shapes, input_type,
... | 127 | 6,927 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_reshape.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasReshape(CommonTF2LayerTest):
def create_keras_reshape_net(self, input_names, input_shapes, input_type, target_shape,
... | 40 | 1,714 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softplus.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSoftplus(CommonTF2LayerTest):
def create_keras_softplus_net(self, input_names, input_shapes, input_type, ir_version):
... | 56 | 2,641 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool3D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasMaxPool3D(CommonTF2LayerTest):
def create_keras_maxpool3D_net(self, input_names, input_shapes, input_type, pool_size, ... | 72 | 3,869 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dot.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.tf2_layer_test_class import CommonTF2LayerTest
rng = np.random.default_rng(233534)
class TestKerasDot(CommonTF2LayerTest):
def _prepare_input(self, inputs_info):... | 58 | 2,586 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_swish.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSWish(CommonTF2LayerTest):
def create_keras_swish_net(self, input_names, input_shapes, input_type, ir_version):
... | 53 | 2,492 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasConv3D(CommonTF2LayerTest):
def create_keras_conv3d_net(self, conv_params, input_names, input_shapes, input_type,
... | 68 | 3,438 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d_transpose.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasConv1DTranspose(CommonTF2LayerTest):
def create_keras_conv1d_transpose_net(self, params, input_names, input_shapes, in... | 71 | 3,568 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_2D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasAvgPool2D(CommonTF2LayerTest):
def create_keras_avg_pool_2D_net(self, pool_size, strides, padding, data_format, input_... | 58 | 2,707 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru_cell.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasGRUCell(CommonTF2LayerTest):
def create_keras_grucell_net(self, input_names, input_shapes, input_type, units, activati... | 56 | 2,778 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout1d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSpatialDropout1D(CommonTF2LayerTest):
def create_keras_spatialdropout1d_net(self, input_names, input_shapes, input_typ... | 38 | 1,670 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm_cell.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasLSTMCell(CommonTF2LayerTest):
def create_keras_lstmcell_net(self, input_names, input_shapes, input_type, units, activa... | 60 | 2,913 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiply.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasMultiply(CommonTF2LayerTest):
def create_keras_multiply_net(self, input_names, input_shapes, input_type, ir_version):
... | 93 | 4,903 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_map_fn.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.tf2_layer_test_class import CommonTF2LayerTest
rng = np.random.default_rng()
def fn_1(x):
return (x[0] * x[1] + x[2])
def fn_2(x):
return (x[0] + x[1] + x[... | 173 | 6,700 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_add.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasAdd(CommonTF2LayerTest):
def create_keras_add_net(self, input_names, input_shapes, input_type, ir_version):
"""... | 89 | 4,784 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_flatten.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasFlatten(CommonTF2LayerTest):
def create_keras_flatten_net(self, input_names, input_shapes, input_type, data_format,
... | 41 | 1,709 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_elu.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasELU(CommonTF2LayerTest):
def create_keras_elu_net(self, input_names, input_shapes, input_type, alpha, ir_version):
... | 69 | 3,455 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_text_vectorization.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.tf2_layer_test_class import CommonTF2LayerTest
from tensorflow.keras.layers import TextVectorization
rng = np.random.default_rng()
class TestTextVec... | 68 | 3,707 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_average.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasAverage(CommonTF2LayerTest):
def create_keras_average_net(self, input_names, input_shapes, input_type, ir_version):
... | 78 | 4,052 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_subtract.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSubtract(CommonTF2LayerTest):
def create_keras_subtract_net(self, input_names, input_shapes, input_type, ir_version):
... | 57 | 2,671 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_prelu.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasPReLU(CommonTF2LayerTest):
def create_keras_prelu_net(self, input_names, input_shapes, input_type, shared_axes,
... | 65 | 3,119 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling3d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasUpSampling3D(CommonTF2LayerTest):
def create_keras_upsampling3d_net(self, input_names, input_shapes, input_type, size,... | 60 | 2,780 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_1d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasConv1D(CommonTF2LayerTest):
def create_keras_conv1d_net(self, conv_params, input_names, input_shapes, input_type,
... | 65 | 3,174 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_bidirectional.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasBidirectional(CommonTF2LayerTest):
def create_keras_bidirectional_net(self, n_units, RNN_layer, input_names, input_sha... | 52 | 2,450 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_depthwiseconv2D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasDepthwiseConv2D(CommonTF2LayerTest):
def create_keras_dconv2D_net(self, input_names, input_shapes, input_type, kernel_... | 108 | 6,043 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout2d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSpatialDropout2D(CommonTF2LayerTest):
def create_keras_spatialdropout2d_net(self, input_names, input_shapes, input_typ... | 58 | 2,757 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_relu.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasRelu(CommonTF2LayerTest):
def create_keras_relu_net(self, input_names, input_shapes, input_type, ir_version):
"... | 54 | 2,462 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding2d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasZeroPadding2D(CommonTF2LayerTest):
def create_keras_zeropadding2d_net(self, input_names, input_shapes, input_type, pad... | 58 | 2,788 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dense.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasDense(CommonTF2LayerTest):
def create_keras_dense_net(self, input_names, input_shapes, input_type, units, activation,
... | 74 | 3,759 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_2d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasCropping2D(CommonTF2LayerTest):
def create_keras_cropping_2d_net(self, cropping, input_names, input_shapes, input_type... | 41 | 1,786 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool1D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasGlobalMaxPool1D(CommonTF2LayerTest):
def create_keras_global_max_pooling1D_net(self, input_names, input_shapes, input_... | 42 | 1,733 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_upsampling1d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasUpSampling1D(CommonTF2LayerTest):
def create_keras_upsampling1d_net(self, input_names, input_shapes, input_type, size,... | 38 | 1,607 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_stackedrnncells.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.tf2_layer_test_class import CommonTF2LayerTest
rng = np.random.default_rng(23423556)
class TestKerasStackedRNNCells(CommonTF2LayerTest):
def _prepare_input(self,... | 58 | 2,459 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasConv2D(CommonTF2LayerTest):
def create_keras_conv2d_net(self, conv_params, input_names, input_shapes, input_type,
... | 65 | 3,351 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling1D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasGlobalAvgPool1D(CommonTF2LayerTest):
def create_keras_global_avg_pooling1D_net(self, input_names, input_shapes, input_... | 42 | 1,748 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_rnn.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasRNN(CommonTF2LayerTest):
def create_keras_rnn_net(self, input_names, input_shapes,
cell, ... | 100 | 4,455 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding1d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasZeroPadding1D(CommonTF2LayerTest):
def create_keras_zeropadding1d_net(self, input_names, input_shapes, input_type, pad... | 37 | 1,588 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_3d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasCropping3D(CommonTF2LayerTest):
def create_keras_cropping_3d_net(self, cropping, input_names, input_shapes, input_type... | 42 | 1,819 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activation.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasActivation(CommonTF2LayerTest):
def create_keras_activation_net(self, activation_func, input_names, input_shapes, inpu... | 79 | 3,961 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_repeatvector.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasRepeatVector(CommonTF2LayerTest):
def create_keras_repeatvector_net(self, input_names, input_shapes, input_type, n, ir... | 36 | 1,488 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_3d_transpose.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import platform
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasConv3DTranspose(CommonTF2LayerTest):
def create_keras_conv_3d_transpose_net(self, conv_params, input_n... | 69 | 3,524 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_layer_normalization.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasLayerNormalization(CommonTF2LayerTest):
def create_keras_lnorm_net(self, input_names, input_shapes, input_type, axis, ... | 60 | 2,734 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_1D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasAveragePooling1D(CommonTF2LayerTest):
def create_keras_avg_pool_1D_net(self, pool_size, strides, padding, data_format,... | 55 | 2,653 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_2d_transpose.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.tf2_layer_test_class import CommonTF2LayerTest
rng = np.random.default_rng(233534)
class TestKerasConv2DTranspose(CommonTF2LayerTest):
def _prepare_input(self, ... | 76 | 3,603 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_minimum.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasMinimum(CommonTF2LayerTest):
def create_keras_minimum_net(self, input_names, input_shapes, input_type, ir_version):
... | 92 | 4,417 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_spatialdropout3d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSpatialDropout3D(CommonTF2LayerTest):
def create_keras_spatialdropout3d_net(self, input_names, input_shapes, input_typ... | 58 | 2,775 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_separableconv1d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSeparableConv1D(CommonTF2LayerTest):
def create_keras_separableconv1d_net(self, input_names, input_shapes, input_type,... | 125 | 7,511 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_multiheadattention.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasMultiHeadAttention(CommonTF2LayerTest):
def create_keras_multiheadattention_net(self,
... | 114 | 6,217 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_zeropadding3d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasZeroPadding3D(CommonTF2LayerTest):
def create_keras_zeropadding3d_net(self, input_names, input_shapes, input_type, pad... | 58 | 2,864 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_additive_attention.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasAdditiveAttention(CommonTF2LayerTest):
def create_keras_additive_attention_net(self, dropout, use_scale, input_names,
... | 72 | 3,598 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_embedding.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasEmbedding(CommonTF2LayerTest):
def create_keras_emb_net(self, input_names, input_shapes, input_type, input_dim, output... | 71 | 3,515 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling3D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasGlobalAvgPool3D(CommonTF2LayerTest):
def create_keras_global_avg_pooling3D_net(self, input_names, input_shapes, input_... | 41 | 1,756 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_activity_regularization.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasActivityRegularization(CommonTF2LayerTest):
def create_keras_activity_regularization_net(self, l1_param, l2_param, inp... | 62 | 3,056 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_leakyrelu.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasLeakyRelu(CommonTF2LayerTest):
def create_keras_leaky_relu_net(self, input_names, input_shapes, input_type, alpha, ir_... | 39 | 1,698 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_conv_lstm_2d.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.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasConvLSTM2D(CommonTF2LayerTest):
def _prepare_input(self, inputs_info):
# Need to generate th... | 69 | 3,137 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_timedistributed.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasTimeDistributed(CommonTF2LayerTest):
def create_keras_timedistributed_net(self, input_names, input_shapes, input_type,... | 43 | 1,792 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_maxpool3D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasGlobalMaxPool3D(CommonTF2LayerTest):
def create_keras_global_maxpool3D_net(self, input_names, input_shapes, input_type... | 41 | 1,723 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_avg_pool_3D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasAvgPool3D(CommonTF2LayerTest):
def create_keras_avg_pool_3D_net(self, pool_size, strides, padding, data_format, input_... | 56 | 2,675 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_thresholdedrelu.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasThresholdedReLU(CommonTF2LayerTest):
def create_keras_thresholdedrelu_net(self, input_names, input_shapes, input_type,... | 48 | 2,179 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_concatenate.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasConcatenate(CommonTF2LayerTest):
def create_keras_concatenate_net(self, axis, input_names, input_shapes, input_type, i... | 65 | 2,981 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lstm.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import platform
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasLSTM(CommonTF2LayerTest):
def create_keras_lstm_net(self, input_names, input_shapes, input_type, units... | 109 | 5,558 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_gru.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.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasGru(CommonTF2LayerTest):
def _prepare_input(self, inputs_info):
assert 'x' in inputs_info, "... | 60 | 2,916 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_lambda.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
def x2_fun(x):
return x + x
def x2_fun_shape(input_shape):
return input_shape
def x1_plus_x2(inputs):
x1 = inputs[0]
... | 86 | 2,766 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_batch_normalization.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasBatchNormalization(CommonTF2LayerTest):
def create_keras_batch_normalization_net(self, axis, momentum, epsilon, center... | 63 | 3,337 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool1D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasMaxPool1D(CommonTF2LayerTest):
def create_keras_maxpool1D_net(self, input_names, input_shapes, input_type, pool_size, ... | 71 | 3,771 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_dropout.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasDropout(CommonTF2LayerTest):
def create_keras_dropout_net(self, input_names, input_shapes, input_type, rate, noise_sha... | 61 | 2,705 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maxpool2D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasMaxPool2D(CommonTF2LayerTest):
def create_keras_maxpool2D_net(self, input_names, input_shapes, input_type, pool_size, ... | 55 | 2,708 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_permute.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasPermute(CommonTF2LayerTest):
def create_keras_permute_net(self, input_names, input_shapes, input_type, dims, ir_versio... | 37 | 1,557 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_softmax.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasSoftmax(CommonTF2LayerTest):
def create_keras_softmax_net(self, input_names, input_shapes, input_type, ir_version):
... | 54 | 2,507 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_maximum.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasMaximum(CommonTF2LayerTest):
def create_keras_maximum_net(self, input_names, input_shapes, input_type, ir_version):
... | 92 | 4,413 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_cropping_1d.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasCropping1D(CommonTF2LayerTest):
def create_keras_cropping_1d_net(self, cropping, input_names, input_shapes, input_type... | 38 | 1,722 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_global_average_pooling2D.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasGlobalAvgPool2D(CommonTF2LayerTest):
def create_keras_global_avg_pooling2D_net(self, input_names, input_shapes, input_... | 41 | 1,750 |
openvino | tests/layer_tests/tensorflow2_keras_tests/test_tf2_keras_attention.py | .py | # Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
import tensorflow as tf
from common.tf2_layer_test_class import CommonTF2LayerTest
class TestKerasAttention(CommonTF2LayerTest):
def create_keras_attention_net(self, dropout, use_scale, input_names, input_shapes,
... | 70 | 3,400 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.