Skip to content

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

2.3 KB
Raw Blame
// Copyright (C) 2018-2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include "shared_test_classes/base/snippets_test_utils.hpp"

namespace ov {
namespace test {
namespace snippets {

typedef std::tuple<
        InputShape,                  // Input 0 Shape
        InputShape,                  // Input 1 Shape
        ov::element::Type,           // Element type
        size_t,                      // Expected num nodes
        size_t,                      // Expected num subgraphs
        std::string                  // Target Device
> AddParams;

typedef std::tuple<
        InputShape,                  // Input 0 Shape
        PartialShape,                // const shape
        ov::element::Type,           // Element type
        size_t,                      // Expected num nodes
        size_t,                      // Expected num subgraphs
        std::string                  // Target Device
> AddConstParams;

typedef std::tuple<
        std::vector<InputShape>,     // Input 0, Input 1 Shape
        ov::element::Type,           // Element type
        size_t,                      // Expected num nodes
        size_t,                      // Expected num subgraphs
        std::string                  // Target Device
> AddParamsPair;

class Add : public testing::WithParamInterface<ov::test::snippets::AddParams>,
            virtual public SnippetsTestsCommon {
public:
    static std::string getTestCaseName(const testing::TestParamInfo<ov::test::snippets::AddParams>& obj);

protected:
    void SetUp() override;
};

class AddConst : public testing::WithParamInterface<ov::test::snippets::AddConstParams>,
                 virtual public SnippetsTestsCommon {
public:
    static std::string getTestCaseName(const testing::TestParamInfo<ov::test::snippets::AddConstParams>& obj);
protected:
    void SetUp() override;
};

class AddRollConst : public AddConst {
protected:
    void SetUp() override;
};

class AddPair : public testing::WithParamInterface<ov::test::snippets::AddParamsPair>,
                virtual public SnippetsTestsCommon {
public:
    static std::string getTestCaseName(const testing::TestParamInfo<ov::test::snippets::AddParamsPair>& obj);
protected:
    void SetUp() override;
};

} // namespace snippets
} // namespace test
} // namespace ov