// // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "InputLayer.hpp" #include "LayerCloneBase.hpp" #include #include namespace armnn { InputLayer::InputLayer(LayerBindingId id, const char* name) : BindableLayer(0, 1, LayerType::Input, name, id) { } std::unique_ptr InputLayer::CreateWorkload(const IWorkloadFactory& factory) const { IgnoreUnused(factory); return nullptr; } InputLayer* InputLayer::Clone(Graph& graph) const { return CloneBase(graph, GetBindingId(), GetName()); } void InputLayer::ValidateTensorShapesFromInputs() { //The input layer should already have it's inputs set during graph building phase in the driver/parser. ConditionalThrow(GetOutputHandler(0).IsTensorInfoSet(), "InputLayer should already have the TensorInfo set."); } ARMNN_NO_DEPRECATE_WARN_BEGIN void InputLayer::Accept(ILayerVisitor& visitor) const { visitor.VisitInputLayer(this, this->GetBindingId(), GetName()); } ARMNN_NO_DEPRECATE_WARN_END } // namespace