Home
last modified time | relevance | path

Searched refs:nn (Results 1 – 25 of 475) sorted by relevance

12345678910>>...19

/packages/modules/NeuralNetworks/runtime/test/
DTestTelemetry.cpp25 using android::nn::telemetry::DataClass;
26 using android::nn::test_wrapper::Compilation;
27 using android::nn::test_wrapper::Execution;
28 using android::nn::test_wrapper::Model;
29 using android::nn::test_wrapper::OperandType;
30 using android::nn::test_wrapper::Result;
31 using android::nn::test_wrapper::Type;
43 android::nn::telemetry::registerTelemetryCallbacks( in TEST_F()
44 [&compilations](const android::nn::telemetry::DiagnosticCompilationInfo*) { in TEST_F()
47 [&executions](const android::nn::telemetry::DiagnosticExecutionInfo*) { in TEST_F()
[all …]
DTestServerFlag.cpp23 using android::nn::GetServerConfigurableFlagFunc;
24 using android::nn::getServerFeatureLevelFlag;
25 using android::nn::getServerTelemetryEnableFlag;
26 using android::nn::kDefaultFeatureLevelNum;
27 using android::nn::kDefaultTelemetryEnableValue;
28 using android::nn::kMaxFeatureLevelNum;
29 using android::nn::kMinFeatureLevelNum;
30 using android::nn::kVersionFeatureLevel5;
31 using android::nn::kVersionFeatureLevel6;
32 using android::nn::kVersionFeatureLevel7;
[all …]
DTestExecution.cpp47 using CompilationBuilder = nn::CompilationBuilder;
48 using Device = nn::Device;
49 using SharedDevice = nn::SharedDevice;
50 using DeviceManager = nn::DeviceManager;
52 using PreparedModelCallback = nn::PreparedModelCallback;
53 using SampleDriver = nn::sample_driver::SampleDriver;
54 using WrapperCompilation = nn::test_wrapper::Compilation;
55 using WrapperEvent = nn::test_wrapper::Event;
56 using WrapperExecution = nn::test_wrapper::Execution;
57 using WrapperModel = nn::test_wrapper::Model;
[all …]
DTestIntrospectionControl.cpp51 using CompilationBuilder = nn::CompilationBuilder;
52 using Device = nn::Device;
53 using DeviceManager = nn::DeviceManager;
54 using ExecutePreference = nn::test_wrapper::ExecutePreference;
55 using ExecutionBurstServer = nn::ExecutionBurstServer;
57 using Result = nn::test_wrapper::Result;
58 using SampleDriver = nn::sample_driver::SampleDriver;
59 using SamplePreparedModel = nn::sample_driver::SamplePreparedModel;
60 using SampleFencedExecutionCallback = nn::sample_driver::SampleFencedExecutionCallback;
61 using WrapperModel = nn::test_wrapper::Model;
[all …]
DTestMemoryInternal.cpp33 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
34 using WrapperExecution = ::android::nn::test_wrapper::Execution;
35 using WrapperMemory = ::android::nn::test_wrapper::Memory;
36 using WrapperModel = ::android::nn::test_wrapper::Model;
37 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
38 using WrapperResult = ::android::nn::test_wrapper::Result;
39 using WrapperType = ::android::nn::test_wrapper::Type;
68 mIsCpuOnly = android::nn::DeviceManager::get()->getUseCpuOnly(); in SetUp()
73 android::nn::DeviceManager::get()->setUseCpuOnly(mIsCpuOnly); in TearDown()
202 android::nn::DeviceManager::get()->setUseCpuOnly(true); in TEST_F()
DTestMemory.cpp32 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
33 using WrapperExecution = ::android::nn::test_wrapper::Execution;
34 using WrapperMemory = ::android::nn::test_wrapper::Memory;
35 using WrapperModel = ::android::nn::test_wrapper::Model;
36 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
37 using WrapperResult = ::android::nn::test_wrapper::Result;
38 using WrapperType = ::android::nn::test_wrapper::Type;
DTestPartitioningRandom.cpp102 using CompilationBuilder = nn::CompilationBuilder;
103 using DeviceManager = nn::DeviceManager;
104 using Device = nn::Device;
105 using SharedDevice = nn::SharedDevice;
106 using ExecutionPlan = nn::ExecutionPlan;
107 using ExecutionStep = nn::ExecutionStep;
108 using HalCacheToken = nn::HalCacheToken;
109 using HalVersion = nn::HalVersion;
111 using LogicalStep = nn::LogicalStep;
112 using ModelBuilder = nn::ModelBuilder;
[all …]
DTestMain.cpp38 using namespace android::nn::test_wrapper;
67 android::nn::DeviceManager::get()->setUseCpuOnly(useCpuOnly); in test()
114 testing::UnitTest::GetInstance()->listeners().Append(new android::nn::LogTestCaseToLogcat()); in main()
124 android::nn::initVLogMask(); in main()
DTestExtensions.cpp33 using DeviceManager = ::android::nn::DeviceManager;
34 using SampleDriver = ::android::nn::sample_driver::SampleDriver;
35 using TypeManager = ::android::nn::TypeManager;
61 cb(V1_3::ErrorStatus::NONE, ::android::nn::makeCapabilities(1.0)); in getCapabilities_1_3()
81 android::nn::makeSharedDevice(kTestDriverName, new TestDriver())); in SetUp()
134 auto native_info = [&](const std::string& binaryPath) -> android::nn::AppInfoFetcher::AppInfo { in TEST_F()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp52 using namespace ::android::nn::sl_wrapper;
58 constexpr std::optional<::android::nn::wrapper::ExecutePriority> convertToNDKPriority( in convertToNDKPriority()
62 return ::android::nn::wrapper::ExecutePriority::LOW; in convertToNDKPriority()
64 return ::android::nn::wrapper::ExecutePriority::MEDIUM; in convertToNDKPriority()
66 return ::android::nn::wrapper::ExecutePriority::HIGH; in convertToNDKPriority()
72 constexpr std::optional<::android::nn::wrapper::ExecutePreference> convertToNDKPreference( in convertToNDKPreference()
76 return ::android::nn::wrapper::ExecutePreference::PREFER_LOW_POWER; in convertToNDKPreference()
78 return ::android::nn::wrapper::ExecutePreference::PREFER_FAST_SINGLE_ANSWER; in convertToNDKPreference()
80 return ::android::nn::wrapper::ExecutePreference::PREFER_SUSTAINED_SPEED; in convertToNDKPreference()
196 ShimBuffer(const NnApiSupportLibrary* nnApi, const ::android::nn::Dimensions initialDimensions, in ShimBuffer()
[all …]
DShimConverter.cpp39 using namespace ::android::nn::sl_wrapper;
48 const std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>>& memoryPools, in convertSubgraphFromHAL()
50 std::vector<std::optional<::android::nn::sl_wrapper::Model>>* allModels, in convertSubgraphFromHAL()
63 ::android::nn::sl_wrapper::Model resultModel(nnapi); in convertSubgraphFromHAL()
80 ::android::nn::toUnsigned(operand.dimensions).value(); in convertSubgraphFromHAL()
82 ::android::nn::wrapper::OperandType operandType( in convertSubgraphFromHAL()
83 static_cast<::android::nn::wrapper::Type>(operand.type), dimensions, operand.scale, in convertSubgraphFromHAL()
88 operandType.channelQuant = ::android::nn::wrapper::SymmPerChannelQuantParams( in convertSubgraphFromHAL()
92 if (::android::nn::isExtension(static_cast<::android::nn::OperandType>(operand.type))) { in convertSubgraphFromHAL()
94 ::android::nn::getExtensionPrefix(static_cast<uint32_t>(operand.type)); in convertSubgraphFromHAL()
[all …]
DShimPreparedModel.cpp49 ::android::nn::sl_wrapper::Execution* execution, in parseInputs()
50 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools, in parseInputs()
57 std::shared_ptr<::android::nn::sl_wrapper::Memory> mem = in parseInputs()
96 ::android::nn::wrapper::OperandType operandType = model.getOperands()[model.getInputs()[i]]; in parseInputs()
99 operandType.updateDimensions(::android::nn::toUnsigned(input.dimensions).value()); in parseInputs()
121 ::android::nn::wrapper::OperandType operandType = in parseInputs()
126 operandType.updateDimensions(::android::nn::toUnsigned(output.dimensions).value()); in parseInputs()
173 const auto prefix = ::android::nn::getExtensionPrefix(uToken); in parseInputs()
174 const auto attributeCodeWithinExtension = ::android::nn::getTypeWithinExtension(uToken); in parseInputs()
196 std::shared_ptr<::android::nn::sl_wrapper::Execution> execution, Event e, in ShimFencedExecutionCallback()
[all …]
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DIBurst.h30 namespace android::nn {
118 const Request& request, MeasureTiming measure, const nn::OptionalTimePoint& deadline,
119 const nn::OptionalDuration& loopTimeoutDuration,
120 const std::vector<nn::TokenValuePair>& hints,
121 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0;
148 const nn::OptionalDuration& loopTimeoutDuration,
149 const std::vector<nn::TokenValuePair>& hints,
150 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0;
DIPreparedModel.h28 namespace android::nn {
95 const std::vector<nn::TokenValuePair>& hints,
96 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0;
159 const std::vector<nn::TokenValuePair>& hints,
160 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0;
191 const std::vector<nn::TokenValuePair>& hints,
192 const std::vector<nn::ExtensionNameAndPrefix>& extensionNameToPrefix) const = 0;
DResult.h28 namespace android::nn {
95 using ::android::nn::error; \
146 using ::android::nn::nnTryHasValue; \
147 using ::android::nn::nnTryGetValue; \
148 using ::android::nn::nnTryGetError; \
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimPreparedModel.h36 ::android::nn::sl_wrapper::Compilation compilation, in ShimPreparedModel()
37 std::vector<::android::nn::sl_wrapper::Model> mainAndReferencedModels, in ShimPreparedModel()
38 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimPreparedModel()
71 const ::android::nn::sl_wrapper::Compilation& getCompilation() const { return mCompilation; } in getCompilation()
72 const ::android::nn::sl_wrapper::Model& getMainModel() const { in getMainModel()
79 ::android::nn::sl_wrapper::Execution* execution,
80 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools,
99 ::android::nn::sl_wrapper::Compilation mCompilation;
100 std::vector<::android::nn::sl_wrapper::Model> mMainAndReferencedModels;
101 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> mMemoryPools;
DShimConverter.h33 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memory;
34 std::vector<::android::nn::sl_wrapper::Model> models;
55 std::unique_ptr<::android::nn::sl_wrapper::Memory> convertFromHAL(
DShimBufferTracker.h69 std::unique_ptr<Token> add(std::shared_ptr<::android::nn::sl_wrapper::Memory> buffer);
70 std::shared_ptr<::android::nn::sl_wrapper::Memory> get(uint32_t token) const;
81 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> mTokenToBuffers
/packages/modules/NeuralNetworks/runtime/
DSupportLibraryDiagnostic.cpp28 using android::nn::ExecutionMode;
29 using android::nn::telemetry::DataClass;
30 using android::nn::telemetry::DiagnosticCompilationInfo;
31 using android::nn::telemetry::DiagnosticExecutionInfo;
91 return android::nn::telemetry::getSessionId(); in SL_ANeuralNetworksDiagnosticCompilationInfo_getSessionId()
96 return android::nn::DeviceManager::get()->getRuntimeFeatureLevel(); in SL_ANeuralNetworksDiagnosticCompilationInfo_getNnApiVersion()
146 return android::nn::telemetry::getSessionId(); in SL_ANeuralNetworksDiagnosticExecutionInfo_getSessionId()
151 return android::nn::DeviceManager::get()->getRuntimeFeatureLevel(); in SL_ANeuralNetworksDiagnosticExecutionInfo_getNnApiVersion()
218 using android::nn::telemetry::registerTelemetryCallbacks; in SL_ANeuralNetworksDiagnostic_registerCallbacks()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
Dvisualize_random_graph.sh32 DUMPSPEC=$(adb shell getprop debug.nn.fuzzer.dumpspec)
33 LOGLEVEL=$(adb shell getprop debug.nn.fuzzer.log)
44 adb shell setprop debug.nn.fuzzer.dumpspec 1
45 adb shell setprop debug.nn.fuzzer.log silence
52 adb shell setprop debug.nn.fuzzer.dumpspec $DUMPSPEC
53 adb shell setprop debug.nn.fuzzer.log $LOGLEVEL
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalBurst.h32 namespace android::nn::sample {
42 const Request& request, MeasureTiming measure, const nn::OptionalTimePoint& deadline,
43 const nn::OptionalDuration& loopTimeoutDuration,
49 const nn::OptionalDuration& loopTimeoutDuration,
DCanonicalBurst.cpp31 namespace android::nn::sample { namespace
43 const Request& request, MeasureTiming measure, const nn::OptionalTimePoint& deadline, in execute()
44 const nn::OptionalDuration& loopTimeoutDuration, in execute()
52 const nn::OptionalDuration& loopTimeoutDuration, in createReusableExecution()
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DFuzzTest.cpp28 using ::android::nn::wrapper::Compilation;
29 using ::android::nn::wrapper::Execution;
30 using ::android::nn::wrapper::Model;
31 using ::android::nn::wrapper::OperandType;
32 using ::android::nn::wrapper::Result;
33 using ::android::nn::wrapper::SymmPerChannelQuantParams;
34 using ::android::nn::wrapper::Type;
DFuzzHarness.cpp32 using ::android::nn::getNonExtensionSize;
33 using ::android::nn::OperandType;
34 using ::android::nn::fuzz::convertToTestModel;
60 DEFINE_PROTO_FUZZER(const ::android::nn::fuzz::Test& model) { in DEFINE_PROTO_FUZZER()
/packages/modules/Bluetooth/system/embdrv/lc3/test/
Denergy.py52 (e , nn ) = nrg.compute(x)
54 ok = ok and np.amax(np.abs(e_c - e)) < 1e-5 and nn_c == nn
58 (e , nn ) = nrg.compute(x)
60 ok = ok and np.amax(np.abs(e_c - e)) < 1e-3 and nn_c == nn

12345678910>>...19