// // Copyright © 2017 Arm Ltd. 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(ShapeInferenceMethod shapeInferenceMethod) { IgnoreUnused(shapeInferenceMethod); //The input layer should already have it's inputs set during graph building phase in the driver/parser. ConditionalThrow(GetOutputSlot(0).IsTensorInfoSet(), "InputLayer should already have the TensorInfo set."); } void InputLayer::Accept(ILayerVisitor& visitor) const { visitor.VisitInputLayer(this, this->GetBindingId(), GetName()); } } // namespace