| 168 | /* ======================= AlgoNaive ======================== */ |
| 169 | |
| 170 | bool 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 | |
| 182 | size_t ConvBiasImpl::AlgoNaive::get_workspace(const NCBKernSizeParam& p) const { |
| 183 | MIDOUT_BEGIN(megdnn_fallback_naive, 1) { |
no test coverage detected