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.

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "megdnn/basic_types.h"
  3. #include "megdnn/opr_param_defs.h"
  4. namespace megdnn {
  5. namespace test {
  6. namespace tqt {
  7. struct TestArg {
  8. param::TQT param;
  9. TensorShape ishape;
  10. TensorShape scale_shape;
  11. TestArg(param::TQT param, TensorShape ishape, TensorShape scale_shape)
  12. : param(param), ishape(ishape), scale_shape(scale_shape) {}
  13. };
  14. inline std::vector<TestArg> get_args() {
  15. std::vector<TestArg> args;
  16. param::TQT cur_param;
  17. cur_param.qmin = -127;
  18. cur_param.qmax = 127;
  19. for (size_t i = 10; i < 30; i += 2) {
  20. args.emplace_back(cur_param, TensorShape{10, 64, i, i}, TensorShape{1});
  21. }
  22. return args;
  23. }
  24. } // namespace tqt
  25. } // namespace test
  26. } // namespace megdnn