// // Copyright © 2017 Arm Ltd and Contributors. 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() { // Just validates that the input is connected. ConditionalThrow(GetInputSlot(0).GetConnection() != nullptr, "OutputLayer: Input slot must be connected."); } void OutputLayer::ExecuteStrategy(IStrategy& strategy) const { strategy.ExecuteStrategy(this, GetParameters(), {}, GetName(), GetBindingId()); } } // namespace armnn