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

Method usable

dnn/src/fallback/conv_bias/algos.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168/* ======================= AlgoNaive ======================== */
169
170bool ConvBiasImpl::AlgoNaive::usable(
171 const NCBKernSizeParam& param,
172 AlgoSelectionStrategy /*algo_selection_strategy*/) const {
173 MIDOUT_BEGIN(megdnn_fallback_naive, 0) {
174 auto algo_data_type = param.deduce_algo_data_type();
175 return param.filter_meta.format == param::ConvBias::Format::NCHW &&
176 contain_data_type(get_algo_type().data_type, algo_data_type);
177 }
178 MIDOUT_END();
179 return false;
180}
181
182size_t ConvBiasImpl::AlgoNaive::get_workspace(const NCBKernSizeParam& p) const {
183 MIDOUT_BEGIN(megdnn_fallback_naive, 1) {

Callers 1

Calls 6

contain_data_typeFunction · 0.85
get_matmul_kern_paramMethod · 0.80
MIDOUT_BEGINFunction · 0.50
get_algo_typeFunction · 0.50
deduce_algo_data_typeMethod · 0.45
enumvMethod · 0.45

Tested by

no test coverage detected