提交 31ee212a 编写于 作者: H huzhiqiang 提交者: Yan Chunwei

create backends directory and move hardware backends into it (#1954)

上级 2181d6e1
...@@ -17,15 +17,10 @@ add_subdirectory(operators) ...@@ -17,15 +17,10 @@ add_subdirectory(operators)
add_subdirectory(kernels) add_subdirectory(kernels)
add_subdirectory(npu) add_subdirectory(npu)
add_subdirectory(core) add_subdirectory(core)
add_subdirectory(x86)
add_subdirectory(arm)
add_subdirectory(host)
add_subdirectory(cuda)
add_subdirectory(opencl)
add_subdirectory(fpga)
add_subdirectory(model_parser) add_subdirectory(model_parser)
add_subdirectory(api) add_subdirectory(api)
add_subdirectory(fluid) add_subdirectory(fluid)
add_subdirectory(backends)
if (NOT LITE_ON_TINY_PUBLISH) if (NOT LITE_ON_TINY_PUBLISH)
add_subdirectory(tests) add_subdirectory(tests)
...@@ -158,7 +153,7 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM) ...@@ -158,7 +153,7 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
if (LITE_WITH_OPENCL) if (LITE_WITH_OPENCL)
add_custom_target(publish_inference_opencl ${TARGET} add_custom_target(publish_inference_opencl ${TARGET}
COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/opencl" COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/opencl"
COMMAND cp -r "${CMAKE_SOURCE_DIR}/lite/opencl/cl_kernel" "${INFER_LITE_PUBLISH_ROOT}/opencl" COMMAND cp -r "${CMAKE_SOURCE_DIR}/lite/backends/opencl/cl_kernel" "${INFER_LITE_PUBLISH_ROOT}/opencl"
) )
add_dependencies(publish_inference_cxx_lib publish_inference_opencl) add_dependencies(publish_inference_cxx_lib publish_inference_opencl)
endif() endif()
......
...@@ -100,7 +100,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING) ...@@ -100,7 +100,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING)
lite_cc_test(test_mobilenetv1_int8 SRCS mobilenetv1_int8_test.cc lite_cc_test(test_mobilenetv1_int8 SRCS mobilenetv1_int8_test.cc
DEPS ${lite_model_test_DEPS} DEPS ${lite_model_test_DEPS}
CL_DEPS ${opencl_kernels} CL_DEPS ${opencl_kernels}
ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/opencl ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/backends/opencl
--model_dir=${LITE_MODEL_DIR}/MobilenetV1_quant SERIAL) --model_dir=${LITE_MODEL_DIR}/MobilenetV1_quant SERIAL)
add_dependencies(test_mobilenetv1_int8 extern_lite_download_MobileNetV1_quant_tar_gz) add_dependencies(test_mobilenetv1_int8 extern_lite_download_MobileNetV1_quant_tar_gz)
...@@ -108,7 +108,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING) ...@@ -108,7 +108,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING)
DEPS ${lite_model_test_DEPS} DEPS ${lite_model_test_DEPS}
CL_DEPS ${opencl_kernels} CL_DEPS ${opencl_kernels}
NPU_DEPS ${npu_kernels} ${npu_bridges} NPU_DEPS ${npu_kernels} ${npu_bridges}
ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/opencl ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/backends/opencl
--model_dir=${LITE_MODEL_DIR}/mobilenet_v1 SERIAL) --model_dir=${LITE_MODEL_DIR}/mobilenet_v1 SERIAL)
add_dependencies(test_mobilenetv1 extern_lite_download_mobilenet_v1_tar_gz) add_dependencies(test_mobilenetv1 extern_lite_download_mobilenet_v1_tar_gz)
set(LINK_FLAGS "-Wl,--version-script ${PADDLE_SOURCE_DIR}/lite/core/lite.map") set(LINK_FLAGS "-Wl,--version-script ${PADDLE_SOURCE_DIR}/lite/core/lite.map")
...@@ -117,7 +117,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING) ...@@ -117,7 +117,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING)
lite_cc_test(test_mobilenetv2 SRCS mobilenetv2_test.cc lite_cc_test(test_mobilenetv2 SRCS mobilenetv2_test.cc
DEPS ${lite_model_test_DEPS} DEPS ${lite_model_test_DEPS}
CL_DEPS ${opencl_kernels} CL_DEPS ${opencl_kernels}
ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/opencl ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/backends/opencl
--model_dir=${LITE_MODEL_DIR}/mobilenet_v2_relu SERIAL) --model_dir=${LITE_MODEL_DIR}/mobilenet_v2_relu SERIAL)
add_dependencies(test_mobilenetv2 extern_lite_download_mobilenet_v2_relu_tar_gz) add_dependencies(test_mobilenetv2 extern_lite_download_mobilenet_v2_relu_tar_gz)
set_target_properties(test_mobilenetv2 PROPERTIES LINK_FLAGS "${LINK_FLAGS}") set_target_properties(test_mobilenetv2 PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
...@@ -126,7 +126,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING) ...@@ -126,7 +126,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING)
DEPS ${lite_model_test_DEPS} paddle_api_light DEPS ${lite_model_test_DEPS} paddle_api_light
CL_DEPS ${opencl_kernels} CL_DEPS ${opencl_kernels}
FPGA_DEPS ${fpga_kernels} FPGA_DEPS ${fpga_kernels}
ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/opencl ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/backends/opencl
--model_dir=${LITE_MODEL_DIR}/resnet50 SERIAL) --model_dir=${LITE_MODEL_DIR}/resnet50 SERIAL)
add_dependencies(test_resnet50 extern_lite_download_resnet50_tar_gz) add_dependencies(test_resnet50 extern_lite_download_resnet50_tar_gz)
...@@ -138,7 +138,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING) ...@@ -138,7 +138,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING)
lite_cc_test(test_inceptionv4 SRCS inceptionv4_test.cc lite_cc_test(test_inceptionv4 SRCS inceptionv4_test.cc
DEPS ${lite_model_test_DEPS} DEPS ${lite_model_test_DEPS}
CL_DEPS ${opencl_kernels} CL_DEPS ${opencl_kernels}
ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/opencl ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/backends/opencl
--model_dir=${LITE_MODEL_DIR}/inception_v4 SERIAL) --model_dir=${LITE_MODEL_DIR}/inception_v4 SERIAL)
add_dependencies(test_inceptionv4 extern_lite_download_inception_v4_simple_tar_gz) add_dependencies(test_inceptionv4 extern_lite_download_inception_v4_simple_tar_gz)
# lite_cc_test(test_ocr_attention SRCS ocr_attention_test.cc # lite_cc_test(test_ocr_attention SRCS ocr_attention_test.cc
......
add_subdirectory(x86)
add_subdirectory(cuda)
add_subdirectory(fpga)
add_subdirectory(host)
add_subdirectory(arm)
add_subdirectory(opencl)
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/activation.h" #include "lite/backends/arm/math/activation.h"
#include <string> #include <string>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/affine_channel.h" #include "lite/backends/arm/math/affine_channel.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include "lite/arm/math/axpy.h" #include "lite/backends/arm/math/axpy.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
#include "lite/arm/math/saturate.h" #include "lite/backends/arm/math/saturate.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/anchor_generator.h" #include "lite/backends/arm/math/anchor_generator.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
#include "lite/arm/math/saturate.h" #include "lite/backends/arm/math/saturate.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/argmax.h" #include "lite/backends/arm/math/argmax.h"
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/axpy.h" #include "lite/backends/arm/math/axpy.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
#include "lite/arm/math/saturate.h" #include "lite/backends/arm/math/saturate.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/beam_search.h" #include "lite/backends/arm/math/beam_search.h"
#include <arm_neon.h> #include <arm_neon.h>
#include <cmath> #include <cmath>
#include <string> #include <string>
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/box_coder.h" #include "lite/backends/arm/math/box_coder.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/col_im_transform.h" #include "lite/backends/arm/math/col_im_transform.h"
#include <algorithm> #include <algorithm>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/concat.h" #include "lite/backends/arm/math/concat.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
// limitations under the License. // limitations under the License.
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/conv_block_utils.h" #include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/operators/op_params.h" #include "lite/operators/op_params.h"
#ifdef ARM_WITH_OMP #ifdef ARM_WITH_OMP
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
// limitations under the License. // limitations under the License.
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/conv_block_utils.h" #include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/operators/op_params.h" #include "lite/operators/op_params.h"
#ifdef ARM_WITH_OMP #ifdef ARM_WITH_OMP
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#pragma once #pragma once
#include <arm_neon.h> #include <arm_neon.h>
#include <cmath> #include <cmath>
#include "lite/arm/math/saturate.h" #include "lite/backends/arm/math/saturate.h"
#include "lite/arm/math/type_trans.h" #include "lite/backends/arm/math/type_trans.h"
#include "lite/core/target_wrapper.h" #include "lite/core/target_wrapper.h"
#include "lite/utils/cp_logging.h" #include "lite/utils/cp_logging.h"
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_depthwise.h" #include "lite/backends/arm/math/conv_depthwise.h"
#include "lite/arm/math/conv_block_utils.h" #include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <cmath> #include <cmath>
#include <vector> #include <vector>
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/core/target_wrapper.h" #include "lite/core/target_wrapper.h"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/operators/op_params.h" #include "lite/operators/op_params.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_depthwise.h" #include "lite/backends/arm/math/conv_depthwise.h"
#include <arm_neon.h> #include <arm_neon.h>
namespace paddle { namespace paddle {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_depthwise.h" #include "lite/backends/arm/math/conv_depthwise.h"
#include <arm_neon.h> #include <arm_neon.h>
namespace paddle { namespace paddle {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_depthwise.h" #include "lite/backends/arm/math/conv_depthwise.h"
#include <arm_neon.h> #include <arm_neon.h>
namespace paddle { namespace paddle {
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
// limitations under the License. // limitations under the License.
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/conv_block_utils.h" #include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/operators/op_params.h" #include "lite/operators/op_params.h"
#ifdef ARM_WITH_OMP #ifdef ARM_WITH_OMP
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_depthwise.h" #include "lite/backends/arm/math/conv_depthwise.h"
#include <arm_neon.h> #include <arm_neon.h>
namespace paddle { namespace paddle {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_direct.h" #include "lite/backends/arm/math/conv_direct.h"
#include "lite/arm/math/conv_block_utils.h" #include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <cmath> #include <cmath>
#include <vector> #include <vector>
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/core/target_wrapper.h" #include "lite/core/target_wrapper.h"
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
// limitations under the License. // limitations under the License.
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/conv_block_utils.h" #include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/operators/op_params.h" #include "lite/operators/op_params.h"
#ifdef ARM_WITH_OMP #ifdef ARM_WITH_OMP
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_block_utils.h" #include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#ifdef ARM_WITH_OMP #ifdef ARM_WITH_OMP
#include <omp.h> #include <omp.h>
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_gemmlike.h" #include "lite/backends/arm/math/conv_gemmlike.h"
#include <vector> #include <vector>
#include "lite/arm/math/gemm_prepacked_int8.h" #include "lite/backends/arm/math/gemm_prepacked_int8.h"
#include "lite/arm/math/packed_sgemm.h" #include "lite/backends/arm/math/packed_sgemm.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <cmath> #include <cmath>
#include <vector> #include <vector>
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/core/target_wrapper.h" #include "lite/core/target_wrapper.h"
......
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
// #include "saber/funcs/impl/arm/neon/impl/gemv_arm_int8.h" // #include "saber/funcs/impl/arm/neon/impl/gemv_arm_int8.h"
// #include "saber/funcs/impl/arm/neon/impl/sgemv_arm.h" // #include "saber/funcs/impl/arm/neon/impl/sgemv_arm.h"
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/gemm_prepacked_int8.h" #include "lite/backends/arm/math/gemm_prepacked_int8.h"
#include "lite/arm/math/gemv_arm_int8.h" #include "lite/backends/arm/math/gemv_arm_int8.h"
#include "lite/arm/math/packed_sgemm.h" #include "lite/backends/arm/math/packed_sgemm.h"
#include "lite/arm/math/sgemv.h" #include "lite/backends/arm/math/sgemv.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/core/target_wrapper.h" #include "lite/core/target_wrapper.h"
#include "lite/operators/op_params.h" #include "lite/operators/op_params.h"
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_winograd.h" #include "lite/backends/arm/math/conv_winograd.h"
#include <vector> #include <vector>
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/arm/math/packed_sgemm.h" #include "lite/backends/arm/math/packed_sgemm.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#pragma once #pragma once
#include <cmath> #include <cmath>
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/core/target_wrapper.h" #include "lite/core/target_wrapper.h"
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/conv_impl.h" #include "lite/backends/arm/math/conv_impl.h"
#include "lite/arm/math/packed_sgemm.h" #include "lite/backends/arm/math/packed_sgemm.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/decode_bboxes.h" #include "lite/backends/arm/math/decode_bboxes.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/dropout.h" #include "lite/backends/arm/math/dropout.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/elementwise.h" #include "lite/backends/arm/math/elementwise.h"
#include <algorithm> #include <algorithm>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/fill_bias_relu.h" #include "lite/backends/arm/math/fill_bias_relu.h"
#include <algorithm> #include <algorithm>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
#include <arm_neon.h> #include <arm_neon.h>
namespace paddle { namespace paddle {
......
...@@ -18,49 +18,49 @@ ...@@ -18,49 +18,49 @@
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include "lite/arm/math/activation.h" #include "lite/backends/arm/math/activation.h"
#include "lite/arm/math/affine_channel.h" #include "lite/backends/arm/math/affine_channel.h"
#include "lite/arm/math/anchor_generator.h" #include "lite/backends/arm/math/anchor_generator.h"
#include "lite/arm/math/argmax.h" #include "lite/backends/arm/math/argmax.h"
#include "lite/arm/math/axpy.h" #include "lite/backends/arm/math/axpy.h"
#include "lite/arm/math/beam_search.h" #include "lite/backends/arm/math/beam_search.h"
#include "lite/arm/math/box_coder.h" #include "lite/backends/arm/math/box_coder.h"
#include "lite/arm/math/col_im_transform.h" #include "lite/backends/arm/math/col_im_transform.h"
#include "lite/arm/math/concat.h" #include "lite/backends/arm/math/concat.h"
#include "lite/arm/math/conv_depthwise.h" #include "lite/backends/arm/math/conv_depthwise.h"
#include "lite/arm/math/conv_direct.h" #include "lite/backends/arm/math/conv_direct.h"
#include "lite/arm/math/conv_gemmlike.h" #include "lite/backends/arm/math/conv_gemmlike.h"
#include "lite/arm/math/conv_winograd.h" #include "lite/backends/arm/math/conv_winograd.h"
#include "lite/arm/math/decode_bboxes.h" #include "lite/backends/arm/math/decode_bboxes.h"
#include "lite/arm/math/dropout.h" #include "lite/backends/arm/math/dropout.h"
#include "lite/arm/math/elementwise.h" #include "lite/backends/arm/math/elementwise.h"
#include "lite/arm/math/fill_bias_relu.h" #include "lite/backends/arm/math/fill_bias_relu.h"
#include "lite/arm/math/im2sequence.h" #include "lite/backends/arm/math/im2sequence.h"
#include "lite/arm/math/increment.h" #include "lite/backends/arm/math/increment.h"
#include "lite/arm/math/interpolate.h" #include "lite/backends/arm/math/interpolate.h"
#include "lite/arm/math/lrn.h" #include "lite/backends/arm/math/lrn.h"
#include "lite/arm/math/negative.h" #include "lite/backends/arm/math/negative.h"
#include "lite/arm/math/norm.h" #include "lite/backends/arm/math/norm.h"
#include "lite/arm/math/packed_sgemm.h" #include "lite/backends/arm/math/packed_sgemm.h"
#include "lite/arm/math/pad2d.h" #include "lite/backends/arm/math/pad2d.h"
#include "lite/arm/math/pooling.h" #include "lite/backends/arm/math/pooling.h"
#include "lite/arm/math/power.h" #include "lite/backends/arm/math/power.h"
#include "lite/arm/math/prior_box.h" #include "lite/backends/arm/math/prior_box.h"
#include "lite/arm/math/reduce_max.h" #include "lite/backends/arm/math/reduce_max.h"
#include "lite/arm/math/reduce_mean.h" #include "lite/backends/arm/math/reduce_mean.h"
#include "lite/arm/math/scale.h" #include "lite/backends/arm/math/scale.h"
#include "lite/arm/math/sequence_expand.h" #include "lite/backends/arm/math/sequence_expand.h"
#include "lite/arm/math/sequence_pool.h" #include "lite/backends/arm/math/sequence_pool.h"
#include "lite/arm/math/sequence_softmax.h" #include "lite/backends/arm/math/sequence_softmax.h"
#include "lite/arm/math/sgemm.h" #include "lite/backends/arm/math/sgemm.h"
#include "lite/arm/math/sgemv.h" #include "lite/backends/arm/math/sgemv.h"
#include "lite/arm/math/shuffle_channel.h" #include "lite/backends/arm/math/shuffle_channel.h"
#include "lite/arm/math/slice.h" #include "lite/backends/arm/math/slice.h"
#include "lite/arm/math/softmax.h" #include "lite/backends/arm/math/softmax.h"
#include "lite/arm/math/split.h" #include "lite/backends/arm/math/split.h"
#include "lite/arm/math/stack.h" #include "lite/backends/arm/math/stack.h"
#include "lite/arm/math/topk.h" #include "lite/backends/arm/math/topk.h"
#include "lite/arm/math/yolo_box.h" #include "lite/backends/arm/math/yolo_box.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
namespace arm { namespace arm {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/gemm_prepacked_int8.h" #include "lite/backends/arm/math/gemm_prepacked_int8.h"
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/dot_toolchain_support.h" #include "lite/backends/arm/math/dot_toolchain_support.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/gemv_arm_int8.h" #include "lite/backends/arm/math/gemv_arm_int8.h"
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/arm/math/saturate.h" #include "lite/backends/arm/math/saturate.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#pragma once #pragma once
#include "lite/arm/math/sgemm.h" #include "lite/backends/arm/math/sgemm.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/im2sequence.h" #include "lite/backends/arm/math/im2sequence.h"
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/utils/cp_logging.h" #include "lite/utils/cp_logging.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/increment.h" #include "lite/backends/arm/math/increment.h"
#include <arm_neon.h> #include <arm_neon.h>
#include <cmath> #include <cmath>
#include "lite/utils/cp_logging.h" #include "lite/utils/cp_logging.h"
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/interpolate.h" #include "lite/backends/arm/math/interpolate.h"
#include <string> #include <string>
#include <vector> #include <vector>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/lrn.h" #include "lite/backends/arm/math/lrn.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/negative.h" #include "lite/backends/arm/math/negative.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/norm.h" #include "lite/backends/arm/math/norm.h"
#include <arm_neon.h> #include <arm_neon.h>
#include <cmath> #include <cmath>
#include "lite/utils/cp_logging.h" #include "lite/utils/cp_logging.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/packed_sgemm.h" #include "lite/backends/arm/math/packed_sgemm.h"
#include <arm_neon.h> #include <arm_neon.h>
namespace paddle { namespace paddle {
......
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/pad2d.h" #include "lite/backends/arm/math/pad2d.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/pooling.h" #include "lite/backends/arm/math/pooling.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/power.h" #include "lite/backends/arm/math/power.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/prior_box.h" #include "lite/backends/arm/math/prior_box.h"
#include <algorithm> #include <algorithm>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ...@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "lite/arm/math/reduce_max.h" #include "lite/backends/arm/math/reduce_max.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
#include "lite/core/tensor.h" #include "lite/core/tensor.h"
namespace paddle { namespace paddle {
......
...@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ...@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "lite/arm/math/reduce_mean.h" #include "lite/backends/arm/math/reduce_mean.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
#include "lite/core/tensor.h" #include "lite/core/tensor.h"
namespace paddle { namespace paddle {
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/scale.h" #include "lite/backends/arm/math/scale.h"
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/sequence_expand.h" #include "lite/backends/arm/math/sequence_expand.h"
#include <string.h> #include <string.h>
#include <vector> #include <vector>
#include "lite/core/tensor.h" #include "lite/core/tensor.h"
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/sequence_pool.h" #include "lite/backends/arm/math/sequence_pool.h"
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <limits> #include <limits>
#include <vector> #include <vector>
#include "lite/arm/math/funcs.h" #include "lite/backends/arm/math/funcs.h"
#include "lite/core/op_registry.h" #include "lite/core/op_registry.h"
#include "lite/core/tensor.h" #include "lite/core/tensor.h"
#include "lite/core/type_system.h" #include "lite/core/type_system.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/sequence_softmax.h" #include "lite/backends/arm/math/sequence_softmax.h"
#include <arm_neon.h> #include <arm_neon.h>
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/sgemm.h" #include "lite/backends/arm/math/sgemm.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#pragma once #pragma once
#include <cmath> #include <cmath>
#include "lite/arm/math/packed_sgemm.h" #include "lite/backends/arm/math/packed_sgemm.h"
#include "lite/core/context.h" #include "lite/core/context.h"
#include "lite/core/device_info.h" #include "lite/core/device_info.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "lite/arm/math/sgemv.h" #include "lite/backends/arm/math/sgemv.h"
#include <arm_neon.h> #include <arm_neon.h>
#include "lite/utils/cp_logging.h" #include "lite/utils/cp_logging.h"
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册