diff --git a/dnn/src/naive/reduce/opr_impl.cpp b/dnn/src/naive/reduce/opr_impl.cpp index 4d613a3fcb77d25b07a5dca63013008eb4ce18a5..4209f007cc6f1aeb8a26bc85bdb96adc1403b391 100644 --- a/dnn/src/naive/reduce/opr_impl.cpp +++ b/dnn/src/naive/reduce/opr_impl.cpp @@ -112,7 +112,6 @@ void reduce_fwd( } } -#if !MGE_BUILD_WITHOUT_NAIVE_EXEC template <> void reduce_fwd( const dt_quint8* __restrict, dt_quint8* __restrict, size_t, size_t, size_t) { @@ -176,7 +175,6 @@ void reduce_fwd( "Reduce (PRODUCT) with DEFAULT DataType is not supported " "on QuantizedS8"); } -#endif template void dispatch_dtype( @@ -240,7 +238,6 @@ size_t ReduceForwardImpl::get_workspace_in_bytes( void ReduceForwardImpl::exec( _megdnn_tensor_in src, _megdnn_tensor_out dst, _megdnn_workspace workspace) { -#if !MGE_BUILD_WITHOUT_NAIVE_EXEC using namespace reduce; check_exec(src.layout, dst.layout, workspace.size); size_t A, B, C; @@ -307,9 +304,6 @@ void ReduceForwardImpl::exec( megdnn_assert_internal(false); } #undef CASE -#else - __builtin_trap(); -#endif } } // namespace naive diff --git a/dnn/src/naive/type_cvt/opr_impl.cpp b/dnn/src/naive/type_cvt/opr_impl.cpp index 85b5b4f071743bafca234d1addd23c312daf6a8a..3b2eb78d20ad87c9ccab84a3fd7d48897c94e012 100644 --- a/dnn/src/naive/type_cvt/opr_impl.cpp +++ b/dnn/src/naive/type_cvt/opr_impl.cpp @@ -78,7 +78,6 @@ void on_dest_ctype(HandleImpl* handle, const TensorND& dest, const TensorND& src } // anonymous namespace void TypeCvtImpl::exec(_megdnn_tensor_in src, _megdnn_tensor_out dst) { -#if !MGE_BUILD_WITHOUT_NAIVE_EXEC check_exec(src.layout, dst.layout); // exec @@ -96,9 +95,6 @@ void TypeCvtImpl::exec(_megdnn_tensor_in src, _megdnn_tensor_out dst) { #undef cb default : megdnn_throw("bad dtype"); } -#else - __builtin_trap(); -#endif } // vim: syntax=cpp.doxygen