// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include <tuple>
#include <vector>
#include <string>
#include <memory>

#include "shared_test_classes/base/layer_test_utils.hpp"
#include "ngraph_functions/builders.hpp"
#include "ngraph_functions/utils/ngraph_helpers.hpp"

namespace SubgraphTestsDefinitions {

// ! [test_convolution:definition]
typedef struct {
    InferenceEngine::SizeVector kernelSize;
    InferenceEngine::SizeVector strides;
    std::vector<ptrdiff_t> padBegin;
    std::vector<ptrdiff_t> padEnd;
    size_t numOutChannels;
} convReluSpecificParams;

typedef struct {
    InferenceEngine::SizeVector inputShape;
    std::vector<convReluSpecificParams> sequenceDesc;
} convReluSpecificParamsAll;

typedef std::tuple<
    convReluSpecificParamsAll,      // CNN2D sequence desc
    InferenceEngine::Precision,     // Net precision
    InferenceEngine::Precision,     // Input precision
    InferenceEngine::Precision,     // Output precision
    LayerTestsUtils::TargetDevice   // Device name
> convReluSequenceTestParamsSet;

class ConvolutionReluSequenceTest : public testing::WithParamInterface<convReluSequenceTestParamsSet>,
                             virtual public LayerTestsUtils::LayerTestsCommon {
public:
    static std::string getTestCaseName(testing::TestParamInfo<convReluSequenceTestParamsSet> obj);

protected:
    void SetUp() override;
};
// ! [test_convolution_relu_sequence:definition]

}  // namespace SubgraphTestsDefinitions
