// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "OutputLayer.hpp" #include "LayerCloneBase.hpp" #include #include #include namespace armnn { OutputLayer::OutputLayer(LayerBindingId id, const char* name) : BindableLayer(1, 0, LayerType::Output, name, id) { } std::unique_ptr OutputLayer::CreateWorkload(const IWorkloadFactory& factory) const { IgnoreUnused(factory); return nullptr; } OutputLayer* OutputLayer::Clone(Graph& graph) const { return CloneBase(graph, GetBindingId(), GetName()); } void OutputLayer::ValidateTensorShapesFromInputs(ShapeInferenceMethod shapeInferenceMethod) { IgnoreUnused(shapeInferenceMethod); // Just validates that the input is connected. ConditionalThrow(GetInputSlot(0).GetConnection() != nullptr, "OutputLayer: Input slot must be connected."); } void OutputLayer::Accept(ILayerVisitor& visitor) const { visitor.VisitOutputLayer(this, GetBindingId(), GetName()); } } // namespace armnn