GitOrigin-RevId: 2707bc03c9
release-1.10
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/arm_common/conv_bias/int8/chanwise_direct_dot.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include <arm_neon.h> | #include <arm_neon.h> | ||||
#include "src/arm_common/conv_bias/int8/algos.h" | #include "src/arm_common/conv_bias/int8/algos.h" | ||||
#include "src/arm_common/conv_bias/int8/direct_kernels/dot_direct_nchw_large.h" | #include "src/arm_common/conv_bias/int8/direct_kernels/dot_direct_nchw_large.h" | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/arm_common/conv_bias/int8/chanwise_im2col_dot.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "megdnn/arch.h" | #include "megdnn/arch.h" | ||||
#if MGB_ENABLE_DOT | #if MGB_ENABLE_DOT | ||||
#include "src/arm_common/simd_macro/marm_neon.h" | #include "src/arm_common/simd_macro/marm_neon.h" | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file | |||||
* dnn/src/arm_common/conv_bias/int8/direct_kernels/dot_direct_nchw_large.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "megdnn/arch.h" | #include "megdnn/arch.h" | ||||
#if MGB_ENABLE_DOT | #if MGB_ENABLE_DOT | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file | |||||
* dnn/src/arm_common/conv_bias/int8/direct_kernels/dot_direct_nchw44_common.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "megdnn/arch.h" | #include "megdnn/arch.h" | ||||
#if MGB_ENABLE_DOT | #if MGB_ENABLE_DOT | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file | |||||
* dnn/src/arm_common/conv_bias/int8/direct_kernels/dot_direct_nchw_larget_9x9s1.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "megdnn/arch.h" | #include "megdnn/arch.h" | ||||
#if MGB_ENABLE_DOT | #if MGB_ENABLE_DOT | ||||
#include "src/arm_common/simd_macro/marm_neon.h" | #include "src/arm_common/simd_macro/marm_neon.h" | ||||
@@ -1,16 +1,3 @@ | |||||
/** | |||||
* \file | |||||
* dnn/src/arm_common/conv_bias/int8/direct_kernels/dot_direct_nchw_larget_9x9s2.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "megdnn/arch.h" | #include "megdnn/arch.h" | ||||
#if MGB_ENABLE_DOT | #if MGB_ENABLE_DOT | ||||
#include "src/arm_common/simd_macro/marm_neon.h" | #include "src/arm_common/simd_macro/marm_neon.h" | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/conv_bias/gi/block_helper.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "src/common/utils.h" | #include "src/common/utils.h" | ||||
namespace megdnn { | namespace megdnn { | ||||
namespace { | namespace { | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/conv_bias/gi/fp32/do_conv_stride1.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include <algorithm> | #include <algorithm> | ||||
#include "src/fallback/conv_bias/gi/fp32/do_conv_stride1.h" | #include "src/fallback/conv_bias/gi/fp32/do_conv_stride1.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/conv_bias/gi/fp32/do_conv_stride2.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#include <algorithm> | #include <algorithm> | ||||
#include "./do_conv_stride2.h" | #include "./do_conv_stride2.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/conv_bias/gi/fp32/helper.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "src/common/unroll_macro.h" | #include "src/common/unroll_macro.h" | ||||
#include "src/fallback/general_intrinsic/gi_float.h" | #include "src/fallback/general_intrinsic/gi_float.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/conv_bias/gi/intrinsic_helper.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "src/common/unroll_macro.h" | #include "src/common/unroll_macro.h" | ||||
#include "src/fallback/conv_bias/common.h" | #include "src/fallback/conv_bias/common.h" | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/conv_bias/gi/postprocess_helper.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "megdnn/basic_types.h" | #include "megdnn/basic_types.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/conv_bias/gi/utils.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include <cstring> | #include <cstring> | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/gi_intrinsic_helper.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "src/common/unroll_macro.h" | #include "src/common/unroll_macro.h" | ||||
#include "src/fallback/general_intrinsic/gi_float.h" | #include "src/fallback/general_intrinsic/gi_float.h" | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/matrix_mul/gi/fp32/exec_sgemv.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "src/fallback/matrix_mul/gi/fp32/exec_sgemv.h" | #include "src/fallback/matrix_mul/gi/fp32/exec_sgemv.h" | ||||
#include "include/megdnn/oprs.h" | #include "include/megdnn/oprs.h" | ||||
#include "src/common/unroll_macro.h" | #include "src/common/unroll_macro.h" | ||||
@@ -1,13 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/matrix_mul/gi/fp32/exec_sgemv.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include <cstddef> | #include <cstddef> | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/matrix_mul/gi/fp32/strategy_mk4_4x8.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#include "src/common/utils.h" | #include "src/common/utils.h" | ||||
#include "src/fallback/general_intrinsic/gi_float.h" | #include "src/fallback/general_intrinsic/gi_float.h" | ||||
#include "src/fallback/matrix_mul/generic_strategy.h" | #include "src/fallback/matrix_mul/generic_strategy.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/algo.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "algo.h" | #include "algo.h" | ||||
#include "do_max_pooling_w4x4_s2x2.h" | #include "do_max_pooling_w4x4_s2x2.h" | ||||
#include "megdnn/opr_param_defs.h" | #include "megdnn/opr_param_defs.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/algo.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "src/common/utils.h" | #include "src/common/utils.h" | ||||
#include "src/fallback/pooling/opr_impl.h" | #include "src/fallback/pooling/opr_impl.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/do_max_pooling_3x3_s2x2_float.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#include "src/common/utils.h" | #include "src/common/utils.h" | ||||
#include <algorithm> | #include <algorithm> | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/do_max_pooling_3x3_s2x2_float.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#include "src/common/utils.h" | #include "src/common/utils.h" | ||||
#include "megdnn/arch.h" | #include "megdnn/arch.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/do_max_pooling_w4x4_s2x2.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "do_max_pooling_w4x4_s2x2.h" | #include "do_max_pooling_w4x4_s2x2.h" | ||||
#include "pooling_helper.h" | #include "pooling_helper.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/do_max_pooling_w4x4_s2x2.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include "src/fallback/pooling/opr_impl.h" | #include "src/fallback/pooling/opr_impl.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/kern_fp32_pooling_nchw44.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#pragma once | #pragma once | ||||
#include <limits> | #include <limits> | ||||
#include "megdnn/opr_param_defs.h" | #include "megdnn/opr_param_defs.h" | ||||
@@ -1,15 +1,3 @@ | |||||
/** | |||||
* \file dnn/src/fallback/pooling/gi/pooling_helper.h | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or | |||||
* implied. | |||||
*/ | |||||
#include "do_max_pooling_3x3_s2x2_float.h" | #include "do_max_pooling_3x3_s2x2_float.h" | ||||
#include "megdnn/dtype.h" | #include "megdnn/dtype.h" | ||||
#include "src/common/unroll_macro.h" | #include "src/common/unroll_macro.h" | ||||
@@ -1,14 +1,3 @@ | |||||
/** | |||||
* \file dnn/test/fallback/gi.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#include <vector> | #include <vector> | ||||
#include "test/fallback/fixture.h" | #include "test/fallback/fixture.h" | ||||
@@ -1,13 +1,3 @@ | |||||
/** | |||||
* \file dnn/test/fallback/pooling.cpp | |||||
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License") | |||||
* | |||||
* Copyright (c) 2014-2022 Megvii Inc. All rights reserved. | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, | |||||
* software distributed under the License is distributed on an | |||||
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
*/ | |||||
#include "test/fallback/fixture.h" | #include "test/fallback/fixture.h" | ||||
#include "test/common/benchmarker.h" | #include "test/common/benchmarker.h" | ||||