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 1.0 kB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * \file dnn/test/cuda/roi_copy.cpp
  3. * MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
  4. *
  5. * Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
  6. *
  7. * Unless required by applicable law or agreed to in writing,
  8. * software distributed under the License is distributed on an
  9. * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. */
  11. #include <gtest/gtest.h>
  12. #include "megdnn.h"
  13. #include "megdnn/oprs.h"
  14. #include "test/common/checker.h"
  15. #include "test/common/roi_copy.h"
  16. #include "test/common/tensor.h"
  17. #include "test/cuda/fixture.h"
  18. namespace megdnn {
  19. namespace test {
  20. TEST_F(CUDA, ROICOPY) {
  21. using namespace roi_copy;
  22. std::vector<TestArg> args = get_args();
  23. Checker<ROICopy> checker(handle_cuda());
  24. checker.set_dtype(0, dtype::Int32());
  25. checker.set_dtype(1, dtype::Int32());
  26. for (auto&& arg : args) {
  27. checker.set_param(arg.param).execs({arg.src, {}});
  28. }
  29. }
  30. } // namespace test
  31. } // namespace megdnn
  32. // vim: syntax=cpp.doxygen