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.

transpose.cpp 783 B

123456789101112131415161718192021222324
  1. #include "test/cuda/fixture.h"
  2. #include "test/common/checker.h"
  3. namespace megdnn {
  4. namespace test {
  5. TEST_F(CUDA, TRANSPOSE) {
  6. Checker<Transpose> checker(handle_cuda());
  7. checker.execs({{17, 40}, {40, 17}});
  8. checker.exec(TensorLayoutArray{
  9. TensorLayout({17, 40}, {50, 1}, dtype::Float32()),
  10. TensorLayout({40, 17}, {50, 1}, dtype::Float32())});
  11. checker.exec(TensorLayoutArray{
  12. TensorLayout({17, 40}, {50, 1}, dtype::Float16()),
  13. TensorLayout({40, 17}, {50, 1}, dtype::Float16())});
  14. checker.exec(TensorLayoutArray{
  15. TensorLayout({40, 17}, {50, 1}, dtype::Float16()),
  16. TensorLayout({17, 40}, {50, 1}, dtype::Float16())});
  17. }
  18. } // namespace test
  19. } // namespace megdnn
  20. // vim: syntax=cpp.doxygen