// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include #include "../ArmnnDevice.hpp" #include "ArmnnDriverImpl.hpp" #include "HalPolicy.hpp" #include "../ArmnnDriverImpl.hpp" #include namespace armnn_driver { namespace hal_1_0 { class ArmnnDriver : public ArmnnDevice, public V1_0::IDevice { public: ArmnnDriver(DriverOptions options) : ArmnnDevice(std::move(options)) { ALOGV("hal_1_0::ArmnnDriver::ArmnnDriver()"); } ~ArmnnDriver() {} public: Return getCapabilities(V1_0::IDevice::getCapabilities_cb cb) override { ALOGV("hal_1_0::ArmnnDriver::getCapabilities()"); return hal_1_0::ArmnnDriverImpl::getCapabilities(m_Runtime, cb); } Return getSupportedOperations(const V1_0::Model& model, V1_0::IDevice::getSupportedOperations_cb cb) override { ALOGV("hal_1_0::ArmnnDriver::getSupportedOperations()"); return armnn_driver::ArmnnDriverImpl::getSupportedOperations(m_Runtime, m_Options, model, cb); } Return prepareModel(const V1_0::Model& model, const android::sp& cb) override { ALOGV("hal_1_0::ArmnnDriver::prepareModel()"); return armnn_driver::ArmnnDriverImpl::prepareModel(m_Runtime, m_ClTunedParameters, m_Options, model, cb); } Return getStatus() override { ALOGV("hal_1_0::ArmnnDriver::getStatus()"); return armnn_driver::ArmnnDriverImpl::getStatus(); } }; } // namespace hal_1_0 } // namespace armnn_driver