2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
5 #include "OutputLayer.hpp"
7 #include "LayerCloneBase.hpp"
9 #include <backends/WorkloadData.hpp>
10 #include <backends/WorkloadFactory.hpp>
15 OutputLayer::OutputLayer(LayerBindingId id, const char* name)
16 : BindableLayer(1, 0, LayerType::Output, name, id)
20 std::unique_ptr<IWorkload> OutputLayer::CreateWorkload(const Graph& graph, const IWorkloadFactory& factory) const
25 OutputLayer* OutputLayer::Clone(Graph& graph) const
27 return CloneBase<OutputLayer>(graph, GetBindingId(), GetName());
30 void OutputLayer::ValidateTensorShapesFromInputs()
32 // Just validates that the input is connected.
33 ConditionalThrow<LayerValidationException>(GetInputSlot(0).GetConnection() != nullptr,
34 "OutputLayer: Input slot must be connected.");