Lines Matching refs:Matrix3x4
30 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()
93 model->setOperandValue(e, bias, sizeof(Matrix3x4)); in CreateAddThreeTensorModel()
103 int CompareMatrices(const Matrix3x4& expected, const Matrix3x4& actual) { in CompareMatrices()
122 Matrix3x4 actual; in TEST_F()
127 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
128 ASSERT_EQ(execution.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
129 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
164 Matrix3x4 actual; in testAddTwoWithHardwareBufferInput()
169 ASSERT_EQ(execution.setInputFromMemory(0, &matrix1Memory, 0, sizeof(Matrix3x4)), in testAddTwoWithHardwareBufferInput()
171 ASSERT_EQ(execution.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in testAddTwoWithHardwareBufferInput()
172 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in testAddTwoWithHardwareBufferInput()
218 Matrix3x4 actual; in TEST_F()
223 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
224 ASSERT_EQ(execution2.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
225 ASSERT_EQ(execution2.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
234 ASSERT_EQ(execution3.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
235 ASSERT_EQ(execution3.setInput(1, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
236 ASSERT_EQ(execution3.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
247 Matrix3x4 output1, output2; in TEST_F()
253 ASSERT_EQ(execution1.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
254 ASSERT_EQ(execution1.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
255 ASSERT_EQ(execution1.setOutput(0, output1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
264 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
265 ASSERT_EQ(execution2.setInput(1, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
266 ASSERT_EQ(execution2.setOutput(0, output2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
301 Matrix3x4 actual; in TEST_F()
306 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
308 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
330 Matrix3x4 actual; in TEST_F()
335 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
337 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()