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.

topk.cpp 594 B

12345678910111213141516171819202122232425
  1. #include "test/common/topk.h"
  2. #include "test/cuda/fixture.h"
  3. using namespace megdnn;
  4. using namespace test;
  5. /*
  6. * !!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!
  7. * The kernels are indepedently developed and tested in the
  8. * MegDNN/expr/cuda_topk directory. Here we only check some common cases.
  9. */
  10. TEST_F(CUDA, TOP_K) {
  11. run_topk_test<dtype::Float32>(handle_cuda());
  12. }
  13. TEST_F(CUDA, TOP_K_I32) {
  14. run_topk_test<dtype::Int32>(handle_cuda());
  15. }
  16. #if !MEGDNN_DISABLE_FLOAT16
  17. TEST_F(CUDA, TOP_K_F16) {
  18. run_topk_test<dtype::Float16>(handle_cuda());
  19. }
  20. #endif
  21. // vim: syntax=cpp.doxygen