/external/android-nn-driver/1.1/ |
D | HalPolicy.cpp | 14 static std::vector<V1_0::OperationType> opsEquivalentInV10({ 15 V1_0::OperationType::ADD, 16 V1_0::OperationType::AVERAGE_POOL_2D, 17 V1_0::OperationType::CONCATENATION, 18 V1_0::OperationType::CONV_2D, 19 V1_0::OperationType::DEPTH_TO_SPACE, 20 V1_0::OperationType::DEPTHWISE_CONV_2D, 21 V1_0::OperationType::DEQUANTIZE, 22 V1_0::OperationType::FLOOR, 23 V1_0::OperationType::FULLY_CONNECTED, [all …]
|
D | ArmnnDriver.hpp | 37 Return<void> getCapabilities(V1_0::IDevice::getCapabilities_cb cb) override in getCapabilities() 44 Return<void> getSupportedOperations(const V1_0::Model& model, in getSupportedOperations() 45 V1_0::IDevice::getSupportedOperations_cb cb) override in getSupportedOperations() 55 Return<V1_0::ErrorStatus> prepareModel(const V1_0::Model& model, in prepareModel() 56 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel() 85 Return<V1_0::ErrorStatus> prepareModel_1_1(const V1_1::Model& model, in prepareModel_1_1() 87 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel_1_1() 96 cb->notify(V1_0::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModel_1_1() 97 return V1_0::ErrorStatus::INVALID_ARGUMENT; in prepareModel_1_1() 109 Return<V1_0::DeviceStatus> getStatus() override in getStatus()
|
D | HalPolicy.hpp | 23 using Operand = V1_0::Operand; 24 using OperandLifeTime = V1_0::OperandLifeTime; 25 using OperandType = V1_0::OperandType; 29 using ErrorStatus = V1_0::ErrorStatus;
|
/external/android-nn-driver/test/ |
D | DriverTestHelpers.hpp | 23 using RequestArgument = V1_0::RequestArgument; 24 using ::android::hidl::allocator::V1_0::IAllocator; 26 using ::android::hidl::memory::V1_0::IMemory; 34 namespace V1_0 namespace 37 std::ostream& operator<<(std::ostream& os, V1_0::ErrorStatus stat); 57 std::ostream& operator<<(std::ostream& os, V1_0::ErrorStatus stat); 63 struct ExecutionCallback : public V1_0::IExecutionCallback 66 Return<void> notify(V1_0::ErrorStatus status) override; 78 class PreparedModelCallback : public V1_0::IPreparedModelCallback 82 : m_ErrorStatus(V1_0::ErrorStatus::NONE) in PreparedModelCallback() [all …]
|
D | DriverTestHelpers.cpp | 15 namespace V1_0 namespace 18 std::ostream& operator<<(std::ostream& os, V1_0::ErrorStatus stat) in operator <<() 34 Return<void> ExecutionCallback::notify(V1_0::ErrorStatus status) in notify() 56 Return<void> PreparedModelCallback::notify(V1_0::ErrorStatus status, in notify() 57 const android::sp<V1_0::IPreparedModel>& preparedModel) in notify() 66 Return<void> PreparedModelCallback_1_2::notify(V1_0::ErrorStatus status, in notify() 67 … const android::sp<V1_0::IPreparedModel>& preparedModel) in notify() 74 Return<void> PreparedModelCallback_1_2::notify_1_2(V1_0::ErrorStatus status, in notify_1_2() 86 Return<void> PreparedModelCallback_1_3::notify(V1_0::ErrorStatus status, in notify() 87 … const android::sp<V1_0::IPreparedModel>& preparedModel) in notify() [all …]
|
D | FullyConnected.cpp | 45 android::sp<V1_0::IPreparedModel> preparedModel = PrepareModel(model, *driver); 48 V1_0::DataLocation inloc = {}; 56 V1_0::DataLocation outloc = {}; 64 V1_0::Request request = {}; 90 V1_0::ErrorStatus error; 93 …ArmnnDriver::getSupportedOperations_cb cb = [&](V1_0::ErrorStatus status, const std::vector<bool>&… 127 android::sp<V1_0::IPreparedModel> preparedModel = PrepareModel(model, *driver); 130 V1_0::DataLocation inloc = {}; 138 V1_0::DataLocation outloc = {}; 146 V1_0::Request request = {}; [all …]
|
D | Tests.cpp | 27 V1_0::DeviceStatus status = driver->getStatus(); 29 DOCTEST_CHECK((status == V1_0::DeviceStatus::AVAILABLE)); 37 V1_0::ErrorStatus error; 38 V1_0::Capabilities cap; 40 auto cb = [&](V1_0::ErrorStatus status, const V1_0::Capabilities& capabilities) 48 DOCTEST_CHECK((int)error == (int)V1_0::ErrorStatus::NONE);
|
D | GenericLayerTests.cpp | 23 V1_0::ErrorStatus errorStatus; 26 auto cb = [&](V1_0::ErrorStatus _errorStatus, const std::vector<bool>& _supported) 53 DOCTEST_CHECK((int)errorStatus == (int)V1_0::ErrorStatus::NONE); 57 V1_0::Model model1 = {}; 82 DOCTEST_CHECK((int)errorStatus == (int)V1_0::ErrorStatus::INVALID_ARGUMENT); 115 DOCTEST_CHECK((int)errorStatus == (int)V1_0::ErrorStatus::NONE); 120 V1_0::Model model3 = {}; 144 DOCTEST_CHECK((int)errorStatus == (int)V1_0::ErrorStatus::NONE); 159 DOCTEST_CHECK((int)errorStatus == (int)V1_0::ErrorStatus::INVALID_ARGUMENT); 170 V1_0::ErrorStatus errorStatus; [all …]
|
D | Concat.cpp | 17 using RequestArgument = V1_0::RequestArgument; 27 V1_0::ErrorStatus expectedPrepareStatus=V1_0::ErrorStatus::NONE, in ConcatTestImpl() 28 V1_0::ErrorStatus expectedExecStatus=V1_0::ErrorStatus::NONE) in ConcatTestImpl() 51 V1_0::ErrorStatus prepareStatus = V1_0::ErrorStatus::NONE; in ConcatTestImpl() 52 android::sp<V1_0::IPreparedModel> preparedModel = PrepareModelWithStatus(model, in ConcatTestImpl() 57 if (prepareStatus != V1_0::ErrorStatus::NONE) in ConcatTestImpl() 80 V1_0::DataLocation inloc = {}; in ConcatTestImpl() 92 V1_0::DataLocation outloc = {}; in ConcatTestImpl() 103 V1_0::Request request = {}; in ConcatTestImpl() 124 if (execStatus == V1_0::ErrorStatus::NONE) in ConcatTestImpl() [all …]
|
D | Convolution2D.hpp | 18 using RequestArgument = V1_0::RequestArgument; 32 void SetModelFp16Flag(V1_0::Model& model, bool fp16Enabled); 74 android::sp<V1_0::IPreparedModel> preparedModel = PrepareModel(model, *driver); in PaddingTestImpl() 77 V1_0::DataLocation inloc = {}; in PaddingTestImpl() 85 V1_0::DataLocation outloc = {}; in PaddingTestImpl() 93 V1_0::Request request = {}; in PaddingTestImpl()
|
/external/android-nn-driver/1.2/ |
D | ArmnnDriverImpl.cpp | 64 V1_0::ErrorStatus errorStatus, in NotifyCallbackAndCheck() 76 Return<V1_0::ErrorStatus> FailPrepareModel(V1_0::ErrorStatus error, in FailPrepareModel() 92 Return<V1_0::ErrorStatus> ArmnnDriverImpl::prepareArmnnModel_1_2( in prepareArmnnModel_1_2() 110 return V1_0::ErrorStatus::INVALID_ARGUMENT; in prepareArmnnModel_1_2() 115 return FailPrepareModel(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, "Device unavailable", cb); in prepareArmnnModel_1_2() 120 … return FailPrepareModel(V1_0::ErrorStatus::INVALID_ARGUMENT, "Invalid model passed as input", cb); in prepareArmnnModel_1_2() 133 FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, "ModelToINetworkConverter failed", cb); in prepareArmnnModel_1_2() 134 return V1_0::ErrorStatus::NONE; in prepareArmnnModel_1_2() 211 FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, message.str(), cb); in prepareArmnnModel_1_2() 212 return V1_0::ErrorStatus::NONE; in prepareArmnnModel_1_2() [all …]
|
D | ArmnnDriver.hpp | 45 Return<void> getCapabilities(V1_0::IDevice::getCapabilities_cb cb) override in getCapabilities() 52 Return<void> getSupportedOperations(const V1_0::Model& model, in getSupportedOperations() 53 V1_0::IDevice::getSupportedOperations_cb cb) override in getSupportedOperations() 63 Return<V1_0::ErrorStatus> prepareModel(const V1_0::Model& model, in prepareModel() 64 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel() 92 Return<V1_0::ErrorStatus> prepareModel_1_1(const V1_1::Model& model, in prepareModel_1_1() 94 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel_1_1() 103 cb->notify(V1_0::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModel_1_1() 104 return V1_0::ErrorStatus::INVALID_ARGUMENT; in prepareModel_1_1() 116 Return<V1_0::DeviceStatus> getStatus() override in getStatus() [all …]
|
/external/android-nn-driver/ |
D | ArmnnPreparedModel_1_2.cpp | 46 void NotifyCallbackAndCheck(const ::android::sp<V1_0::IExecutionCallback>& callback, in NotifyCallbackAndCheck() 47 V1_0::ErrorStatus errorStatus, in NotifyCallbackAndCheck() 62 V1_0::ErrorStatus errorStatus, in NotifyCallbackAndCheck() 76 bool ValidateRequestArgument(const V1_0::RequestArgument& requestArg, const armnn::TensorInfo& tens… in ValidateRequestArgument() 101 armnn::Tensor GetTensorForRequestArgument(const V1_0::RequestArgument& requestArg, in GetTensorForRequestArgument() 262 Return <V1_0::ErrorStatus> ArmnnPreparedModel_1_2<HalVersion>::execute(const V1_0::Request& request, in execute() 263 const ::android::sp<V1_0::IExecutionCallback>& callback) in execute() 268 return V1_0::ErrorStatus::INVALID_ARGUMENT; in execute() 271 auto cb = [callback](V1_0::ErrorStatus errorStatus, in execute() 283 Return <V1_0::ErrorStatus> ArmnnPreparedModel_1_2<HalVersion>::execute_1_2( in execute_1_2() [all …]
|
D | ArmnnDriverImpl.cpp | 36 void NotifyCallbackAndCheck(const sp<V1_0::IPreparedModelCallback>& callback, in NotifyCallbackAndCheck() 37 V1_0::ErrorStatus errorStatus, in NotifyCallbackAndCheck() 38 const sp<V1_0::IPreparedModel>& preparedModelPtr) in NotifyCallbackAndCheck() 49 Return<V1_0::ErrorStatus> FailPrepareModel(V1_0::ErrorStatus error, in FailPrepareModel() 51 const sp<V1_0::IPreparedModelCallback>& callback) in FailPrepareModel() 64 Return<V1_0::ErrorStatus> ArmnnDriverImpl<HalPolicy>::prepareModel( in prepareModel() 69 const sp<V1_0::IPreparedModelCallback>& cb, in prepareModel() 79 return V1_0::ErrorStatus::INVALID_ARGUMENT; in prepareModel() 84 return FailPrepareModel(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, "Device unavailable", cb); in prepareModel() 89 … return FailPrepareModel(V1_0::ErrorStatus::INVALID_ARGUMENT, "Invalid model passed as input", cb); in prepareModel() [all …]
|
D | ArmnnPreparedModel.cpp | 30 void NotifyCallbackAndCheck(const ::android::sp<V1_0::IExecutionCallback>& callback, V1_0::ErrorSta… in NotifyCallbackAndCheck() 42 bool ValidateRequestArgument(const V1_0::RequestArgument& requestArg, const armnn::TensorInfo& tens… in ValidateRequestArgument() 67 armnn::Tensor GetTensorForRequestArgument(const V1_0::RequestArgument& requestArg, in GetTensorForRequestArgument() 182 Return<V1_0::ErrorStatus> ArmnnPreparedModel<HalVersion>::execute( in execute() 183 const V1_0::Request& request, in execute() 184 const ::android::sp<V1_0::IExecutionCallback>& callback) in execute() 191 return V1_0::ErrorStatus::INVALID_ARGUMENT; in execute() 196 …NotifyCallbackAndCheck(callback, V1_0::ErrorStatus::INVALID_ARGUMENT, "ArmnnPreparedModel::execute… in execute() 197 return V1_0::ErrorStatus::INVALID_ARGUMENT; in execute() 218 …NotifyCallbackAndCheck(callback, V1_0::ErrorStatus::GENERAL_FAILURE, "ArmnnPreparedModel::execute"… in execute() [all …]
|
D | ArmnnPreparedModel_1_2.hpp | 24 void(V1_0::ErrorStatus errorStatus, 66 virtual Return<V1_0::ErrorStatus> execute(const V1_0::Request& request, 67 … const ::android::sp<V1_0::IExecutionCallback>& callback) override; 69 …virtual Return<V1_0::ErrorStatus> execute_1_2(const V1_0::Request& request, V1_2::MeasureTiming me… 72 virtual Return<void> executeSynchronously(const V1_0::Request &request, 123 Return<V1_0::ErrorStatus> Execute(const V1_0::Request& request, 127 Return<V1_0::ErrorStatus> PrepareMemoryForInputs( 129 const V1_0::Request& request, 132 Return<V1_0::ErrorStatus> PrepareMemoryForOutputs( 135 const V1_0::Request& request, [all …]
|
D | ArmnnDriverImpl.hpp | 20 namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; 56 static Return<V1_0::ErrorStatus> prepareModel( 61 const android::sp<V1_0::IPreparedModelCallback>& cb, 64 static Return<V1_0::DeviceStatus> getStatus();
|
D | Utils.hpp | 21 namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; 39 inline const V1_0::Model& getMainModel(const V1_0::Model& model) { return model; } in getMainModel() 69 void* GetMemoryFromPool(V1_0::DataLocation location, 73 armnn::TensorInfo GetTensorInfoForOperand(const V1_0::Operand& operand); 75 std::string GetOperandSummary(const V1_0::Operand& operand); 78 bool isQuantizedOperand(const V1_0::OperandType& operandType); 202 const V1_0::RequestArgument& requestArgument,
|
D | Utils.cpp | 28 using namespace android::hidl::memory::V1_0; 76 void* GetMemoryFromPool(V1_0::DataLocation location, const std::vector<android::nn::RunTimePoolInfo… in GetMemoryFromPool() 93 armnn::TensorInfo GetTensorInfoForOperand(const V1_0::Operand& operand) in GetTensorInfoForOperand() 100 case V1_0::OperandType::TENSOR_FLOAT32: in GetTensorInfoForOperand() 103 case V1_0::OperandType::TENSOR_QUANT8_ASYMM: in GetTensorInfoForOperand() 106 case V1_0::OperandType::TENSOR_INT32: in GetTensorInfoForOperand() 110 throw UnsupportedOperand<V1_0::OperandType>(operand.type); in GetTensorInfoForOperand() 294 std::string GetOperandSummary(const V1_0::Operand& operand) in GetOperandSummary() 632 bool isQuantizedOperand(const V1_0::OperandType& operandType) in isQuantizedOperand() 634 if (operandType == V1_0::OperandType::TENSOR_QUANT8_ASYMM) in isQuantizedOperand() [all …]
|
/external/rust/crates/vulkano/out/ |
D | autogen.rs | 13 requires_core: crate::Version::V1_0, 27 requires_core: crate::Version::V1_0, 52 requires_core: crate::Version::V1_0, 66 requires_core: crate::Version::V1_0, 77 requires_core: crate::Version::V1_0, 90 requires_core: crate::Version::V1_0, 103 requires_core: crate::Version::V1_0, 114 requires_core: crate::Version::V1_0, 127 requires_core: crate::Version::V1_0, 139 requires_core: crate::Version::V1_0, [all …]
|
/external/android-nn-driver/1.3/ |
D | ArmnnDriver.hpp | 46 Return<void> getCapabilities(V1_0::IDevice::getCapabilities_cb cb) override in getCapabilities() 53 Return<void> getSupportedOperations(const V1_0::Model& model, in getSupportedOperations() 54 V1_0::IDevice::getSupportedOperations_cb cb) override in getSupportedOperations() 64 Return<V1_0::ErrorStatus> prepareModel(const V1_0::Model& model, in prepareModel() 65 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel() 93 Return<V1_0::ErrorStatus> prepareModel_1_1(const V1_1::Model& model, in prepareModel_1_1() 95 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel_1_1() 104 cb->notify(V1_0::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModel_1_1() 105 return V1_0::ErrorStatus::INVALID_ARGUMENT; in prepareModel_1_1() 135 Return<V1_0::ErrorStatus> prepareModel_1_2( in prepareModel_1_2() [all …]
|
/external/android-nn-driver/1.0/ |
D | ArmnnDriver.hpp | 23 class ArmnnDriver : public ArmnnDevice, public V1_0::IDevice 34 Return<void> getCapabilities(V1_0::IDevice::getCapabilities_cb cb) override in getCapabilities() 41 Return<void> getSupportedOperations(const V1_0::Model& model, in getSupportedOperations() 42 V1_0::IDevice::getSupportedOperations_cb cb) override in getSupportedOperations() 49 Return<V1_0::ErrorStatus> prepareModel(const V1_0::Model& model, in prepareModel() 50 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel() 61 Return<V1_0::DeviceStatus> getStatus() override in getStatus()
|
D | HalPolicy.hpp | 12 namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; 22 using Model = V1_0::Model; 23 using Operand = V1_0::Operand; 24 using OperandLifeTime = V1_0::OperandLifeTime; 25 using OperandType = V1_0::OperandType; 26 using Operation = V1_0::Operation; 27 using OperationType = V1_0::OperationType; 28 using getSupportedOperations_cb = V1_0::IDevice::getSupportedOperations_cb; 29 using ErrorStatus = V1_0::ErrorStatus;
|
D | HalPolicy.cpp | 22 case V1_0::OperationType::ADD: in ConvertOperation() 24 case V1_0::OperationType::AVERAGE_POOL_2D: in ConvertOperation() 26 case V1_0::OperationType::CONCATENATION: in ConvertOperation() 28 case V1_0::OperationType::CONV_2D: in ConvertOperation() 30 case V1_0::OperationType::DEPTH_TO_SPACE: in ConvertOperation() 32 case V1_0::OperationType::DEPTHWISE_CONV_2D: in ConvertOperation() 34 case V1_0::OperationType::DEQUANTIZE: in ConvertOperation() 36 case V1_0::OperationType::FLOOR: in ConvertOperation() 38 case V1_0::OperationType::FULLY_CONNECTED: in ConvertOperation() 40 case V1_0::OperationType::LOCAL_RESPONSE_NORMALIZATION: in ConvertOperation() [all …]
|
D | ArmnnDriverImpl.cpp | 27 V1_0::IDevice::getCapabilities_cb cb) in getCapabilities() 31 V1_0::Capabilities capabilities; in getCapabilities() 46 cb(V1_0::ErrorStatus::NONE, capabilities); in getCapabilities() 55 cb(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, capabilities); in getCapabilities()
|