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.

1234567891011121314151617181920212223
  1. #include "test/cuda/fixture.h"
  2. #include "megdnn/oprs.h"
  3. #include "test/common/checker.h"
  4. namespace megdnn {
  5. namespace test {
  6. TEST_F(CUDA, EYE) {
  7. Checker<Eye> checker(handle_cuda());
  8. for (DType dtype :
  9. std::vector<DType>{dtype::Float16(), dtype::Int32(), dtype::Float32()})
  10. for (int k = -20; k < 20; ++k) {
  11. checker.set_param({k, dtype.enumv()});
  12. checker.set_dtype(0, dtype);
  13. checker.exec(TensorShapeArray{{3, 4}});
  14. checker.exec(TensorShapeArray{{4, 3}});
  15. }
  16. }
  17. } // namespace test
  18. } // namespace megdnn
  19. // vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}