aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/ArithmeticBaseLayer.hpp
blob: a8605a9b763431ddc16e25f0c28f95a19a3286a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include <Layer.hpp>

namespace armnn
{

/// NOTE: this is an abstract class, it does not implement:
///  std::unique_ptr<IWorkload> Layer::CreateWorkload(const Graph& graph, const IWorkloadFactory& factory) const = 0;
///  Layer* Clone(Graph& graph) const = 0;
class ArithmeticBaseLayer : public Layer
{
public:
    void ValidateTensorShapesFromInputs() override;
    std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;

protected:
    ArithmeticBaseLayer(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const char* name);
    ~ArithmeticBaseLayer() = default;
};

} // namespace