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

Function TEST_F

dnn/test/rocm/convolution.cpp:94–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92} // namespace convolution
93
94TEST_F(ROCM, CONV_GROUP) {
95 megdnn::rocm::enable_miopen_algo_search(handle_rocm(), false);
96 using namespace convolution;
97 std::vector<TestArg> args = get_group_conv_args();
98 Checker<ConvolutionForward> checker(handle_rocm());
99 NormalRNG default_rng;
100 for (auto&& arg : args) {
101 checker.set_dtype(0, dtype::Float32())
102 .set_dtype(1, dtype::Float32())
103 .set_rng(0, &default_rng)
104 .set_rng(1, &default_rng)
105 .set_epsilon(1e-3)
106 .set_param(arg.param)
107 .execs({arg.src, arg.filter, {}});
108 }
109}
110
111TEST_F(ROCM, CONV_CHANNWISE) {
112 megdnn::rocm::enable_miopen_algo_search(handle_rocm(), false);

Callers

nothing calls this directly

Calls 15

get_chanwise_argsFunction · 0.85
get_args_0Function · 0.85
get_args_1Function · 0.85
get_args_2Function · 0.85
TensorLayoutClass · 0.85
set_dtypeMethod · 0.80
get_group_conv_argsFunction · 0.70
sqrtFunction · 0.50
get_argsFunction · 0.50
runFunction · 0.50
execsMethod · 0.45

Tested by

no test coverage detected