#include "megdnn/oprs.h" #include "test/common/checker.h" #include "test/cuda/fixture.h" using namespace megdnn; using namespace test; TEST_F(CUDA, DOT) { Checker checker(handle_cuda()); checker.set_epsilon(1e-2); // basic checker.execs({{23}, {23}, {1}}); // non-contiguous checker.exec(TensorLayoutArray{ TensorLayout({23}, {2}, dtype::Float32()), TensorLayout({23}, {3}, dtype::Float32()), TensorLayout({1}, {1}, dtype::Float32())}); // fp16 checker.exec(TensorLayoutArray{ TensorLayout({23}, dtype::Float16()), TensorLayout({23}, dtype::Float16()), TensorLayout({1}, dtype::Float16())}); // fp16 non-contiguous checker.exec(TensorLayoutArray{ TensorLayout({23}, {2}, dtype::Float16()), TensorLayout({23}, {3}, dtype::Float16()), TensorLayout({1}, {1}, dtype::Float16())}); } // vim: syntax=cpp.doxygen