Home
last modified time | relevance | path

Searched refs:Matrix3x4 (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DTestTrivialModel.cpp30 typedef float Matrix3x4[3][4]; typedef
44 const Matrix3x4 matrix1 = {{1.f, 2.f, 3.f, 4.f}, {5.f, 6.f, 7.f, 8.f}, {9.f, 10.f, 11.f, 12.f}};
45 const Matrix3x4 matrix2 = {{100.f, 200.f, 300.f, 400.f},
49 const Matrix3x4 matrix3 = {
51 const Matrix3x4 expected2 = {{101.f, 202.f, 303.f, 404.f},
54 const Matrix3x4 expected2b = {{101.f, 202.f, 303.f, 404.f},
57 const Matrix3x4 expected2c = {{100.f, 400.f, 900.f, 1600.f},
61 const Matrix3x4 expected3 = {{121.f, 232.f, 343.f, 454.f},
64 const Matrix3x4 expected3b = {
84 void CreateAddThreeTensorModel(Model* model, const Matrix3x4 bias) { in CreateAddThreeTensorModel()
[all …]
DTestMemory.h24 typedef float Matrix3x4[3][4]; typedef
28 int CompareMatrices(const Matrix3x4& expected, const Matrix3x4& actual) { in CompareMatrices()
42 const Matrix3x4 matrix1 = {{1.f, 2.f, 3.f, 4.f}, {5.f, 6.f, 7.f, 8.f}, {9.f, 10.f, 11.f, 12.f}};
43 const Matrix3x4 matrix2 = {{100.f, 200.f, 300.f, 400.f},
46 const Matrix3x4 matrix3 = {
48 const Matrix3x4 expected3 = {{121.f, 232.f, 343.f, 454.f},
DTestMemory.cpp75 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F()
76 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F()
85 Matrix3x4 actual; in TEST_F()
90 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
91 ASSERT_EQ(execution2.setOutput(0, actual, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
138 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F()
139 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F()
148 Matrix3x4 actual; in TEST_F()
153 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
154 ASSERT_EQ(execution2.setOutput(0, actual, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
DTestMemoryInternal.cpp134 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F()
135 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F()
145 constexpr size_t inputSize = offsetForMatrix1 + sizeof(Matrix3x4); in TEST_F()
157 memcpy(inputData + offsetForMatrix1, matrix1, sizeof(Matrix3x4)); in TEST_F()
162 constexpr size_t outputSize = offsetForActual + sizeof(Matrix3x4); in TEST_F()
182 ASSERT_EQ(execution2.setInputFromMemory(0, &input, offsetForMatrix1, sizeof(Matrix3x4)), in TEST_F()
184 ASSERT_EQ(execution2.setOutputFromMemory(0, &actual, offsetForActual, sizeof(Matrix3x4)), in TEST_F()
188 CompareMatrices(expected3, *reinterpret_cast<Matrix3x4*>(outputData + offsetForActual)), in TEST_F()
DTestTelemetry.cpp35 typedef float Matrix3x4[3][4]; typedef
63 Matrix3x4 matrix; in TEST_F()
68 ASSERT_EQ(execution.setInput(0, matrix, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
69 ASSERT_EQ(execution.setInput(1, matrix, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
70 ASSERT_EQ(execution.setOutput(0, matrix, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()