/aosp12/packages/modules/NeuralNetworks/runtime/test/ |
H A D | GeneratedTestUtils.h | 38 namespace test_wrapper = android::nn::sl_wrapper; variable 55 class GeneratedModel : public test_wrapper::Model { 71 void setRefModels(std::vector<test_wrapper::Model> refModels) { in setRefModels() 76 void setConstantReferenceMemory(std::unique_ptr<test_wrapper::Memory> memory) { in setConstantReferenceMemory() 81 std::vector<test_wrapper::Model> mRefModels; 82 std::unique_ptr<test_wrapper::Memory> mConstantReferenceMemory; 101 void createRequest(const test_helper::TestModel& testModel, test_wrapper::Execution* execution,
|
H A D | TestControlFlow.cpp | 28 using test_wrapper::Compilation; 29 using test_wrapper::Execution; 30 using test_wrapper::Model; 31 using test_wrapper::OperandType; 32 using test_wrapper::Result; 33 using test_wrapper::Type;
|
H A D | TestMemoryDomain.cpp | 39 using WrapperResult = test_wrapper::Result; 40 using Type = test_wrapper::Type; 153 void createTestModel(test_wrapper::Model* model) { in createTestModel() 154 test_wrapper::OperandType tensorTypeFullySpecified(Type::TENSOR_FLOAT32, {1}); in createTestModel() 155 test_wrapper::OperandType tensorTypeDynamicShape(Type::TENSOR_FLOAT32, {0}); in createTestModel() 156 test_wrapper::OperandType actType(Type::INT32, {}); in createTestModel() 193 test_wrapper::Compilation compilation; in createCompilation() 214 compilation = test_wrapper::Compilation(&mModel); in createCompilation() 220 std::pair<int, test_wrapper::Memory> allocateDeviceMemory( in allocateDeviceMemory() 239 return {n, test_wrapper::Memory(memory)}; in allocateDeviceMemory() [all …]
|
H A D | TestMemory.cpp | 27 using WrapperCompilation = ::android::nn::test_wrapper::Compilation; 28 using WrapperExecution = ::android::nn::test_wrapper::Execution; 29 using WrapperMemory = ::android::nn::test_wrapper::Memory; 30 using WrapperModel = ::android::nn::test_wrapper::Model; 31 using WrapperOperandType = ::android::nn::test_wrapper::OperandType; 32 using WrapperResult = ::android::nn::test_wrapper::Result; 33 using WrapperType = ::android::nn::test_wrapper::Type;
|
H A D | TestUtils.h | 36 test_wrapper::Memory memory) in TestAshmem() 58 test_wrapper::Memory memory(length, PROT_READ | PROT_WRITE, fd, 0); in createFrom() 67 test_wrapper::Memory* get() { return &mMemory; } in get() 77 test_wrapper::Memory mMemory;
|
H A D | TestMemoryInternal.cpp | 32 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;
|
H A D | TestFailingDriver.cpp | 34 using Result = test_wrapper::Result; 35 using WrapperOperandType = test_wrapper::OperandType; 36 using WrapperCompilation = test_wrapper::Compilation; 37 using WrapperExecution = test_wrapper::Execution; 38 using WrapperType = test_wrapper::Type; 39 using WrapperModel = test_wrapper::Model;
|
H A D | TestGpuNnapi.cpp | 41 using Type = test_wrapper::Type; 42 using OperandType = test_wrapper::OperandType; 43 using Result = test_wrapper::Result; 894 std::vector<const test_wrapper::Event*> dependencies; in runInternal() 895 test_wrapper::Event start; in runInternal() 899 start = test_wrapper::Event(inSyncFd.get()); in runInternal() 905 test_wrapper::Event finished; in runInternal() 918 test_wrapper::Model mModel; 919 test_wrapper::Compilation mCompilation; 920 std::unique_ptr<test_wrapper::Execution> mExecution; [all …]
|
H A D | TestRemoveDefaultArguments.cpp | 103 using Result = test_wrapper::Result; 104 using WrapperOperandType = test_wrapper::OperandType; 105 using WrapperCompilation = test_wrapper::Compilation; 106 using WrapperType = test_wrapper::Type; 107 using WrapperModel = test_wrapper::Model;
|
H A D | TestCompilationCaching.cpp | 36 using WrapperResult = test_wrapper::Result; 37 using Type = test_wrapper::Type; 279 void CreateBroadcastAddModel(test_wrapper::Model* model) { in CreateBroadcastAddModel() 280 test_wrapper::OperandType matrixType(Type::TENSOR_FLOAT32, {2, 2}); in CreateBroadcastAddModel() 281 test_wrapper::OperandType vectorType(Type::TENSOR_FLOAT32, {2}); in CreateBroadcastAddModel() 282 test_wrapper::OperandType scalarType(Type::INT32, {}); in CreateBroadcastAddModel() 414 test_wrapper::Model mModel;
|
H A D | TestCompliance.cpp | 32 using WrapperModel = test_wrapper::Model; 33 using WrapperOperandType = test_wrapper::OperandType; 34 using WrapperType = test_wrapper::Type; 154 test_wrapper::Memory memory(buffer); in TEST_F()
|
H A D | TestNeuralNetworksWrapper.cpp | 21 namespace test_wrapper { namespace
|
H A D | TestExecution.cpp | 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; 58 using WrapperOperandType = nn::test_wrapper::OperandType; 59 using WrapperResult = nn::test_wrapper::Result; 60 using WrapperType = nn::test_wrapper::Type;
|
H A D | TestPartitioningRandom.cpp | 116 using Result = nn::test_wrapper::Result; 118 using WrapperCompilation = nn::test_wrapper::Compilation; 119 using WrapperExecution = nn::test_wrapper::Execution; 120 using WrapperMemory = nn::test_wrapper::Memory; 121 using WrapperModel = nn::test_wrapper::Model; 122 using WrapperOperandType = nn::test_wrapper::OperandType; 123 using WrapperType = nn::test_wrapper::Type;
|
H A D | TestMain.cpp | 38 using namespace android::nn::test_wrapper;
|
H A D | TestIntrospectionControl.cpp | 53 using ExecutePreference = nn::test_wrapper::ExecutePreference; 56 using Result = nn::test_wrapper::Result; 60 using WrapperModel = nn::test_wrapper::Model; 61 using WrapperOperandType = nn::test_wrapper::OperandType; 62 using WrapperType = nn::test_wrapper::Type;
|
H A D | GeneratedTestUtils.cpp | 38 using namespace test_wrapper;
|
H A D | TestPartitioning.cpp | 159 using ExecutePreference = ::android::nn::test_wrapper::ExecutePreference; 160 using ExecutePriority = ::android::nn::test_wrapper::ExecutePriority; 172 using Result = ::android::nn::test_wrapper::Result; 177 using WrapperCompilation = ::android::nn::test_wrapper::Compilation; 178 using WrapperExecution = ::android::nn::test_wrapper::Execution; 179 using WrapperModel = ::android::nn::test_wrapper::Model; 180 using WrapperOperandType = ::android::nn::test_wrapper::OperandType; 181 using WrapperSymmPerChannelQuantParams = ::android::nn::test_wrapper::SymmPerChannelQuantParams; 182 using WrapperType = ::android::nn::test_wrapper::Type;
|
H A D | TestUnknownDimensions.cpp | 26 using namespace android::nn::test_wrapper;
|
H A D | TestTrivialModel.cpp | 22 using namespace android::nn::test_wrapper;
|
H A D | TestGenerated.cpp | 58 using namespace test_wrapper;
|
H A D | TestNeuralNetworksWrapper.h | 42 namespace test_wrapper {
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
H A D | TestRandomGraph.cpp | 53 using test_wrapper::Result; 255 auto [result, compilation] = test_wrapper::Compilation::createForDevice(&model, refDevice); in computeGoldenResults() 260 test_wrapper::Execution execution(&compilation); in computeGoldenResults() 279 void computeAndVerifyResultsForDevice(const test_wrapper::Model* model, uint32_t numOps, in computeAndVerifyResultsForDevice() 307 auto [result, compilation] = test_wrapper::Compilation::createForDevice(model, device); in computeAndVerifyResultsForDevice() 320 test_wrapper::Execution execution(&compilation); in computeAndVerifyResultsForDevice() 343 void computeAndVerifyResults(const std::string& name, const test_wrapper::Model* model, in computeAndVerifyResults() 352 test_wrapper::Compilation compilation(model); in computeAndVerifyResults() 356 test_wrapper::Execution execution(&compilation); in computeAndVerifyResults()
|
H A D | RandomGraphGenerator.cpp | 40 using test_wrapper::Result;
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/ |
H A D | FibonacciExtensionTest.cpp | 37 using ::android::nn::test_wrapper::ExtensionModel; 38 using ::android::nn::test_wrapper::ExtensionOperandParams; 39 using ::android::nn::test_wrapper::ExtensionOperandType; 40 using ::android::nn::test_wrapper::Type;
|