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.

roi_copy.cpp 637 B

12345678910111213141516171819202122232425262728
  1. #include <gtest/gtest.h>
  2. #include "megdnn.h"
  3. #include "megdnn/oprs.h"
  4. #include "test/common/checker.h"
  5. #include "test/common/roi_copy.h"
  6. #include "test/common/tensor.h"
  7. #include "test/cuda/fixture.h"
  8. namespace megdnn {
  9. namespace test {
  10. TEST_F(CUDA, ROICOPY) {
  11. using namespace roi_copy;
  12. std::vector<TestArg> args = get_args();
  13. Checker<ROICopy> checker(handle_cuda());
  14. checker.set_dtype(0, dtype::Int32());
  15. checker.set_dtype(1, dtype::Int32());
  16. for (auto&& arg : args) {
  17. checker.set_param(arg.param).execs({arg.src, {}});
  18. }
  19. }
  20. } // namespace test
  21. } // namespace megdnn
  22. // vim: syntax=cpp.doxygen