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.

separable.cpp 850 B

123456789101112131415161718192021222324252627282930
  1. #include "test/common/separable_conv.h"
  2. namespace megdnn {
  3. namespace test {
  4. namespace separable_conv {
  5. std::vector<TestArg> get_args() {
  6. std::vector<TestArg> args;
  7. param::SeparableConv cur_param;
  8. for (size_t i = 8; i < 65; i *= 4) {
  9. for (int ksize_h = 3; ksize_h < 4; ksize_h += 2) {
  10. int ksize_w = ksize_h;
  11. cur_param.ksize_h = ksize_h;
  12. cur_param.ksize_w = ksize_w;
  13. // if(ksize_h % 2 == 0)
  14. cur_param.is_symm_kernel = false;
  15. args.emplace_back(
  16. cur_param, TensorShape{1, 2, i, i},
  17. TensorShape{1, 2, 1, (size_t)ksize_h},
  18. TensorShape{1, 2, 1, (size_t)ksize_w});
  19. }
  20. }
  21. return args;
  22. }
  23. } // namespace separable_conv
  24. } // namespace test
  25. } // namespace megdnn
  26. // vim: syntax=cpp.doxygen