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_conv.cpp 843 B

1234567891011121314151617181920212223242526272829
  1. #include "test/common/separable_conv.h"
  2. #include "test/common/checker.h"
  3. #include "test/common/task_record_check.h"
  4. #include "test/x86/fixture.h"
  5. namespace megdnn {
  6. namespace test {
  7. TEST_F(X86, SEPARABLE_CONV) {
  8. using namespace separable_conv;
  9. std::vector<TestArg> args = get_args();
  10. Checker<SeparableConvForward> checker(handle());
  11. for (auto&& arg : args) {
  12. checker.set_param(arg.param).execs({arg.src, arg.filter_x, arg.filter_y, {}});
  13. }
  14. }
  15. TEST_F(X86, SEPARABLE_CONV_RECORD) {
  16. using namespace separable_conv;
  17. std::vector<TestArg> args = get_args();
  18. TaskRecordChecker<SeparableConvForward> checker(0);
  19. for (auto&& arg : args) {
  20. checker.set_param(arg.param).execs({arg.src, arg.filter_x, arg.filter_y, {}});
  21. }
  22. }
  23. } // namespace test
  24. } // namespace megdnn
  25. // vim: syntax=cpp.doxygen