blob: 5c3883021d1733648f5a1e3baf63afd39bb8733b [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// See LICENSE file in the project root for full license information.
4//
5#pragma once
6
7#include <Layer.hpp>
8
9namespace armnn
10{
11
12class ConvertFp32ToFp16Layer : public Layer
13{
14public:
15 virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph& graph,
16 const IWorkloadFactory& factory) const override;
17
18 ConvertFp32ToFp16Layer* Clone(Graph& graph) const override;
19
20 void ValidateTensorShapesFromInputs() override;
21
22protected:
23 ConvertFp32ToFp16Layer(const char* name);
24 ~ConvertFp32ToFp16Layer() = default;
25};
26
27} // namespace