You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

matrix_mul_int_8x8x32.cpp 645 B

12345678910111213141516171819202122232425
  1. #include "test/cpu/fixture.h"
  2. #include "test/common/checker.h"
  3. #include "test/common/convolution.h"
  4. namespace megdnn {
  5. namespace test {
  6. TEST_F(CPU, MATRIX_MUL_INT_8_8_32) {
  7. Checker<MatrixMul> checker(handle());
  8. param::MatrixMul param;
  9. checker.set_dtype(0, dtype::Int8());
  10. checker.set_dtype(1, dtype::Int8());
  11. checker.set_dtype(2, dtype::Int32());
  12. checker.set_param(param);
  13. for (size_t b : {1, 2, 3})
  14. for (size_t i : {10, 20})
  15. for (size_t o : {11, 22}) {
  16. checker.exec({{b, i}, {i, o}, {}});
  17. }
  18. }
  19. } // namespace test
  20. } // namespace megdnn
  21. // vim: syntax=cpp.doxygen