Home | History | Annotate | Download | only in test

Lines Matching refs:Matrix3x4

26 typedef float Matrix3x4[3][4];
33 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}};
34 const Matrix3x4 matrix2 = {{100.f, 200.f, 300.f, 400.f},
38 const Matrix3x4 matrix3 = {{20.f, 30.f, 40.f, 50.f},
41 const Matrix3x4 expected2 = {{101.f, 202.f, 303.f, 404.f},
44 const Matrix3x4 expected2b = {{101.f, 202.f, 303.f, 404.f},
47 const Matrix3x4 expected2c = {{100.f, 400.f, 900.f, 1600.f},
51 const Matrix3x4 expected3 = {{121.f, 232.f, 343.f, 454.f},
54 const Matrix3x4 expected3b = {{22.f, 34.f, 46.f, 58.f},
77 void CreateAddThreeTensorModel(Model* model, const Matrix3x4 bias) {
87 model->setOperandValue(e, bias, sizeof(Matrix3x4));
98 int CompareMatrices(const Matrix3x4& expected, const Matrix3x4& actual) {
117 Matrix3x4 actual;
122 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR);
123 ASSERT_EQ(execution.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR);
124 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR);
134 Matrix3x4 actual;
139 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR);
140 ASSERT_EQ(execution2.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR);
141 ASSERT_EQ(execution2.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR);
150 ASSERT_EQ(execution3.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR);
151 ASSERT_EQ(execution3.setInput(1, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR);
152 ASSERT_EQ(execution3.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR);
177 Matrix3x4 actual;
182 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR);
184 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR);
209 Matrix3x4 actual;
214 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR);
216 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR);