MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / TEST_F

Function TEST_F

dnn/test/rocm/eye.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace test {
11
12TEST_F(ROCM, EYE) {
13 Checker<Eye> checker(handle_rocm());
14 for (DType dtype : std::vector<DType>{
15 DNN_INC_FLOAT16(dtype::Float16() MEGDNN_COMMA) dtype::Int32(),
16 dtype::Float32()})
17 for (int k = -20; k < 20; ++k) {
18 checker.set_param({k, dtype.enumv()});
19 checker.set_dtype(0, dtype);
20 checker.exec(TensorShapeArray{{3, 4}});
21 checker.exec(TensorShapeArray{{4, 3}});
22 }
23}
24
25TEST_F(ROCM, EYE_BENCHMARK) {
26 auto benchmarker = ROCMBenchmarker<Eye>(handle_rocm(), handle_naive(false));

Callers

nothing calls this directly

Calls 5

set_dtypeMethod · 0.80
enumvMethod · 0.45
execMethod · 0.45
execsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected