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

Function TEST_F

dnn/test/cuda/conv_bias.cpp:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82#if CUDNN_VERSION >= 7400
83TEST_F(CUDA, CONV_BIAS_FORWARD_F32) {
84 using namespace conv_bias;
85 std::vector<TestArg> args = get_args();
86 Checker<ConvBiasForward> checker(handle_cuda());
87
88 NormalRNG default_rng;
89 for (auto&& arg : args) {
90 checker.set_dtype(0, dtype::Float32())
91 .set_dtype(1, dtype::Float32())
92 .set_dtype(2, dtype::Float32())
93 .set_rng(0, &default_rng)
94 .set_rng(1, &default_rng)
95 .set_rng(2, &default_rng)
96 .set_epsilon(1e-3)
97 .set_param(arg.param)
98 .execs({arg.src, arg.filter, arg.bias, {}, {}});
99 }
100}
101
102TEST_F(CUDA, CONV_BIAS_FORWARD_BF16) {
103 using namespace conv_bias;

Callers

nothing calls this directly

Calls 15

get_chanwise_argsFunction · 0.85
get_args_1x1Function · 0.85
check_compute_capabilityFunction · 0.85
set_dtypeMethod · 0.80
get_argsFunction · 0.50
runFunction · 0.50
sqrtFunction · 0.50
execsMethod · 0.45
minMethod · 0.45
maxMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected