Home
last modified time | relevance | path

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

/frameworks/ml/nn/runtime/test/
DTestTrivialModel.cpp26 typedef float Matrix3x4[3][4]; typedef
35 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}};
36 const Matrix3x4 matrix2 = {{100.f, 200.f, 300.f, 400.f},
40 const Matrix3x4 matrix3 = {
42 const Matrix3x4 expected2 = {{101.f, 202.f, 303.f, 404.f},
45 const Matrix3x4 expected2b = {{101.f, 202.f, 303.f, 404.f},
48 const Matrix3x4 expected2c = {{100.f, 400.f, 900.f, 1600.f},
52 const Matrix3x4 expected3 = {{121.f, 232.f, 343.f, 454.f},
55 const Matrix3x4 expected3b = {
75 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.cpp69 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F()
70 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F()
79 Matrix3x4 actual; in TEST_F()
84 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
85 ASSERT_EQ(execution2.setOutput(0, actual, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
127 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F()
128 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F()
137 Matrix3x4 actual; in TEST_F()
142 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
143 ASSERT_EQ(execution2.setOutput(0, actual, sizeof(Matrix3x4)), WrapperResult::NO_ERROR); in TEST_F()
DTestMemoryInternal.cpp128 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F()
129 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F()
139 constexpr size_t inputSize = offsetForMatrix1 + sizeof(Matrix3x4); in TEST_F()
145 memcpy(inputData + offsetForMatrix1, matrix1, sizeof(Matrix3x4)); in TEST_F()
150 constexpr size_t outputSize = offsetForActual + sizeof(Matrix3x4); in TEST_F()
164 ASSERT_EQ(execution2.setInputFromMemory(0, &input, offsetForMatrix1, sizeof(Matrix3x4)), in TEST_F()
166 ASSERT_EQ(execution2.setOutputFromMemory(0, &actual, offsetForActual, sizeof(Matrix3x4)), in TEST_F()
170 CompareMatrices(expected3, *reinterpret_cast<Matrix3x4*>(outputData + offsetForActual)), in TEST_F()