2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
5 #include "SubtractionLayer.hpp"
7 #include "LayerCloneBase.hpp"
9 #include <armnn/TypesUtils.hpp>
10 #include <backendsCommon/WorkloadData.hpp>
11 #include <backendsCommon/WorkloadFactory.hpp>
16 SubtractionLayer::SubtractionLayer(const char* name)
17 : ArithmeticBaseLayer(2, 1, LayerType::Subtraction, name)
21 std::unique_ptr<IWorkload> SubtractionLayer::CreateWorkload(const Graph& graph,
22 const IWorkloadFactory& factory) const
24 SubtractionQueueDescriptor descriptor;
25 return factory.CreateSubtraction(descriptor, PrepInfoAndDesc(descriptor, graph));
28 SubtractionLayer* SubtractionLayer::Clone(Graph& graph) const
30 return CloneBase<SubtractionLayer>(graph, GetName());