Home
last modified time | relevance | path

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

/frameworks/ml/nn/runtime/test/
DGeneratedTestUtils.h46 class GeneratedModel : public test_wrapper::Model {
58 void setRefModels(std::vector<test_wrapper::Model> refModels) { in setRefModels()
63 void setConstantReferenceMemory(std::unique_ptr<test_wrapper::Memory> memory) { in setConstantReferenceMemory()
68 std::vector<test_wrapper::Model> mRefModels;
69 std::unique_ptr<test_wrapper::Memory> mConstantReferenceMemory;
79 void createRequest(const test_helper::TestModel& testModel, test_wrapper::Execution* execution,
DTestMemoryDomain.cpp38 using Result = test_wrapper::Result;
39 using Type = test_wrapper::Type;
146 test_wrapper::Model createTestModel() { in createTestModel()
147 test_wrapper::Model model; in createTestModel()
148 test_wrapper::OperandType tensorTypeFullySpecified(Type::TENSOR_FLOAT32, {1}); in createTestModel()
149 test_wrapper::OperandType tensorTypeDynamicShape(Type::TENSOR_FLOAT32, {0}); in createTestModel()
150 test_wrapper::OperandType actType(Type::INT32, {}); in createTestModel()
186 test_wrapper::Compilation createCompilation(const std::vector<std::string>& deviceNames) { in createCompilation()
187 test_wrapper::Compilation compilation; in createCompilation()
205 test_wrapper::Compilation::createForDevices(&kModel, devices); in createCompilation()
[all …]
DTestMemory.cpp26 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
27 using WrapperExecution = ::android::nn::test_wrapper::Execution;
28 using WrapperMemory = ::android::nn::test_wrapper::Memory;
29 using WrapperModel = ::android::nn::test_wrapper::Model;
30 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
31 using WrapperResult = ::android::nn::test_wrapper::Result;
32 using WrapperType = ::android::nn::test_wrapper::Type;
DTestUtils.h36 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;
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;
DTestFailingDriver.cpp33 using Result = test_wrapper::Result;
34 using WrapperOperandType = test_wrapper::OperandType;
35 using WrapperCompilation = test_wrapper::Compilation;
36 using WrapperExecution = test_wrapper::Execution;
37 using WrapperType = test_wrapper::Type;
38 using WrapperModel = test_wrapper::Model;
DTestRemoveDefaultArguments.cpp103 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;
DTestCompilationCaching.cpp35 using Result = test_wrapper::Result;
36 using Type = test_wrapper::Type;
269 void CreateBroadcastAddModel(test_wrapper::Model* model) { in CreateBroadcastAddModel()
270 test_wrapper::OperandType matrixType(Type::TENSOR_FLOAT32, {2, 2}); in CreateBroadcastAddModel()
271 test_wrapper::OperandType vectorType(Type::TENSOR_FLOAT32, {2}); in CreateBroadcastAddModel()
272 test_wrapper::OperandType scalarType(Type::INT32, {}); in CreateBroadcastAddModel()
403 test_wrapper::Model mModel;
DTestCompliance.cpp32 using WrapperModel = test_wrapper::Model;
33 using WrapperOperandType = test_wrapper::OperandType;
34 using WrapperType = test_wrapper::Type;
148 test_wrapper::Memory memory(buffer); in TEST_F()
DTestNeuralNetworksWrapper.cpp21 namespace test_wrapper { namespace
DTestExecution.cpp49 using Result = nn::test_wrapper::Result;
51 using WrapperCompilation = nn::test_wrapper::Compilation;
52 using WrapperEvent = nn::test_wrapper::Event;
53 using WrapperExecution = nn::test_wrapper::Execution;
54 using WrapperModel = nn::test_wrapper::Model;
55 using WrapperOperandType = nn::test_wrapper::OperandType;
56 using WrapperType = nn::test_wrapper::Type;
DTestMain.cpp37 using namespace android::nn::test_wrapper;
DTestPartitioningRandom.cpp100 using Result = nn::test_wrapper::Result;
102 using WrapperCompilation = nn::test_wrapper::Compilation;
103 using WrapperExecution = nn::test_wrapper::Execution;
104 using WrapperMemory = nn::test_wrapper::Memory;
105 using WrapperModel = nn::test_wrapper::Model;
106 using WrapperOperandType = nn::test_wrapper::OperandType;
107 using WrapperType = nn::test_wrapper::Type;
DTestControlFlow.cpp29 using namespace test_wrapper;
DTestIntrospectionControl.cpp49 using ExecutePreference = nn::test_wrapper::ExecutePreference;
53 using Result = nn::test_wrapper::Result;
57 using WrapperModel = nn::test_wrapper::Model;
58 using WrapperOperandType = nn::test_wrapper::OperandType;
59 using WrapperType = nn::test_wrapper::Type;
DGeneratedTestUtils.cpp32 using namespace test_wrapper;
DTestPartitioning.cpp152 using ExecutePreference = ::android::nn::test_wrapper::ExecutePreference;
153 using ExecutePriority = ::android::nn::test_wrapper::ExecutePriority;
160 using Result = ::android::nn::test_wrapper::Result;
162 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
163 using WrapperModel = ::android::nn::test_wrapper::Model;
164 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
165 using WrapperSymmPerChannelQuantParams = ::android::nn::test_wrapper::SymmPerChannelQuantParams;
166 using WrapperType = ::android::nn::test_wrapper::Type;
DTestUnknownDimensions.cpp26 using namespace android::nn::test_wrapper;
DTestTrivialModel.cpp22 using namespace android::nn::test_wrapper;
DTestGenerated.cpp57 using namespace test_wrapper;
DTestNeuralNetworksWrapper.h38 namespace test_wrapper {
DTestUnspecifiedDimensions.cpp27 using namespace android::nn::test_wrapper;
/frameworks/ml/nn/runtime/test/fuzzing/
DTestRandomGraph.cpp53 using test_wrapper::Result;
257 auto [result, compilation] = test_wrapper::Compilation::createForDevice(&model, refDevice); in computeGoldenResults()
262 test_wrapper::Execution execution(&compilation); in computeGoldenResults()
281 void computeAndVerifyResultsForDevice(const test_wrapper::Model* model, uint32_t numOps, in computeAndVerifyResultsForDevice()
309 auto [result, compilation] = test_wrapper::Compilation::createForDevice(model, device); in computeAndVerifyResultsForDevice()
322 test_wrapper::Execution execution(&compilation); in computeAndVerifyResultsForDevice()
345 void computeAndVerifyResults(const std::string& name, const test_wrapper::Model* model, in computeAndVerifyResults()
354 test_wrapper::Compilation compilation(model); in computeAndVerifyResults()
358 test_wrapper::Execution execution(&compilation); in computeAndVerifyResults()
DRandomGraphGenerator.cpp40 using test_wrapper::Result;
/frameworks/ml/nn/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp37 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;