// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "DriverOptions.hpp" #include namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; namespace V1_1 = ::android::hardware::neuralnetworks::V1_1; #ifdef ARMNN_ANDROID_NN_V1_2 // Using ::android::hardware::neuralnetworks::V1_2 namespace V1_2 = ::android::hardware::neuralnetworks::V1_2; #endif namespace armnn_driver { template class ArmnnDriverImpl { public: using HalModel = typename HalPolicy::Model; using HalGetSupportedOperations_cb = typename HalPolicy::getSupportedOperations_cb; static Return getSupportedOperations( const armnn::IRuntimePtr& runtime, const DriverOptions& options, const HalModel& model, HalGetSupportedOperations_cb); static Return prepareModel( const armnn::IRuntimePtr& runtime, const armnn::IGpuAccTunedParametersPtr& clTunedParameters, const DriverOptions& options, const HalModel& model, const android::sp& cb, bool float32ToFloat16 = false); static Return getStatus(); }; } // namespace armnn_driver