From 9ea489beb3cc616df5ee322acadf84b1db8d3c37 Mon Sep 17 00:00:00 2001 From: sunsuodong Date: Fri, 29 Jul 2022 18:20:15 -0700 Subject: [PATCH] change runtime to litert --- .gitignore | 4 +- .jenkins/check/config/filter_cppcheck.txt | 4 +- .jenkins/check/config/filter_cpplint.txt | 20 +-- .jenkins/check/config/whitelizard.txt | 22 +-- cmake/package_lite.cmake | 4 +- mindspore/lite/CMakeLists.txt | 6 +- .../experimental/kernel/convolution_fp32.h | 2 +- .../lite/experimental/src/exec_env_utils.h | 2 +- mindspore/lite/experimental/src/tensor.h | 4 +- mindspore/lite/include/train/train_loop.h | 2 +- mindspore/lite/minddata/CMakeLists.txt | 8 +- mindspore/lite/src/CMakeLists.txt | 142 +++++++++--------- mindspore/lite/src/common/context_util.h | 2 +- mindspore/lite/src/common/tensor_util.cc | 2 +- mindspore/lite/src/common/tensor_util.h | 2 +- .../src/control_flow/actor/entrance_actor.cc | 2 +- .../src/control_flow/actor/entrance_actor.h | 2 +- .../lite/src/control_flow/actor/exit_actor.cc | 2 +- .../lite/src/control_flow/actor/exit_actor.h | 2 +- .../src/control_flow/actor/switch_actor.cc | 6 +- .../src/control_flow/actor/switch_actor.h | 2 +- .../src/control_flow/control_actor_creator.cc | 2 +- .../src/control_flow/control_actor_creator.h | 4 +- .../control_flow/control_flow_scheduler.cc | 4 +- .../src/control_flow/control_flow_scheduler.h | 4 +- .../control_flow/control_subgraph_creator.h | 4 +- .../kernel/entrance_subgraph_kernel.h | 8 +- .../kernel/exit_subgraph_kernel.h | 8 +- .../control_flow/kernel/identity_kernel.cc | 2 +- .../src/control_flow/kernel/identity_kernel.h | 8 +- mindspore/lite/src/expression/net.cc | 2 +- mindspore/lite/src/expression/node.cc | 4 +- .../lite/src/expression/ops/activation.cc | 2 +- mindspore/lite/src/expression/ops/adam.cc | 2 +- .../lite/src/expression/ops/arithmetic.cc | 2 +- .../lite/src/expression/ops/batchnorm.cc | 2 +- mindspore/lite/src/expression/ops/conv.cc | 2 +- mindspore/lite/src/expression/ops/dense.cc | 2 +- mindspore/lite/src/expression/ops/dropout.cc | 2 +- mindspore/lite/src/expression/ops/flatten.cc | 2 +- mindspore/lite/src/expression/ops/pooling.cc | 2 +- mindspore/lite/src/expression/ops/reduce.cc | 2 +- mindspore/lite/src/expression/ops/softmax.cc | 2 +- .../lite/src/expression/ops/softmaxCE.cc | 2 +- .../lite/src/extendrt/cxx_api/context.cc | 2 +- .../parameter_cache/load_host_cache_model.h | 2 +- .../extendrt/delegate/tensorrt/CMakeLists.txt | 2 +- .../tensorrt/op/normalize_tensorrt.cc | 1 + .../delegate/tensorrt/op/tensorrt_op.h | 2 +- .../delegate/tensorrt/tensorrt_delegate.cc | 4 +- .../delegate/tensorrt/tensorrt_subgraph.cc | 2 +- .../src/extendrt/kernel/cuda/cuda_kernel.h | 4 +- .../mindir_loader/abstract_base_model.h | 2 +- .../mindir_loader/mindir_model/inner_kernel.h | 2 +- .../mindir_model/mindir_model.cc | 4 +- .../mindir_loader/mindir_model/mindir_model.h | 2 +- .../mindir_model/mindir_model_convertor.h | 2 +- .../mindir_model/mindir_model_loader.cc | 2 +- .../extendrt/mock/lite_runtime/CMakeLists.txt | 98 ++++++------ .../extendrt/mock/lite_runtime/converters.h | 2 +- .../src/extendrt/session/lite_infer_session.h | 2 +- .../lite/src/{runtime => litert}/allocator.cc | 2 +- .../{runtime => litert}/c_api/context_c.cc | 2 +- .../src/{runtime => litert}/c_api/context_c.h | 0 .../src/{runtime => litert}/c_api/model_c.cc | 8 +- .../src/{runtime => litert}/c_api/tensor_c.cc | 4 +- .../lite/src/{runtime => litert}/cpu_info.cc | 2 +- .../lite/src/{runtime => litert}/cpu_info.h | 0 .../cxx_api/callback/callback_adapter.h | 0 .../cxx_api/callback/callback_impl.h | 0 .../cxx_api/callback/ckpt_saver.cc | 2 +- .../cxx_api/callback/loss_monitor.cc | 2 +- .../cxx_api/callback/lr_scheduler.cc | 2 +- .../cxx_api/callback/train_accuracy.cc | 2 +- .../src/{runtime => litert}/cxx_api/cell.cc | 0 .../{runtime => litert}/cxx_api/context.cc | 4 +- .../src/{runtime => litert}/cxx_api/context.h | 0 .../{runtime => litert}/cxx_api/converters.cc | 2 +- .../{runtime => litert}/cxx_api/converters.h | 4 +- .../cxx_api/expression/net.cc | 4 +- .../cxx_api/expression/net_impl.cc | 4 +- .../cxx_api/expression/net_impl.h | 4 +- .../cxx_api/expression/node_impl.cc | 2 +- .../cxx_api/expression/node_impl.h | 0 .../cxx_api/graph/graph.cc | 4 +- .../cxx_api/graph/graph_data.h | 2 +- .../cxx_api/graph/net_data.cc | 4 +- .../cxx_api/graph/net_data.h | 0 .../src/{runtime => litert}/cxx_api/kernel.cc | 0 .../cxx_api/kernel_executor/CMakeLists.txt | 0 .../kernel_executor/kernel_executor.cc | 4 +- .../cxx_api/kernel_executor/kernel_executor.h | 0 .../kernel_executor/kernel_executor_impl.cc | 8 +- .../kernel_executor/kernel_executor_impl.h | 4 +- .../cxx_api/metrics/accuracy.cc | 2 +- .../cxx_api/metrics/metrics_adapter.h | 0 .../cxx_api/metrics/metrics_impl.h | 0 .../cxx_api/model/model.cc | 8 +- .../cxx_api/model/model_impl.cc | 16 +- .../cxx_api/model/model_impl.h | 6 +- .../model_pool/model_parallel_runner.cc | 6 +- .../cxx_api/model_pool/model_pool.cc | 8 +- .../cxx_api/model_pool/model_pool.h | 6 +- .../cxx_api/model_pool/model_worker.cc | 4 +- .../cxx_api/model_pool/model_worker.h | 2 +- .../cxx_api/model_pool/predict_task_queue.cc | 2 +- .../cxx_api/model_pool/predict_task_queue.h | 2 +- .../cxx_api/model_pool/runner_config.h | 0 .../cxx_api/serialization.cc | 10 +- .../cxx_api/tensor/tensor_impl.cc | 4 +- .../cxx_api/tensor/tensor_impl.h | 0 .../cxx_api/tensor_utils.cc | 2 +- .../cxx_api/tensor_utils.h | 2 +- .../cxx_api/train/converters.cc | 2 +- .../cxx_api/train/model.cc | 4 +- .../cxx_api/train/model_build.cc | 2 +- .../cxx_api/train/model_build_impl.cc | 8 +- .../cxx_api/train/model_impl.cc | 14 +- .../cxx_api/train/train_support.cc | 24 +-- .../src/{runtime => litert}/cxx_api/types.cc | 2 +- .../delegate/auto_registration_factory.h | 0 .../delegate/coreml/CMakeLists.txt | 0 .../delegate/coreml/coreml_delegate.h | 4 +- .../delegate/coreml/coreml_delegate.mm | 46 +++--- .../delegate/coreml/coreml_executor.h | 0 .../delegate/coreml/coreml_executor.mm | 2 +- .../delegate/coreml/coreml_executor_wrapper.h | 0 .../coreml/coreml_executor_wrapper.mm | 4 +- .../delegate/coreml/coreml_graph.cc | 2 +- .../delegate/coreml/coreml_graph.h | 4 +- .../delegate/coreml/op/activation_coreml.cc | 2 +- .../delegate/coreml/op/activation_coreml.h | 2 +- .../delegate/coreml/op/arithmetic_coreml.cc | 2 +- .../delegate/coreml/op/arithmetic_coreml.h | 2 +- .../delegate/coreml/op/avg_pooling_coreml.cc | 2 +- .../delegate/coreml/op/avg_pooling_coreml.h | 2 +- .../delegate/coreml/op/concat_coreml.cc | 2 +- .../delegate/coreml/op/concat_coreml.h | 2 +- .../coreml/op/convolution_base_coreml.cc | 4 +- .../coreml/op/convolution_base_coreml.h | 2 +- .../delegate/coreml/op/convolution_coreml.cc | 4 +- .../delegate/coreml/op/convolution_coreml.h | 2 +- .../delegate/coreml/op/coreml_op.cc | 2 +- .../delegate/coreml/op/coreml_op.h | 0 .../coreml/op/deconvolution_coreml.cc | 4 +- .../delegate/coreml/op/deconvolution_coreml.h | 2 +- .../delegate/coreml/op/flatten_coreml.cc | 2 +- .../delegate/coreml/op/flatten_coreml.h | 2 +- .../delegate/coreml/op/gather_coreml.cc | 2 +- .../delegate/coreml/op/gather_coreml.h | 2 +- .../delegate/coreml/op/matmul_coreml.cc | 2 +- .../delegate/coreml/op/matmul_coreml.h | 2 +- .../delegate/coreml/op/max_pooling_coreml.cc | 2 +- .../delegate/coreml/op/max_pooling_coreml.h | 2 +- .../delegate/coreml/op/reshape_coreml.cc | 2 +- .../delegate/coreml/op/reshape_coreml.h | 2 +- .../delegate/coreml/op/resize_coreml.cc | 2 +- .../delegate/coreml/op/resize_coreml.h | 2 +- .../delegate/coreml/op/shape_coreml.cc | 2 +- .../delegate/coreml/op/shape_coreml.h | 2 +- .../delegate/coreml/op/softmax_coreml.cc | 2 +- .../delegate/coreml/op/softmax_coreml.h | 2 +- .../delegate/coreml/op/transpose_coreml.cc | 2 +- .../delegate/coreml/op/transpose_coreml.h | 2 +- .../delegate/coreml/op/unsqueeze_coreml.cc | 2 +- .../delegate/coreml/op/unsqueeze_coreml.h | 2 +- .../delegate/coreml/pass/coreml_base_pass.h | 2 +- .../coreml/pass/coreml_format_trans_pass.cc | 4 +- .../coreml/pass/coreml_format_trans_pass.h | 4 +- .../coreml/pass/coreml_fusion_pass.cc | 4 +- .../delegate/coreml/pass/coreml_fusion_pass.h | 4 +- .../coreml/pass/coreml_pass_manager.cc | 2 +- .../coreml/pass/coreml_pass_manager.h | 2 +- .../delegate/coreml/pass/coreml_pass_utils.cc | 4 +- .../delegate/coreml/pass/coreml_pass_utils.h | 4 +- .../coreml/pass/coreml_trans_extend_pass.cc | 4 +- .../coreml/pass/coreml_trans_extend_pass.h | 4 +- .../coreml/stub/coreml_delegate_stub.cc | 0 .../delegate/delegate_utils.cc | 2 +- .../delegate/delegate_utils.h | 0 .../delegate/npu/CMakeLists.txt | 0 .../delegate/npu/npu_converter_utils.cc | 4 +- .../delegate/npu/npu_converter_utils.h | 0 .../delegate/npu/npu_delegate.cc | 84 +++++------ .../delegate/npu/npu_delegate.h | 6 +- .../delegate/npu/npu_executor.cc | 4 +- .../delegate/npu/npu_executor.h | 4 +- .../delegate/npu/npu_graph.cc | 10 +- .../delegate/npu/npu_graph.h | 4 +- .../delegate/npu/npu_manager.cc | 2 +- .../delegate/npu/npu_manager.h | 0 .../delegate/npu/npu_subgraph.cc | 4 +- .../delegate/npu/npu_subgraph.h | 2 +- .../delegate/npu/op/abs_npu.cc | 4 +- .../delegate/npu/op/abs_npu.h | 2 +- .../delegate/npu/op/activation_npu.cc | 4 +- .../delegate/npu/op/activation_npu.h | 2 +- .../delegate/npu/op/argmax_npu.cc | 2 +- .../delegate/npu/op/argmax_npu.h | 2 +- .../delegate/npu/op/arithmetic_npu.cc | 4 +- .../delegate/npu/op/arithmetic_npu.h | 2 +- .../delegate/npu/op/arithmetic_self_npu.cc | 2 +- .../delegate/npu/op/arithmetic_self_npu.h | 2 +- .../delegate/npu/op/avg_pooling_npu.cc | 6 +- .../delegate/npu/op/avg_pooling_npu.h | 2 +- .../delegate/npu/op/batchnorm_npu.cc | 4 +- .../delegate/npu/op/batchnorm_npu.h | 2 +- .../delegate/npu/op/broadcast_to_npu.cc | 6 +- .../delegate/npu/op/broadcast_to_npu.h | 2 +- .../delegate/npu/op/cast_npu.cc | 4 +- .../delegate/npu/op/cast_npu.h | 2 +- .../delegate/npu/op/concat_npu.cc | 4 +- .../delegate/npu/op/concat_npu.h | 2 +- .../delegate/npu/op/convolution_base_npu.cc | 8 +- .../delegate/npu/op/convolution_base_npu.h | 2 +- .../npu/op/convolution_depthwise_int8_npu.cc | 4 +- .../npu/op/convolution_depthwise_int8_npu.h | 2 +- .../npu/op/convolution_depthwise_npu.cc | 4 +- .../npu/op/convolution_depthwise_npu.h | 2 +- .../delegate/npu/op/convolution_int8_npu.cc | 4 +- .../delegate/npu/op/convolution_int8_npu.h | 2 +- .../delegate/npu/op/convolution_npu.cc | 10 +- .../delegate/npu/op/convolution_npu.h | 2 +- .../delegate/npu/op/crop_and_resize_npu.cc | 2 +- .../delegate/npu/op/crop_and_resize_npu.h | 2 +- .../delegate/npu/op/deconvolution_npu.cc | 4 +- .../delegate/npu/op/deconvolution_npu.h | 2 +- .../delegate/npu/op/eltwise_npu.cc | 6 +- .../delegate/npu/op/eltwise_npu.h | 2 +- .../delegate/npu/op/expand_dims_npu.cc | 4 +- .../delegate/npu/op/expand_dims_npu.h | 2 +- .../delegate/npu/op/flatten_npu.cc | 6 +- .../delegate/npu/op/flatten_npu.h | 2 +- .../npu/op/fullconnection_int8_npu.cc | 4 +- .../delegate/npu/op/fullconnection_int8_npu.h | 2 +- .../delegate/npu/op/fullconnection_npu.cc | 6 +- .../delegate/npu/op/fullconnection_npu.h | 2 +- .../delegate/npu/op/gather_npu.cc | 4 +- .../delegate/npu/op/gather_npu.h | 2 +- .../delegate/npu/op/instance_norm_npu.cc | 4 +- .../delegate/npu/op/instance_norm_npu.h | 2 +- .../delegate/npu/op/matmul_npu.cc | 4 +- .../delegate/npu/op/matmul_npu.h | 2 +- .../delegate/npu/op/max_pooling_npu.cc | 4 +- .../delegate/npu/op/max_pooling_npu.h | 2 +- .../delegate/npu/op/npu_op.h | 0 .../delegate/npu/op/pad_npu.cc | 4 +- .../delegate/npu/op/pad_npu.h | 2 +- .../delegate/npu/op/reduce_npu.cc | 4 +- .../delegate/npu/op/reduce_npu.h | 2 +- .../delegate/npu/op/reshape_npu.cc | 4 +- .../delegate/npu/op/reshape_npu.h | 2 +- .../delegate/npu/op/resize_npu.cc | 6 +- .../delegate/npu/op/resize_npu.h | 2 +- .../delegate/npu/op/scale_npu.cc | 4 +- .../delegate/npu/op/scale_npu.h | 2 +- .../delegate/npu/op/slice_npu.cc | 4 +- .../delegate/npu/op/slice_npu.h | 2 +- .../delegate/npu/op/softmax_npu.cc | 4 +- .../delegate/npu/op/softmax_npu.h | 2 +- .../delegate/npu/op/split_npu.cc | 4 +- .../delegate/npu/op/split_npu.h | 2 +- .../delegate/npu/op/squeeze_npu.cc | 2 +- .../delegate/npu/op/squeeze_npu.h | 2 +- .../delegate/npu/op/strided_slice_npu.cc | 4 +- .../delegate/npu/op/strided_slice_npu.h | 2 +- .../delegate/npu/op/tile_npu.cc | 4 +- .../delegate/npu/op/tile_npu.h | 2 +- .../delegate/npu/op/transpose_npu.cc | 2 +- .../delegate/npu/op/transpose_npu.h | 2 +- .../delegate/npu/op/unsqueeze_npu.cc | 2 +- .../delegate/npu/op/unsqueeze_npu.h | 2 +- .../delegate/npu/pass/npu_base_pass.h | 2 +- .../delegate/npu/pass/npu_fusion_pass.cc | 6 +- .../delegate/npu/pass/npu_fusion_pass.h | 4 +- .../npu/pass/npu_insert_transform_pass.cc | 6 +- .../npu/pass/npu_insert_transform_pass.h | 4 +- .../delegate/npu/pass/npu_pass_manager.cc | 2 +- .../delegate/npu/pass/npu_pass_manager.h | 2 +- .../delegate/npu/pass/npu_pass_utils.cc | 8 +- .../delegate/npu/pass/npu_pass_utils.h | 4 +- .../delegate/npu/pass/npu_transform_pass.cc | 6 +- .../delegate/npu/pass/npu_transform_pass.h | 4 +- .../delegate/npu/transpose_kernel.cc | 8 +- .../delegate/npu/transpose_kernel.h | 0 .../parameter_cache/cache_algorithm.h | 0 .../delegate/parameter_cache/cache_mem_base.h | 0 .../parameter_cache/embedding_cache.cc | 8 +- .../parameter_cache/embedding_cache.h | 4 +- .../embedding_cache_manager.cc | 2 +- .../parameter_cache/embedding_cache_manager.h | 6 +- .../parameter_cache/factory_mgr_base.h | 0 .../parameter_cache/gpu/gpu_cache_mem.cc | 6 +- .../parameter_cache/gpu/gpu_cache_mem.h | 2 +- .../delegate/parameter_cache/lfu_cache.cc | 4 +- .../delegate/parameter_cache/lfu_cache.h | 2 +- .../parameter_cache/load_host_cache_model.cc | 2 +- .../parameter_cache/load_host_cache_model.h | 2 +- .../delegate/tensorrt/CMakeLists.txt | 2 +- .../delegate/tensorrt/cuda_impl/activation.cu | 4 +- .../tensorrt/cuda_impl/activation.cuh | 0 .../delegate/tensorrt/cuda_impl/cast.cu | 4 +- .../delegate/tensorrt/cuda_impl/cast.cuh | 0 .../tensorrt/cuda_impl/cublas_utils.cc | 2 +- .../tensorrt/cuda_impl/cublas_utils.h | 2 +- .../tensorrt/cuda_impl/cuda_helper.cc | 2 +- .../delegate/tensorrt/cuda_impl/cuda_helper.h | 0 .../tensorrt/cuda_impl/cudnn_utils.cc | 2 +- .../delegate/tensorrt/cuda_impl/cudnn_utils.h | 2 +- .../delegate/tensorrt/cuda_impl/equal.cu | 4 +- .../delegate/tensorrt/cuda_impl/equal.cuh | 0 .../delegate/tensorrt/cuda_impl/hash.cu | 4 +- .../delegate/tensorrt/cuda_impl/hash.cuh | 0 .../delegate/tensorrt/cuda_impl/logical.cu | 4 +- .../delegate/tensorrt/cuda_impl/logical.cuh | 0 .../delegate/tensorrt/cuda_impl/normalize.cu | 6 +- .../delegate/tensorrt/cuda_impl/normalize.cuh | 0 .../delegate/tensorrt/cuda_impl/utils.cuh | 0 .../distribution/distribution_base.cc | 2 +- .../tensorrt/distribution/distribution_base.h | 0 .../distribution/distribution_base_impl.cc | 4 +- .../distribution/distribution_collective.cc | 2 +- .../distribution/distribution_collective.h | 2 +- .../distribution_collective_impl.cc | 6 +- .../distribution/distribution_utils.cc | 2 +- .../distribution/distribution_utils.h | 0 .../tensorrt/op/activation_opt_plugin.cc | 6 +- .../tensorrt/op/activation_opt_plugin.h | 6 +- .../tensorrt/op/activation_tensorrt.cc | 6 +- .../tensorrt/op/activation_tensorrt.h | 2 +- .../tensorrt/op/allgather_tensorrt.cc | 2 +- .../delegate/tensorrt/op/allgather_tensorrt.h | 6 +- .../delegate/tensorrt/op/cast_plugin.cc | 4 +- .../delegate/tensorrt/op/cast_plugin.h | 2 +- .../delegate/tensorrt/op/cast_tensorrt.cc | 4 +- .../delegate/tensorrt/op/cast_tensorrt.h | 6 +- .../delegate/tensorrt/op/concate_tensorrt.cc | 2 +- .../delegate/tensorrt/op/concate_tensorrt.h | 2 +- .../tensorrt/op/convolution_tensorrt.cc | 4 +- .../tensorrt/op/convolution_tensorrt.h | 2 +- .../delegate/tensorrt/op/cumsum_tensorrt.cc | 4 +- .../delegate/tensorrt/op/cumsum_tensorrt.h | 4 +- .../tensorrt/op/deconvolution_tensorrt.cc | 4 +- .../tensorrt/op/deconvolution_tensorrt.h | 2 +- .../tensorrt/op/elementwise_tensorrt.cc | 6 +- .../tensorrt/op/elementwise_tensorrt.h | 2 +- .../delegate/tensorrt/op/equal_tensorrt.cc | 4 +- .../delegate/tensorrt/op/equal_tensorrt.h | 6 +- .../tensorrt/op/fullyconnected_tensorrt.cc | 6 +- .../tensorrt/op/fullyconnected_tensorrt.h | 2 +- .../delegate/tensorrt/op/gather_d_tensorrt.cc | 4 +- .../delegate/tensorrt/op/gather_d_tensorrt.h | 6 +- .../delegate/tensorrt/op/gather_tensorrt.cc | 4 +- .../delegate/tensorrt/op/gather_tensorrt.h | 2 +- .../tensorrt/op/logical_not_tensorrt.cc | 6 +- .../tensorrt/op/logical_not_tensorrt.h | 4 +- .../delegate/tensorrt/op/logical_tensorrt.cc | 6 +- .../delegate/tensorrt/op/logical_tensorrt.h | 4 +- .../delegate/tensorrt/op/lstm_tensorrt.cc | 4 +- .../delegate/tensorrt/op/lstm_tensorrt.h | 2 +- .../delegate/tensorrt/op/matmul_tensorrt.cc | 8 +- .../delegate/tensorrt/op/matmul_tensorrt.h | 2 +- .../tensorrt/op/normalize_opt_plugin.cc | 6 +- .../tensorrt/op/normalize_opt_plugin.h | 4 +- .../tensorrt/op/normalize_tensorrt.cc | 5 +- .../delegate/tensorrt/op/normalize_tensorrt.h | 2 +- .../delegate/tensorrt/op/pad_tensorrt.cc | 4 +- .../delegate/tensorrt/op/pad_tensorrt.h | 2 +- .../delegate/tensorrt/op/pool_tensorrt.cc | 6 +- .../delegate/tensorrt/op/pool_tensorrt.h | 2 +- .../delegate/tensorrt/op/prelu_tensorrt.cc | 4 +- .../delegate/tensorrt/op/prelu_tensorrt.h | 2 +- .../delegate/tensorrt/op/reduce_tensorrt.cc | 2 +- .../delegate/tensorrt/op/reduce_tensorrt.h | 2 +- .../tensorrt/op/reducescatter_tensorrt.cc | 2 +- .../tensorrt/op/reducescatter_tensorrt.h | 8 +- .../delegate/tensorrt/op/resize_tensorrt.cc | 2 +- .../delegate/tensorrt/op/resize_tensorrt.h | 2 +- .../delegate/tensorrt/op/scale_tensorrt.cc | 6 +- .../delegate/tensorrt/op/scale_tensorrt.h | 2 +- .../tensorrt/op/scatternd_tensorrt.cc | 4 +- .../delegate/tensorrt/op/scatternd_tensorrt.h | 2 +- .../delegate/tensorrt/op/shape_tensorrt.cc | 2 +- .../delegate/tensorrt/op/shape_tensorrt.h | 2 +- .../delegate/tensorrt/op/shuffle_tensorrt.cc | 2 +- .../delegate/tensorrt/op/shuffle_tensorrt.h | 4 +- .../delegate/tensorrt/op/slice_tensorrt.cc | 4 +- .../delegate/tensorrt/op/slice_tensorrt.h | 2 +- .../delegate/tensorrt/op/softmax_tensorrt.cc | 2 +- .../delegate/tensorrt/op/softmax_tensorrt.h | 2 +- .../delegate/tensorrt/op/split_tensorrt.cc | 4 +- .../delegate/tensorrt/op/split_tensorrt.h | 2 +- .../delegate/tensorrt/op/tensorrt_op.cc | 4 +- .../delegate/tensorrt/op/tensorrt_op.h | 6 +- .../delegate/tensorrt/op/tensorrt_plugin.cc | 2 +- .../delegate/tensorrt/op/tensorrt_plugin.h | 0 .../delegate/tensorrt/op/tile_tensorrt.cc | 4 +- .../delegate/tensorrt/op/tile_tensorrt.h | 4 +- .../delegate/tensorrt/op/topk_tensorrt.cc | 2 +- .../delegate/tensorrt/op/topk_tensorrt.h | 2 +- .../delegate/tensorrt/op/unary_tensorrt.cc | 2 +- .../delegate/tensorrt/op/unary_tensorrt.h | 2 +- .../delegate/tensorrt/tensorrt_allocator.cc | 6 +- .../delegate/tensorrt/tensorrt_allocator.h | 2 +- .../delegate/tensorrt/tensorrt_context.cc | 2 +- .../delegate/tensorrt/tensorrt_context.h | 2 +- .../delegate/tensorrt/tensorrt_delegate.cc | 6 +- .../delegate/tensorrt/tensorrt_delegate.h | 4 +- .../delegate/tensorrt/tensorrt_runtime.cc | 2 +- .../delegate/tensorrt/tensorrt_runtime.h | 2 +- .../delegate/tensorrt/tensorrt_serializer.cc | 4 +- .../delegate/tensorrt/tensorrt_serializer.h | 4 +- .../delegate/tensorrt/tensorrt_subgraph.cc | 4 +- .../delegate/tensorrt/tensorrt_subgraph.h | 10 +- .../delegate/tensorrt/tensorrt_utils.cc | 6 +- .../delegate/tensorrt/tensorrt_utils.h | 4 +- .../dynamic_mem_allocator.cc | 2 +- .../dynamic_mem_allocator.h | 2 +- .../dynamic_mem_manager.cc | 2 +- .../{runtime => litert}/dynamic_mem_manager.h | 2 +- .../lite/src/{runtime => litert}/executor.cc | 2 +- .../lite/src/{runtime => litert}/executor.h | 4 +- .../src/{runtime => litert}/huffman_decode.cc | 2 +- .../src/{runtime => litert}/huffman_decode.h | 0 .../src/{runtime => litert}/infer_manager.cc | 6 +- .../src/{runtime => litert}/infer_manager.h | 0 .../{runtime => litert}/inner_allocator.cc | 2 +- .../src/{runtime => litert}/inner_allocator.h | 0 .../src/{runtime => litert}/inner_context.cc | 6 +- .../src/{runtime => litert}/inner_context.h | 6 +- .../kernel/ascend/CMakeLists.txt | 0 .../kernel/ascend/src/acl_env_guard.cc | 2 +- .../kernel/ascend/src/acl_env_guard.h | 0 .../kernel/ascend/src/acl_model_options.h | 0 .../kernel/ascend/src/acl_options_parser.cc | 2 +- .../kernel/ascend/src/acl_options_parser.h | 2 +- .../kernel/ascend/src/custom_interface.cc | 2 +- .../kernel/ascend/src/custom_interface.h | 0 .../kernel/ascend/src/custom_kernel.cc | 6 +- .../kernel/ascend/src/custom_kernel.h | 4 +- .../kernel/ascend/src/model_infer.cc | 2 +- .../kernel/ascend/src/model_infer.h | 6 +- .../kernel/ascend/src/model_process.cc | 2 +- .../kernel/ascend/src/model_process.h | 2 +- .../kernel/cpu/CMakeLists.txt | 0 .../kernel/cpu/base/argminmax_base.cc | 4 +- .../kernel/cpu/base/argminmax_base.h | 2 +- .../kernel/cpu/base/arithmetic_base.cc | 2 +- .../kernel/cpu/base/arithmetic_base.h | 2 +- .../kernel/cpu/base/assert.cc | 4 +- .../kernel/cpu/base/assert.h | 2 +- .../kernel/cpu/base/call.cc | 4 +- .../kernel/cpu/base/call.h | 2 +- .../kernel/cpu/base/concat_base.cc | 4 +- .../kernel/cpu/base/concat_base.h | 2 +- .../kernel/cpu/base/constant_of_shape.cc | 4 +- .../kernel/cpu/base/constant_of_shape.h | 2 +- .../kernel/cpu/base/convolution_base.cc | 4 +- .../kernel/cpu/base/convolution_base.h | 8 +- .../kernel/cpu/base/crop_base.cc | 6 +- .../kernel/cpu/base/crop_base.h | 2 +- .../cpu/base/detection_post_process_base.cc | 4 +- .../cpu/base/detection_post_process_base.h | 2 +- .../kernel/cpu/base/format_transpose.cc | 4 +- .../kernel/cpu/base/format_transpose.h | 2 +- .../kernel/cpu/base/gather_base.cc | 2 +- .../kernel/cpu/base/gather_base.h | 2 +- .../kernel/cpu/base/group_convolution_base.cc | 4 +- .../kernel/cpu/base/group_convolution_base.h | 6 +- .../cpu/base/group_convolution_creator.cc | 2 +- .../cpu/base/group_convolution_creator.h | 4 +- .../kernel/cpu/base/layout_transform.cc | 2 +- .../kernel/cpu/base/layout_transform.h | 0 .../kernel/cpu/base/one_hot_base.cc | 4 +- .../kernel/cpu/base/one_hot_base.h | 2 +- .../kernel/cpu/base/partial_fusion.cc | 4 +- .../kernel/cpu/base/partial_fusion.h | 2 +- .../kernel/cpu/base/pooling_base.cc | 4 +- .../kernel/cpu/base/pooling_base.h | 2 +- .../kernel/cpu/base/prior_box.cc | 4 +- .../kernel/cpu/base/prior_box.h | 2 +- .../kernel/cpu/base/quant_dtype_cast.cc | 4 +- .../kernel/cpu/base/quant_dtype_cast.h | 2 +- .../kernel/cpu/base/random_normal.cc | 4 +- .../kernel/cpu/base/random_normal.h | 2 +- .../kernel/cpu/base/reduce_base.cc | 6 +- .../kernel/cpu/base/reduce_base.h | 2 +- .../kernel/cpu/base/reshape_base.cc | 4 +- .../kernel/cpu/base/reshape_base.h | 2 +- .../kernel/cpu/base/resize_base.cc | 4 +- .../kernel/cpu/base/resize_base.h | 2 +- .../kernel/cpu/base/scatter_nd_base.cc | 4 +- .../kernel/cpu/base/scatter_nd_base.h | 2 +- .../kernel/cpu/base/select.cc | 4 +- .../kernel/cpu/base/select.h | 2 +- .../kernel/cpu/base/slice_base.cc | 4 +- .../kernel/cpu/base/slice_base.h | 2 +- .../kernel/cpu/base/softmax_base.cc | 6 +- .../kernel/cpu/base/softmax_base.h | 2 +- .../kernel/cpu/base/split_base.cc | 4 +- .../kernel/cpu/base/split_base.h | 2 +- .../cpu/base/split_with_over_lap_base.cc | 4 +- .../cpu/base/split_with_over_lap_base.h | 2 +- .../kernel/cpu/base/stack_base.cc | 4 +- .../kernel/cpu/base/stack_base.h | 2 +- .../kernel/cpu/base/strided_slice.cc | 4 +- .../kernel/cpu/base/strided_slice.h | 2 +- .../kernel/cpu/base/tile_base.cc | 4 +- .../kernel/cpu/base/tile_base.h | 2 +- .../kernel/cpu/base/transpose_base.cc | 2 +- .../kernel/cpu/base/transpose_base.h | 2 +- .../kernel/cpu/control/switch.cc | 4 +- .../kernel/cpu/control/switch.h | 2 +- .../kernel/cpu/control/switch_layer.cc | 4 +- .../kernel/cpu/control/switch_layer.h | 2 +- .../kernel/cpu/control/tensor_array.cc | 6 +- .../kernel/cpu/control/tensor_array.h | 2 +- .../cpu/control/tensorlist_fromtensor.cc | 4 +- .../cpu/control/tensorlist_fromtensor.h | 2 +- .../kernel/cpu/control/tensorlist_getitem.cc | 4 +- .../kernel/cpu/control/tensorlist_getitem.h | 2 +- .../kernel/cpu/control/tensorlist_reserve.cc | 4 +- .../kernel/cpu/control/tensorlist_reserve.h | 2 +- .../kernel/cpu/control/tensorlist_setitem.cc | 4 +- .../kernel/cpu/control/tensorlist_setitem.h | 2 +- .../kernel/cpu/control/tensorlist_stack.cc | 4 +- .../kernel/cpu/control/tensorlist_stack.h | 2 +- .../kernel/cpu/cpu_kernel.cc | 2 +- .../kernel/cpu/cpu_kernel.h | 4 +- .../kernel/cpu/fp16/activation_fp16.cc | 6 +- .../kernel/cpu/fp16/activation_fp16.h | 2 +- .../kernel/cpu/fp16/addn_fp16.cc | 4 +- .../kernel/cpu/fp16/addn_fp16.h | 2 +- .../cpu/fp16/arithmetic_compare_fp16.cc | 6 +- .../kernel/cpu/fp16/arithmetic_compare_fp16.h | 2 +- .../kernel/cpu/fp16/arithmetic_fp16.cc | 6 +- .../kernel/cpu/fp16/arithmetic_fp16.h | 2 +- .../kernel/cpu/fp16/arithmetic_self_fp16.cc | 6 +- .../kernel/cpu/fp16/arithmetic_self_fp16.h | 2 +- .../kernel/cpu/fp16/batchnorm_fp16.cc | 6 +- .../kernel/cpu/fp16/batchnorm_fp16.h | 2 +- .../kernel/cpu/fp16/biasadd_fp16.cc | 4 +- .../kernel/cpu/fp16/biasadd_fp16.h | 2 +- .../kernel/cpu/fp16/cast_fp16.cc | 4 +- .../kernel/cpu/fp16/cast_fp16.h | 2 +- .../kernel/cpu/fp16/common_fp16.cc | 2 +- .../kernel/cpu/fp16/common_fp16.h | 2 +- .../kernel/cpu/fp16/concat_fp16.cc | 4 +- .../kernel/cpu/fp16/concat_fp16.h | 2 +- .../kernel/cpu/fp16/convolution_1x1_fp16.cc | 4 +- .../kernel/cpu/fp16/convolution_1x1_fp16.h | 4 +- .../cpu/fp16/convolution_delegate_fp16.cc | 20 +-- .../cpu/fp16/convolution_delegate_fp16.h | 2 +- .../fp16/convolution_depthwise_3x3_fp16.cc | 2 +- .../cpu/fp16/convolution_depthwise_3x3_fp16.h | 4 +- .../cpu/fp16/convolution_depthwise_fp16.cc | 2 +- .../cpu/fp16/convolution_depthwise_fp16.h | 4 +- .../convolution_depthwise_slidewindow_fp16.cc | 2 +- .../convolution_depthwise_slidewindow_fp16.h | 4 +- .../kernel/cpu/fp16/convolution_fp16.cc | 2 +- .../kernel/cpu/fp16/convolution_fp16.h | 4 +- .../cpu/fp16/convolution_winograd_fp16.cc | 2 +- .../cpu/fp16/convolution_winograd_fp16.h | 4 +- .../kernel/cpu/fp16/crop_fp16.cc | 4 +- .../kernel/cpu/fp16/crop_fp16.h | 6 +- .../cpu/fp16/deconvolution_depthwise_fp16.cc | 2 +- .../cpu/fp16/deconvolution_depthwise_fp16.h | 4 +- .../kernel/cpu/fp16/deconvolution_fp16.cc | 6 +- .../kernel/cpu/fp16/deconvolution_fp16.h | 4 +- .../cpu/fp16/deconvolution_winograd_fp16.cc | 2 +- .../cpu/fp16/deconvolution_winograd_fp16.h | 2 +- .../kernel/cpu/fp16/depth_to_space_fp16.cc | 4 +- .../kernel/cpu/fp16/depth_to_space_fp16.h | 2 +- .../kernel/cpu/fp16/fill_fp16.cc | 4 +- .../kernel/cpu/fp16/fill_fp16.h | 2 +- .../kernel/cpu/fp16/fp16_op_handler.h | 0 .../kernel/cpu/fp16/fullconnection_fp16.cc | 4 +- .../kernel/cpu/fp16/fullconnection_fp16.h | 2 +- .../kernel/cpu/fp16/fused_batchnorm_fp16.cc | 4 +- .../kernel/cpu/fp16/fused_batchnorm_fp16.h | 2 +- .../kernel/cpu/fp16/gather_fp16.cc | 6 +- .../kernel/cpu/fp16/gather_fp16.h | 2 +- .../kernel/cpu/fp16/group_convolution_fp16.cc | 4 +- .../kernel/cpu/fp16/group_convolution_fp16.h | 4 +- .../kernel/cpu/fp16/gru_fp16.cc | 4 +- .../kernel/cpu/fp16/gru_fp16.h | 2 +- .../kernel/cpu/fp16/instance_norm_fp16.cc | 4 +- .../kernel/cpu/fp16/instance_norm_fp16.h | 2 +- .../kernel/cpu/fp16/layer_norm_fp16.cc | 4 +- .../kernel/cpu/fp16/layer_norm_fp16.h | 2 +- .../kernel/cpu/fp16/layout_transform_fp16.cc | 2 +- .../kernel/cpu/fp16/layout_transform_fp16.h | 2 +- .../kernel/cpu/fp16/log_softmax_fp16.cc | 6 +- .../kernel/cpu/fp16/log_softmax_fp16.h | 4 +- .../kernel/cpu/fp16/lstm_fp16.cc | 4 +- .../kernel/cpu/fp16/lstm_fp16.h | 2 +- .../kernel/cpu/fp16/matmul_base_fp16.cc | 2 +- .../kernel/cpu/fp16/matmul_base_fp16.h | 2 +- .../kernel/cpu/fp16/matmul_fp16.cc | 4 +- .../kernel/cpu/fp16/matmul_fp16.h | 2 +- .../kernel/cpu/fp16/pad_fp16.cc | 6 +- .../kernel/cpu/fp16/pad_fp16.h | 2 +- .../kernel/cpu/fp16/pooling_fp16.cc | 6 +- .../kernel/cpu/fp16/pooling_fp16.h | 4 +- .../kernel/cpu/fp16/power_fp16.cc | 4 +- .../kernel/cpu/fp16/power_fp16.h | 2 +- .../kernel/cpu/fp16/prelu_fp16.cc | 4 +- .../kernel/cpu/fp16/prelu_fp16.h | 2 +- .../kernel/cpu/fp16/quant_dtype_cast_fp16.cc | 4 +- .../kernel/cpu/fp16/quant_dtype_cast_fp16.h | 2 +- .../kernel/cpu/fp16/ragged_range_fp16.cc | 4 +- .../kernel/cpu/fp16/ragged_range_fp16.h | 2 +- .../kernel/cpu/fp16/reduce_fp16.cc | 6 +- .../kernel/cpu/fp16/reduce_fp16.h | 2 +- .../kernel/cpu/fp16/resize_fp16.cc | 4 +- .../kernel/cpu/fp16/resize_fp16.h | 2 +- .../kernel/cpu/fp16/scale_fp16.cc | 6 +- .../kernel/cpu/fp16/scale_fp16.h | 4 +- .../kernel/cpu/fp16/slice_fp16.cc | 4 +- .../kernel/cpu/fp16/slice_fp16.h | 4 +- .../kernel/cpu/fp16/softmax_fp16.cc | 6 +- .../kernel/cpu/fp16/softmax_fp16.h | 4 +- .../kernel/cpu/fp16/stack_fp16.cc | 6 +- .../kernel/cpu/fp16/stack_fp16.h | 4 +- .../kernel/cpu/fp16/transpose_fp16.cc | 4 +- .../kernel/cpu/fp16/transpose_fp16.h | 2 +- .../kernel/cpu/fp16/where_fp16.cc | 4 +- .../kernel/cpu/fp16/where_fp16.h | 2 +- .../cpu/fp16_grad/activation_fp16_grad.cc | 4 +- .../cpu/fp16_grad/activation_fp16_grad.h | 2 +- .../cpu/fp16_grad/arithmetic_fp16_grad.cc | 4 +- .../cpu/fp16_grad/arithmetic_fp16_grad.h | 2 +- .../fp16_grad/arithmetic_fp16_self_grad.cc | 4 +- .../cpu/fp16_grad/arithmetic_fp16_self_grad.h | 2 +- .../kernel/cpu/fp16_grad/bias_fp16_grad.cc | 4 +- .../kernel/cpu/fp16_grad/bias_fp16_grad.h | 2 +- .../kernel/cpu/fp16_grad/bn_fp16_grad.cc | 4 +- .../kernel/cpu/fp16_grad/bn_fp16_grad.h | 2 +- .../fp16_grad/convolution_fp16_grad_filter.cc | 4 +- .../fp16_grad/convolution_fp16_grad_filter.h | 2 +- .../fp16_grad/convolution_fp16_grad_input.cc | 4 +- .../fp16_grad/convolution_fp16_grad_input.h | 2 +- .../kernel/cpu/fp16_grad/dropout_fp16_grad.cc | 4 +- .../kernel/cpu/fp16_grad/dropout_fp16_grad.h | 2 +- .../cpu/fp16_grad/layernorm_fp16_grad.cc | 4 +- .../cpu/fp16_grad/layernorm_fp16_grad.h | 2 +- .../kernel/cpu/fp16_grad/neg_fp16_grad.cc | 4 +- .../kernel/cpu/fp16_grad/neg_fp16_grad.h | 2 +- .../kernel/cpu/fp16_grad/pooling_fp16_grad.cc | 4 +- .../kernel/cpu/fp16_grad/pooling_fp16_grad.h | 2 +- .../kernel/cpu/fp16_grad/resize_fp16_grad.cc | 4 +- .../kernel/cpu/fp16_grad/resize_fp16_grad.h | 2 +- .../cpu/fp16_grad/strided_slice_fp16_grad.cc | 4 +- .../cpu/fp16_grad/strided_slice_fp16_grad.h | 2 +- .../fp16_grad/unsorted_segment_sum_fp16.cc | 4 +- .../cpu/fp16_grad/unsorted_segment_sum_fp16.h | 2 +- .../kernel/cpu/fp32/activation_fp32.cc | 4 +- .../kernel/cpu/fp32/activation_fp32.h | 2 +- .../kernel/cpu/fp32/adder_fp32.cc | 4 +- .../kernel/cpu/fp32/adder_fp32.h | 4 +- .../kernel/cpu/fp32/addn_fp32.cc | 4 +- .../kernel/cpu/fp32/addn_fp32.h | 2 +- .../kernel/cpu/fp32/affine_fp32.cc | 6 +- .../kernel/cpu/fp32/affine_fp32.h | 2 +- .../kernel/cpu/fp32/all_gather_fp32.cc | 4 +- .../kernel/cpu/fp32/all_gather_fp32.h | 2 +- .../cpu/fp32/arithmetic_compare_fp32.cc | 4 +- .../kernel/cpu/fp32/arithmetic_compare_fp32.h | 2 +- .../kernel/cpu/fp32/arithmetic_fp32.cc | 4 +- .../kernel/cpu/fp32/arithmetic_fp32.h | 2 +- .../kernel/cpu/fp32/arithmetic_self_fp32.cc | 4 +- .../kernel/cpu/fp32/arithmetic_self_fp32.h | 2 +- .../kernel/cpu/fp32/batch_to_space_fp32.cc | 4 +- .../kernel/cpu/fp32/batch_to_space_fp32.h | 2 +- .../kernel/cpu/fp32/batchnorm_fp32.cc | 4 +- .../kernel/cpu/fp32/batchnorm_fp32.h | 2 +- .../kernel/cpu/fp32/bias_fp32.cc | 4 +- .../kernel/cpu/fp32/bias_fp32.h | 2 +- .../kernel/cpu/fp32/broadcast_to_fp32.cc | 4 +- .../kernel/cpu/fp32/broadcast_to_fp32.h | 2 +- .../kernel/cpu/fp32/cast_for_x86_fp16.cc | 4 +- .../kernel/cpu/fp32/cast_fp32.cc | 4 +- .../kernel/cpu/fp32/cast_fp32.h | 2 +- .../kernel/cpu/fp32/convolution_1x1_fp32.cc | 4 +- .../kernel/cpu/fp32/convolution_1x1_fp32.h | 6 +- .../cpu/fp32/convolution_delegate_fp32.cc | 26 ++-- .../cpu/fp32/convolution_delegate_fp32.h | 2 +- .../fp32/convolution_depthwise_3x3_fp32.cc | 2 +- .../cpu/fp32/convolution_depthwise_3x3_fp32.h | 4 +- .../cpu/fp32/convolution_depthwise_fp32.cc | 4 +- .../cpu/fp32/convolution_depthwise_fp32.h | 4 +- .../convolution_depthwise_indirect_fp32.cc | 4 +- .../convolution_depthwise_indirect_fp32.h | 4 +- .../convolution_depthwise_slidewindow_fp32.cc | 4 +- .../convolution_depthwise_slidewindow_fp32.h | 4 +- ...volution_depthwise_slidewindow_x86_fp32.cc | 2 +- ...nvolution_depthwise_slidewindow_x86_fp32.h | 4 +- .../kernel/cpu/fp32/convolution_fp32.cc | 6 +- .../kernel/cpu/fp32/convolution_fp32.h | 4 +- .../cpu/fp32/convolution_slidewindow_fp32.cc | 4 +- .../cpu/fp32/convolution_slidewindow_fp32.h | 4 +- .../cpu/fp32/convolution_winograd_fp32.cc | 2 +- .../cpu/fp32/convolution_winograd_fp32.h | 4 +- .../kernel/cpu/fp32/crop_and_resize_fp32.cc | 4 +- .../kernel/cpu/fp32/crop_and_resize_fp32.h | 2 +- .../kernel/cpu/fp32/crop_fp32.cc | 4 +- .../kernel/cpu/fp32/crop_fp32.h | 6 +- .../kernel/cpu/fp32/cumsum_fp32.cc | 4 +- .../kernel/cpu/fp32/cumsum_fp32.h | 2 +- .../cpu/fp32/deconvolution_depthwise_fp32.cc | 2 +- .../cpu/fp32/deconvolution_depthwise_fp32.h | 4 +- .../kernel/cpu/fp32/deconvolution_fp32.cc | 6 +- .../kernel/cpu/fp32/deconvolution_fp32.h | 6 +- .../cpu/fp32/deconvolution_winograd_fp32.cc | 2 +- .../cpu/fp32/deconvolution_winograd_fp32.h | 6 +- .../kernel/cpu/fp32/depth_to_space_fp32.cc | 4 +- .../kernel/cpu/fp32/depth_to_space_fp32.h | 2 +- .../cpu/fp32/detection_post_process_fp32.cc | 4 +- .../cpu/fp32/detection_post_process_fp32.h | 4 +- .../kernel/cpu/fp32/embedding_lookup_fp32.cc | 4 +- .../kernel/cpu/fp32/embedding_lookup_fp32.h | 2 +- .../kernel/cpu/fp32/fill_fp32.cc | 4 +- .../kernel/cpu/fp32/fill_fp32.h | 2 +- .../kernel/cpu/fp32/fullconnection_fp32.cc | 4 +- .../kernel/cpu/fp32/fullconnection_fp32.h | 12 +- .../kernel/cpu/fp32/fused_batchnorm_fp32.cc | 4 +- .../kernel/cpu/fp32/fused_batchnorm_fp32.h | 2 +- .../kernel/cpu/fp32/gatherNd_fp32.cc | 4 +- .../kernel/cpu/fp32/gatherNd_fp32.h | 2 +- .../kernel/cpu/fp32/gather_d_fp32.cc | 4 +- .../kernel/cpu/fp32/gather_d_fp32.h | 2 +- .../kernel/cpu/fp32/gather_fp32.cc | 4 +- .../kernel/cpu/fp32/gather_fp32.h | 2 +- .../kernel/cpu/fp32/glu_fp32.cc | 6 +- .../kernel/cpu/fp32/glu_fp32.h | 2 +- .../kernel/cpu/fp32/group_convolution_fp32.cc | 4 +- .../kernel/cpu/fp32/group_convolution_fp32.h | 4 +- .../kernel/cpu/fp32/groupnorm_fp32.cc | 4 +- .../kernel/cpu/fp32/groupnorm_fp32.h | 2 +- .../kernel/cpu/fp32/gru_fp32.cc | 4 +- .../kernel/cpu/fp32/gru_fp32.h | 2 +- .../kernel/cpu/fp32/instance_norm_fp32.cc | 4 +- .../kernel/cpu/fp32/instance_norm_fp32.h | 2 +- .../cpu/fp32/invert_permutation_fp32.cc | 4 +- .../kernel/cpu/fp32/invert_permutation_fp32.h | 2 +- .../kernel/cpu/fp32/l2_norm_fp32.cc | 2 +- .../kernel/cpu/fp32/l2_norm_fp32.h | 4 +- .../kernel/cpu/fp32/layer_norm_fp32.cc | 4 +- .../kernel/cpu/fp32/layer_norm_fp32.h | 2 +- .../cpu/fp32/local_response_norm_fp32.cc | 4 +- .../cpu/fp32/local_response_norm_fp32.h | 2 +- .../kernel/cpu/fp32/log_softmax_fp32.cc | 4 +- .../kernel/cpu/fp32/log_softmax_fp32.h | 4 +- .../kernel/cpu/fp32/lstm_fp32.cc | 4 +- .../kernel/cpu/fp32/lstm_fp32.h | 2 +- .../kernel/cpu/fp32/matmul_fp32.cc | 4 +- .../kernel/cpu/fp32/matmul_fp32.h | 12 +- .../kernel/cpu/fp32/matmul_fp32_arm32.cc | 4 +- .../kernel/cpu/fp32/matmul_fp32_arm32.h | 2 +- .../kernel/cpu/fp32/matmul_fp32_arm64.cc | 4 +- .../kernel/cpu/fp32/matmul_fp32_arm64.h | 2 +- .../kernel/cpu/fp32/matmul_fp32_avx.cc | 4 +- .../kernel/cpu/fp32/matmul_fp32_avx.h | 2 +- .../kernel/cpu/fp32/matmul_fp32_avx512.cc | 4 +- .../kernel/cpu/fp32/matmul_fp32_avx512.h | 2 +- .../kernel/cpu/fp32/matmul_fp32_base.cc | 2 +- .../kernel/cpu/fp32/matmul_fp32_base.h | 4 +- .../kernel/cpu/fp32/matmul_fp32_sse.cc | 4 +- .../kernel/cpu/fp32/matmul_fp32_sse.h | 2 +- .../kernel/cpu/fp32/nllloss_fp32.cc | 4 +- .../kernel/cpu/fp32/nllloss_fp32.h | 2 +- .../cpu/fp32/non_max_suppression_fp32.cc | 4 +- .../cpu/fp32/non_max_suppression_fp32.h | 2 +- .../kernel/cpu/fp32/nonzero_fp32.cc | 4 +- .../kernel/cpu/fp32/nonzero_fp32.h | 2 +- .../kernel/cpu/fp32/pad_fp32.cc | 4 +- .../kernel/cpu/fp32/pad_fp32.h | 4 +- .../kernel/cpu/fp32/pooling_fp32.cc | 4 +- .../kernel/cpu/fp32/pooling_fp32.h | 4 +- .../kernel/cpu/fp32/power_fp32.cc | 4 +- .../kernel/cpu/fp32/power_fp32.h | 2 +- .../kernel/cpu/fp32/prelu_fp32.cc | 4 +- .../kernel/cpu/fp32/prelu_fp32.h | 2 +- .../kernel/cpu/fp32/ragged_range_fp32.cc | 4 +- .../kernel/cpu/fp32/ragged_range_fp32.h | 2 +- .../kernel/cpu/fp32/range_fp32.cc | 4 +- .../kernel/cpu/fp32/range_fp32.h | 2 +- .../kernel/cpu/fp32/rank_fp32.cc | 4 +- .../kernel/cpu/fp32/rank_fp32.h | 2 +- .../kernel/cpu/fp32/reduce_fp32.cc | 6 +- .../kernel/cpu/fp32/reduce_fp32.h | 4 +- .../kernel/cpu/fp32/reduce_scatter_fp32.cc | 4 +- .../kernel/cpu/fp32/reduce_scatter_fp32.h | 2 +- .../fp32/relative_position_attention_fp32.cc | 4 +- .../fp32/relative_position_attention_fp32.h | 2 +- .../kernel/cpu/fp32/resize_fp32.cc | 4 +- .../kernel/cpu/fp32/resize_fp32.h | 4 +- .../kernel/cpu/fp32/reverse_fp32.cc | 4 +- .../kernel/cpu/fp32/reverse_fp32.h | 2 +- .../kernel/cpu/fp32/reverse_sequence_fp32.cc | 4 +- .../kernel/cpu/fp32/reverse_sequence_fp32.h | 2 +- .../kernel/cpu/fp32/roi_pooling_fp32.cc | 4 +- .../kernel/cpu/fp32/roi_pooling_fp32.h | 2 +- .../kernel/cpu/fp32/scale_fp32.cc | 4 +- .../kernel/cpu/fp32/scale_fp32.h | 2 +- .../kernel/cpu/fp32/scatter_nd_update_fp32.cc | 4 +- .../kernel/cpu/fp32/scatter_nd_update_fp32.h | 2 +- .../kernel/cpu/fp32/shape_fp32.cc | 4 +- .../kernel/cpu/fp32/shape_fp32.h | 2 +- .../kernel/cpu/fp32/shape_fusion_fp32.cc | 6 +- .../kernel/cpu/fp32/shape_fusion_fp32.h | 2 +- .../kernel/cpu/fp32/size_fp32.cc | 4 +- .../kernel/cpu/fp32/size_fp32.h | 2 +- .../kernel/cpu/fp32/softmax_fp32.cc | 4 +- .../kernel/cpu/fp32/softmax_fp32.h | 4 +- .../kernel/cpu/fp32/space_to_batch_fp32.cc | 4 +- .../kernel/cpu/fp32/space_to_batch_fp32.h | 2 +- .../kernel/cpu/fp32/space_to_depth_fp32.cc | 4 +- .../kernel/cpu/fp32/space_to_depth_fp32.h | 2 +- .../kernel/cpu/fp32/sparse_to_dense_fp32.cc | 4 +- .../kernel/cpu/fp32/sparse_to_dense_fp32.h | 4 +- .../kernel/cpu/fp32/splice_fp32.cc | 4 +- .../kernel/cpu/fp32/splice_fp32.h | 2 +- .../kernel/cpu/fp32/topk_fp32.cc | 4 +- .../kernel/cpu/fp32/topk_fp32.h | 2 +- .../kernel/cpu/fp32/transpose_fp32.cc | 4 +- .../kernel/cpu/fp32/transpose_fp32.h | 2 +- .../kernel/cpu/fp32/transpose_server_fp32.cc | 4 +- .../kernel/cpu/fp32/transpose_server_fp32.h | 2 +- .../kernel/cpu/fp32/uniform_real_fp32.cc | 4 +- .../kernel/cpu/fp32/uniform_real_fp32.h | 2 +- .../kernel/cpu/fp32/unique_fp32.cc | 4 +- .../kernel/cpu/fp32/unique_fp32.h | 2 +- .../kernel/cpu/fp32/unstack_fp32.cc | 4 +- .../kernel/cpu/fp32/unstack_fp32.h | 2 +- .../kernel/cpu/fp32/where_fp32.cc | 4 +- .../kernel/cpu/fp32/where_fp32.h | 4 +- .../kernel/cpu/fp32/zeroslike_fp32.cc | 4 +- .../kernel/cpu/fp32/zeroslike_fp32.h | 2 +- .../kernel/cpu/fp32_grad/activation_grad.cc | 4 +- .../kernel/cpu/fp32_grad/activation_grad.h | 2 +- .../kernel/cpu/fp32_grad/adam.cc | 4 +- .../kernel/cpu/fp32_grad/adam.h | 0 .../kernel/cpu/fp32_grad/apply_momentum.cc | 4 +- .../kernel/cpu/fp32_grad/apply_momentum.h | 0 .../kernel/cpu/fp32_grad/arithmetic_grad.cc | 4 +- .../kernel/cpu/fp32_grad/arithmetic_grad.h | 2 +- .../cpu/fp32_grad/arithmetic_self_grad.cc | 4 +- .../cpu/fp32_grad/arithmetic_self_grad.h | 2 +- .../kernel/cpu/fp32_grad/assign.cc | 4 +- .../kernel/cpu/fp32_grad/assign.h | 2 +- .../kernel/cpu/fp32_grad/bias_grad.cc | 4 +- .../kernel/cpu/fp32_grad/bias_grad.h | 2 +- .../kernel/cpu/fp32_grad/bn_grad.cc | 4 +- .../kernel/cpu/fp32_grad/bn_grad.h | 2 +- .../kernel/cpu/fp32_grad/convolution.cc | 2 +- .../kernel/cpu/fp32_grad/convolution.h | 2 +- .../cpu/fp32_grad/convolution_grad_filter.cc | 4 +- .../cpu/fp32_grad/convolution_grad_filter.h | 2 +- .../cpu/fp32_grad/convolution_grad_input.cc | 4 +- .../cpu/fp32_grad/convolution_grad_input.h | 2 +- .../fp32_grad/deconvolution_grad_filter.cc | 4 +- .../cpu/fp32_grad/deconvolution_grad_filter.h | 2 +- .../kernel/cpu/fp32_grad/dropout.cc | 4 +- .../kernel/cpu/fp32_grad/dropout.h | 2 +- .../kernel/cpu/fp32_grad/dropout_grad.cc | 4 +- .../kernel/cpu/fp32_grad/dropout_grad.h | 2 +- .../kernel/cpu/fp32_grad/layernorm_grad.cc | 4 +- .../kernel/cpu/fp32_grad/layernorm_grad.h | 2 +- .../cpu/fp32_grad/lstm_grad_data_fp32.cc | 4 +- .../cpu/fp32_grad/lstm_grad_data_fp32.h | 2 +- .../kernel/cpu/fp32_grad/lstm_grad_fp32.cc | 4 +- .../kernel/cpu/fp32_grad/lstm_grad_fp32.h | 2 +- .../cpu/fp32_grad/lstm_grad_weight_fp32.cc | 4 +- .../cpu/fp32_grad/lstm_grad_weight_fp32.h | 2 +- .../kernel/cpu/fp32_grad/make_tuple.h | 4 +- .../kernel/cpu/fp32_grad/neg_grad.cc | 4 +- .../kernel/cpu/fp32_grad/neg_grad.h | 2 +- .../kernel/cpu/fp32_grad/nllloss_grad.cc | 4 +- .../kernel/cpu/fp32_grad/nllloss_grad.h | 2 +- .../kernel/cpu/fp32_grad/pooling_grad.cc | 4 +- .../kernel/cpu/fp32_grad/pooling_grad.h | 2 +- .../kernel/cpu/fp32_grad/power_grad.cc | 4 +- .../kernel/cpu/fp32_grad/power_grad.h | 2 +- .../kernel/cpu/fp32_grad/resize_grad.cc | 4 +- .../kernel/cpu/fp32_grad/resize_grad.h | 2 +- .../kernel/cpu/fp32_grad/sgd.cc | 4 +- .../kernel/cpu/fp32_grad/sgd.h | 0 .../sigmoid_cross_entropy_with_logits.cc | 4 +- .../sigmoid_cross_entropy_with_logits.h | 2 +- .../sigmoid_cross_entropy_with_logits_grad.cc | 4 +- .../sigmoid_cross_entropy_with_logits_grad.h | 2 +- .../kernel/cpu/fp32_grad/smooth_l1_loss.cc | 4 +- .../kernel/cpu/fp32_grad/smooth_l1_loss.h | 2 +- .../cpu/fp32_grad/smooth_l1_loss_grad.cc | 4 +- .../cpu/fp32_grad/smooth_l1_loss_grad.h | 2 +- .../softmax_cross_entropy_with_logits.cc | 4 +- .../softmax_cross_entropy_with_logits.h | 0 .../kernel/cpu/fp32_grad/softmax_grad.cc | 4 +- .../kernel/cpu/fp32_grad/softmax_grad.h | 2 +- ...parse_softmax_cross_entropy_with_logits.cc | 4 +- ...sparse_softmax_cross_entropy_with_logits.h | 0 .../cpu/fp32_grad/strided_slice_grad.cc | 4 +- .../kernel/cpu/fp32_grad/strided_slice_grad.h | 2 +- .../cpu/fp32_grad/unsorted_segment_sum.cc | 4 +- .../cpu/fp32_grad/unsorted_segment_sum.h | 2 +- .../cpu/fp32_sparse/matmul_sparse_fp32.cc | 4 +- .../cpu/fp32_sparse/matmul_sparse_fp32.h | 2 +- .../kernel/cpu/int8/activation_int8.cc | 12 +- .../kernel/cpu/int8/add_int8.cc | 4 +- .../kernel/cpu/int8/add_int8.h | 2 +- .../kernel/cpu/int8/argminmax_int8.cc | 4 +- .../kernel/cpu/int8/argminmax_int8.h | 2 +- .../kernel/cpu/int8/arithmetic_int8.cc | 8 +- .../kernel/cpu/int8/arithmetic_int8.h | 2 +- .../kernel/cpu/int8/arithmetic_self_int8.cc | 4 +- .../kernel/cpu/int8/arithmetic_self_int8.h | 2 +- .../kernel/cpu/int8/batch_to_space_int8.cc | 4 +- .../kernel/cpu/int8/batch_to_space_int8.h | 2 +- .../kernel/cpu/int8/batchnorm_int8.cc | 4 +- .../kernel/cpu/int8/batchnorm_int8.h | 2 +- .../kernel/cpu/int8/concat_int8.cc | 4 +- .../kernel/cpu/int8/concat_int8.h | 2 +- .../kernel/cpu/int8/convolution_1x1_int8.cc | 4 +- .../kernel/cpu/int8/convolution_1x1_int8.h | 4 +- .../kernel/cpu/int8/convolution_3x3_int8.cc | 2 +- .../kernel/cpu/int8/convolution_3x3_int8.h | 4 +- .../int8/convolution_depthwise_3x3_int8.cc | 2 +- .../cpu/int8/convolution_depthwise_3x3_int8.h | 4 +- .../cpu/int8/convolution_depthwise_int8.cc | 2 +- .../cpu/int8/convolution_depthwise_int8.h | 4 +- .../convolution_depthwise_slidewindow_int8.cc | 2 +- .../convolution_depthwise_slidewindow_int8.h | 4 +- .../kernel/cpu/int8/convolution_int8.cc | 6 +- .../kernel/cpu/int8/convolution_int8.h | 4 +- .../cpu/int8/convolution_int8_creator.cc | 20 +-- .../cpu/int8/convolution_int8_creator.h | 2 +- .../kernel/cpu/int8/crop_int8.cc | 4 +- .../kernel/cpu/int8/crop_int8.h | 4 +- .../cpu/int8/deconvolution_depthwise_int8.cc | 2 +- .../cpu/int8/deconvolution_depthwise_int8.h | 4 +- .../kernel/cpu/int8/deconvolution_int8.cc | 6 +- .../kernel/cpu/int8/deconvolution_int8.h | 8 +- .../kernel/cpu/int8/depth_to_space_int8.cc | 4 +- .../kernel/cpu/int8/depth_to_space_int8.h | 2 +- .../cpu/int8/detection_post_process_int8.cc | 4 +- .../cpu/int8/detection_post_process_int8.h | 4 +- .../kernel/cpu/int8/div_int8.cc | 4 +- .../kernel/cpu/int8/div_int8.h | 2 +- .../kernel/cpu/int8/dynamic_gather_int8.cc | 4 +- .../kernel/cpu/int8/dynamic_gather_int8.h | 2 +- .../kernel/cpu/int8/dynamic_quant.cc | 4 +- .../kernel/cpu/int8/dynamic_quant.h | 2 +- .../kernel/cpu/int8/fullconnection_int8.cc | 4 +- .../kernel/cpu/int8/fullconnection_int8.h | 2 +- .../kernel/cpu/int8/gatherNd_int8.cc | 4 +- .../kernel/cpu/int8/gatherNd_int8.h | 2 +- .../kernel/cpu/int8/gather_int8.cc | 6 +- .../kernel/cpu/int8/gather_int8.h | 2 +- .../kernel/cpu/int8/group_convolution_int8.cc | 4 +- .../kernel/cpu/int8/group_convolution_int8.h | 4 +- .../kernel/cpu/int8/hswish_int8.cc | 4 +- .../kernel/cpu/int8/hswish_int8.h | 2 +- .../kernel/cpu/int8/l2_norm_int8.cc | 4 +- .../kernel/cpu/int8/l2_norm_int8.h | 2 +- .../kernel/cpu/int8/layer_norm_int8.cc | 2 +- .../kernel/cpu/int8/layer_norm_int8.h | 2 +- .../kernel/cpu/int8/leaky_relu_int8.cc | 4 +- .../kernel/cpu/int8/leaky_relu_int8.h | 2 +- .../kernel/cpu/int8/matmul_base_int8.cc | 4 +- .../kernel/cpu/int8/matmul_base_int8.h | 2 +- .../cpu/int8/matmul_dynamic_base_int8.cc | 2 +- .../cpu/int8/matmul_dynamic_base_int8.h | 2 +- .../kernel/cpu/int8/matmul_dynamic_int8.cc | 4 +- .../kernel/cpu/int8/matmul_dynamic_int8.h | 2 +- .../cpu/int8/matmul_dynamic_sdot_int8.cc | 2 +- .../cpu/int8/matmul_dynamic_sdot_int8.h | 2 +- .../kernel/cpu/int8/matmul_int8.cc | 8 +- .../kernel/cpu/int8/matmul_int8.h | 4 +- .../kernel/cpu/int8/mul_int8.cc | 4 +- .../kernel/cpu/int8/mul_int8.h | 2 +- .../kernel/cpu/int8/opt_op_handler.cc | 2 +- .../kernel/cpu/int8/opt_op_handler.h | 0 .../kernel/cpu/int8/pad_int8.cc | 4 +- .../kernel/cpu/int8/pad_int8.h | 2 +- .../kernel/cpu/int8/pooling_int8.cc | 4 +- .../kernel/cpu/int8/pooling_int8.h | 4 +- .../kernel/cpu/int8/power_int8.cc | 4 +- .../kernel/cpu/int8/power_int8.h | 2 +- .../kernel/cpu/int8/reduce_int8.cc | 4 +- .../kernel/cpu/int8/reduce_int8.h | 4 +- .../kernel/cpu/int8/relux_int8.cc | 4 +- .../kernel/cpu/int8/relux_int8.h | 2 +- .../kernel/cpu/int8/reshape_int8.cc | 4 +- .../kernel/cpu/int8/reshape_int8.h | 2 +- .../kernel/cpu/int8/resize_int8.cc | 4 +- .../kernel/cpu/int8/resize_int8.h | 4 +- .../kernel/cpu/int8/scale_int8.cc | 4 +- .../kernel/cpu/int8/scale_int8.h | 2 +- .../kernel/cpu/int8/sigmoid_int8.cc | 4 +- .../kernel/cpu/int8/sigmoid_int8.h | 2 +- .../kernel/cpu/int8/slice_int8.cc | 4 +- .../kernel/cpu/int8/slice_int8.h | 2 +- .../kernel/cpu/int8/softmax_int8.cc | 4 +- .../kernel/cpu/int8/softmax_int8.h | 2 +- .../kernel/cpu/int8/space_to_batch_int8.cc | 4 +- .../kernel/cpu/int8/space_to_batch_int8.h | 2 +- .../kernel/cpu/int8/split_int8.cc | 4 +- .../kernel/cpu/int8/split_int8.h | 4 +- .../kernel/cpu/int8/squeeze_int8.cc | 4 +- .../kernel/cpu/int8/squeeze_int8.h | 2 +- .../kernel/cpu/int8/sub_int8.cc | 4 +- .../kernel/cpu/int8/sub_int8.h | 2 +- .../kernel/cpu/int8/tanh_int8.cc | 2 +- .../kernel/cpu/int8/tanh_int8.h | 2 +- .../kernel/cpu/int8/topk_int8.cc | 4 +- .../kernel/cpu/int8/topk_int8.h | 2 +- .../kernel/cpu/int8/transpose_int8.cc | 4 +- .../kernel/cpu/int8/transpose_int8.h | 2 +- .../kernel/cpu/int8/unsqueeze_int8.cc | 4 +- .../kernel/cpu/int8/unsqueeze_int8.h | 4 +- .../kernel/cpu/string/extract_feature.cc | 4 +- .../kernel/cpu/string/extract_feature.h | 2 +- .../kernel/cpu/string/hashtable_lookup.cc | 4 +- .../kernel/cpu/string/hashtable_lookup.h | 2 +- .../kernel/cpu/string/lsh_projection.cc | 4 +- .../kernel/cpu/string/lsh_projection.h | 2 +- .../kernel/cpu/string/normalize.cc | 4 +- .../kernel/cpu/string/normalize.h | 2 +- .../kernel/cpu/string/predict.cc | 4 +- .../kernel/cpu/string/predict.h | 2 +- .../kernel/cpu/string/skip_gram.cc | 4 +- .../kernel/cpu/string/skip_gram.h | 2 +- .../kernel/gpu/opencl/opencl_allocator.cc | 6 +- .../kernel/gpu/opencl/opencl_allocator.h | 2 +- .../kernel/gpu/opencl/opencl_executor.cc | 4 +- .../kernel/gpu/opencl/opencl_executor.h | 8 +- .../kernel/gpu/opencl/opencl_runtime.cc | 6 +- .../kernel/gpu/opencl/opencl_runtime.h | 4 +- .../gpu/opencl/opencl_runtime_wrapper.cc | 6 +- .../kernel/gpu/opencl/opencl_wrapper.cc | 2 +- .../kernel/gpu/opencl/opencl_wrapper.h | 0 .../kernel/opencl/CMakeLists.txt | 0 .../kernel/opencl/cl/activation.cl | 0 .../kernel/opencl/cl/argminmax.cl | 0 .../kernel/opencl/cl/arithmetic.cl | 0 .../kernel/opencl/cl/arithmeticself.cl | 0 .../kernel/opencl/cl/batch_to_space_nd.cl | 0 .../kernel/opencl/cl/batchnorm.cl | 0 .../kernel/opencl/cl/cast.cl | 0 .../kernel/opencl/cl/concat.cl | 0 .../kernel/opencl/cl/conv2d.cl | 0 .../kernel/opencl/cl/conv2d_transpose.cl | 0 .../kernel/opencl/cl/depthwise_conv2d.cl | 0 .../kernel/opencl/cl/fullconnection.cl | 0 .../kernel/opencl/cl/gather.cl | 0 .../kernel/opencl/cl/gl_to_cl.cl | 0 .../kernel/opencl/cl/int8/arithmetic.cl | 0 .../kernel/opencl/cl/layer_norm.cl | 0 .../kernel/opencl/cl/matmul.cl | 0 .../kernel/opencl/cl/one_hot.cl | 0 .../kernel/opencl/cl/pad.cl | 0 .../kernel/opencl/cl/pooling2d.cl | 0 .../kernel/opencl/cl/power.cl | 0 .../kernel/opencl/cl/prelu.cl | 0 .../kernel/opencl/cl/reduce.cl | 0 .../kernel/opencl/cl/reshape.cl | 0 .../kernel/opencl/cl/resize.cl | 0 .../kernel/opencl/cl/scale.cl | 0 .../kernel/opencl/cl/softmax.cl | 0 .../kernel/opencl/cl/space_to_batch_nd.cl | 0 .../kernel/opencl/cl/space_to_depth.cl | 0 .../kernel/opencl/cl/sparse_to_dense.cl | 0 .../kernel/opencl/cl/split.cl | 0 .../kernel/opencl/cl/stack.cl | 0 .../kernel/opencl/cl/strassen.cl | 0 .../kernel/opencl/cl/strided_slice.cl | 0 .../kernel/opencl/cl/to_format.cl | 0 .../kernel/opencl/cl/transpose.cl | 0 .../kernel/opencl/cl/winograd.cl | 0 .../kernel/opencl/kernel/activation.cc | 6 +- .../kernel/opencl/kernel/activation.h | 2 +- .../kernel/opencl/kernel/argminmax.cc | 8 +- .../kernel/opencl/kernel/argminmax.h | 2 +- .../kernel/opencl/kernel/arithmetic.cc | 8 +- .../kernel/opencl/kernel/arithmetic.h | 2 +- .../kernel/opencl/kernel/arithmetic_self.cc | 8 +- .../kernel/opencl/kernel/arithmetic_self.h | 2 +- .../kernel/opencl/kernel/batch_to_space_nd.cc | 6 +- .../kernel/opencl/kernel/batch_to_space_nd.h | 2 +- .../kernel/opencl/kernel/batchnorm.cc | 8 +- .../kernel/opencl/kernel/batchnorm.h | 2 +- .../kernel/opencl/kernel/cast.cc | 8 +- .../kernel/opencl/kernel/cast.h | 2 +- .../kernel/opencl/kernel/concat.cc | 8 +- .../kernel/opencl/kernel/concat.h | 2 +- .../kernel/opencl/kernel/conv2d.cc | 14 +- .../kernel/opencl/kernel/conv2d.h | 2 +- .../kernel/opencl/kernel/conv2d_transpose.cc | 8 +- .../kernel/opencl/kernel/conv2d_transpose.h | 4 +- .../kernel/opencl/kernel/depthwise_conv2d.cc | 8 +- .../kernel/opencl/kernel/depthwise_conv2d.h | 2 +- .../kernel/opencl/kernel/fill.cc | 6 +- .../kernel/opencl/kernel/fill.h | 2 +- .../kernel/opencl/kernel/fullconnection.cc | 8 +- .../kernel/opencl/kernel/fullconnection.h | 2 +- .../kernel/opencl/kernel/fusion_eltwise.cc | 4 +- .../kernel/opencl/kernel/fusion_eltwise.h | 8 +- .../kernel/opencl/kernel/gather.cc | 8 +- .../kernel/opencl/kernel/gather.h | 2 +- .../kernel/opencl/kernel/gl_to_cl.cc | 6 +- .../kernel/opencl/kernel/gl_to_cl.h | 4 +- .../opencl/kernel/int8/arithmetic_int8.cc | 8 +- .../opencl/kernel/int8/arithmetic_int8.h | 2 +- .../kernel/opencl/kernel/layer_norm.cc | 8 +- .../kernel/opencl/kernel/layer_norm.h | 2 +- .../kernel/opencl/kernel/matmul.cc | 8 +- .../kernel/opencl/kernel/matmul.h | 2 +- .../kernel/opencl/kernel/one_hot.cc | 6 +- .../kernel/opencl/kernel/one_hot.h | 4 +- .../kernel/opencl/kernel/pad.cc | 8 +- .../kernel/opencl/kernel/pad.h | 2 +- .../kernel/opencl/kernel/pooling2d.cc | 8 +- .../kernel/opencl/kernel/pooling2d.h | 2 +- .../kernel/opencl/kernel/power.cc | 8 +- .../kernel/opencl/kernel/power.h | 2 +- .../kernel/opencl/kernel/prelu.cc | 6 +- .../kernel/opencl/kernel/prelu.h | 2 +- .../kernel/opencl/kernel/reduce.cc | 8 +- .../kernel/opencl/kernel/reduce.h | 4 +- .../kernel/opencl/kernel/reshape.cc | 6 +- .../kernel/opencl/kernel/reshape.h | 4 +- .../kernel/opencl/kernel/resize.cc | 6 +- .../kernel/opencl/kernel/resize.h | 4 +- .../kernel/opencl/kernel/scale.cc | 8 +- .../kernel/opencl/kernel/scale.h | 2 +- .../kernel/opencl/kernel/softmax.cc | 8 +- .../kernel/opencl/kernel/softmax.h | 2 +- .../kernel/opencl/kernel/space_to_batch_nd.cc | 6 +- .../kernel/opencl/kernel/space_to_batch_nd.h | 2 +- .../kernel/opencl/kernel/space_to_depth.cc | 6 +- .../kernel/opencl/kernel/space_to_depth.h | 4 +- .../kernel/opencl/kernel/sparse_to_dense.cc | 8 +- .../kernel/opencl/kernel/sparse_to_dense.h | 2 +- .../kernel/opencl/kernel/split.cc | 6 +- .../kernel/opencl/kernel/split.h | 2 +- .../kernel/opencl/kernel/stack.cc | 8 +- .../kernel/opencl/kernel/stack.h | 2 +- .../kernel/opencl/kernel/strassen.cc | 6 +- .../kernel/opencl/kernel/strassen.h | 2 +- .../kernel/opencl/kernel/strided_slice.cc | 8 +- .../kernel/opencl/kernel/strided_slice.h | 2 +- .../kernel/opencl/kernel/to_format.cc | 6 +- .../kernel/opencl/kernel/to_format.h | 4 +- .../kernel/opencl/kernel/transpose.cc | 8 +- .../kernel/opencl/kernel/transpose.h | 4 +- .../kernel/opencl/kernel/winograd.cc | 4 +- .../kernel/opencl/kernel/winograd.h | 2 +- .../kernel/opencl/opencl_fusion.cc | 14 +- .../kernel/opencl/opencl_kernel.cc | 6 +- .../kernel/opencl/opencl_kernel.h | 10 +- .../kernel/opencl/opencl_subgraph.cc | 10 +- .../kernel/opencl/opencl_subgraph.h | 8 +- .../kernel/opencl/utils.cc | 4 +- .../{runtime => litert}/kernel/opencl/utils.h | 4 +- .../src/{runtime => litert}/kernel_exec.cc | 2 +- .../src/{runtime => litert}/kernel_exec.h | 6 +- .../{runtime => litert}/kernel_exec_util.cc | 10 +- .../{runtime => litert}/kernel_exec_util.h | 6 +- .../{runtime => litert}/kernel_registry.cc | 4 +- .../src/{runtime => litert}/kernel_registry.h | 2 +- .../src/{runtime => litert}/lite_kernel.cc | 4 +- .../src/{runtime => litert}/lite_kernel.h | 6 +- .../src/{runtime => litert}/lite_mindrt.cc | 8 +- .../src/{runtime => litert}/lite_mindrt.h | 6 +- .../src/{runtime => litert}/lite_model.cc | 2 +- .../lite/src/{runtime => litert}/lite_model.h | 2 +- .../src/{runtime => litert}/lite_session.cc | 28 ++-- .../src/{runtime => litert}/lite_session.h | 14 +- .../{runtime => litert}/mindrt_executor.cc | 6 +- .../src/{runtime => litert}/mindrt_executor.h | 8 +- .../src/{runtime => litert}/numa_adapter.cc | 2 +- .../src/{runtime => litert}/numa_adapter.h | 0 .../src/{runtime => litert}/pack_weight.cc | 4 +- .../src/{runtime => litert}/pack_weight.h | 2 +- .../pack_weight_manager.cc | 2 +- .../{runtime => litert}/pack_weight_manager.h | 2 +- .../src/{runtime => litert}/parallel_config.h | 0 .../pass/decrease_transpose_algo.cc | 6 +- .../pass/decrease_transpose_algo.h | 8 +- .../pass/delete_isolated_kernel.cc | 4 +- .../pass/delete_isolated_kernel.h | 2 +- .../pass/infershape_pass.cc | 6 +- .../pass/infershape_pass.h | 2 +- .../{runtime => litert}/pass/pass_utils.cc | 4 +- .../src/{runtime => litert}/pass/pass_utils.h | 4 +- .../pass/runtime_ncx_pass.cc | 10 +- .../pass/runtime_ncx_pass.h | 4 +- .../pass/runtime_optimizer.cc | 2 +- .../pass/runtime_optimizer.h | 2 +- .../pass/to_nchw_format.cc | 8 +- .../{runtime => litert}/pass/to_nchw_format.h | 4 +- .../pass/transpose_strategy.cc | 2 +- .../pass/transpose_strategy.h | 4 +- .../{runtime => litert}/runtime_allocator.cc | 2 +- .../{runtime => litert}/runtime_allocator.h | 0 .../{runtime => litert}/runtime_convert.cc | 2 +- .../src/{runtime => litert}/runtime_convert.h | 0 .../src/{runtime => litert}/runtime_pass.cc | 2 +- .../src/{runtime => litert}/runtime_pass.h | 4 +- .../runtime_shape_fusion_pass.cc | 2 +- .../runtime_shape_fusion_pass.h | 4 +- .../lite/src/{runtime => litert}/scheduler.cc | 28 ++-- .../lite/src/{runtime => litert}/scheduler.h | 8 +- .../src/{runtime => litert}/scheduler_cb.h | 0 .../schema_tensor_wrapper.cc | 2 +- .../schema_tensor_wrapper.h | 0 .../{runtime => litert}/sub_graph_kernel.cc | 8 +- .../{runtime => litert}/sub_graph_kernel.h | 6 +- .../{runtime => litert}/sub_graph_split.cc | 6 +- .../src/{runtime => litert}/sub_graph_split.h | 6 +- .../{runtime => litert}/tensor_category.cc | 2 +- .../src/{runtime => litert}/tensor_category.h | 0 .../{runtime => litert}/thread_cost_model.cc | 4 +- .../{runtime => litert}/thread_cost_model.h | 0 .../src/{runtime => litert}/weight_decoder.cc | 4 +- .../src/{runtime => litert}/weight_decoder.h | 4 +- mindspore/lite/src/tensor.h | 4 +- mindspore/lite/src/train/loss_kernel.h | 2 +- mindspore/lite/src/train/loss_monitor.cc | 2 +- mindspore/lite/src/train/lr_scheduler.cc | 2 +- mindspore/lite/src/train/optimizer_kernel.h | 2 +- mindspore/lite/src/train/train_export.cc | 2 +- mindspore/lite/src/train/train_export.h | 4 +- mindspore/lite/src/train/train_session.cc | 6 +- mindspore/lite/src/train/train_session.h | 2 +- mindspore/lite/src/train/train_utils.cc | 4 +- mindspore/lite/src/train/train_utils.h | 2 +- mindspore/lite/src/train/transfer_session.cc | 2 +- mindspore/lite/src/train/transfer_session.h | 2 +- mindspore/lite/test/common/common_test.h | 2 +- mindspore/lite/test/st/graph_test.cc | 4 +- .../test/st/mindrt_parallel_runtime_test.cc | 6 +- .../lite/test/st/mindrt_parallel_test.cc | 6 +- mindspore/lite/test/st/mix_data_type_test.cc | 6 +- .../lite/test/st/multiple_device_test.cc | 8 +- .../lite/test/st/optimize_allocator_test.cc | 4 +- mindspore/lite/test/st/sub_graph_test.cc | 2 +- .../test/ut/nnacl/infer/infer_manager_test.cc | 2 +- mindspore/lite/test/ut/src/graph_test.cc | 2 +- mindspore/lite/test/ut/src/infer_test.cc | 2 +- .../lite/test/ut/src/lite_mindrt_test.cc | 2 +- .../src/registry/registry_custom_op_test.cc | 2 +- .../registry/registry_gpu_custom_op_test.cc | 2 +- .../test/ut/src/registry/registry_test.cc | 2 +- .../src/runtime/dynamic_mem_manager_test.cc | 4 +- .../kernel/arm/common/strided_slice_tests.cc | 2 +- .../kernel/arm/fp16/reduce_fp16_tests.cc | 4 +- .../arm/fp32-sparsity/matmul_fp32_tests.cc | 8 +- .../kernel/arm/fp32/activation_fp32_test.cc | 4 +- .../kernel/arm/fp32/batchnorm_fp32_tests.cc | 4 +- .../arm/fp32/constant_of_shape_fp32_test.cc | 6 +- .../kernel/arm/fp32/conv1x1_fp32_tests.cc | 2 +- .../fp32/convolution_depthwise_fp32_tests.cc | 4 +- .../runtime/kernel/arm/fp32/crop_fp32_test.cc | 4 +- .../runtime/kernel/arm/fp32/cumsum_tests.cc | 2 +- .../arm/fp32/deconvolution_fp32_tests.cc | 4 +- .../arm/fp32/detection_post_process_test.cc | 6 +- .../arm/fp32/embedding_lookup_fp32_test.cc | 4 +- .../arm/fp32/fullconnection_fp32_tests.cc | 8 +- .../kernel/arm/fp32/l2norm_fp32_test.cc | 6 +- .../kernel/arm/fp32/logicalor_fp32_test.cc | 4 +- .../arm/fp32/lsh_projection_fp32_tests.cc | 4 +- .../kernel/arm/fp32/lstm_fp32_tests.cc | 2 +- .../kernel/arm/fp32/matmul_fp32_tests.cc | 8 +- .../kernel/arm/fp32/nllloss_fp32_test.cc | 8 +- .../fp32/non_max_suppression_fp32_tests.cc | 8 +- .../kernel/arm/fp32/one_hot_fp32_test.cc | 4 +- .../runtime/kernel/arm/fp32/pad_fp32_test.cc | 4 +- .../kernel/arm/fp32/power_fp32_tests.cc | 8 +- .../arm/fp32/ragged_range_fp32_tests.cc | 4 +- .../kernel/arm/fp32/reduce_fp32_tests.cc | 4 +- .../arm/fp32/resize_bilinear_fp32_tests.cc | 4 +- .../resize_nearest_neighbor_fp32_tests.cc | 2 +- .../arm/fp32/reverse_sequence_fp32_tests.cc | 2 +- .../kernel/arm/fp32/roi_pooling_fp32_tests.cc | 6 +- .../kernel/arm/fp32/scale_fp32_tests.cc | 4 +- .../kernel/arm/fp32/scatter_nd_fp32_tests.cc | 2 +- .../runtime/kernel/arm/fp32/skip_gram_fp32.cc | 4 +- .../runtime/kernel/arm/fp32/softmax_tests.cc | 2 +- .../arm/fp32/space_to_batch_fp32_tests.cc | 4 +- .../arm/fp32/space_to_depth_fp32_tests.cc | 4 +- .../arm/fp32/sparse_to_dense_fp32_tests.cc | 4 +- .../arm/fp32/strided_slice_fp32_tests.cc | 4 +- .../kernel/arm/fp32/tile_fp32_tests.cc | 2 +- .../kernel/arm/fp32/topk_fp32_tests.cc | 2 +- .../kernel/arm/fp32/transpose_fp32_tests.cc | 4 +- .../kernel/arm/fp32/uniform_real_fp32_test.cc | 2 +- .../kernel/arm/fp32/unique_fp32_tests.cc | 2 +- .../kernel/arm/fp32/unstack_fp32_tests.cc | 2 +- .../fp32_grad/activation_grad_fp32_tests.cc | 6 +- .../fp32_grad/arithmetic_grad_fp32_tests.cc | 4 +- .../arm/fp32_grad/bias_grad_fp32_tests.cc | 4 +- .../kernel/arm/fp32_grad/bn_grad_fp32_test.cc | 4 +- .../fp32_grad/convolution_grad_fp32_tests.cc | 8 +- .../deconvolution_grad_fp32_tests.cc | 4 +- .../kernel/arm/fp32_grad/network_test.cc | 4 +- .../arm/fp32_grad/nllloss_grad_fp32_test.cc | 8 +- .../arm/fp32_grad/pooling_grad_fp32_tests.cc | 4 +- .../softmax_crossentropy_fp32_tests.cc | 4 +- .../arm/fp32_grad/softmax_grad_fp32_tests.cc | 4 +- .../runtime/kernel/arm/int8/add_int8_tests.cc | 2 +- .../arm/int8/arithmetic_self_int8_tests.cc | 4 +- .../kernel/arm/int8/batchnorm_int8_test.cc | 4 +- .../kernel/arm/int8/concat_int8_tests.cc | 4 +- .../kernel/arm/int8/conv_1x1_int8_tests.cc | 6 +- .../kernel/arm/int8/crop_int8_tests.cc | 4 +- .../kernel/arm/int8/deconv_int8_tests.cc | 4 +- .../arm/int8/fullconnection_int8_tests.cc | 6 +- .../kernel/arm/int8/gatherNd_int8_test.cc | 4 +- .../kernel/arm/int8/gather_int8_test.cc | 4 +- .../kernel/arm/int8/hswish_int8_tests.cc | 6 +- .../kernel/arm/int8/l2_norm_int8_tests.cc | 2 +- .../kernel/arm/int8/matmul_int8_tests.cc | 6 +- .../runtime/kernel/arm/int8/mul_int8_tests.cc | 4 +- .../runtime/kernel/arm/int8/pad_int8_tests.cc | 4 +- .../kernel/arm/int8/power_int8_tests.cc | 4 +- .../kernel/arm/int8/prelu_int8_tests.cc | 4 +- .../kernel/arm/int8/quant_dtype_cast_tests.cc | 6 +- .../kernel/arm/int8/reduce_int8_tests.cc | 2 +- .../kernel/arm/int8/relux_int8_tests.cc | 4 +- .../kernel/arm/int8/reshape_int8_tests.cc | 4 +- .../arm/int8/resize_bilinear_int8_tests.cc | 2 +- .../resize_nearest_neighbor_int8_tests.cc | 2 +- .../src/runtime/kernel/arm/int8/scale_int8.cc | 2 +- .../kernel/arm/int8/sigmoid_int8_tests.cc | 2 +- .../kernel/arm/int8/slice_int8_tests.cc | 4 +- .../kernel/arm/int8/softmax_int8_tests.cc | 4 +- .../arm/int8/space_to_batch_int8_tests.cc | 2 +- .../kernel/arm/int8/split_int8_tests.cc | 4 +- .../kernel/arm/int8/squeeze_int8_tests.cc | 4 +- .../runtime/kernel/arm/int8/sub_int_tests.cc | 4 +- .../kernel/arm/int8/topk_int8_tests.cc | 2 +- .../kernel/arm/int8/unsqueeze_int8_tests.cc | 4 +- .../runtime/kernel/arm/string/normalize.cc | 6 +- .../src/runtime/kernel/opencl/cast_tests.cc | 4 +- .../ut/src/runtime/kernel/opencl/common.cc | 4 +- .../ut/src/runtime/kernel/opencl/common.h | 2 +- .../src/runtime/kernel/opencl/fill_tests.cc | 4 +- .../src/runtime/kernel/opencl/power_tests.cc | 2 +- .../test/ut/src/runtime/runtime_pass_tests.cc | 6 +- mindspore/lite/test/ut/src/scheduler_test.cc | 2 +- mindspore/lite/test/ut/src/utils_test.cc | 4 +- mindspore/lite/tools/common/node_util.cc | 2 +- mindspore/lite/tools/converter/CMakeLists.txt | 72 ++++----- .../legacy_optimizer/graph/infershape_pass.cc | 2 +- .../lite/tools/converter/micro/coder/graph.cc | 2 +- .../coder/opcoders/base/conv2d_base_coder.cc | 2 +- .../coder/opcoders/base/conv2d_base_coder.h | 2 +- .../cmsis-nn/int8/dwconv_int8_coder.h | 2 +- .../opcoders/nnacl/fp32/affine_fp32_coder.cc | 2 +- .../fp32/convolution_depthwise_fp32_coder.h | 2 +- .../opcoders/nnacl/fp32/resize_fp32_coder.h | 4 +- .../opcoders/nnacl/int8/affine_int8_coder.cc | 2 +- .../nnacl/int8/conv2d_1x1_int8_coder.cc | 2 +- .../opcoders/nnacl/int8/conv2d_int8_coder.cc | 2 +- .../int8/convolution_depthwise_int8_coder.h | 2 +- .../converter/micro/coder/opcoders/op_coder.h | 2 +- .../micro/coder/opcoders/op_coder_register.h | 2 +- .../tools/converter/micro/coder/session.cc | 6 +- .../converter/quantizer/debug_info_manager.cc | 4 +- .../tools/converter/quantizer/fse_decoder.h | 2 +- .../converter/quantizer/huffman_encode.cc | 2 +- .../quant_helper/quant_node_helper.cc | 4 +- .../quant_helper/quant_type_determiner.cc | 4 +- .../tools/converter/quantizer/quantize_util.h | 2 +- .../converter/quantizer/weight_quantizer.h | 2 +- .../tools/converter/registry/CMakeLists.txt | 10 +- .../tools/cropper/build_cropper_config.sh | 68 ++++----- .../tools/graph_kernel/runtime/akg_kernel.cc | 2 +- .../tools/graph_kernel/runtime/akg_kernel.h | 2 +- .../lite/tools/lite_exporter/anf_exporter.cc | 4 +- .../tools/optimizer/const_fold/fold_utils.cc | 8 +- .../tools/optimizer/const_fold/fold_utils.h | 2 +- .../tools/optimizer/graph/node_infershape.cc | 2 +- 1385 files changed, 2606 insertions(+), 2604 deletions(-) rename mindspore/lite/src/{runtime => litert}/allocator.cc (94%) rename mindspore/lite/src/{runtime => litert}/c_api/context_c.cc (99%) rename mindspore/lite/src/{runtime => litert}/c_api/context_c.h (100%) rename mindspore/lite/src/{runtime => litert}/c_api/model_c.cc (99%) rename mindspore/lite/src/{runtime => litert}/c_api/tensor_c.cc (98%) rename mindspore/lite/src/{runtime => litert}/cpu_info.cc (99%) rename mindspore/lite/src/{runtime => litert}/cpu_info.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/callback/callback_adapter.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/callback/callback_impl.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/callback/ckpt_saver.cc (96%) rename mindspore/lite/src/{runtime => litert}/cxx_api/callback/loss_monitor.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/callback/lr_scheduler.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/callback/train_accuracy.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/cell.cc (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/context.cc (99%) rename mindspore/lite/src/{runtime => litert}/cxx_api/context.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/converters.cc (99%) rename mindspore/lite/src/{runtime => litert}/cxx_api/converters.h (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/expression/net.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/expression/net_impl.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/expression/net_impl.h (96%) rename mindspore/lite/src/{runtime => litert}/cxx_api/expression/node_impl.cc (96%) rename mindspore/lite/src/{runtime => litert}/cxx_api/expression/node_impl.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/graph/graph.cc (93%) rename mindspore/lite/src/{runtime => litert}/cxx_api/graph/graph_data.h (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/graph/net_data.cc (87%) rename mindspore/lite/src/{runtime => litert}/cxx_api/graph/net_data.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/kernel.cc (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/kernel_executor/CMakeLists.txt (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/kernel_executor/kernel_executor.cc (93%) rename mindspore/lite/src/{runtime => litert}/cxx_api/kernel_executor/kernel_executor.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/kernel_executor/kernel_executor_impl.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/kernel_executor/kernel_executor_impl.h (95%) rename mindspore/lite/src/{runtime => litert}/cxx_api/metrics/accuracy.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/metrics/metrics_adapter.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/metrics/metrics_impl.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model/model.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model/model_impl.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model/model_impl.h (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/model_parallel_runner.cc (95%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/model_pool.cc (99%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/model_pool.h (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/model_worker.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/model_worker.h (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/predict_task_queue.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/predict_task_queue.h (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/model_pool/runner_config.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/serialization.cc (96%) rename mindspore/lite/src/{runtime => litert}/cxx_api/tensor/tensor_impl.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/tensor/tensor_impl.h (100%) rename mindspore/lite/src/{runtime => litert}/cxx_api/tensor_utils.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/tensor_utils.h (96%) rename mindspore/lite/src/{runtime => litert}/cxx_api/train/converters.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/train/model.cc (97%) rename mindspore/lite/src/{runtime => litert}/cxx_api/train/model_build.cc (98%) rename mindspore/lite/src/{runtime => litert}/cxx_api/train/model_build_impl.cc (93%) rename mindspore/lite/src/{runtime => litert}/cxx_api/train/model_impl.cc (90%) rename mindspore/lite/src/{runtime => litert}/cxx_api/train/train_support.cc (83%) rename mindspore/lite/src/{runtime => litert}/cxx_api/types.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/auto_registration_factory.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/CMakeLists.txt (100%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_delegate.h (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_delegate.mm (85%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_executor.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_executor.mm (99%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_executor_wrapper.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_executor_wrapper.mm (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_graph.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/coreml_graph.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/activation_coreml.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/activation_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/arithmetic_coreml.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/arithmetic_coreml.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/avg_pooling_coreml.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/avg_pooling_coreml.h (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/concat_coreml.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/concat_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/convolution_base_coreml.cc (94%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/convolution_base_coreml.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/convolution_coreml.cc (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/convolution_coreml.h (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/coreml_op.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/coreml_op.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/deconvolution_coreml.cc (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/deconvolution_coreml.h (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/flatten_coreml.cc (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/flatten_coreml.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/gather_coreml.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/gather_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/matmul_coreml.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/matmul_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/max_pooling_coreml.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/max_pooling_coreml.h (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/reshape_coreml.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/reshape_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/resize_coreml.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/resize_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/shape_coreml.cc (93%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/shape_coreml.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/softmax_coreml.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/softmax_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/transpose_coreml.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/transpose_coreml.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/unsqueeze_coreml.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/op/unsqueeze_coreml.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_base_pass.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_format_trans_pass.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_format_trans_pass.h (92%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_fusion_pass.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_fusion_pass.h (92%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_pass_manager.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_pass_manager.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_pass_utils.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_pass_utils.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_trans_extend_pass.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/pass/coreml_trans_extend_pass.h (94%) rename mindspore/lite/src/{runtime => litert}/delegate/coreml/stub/coreml_delegate_stub.cc (100%) rename mindspore/lite/src/{runtime => litert}/delegate/delegate_utils.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/delegate_utils.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/CMakeLists.txt (100%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_converter_utils.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_converter_utils.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_delegate.cc (83%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_delegate.h (91%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_executor.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_executor.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_graph.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_graph.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_manager.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_manager.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_subgraph.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/npu_subgraph.h (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/abs_npu.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/abs_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/activation_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/activation_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/argmax_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/argmax_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/arithmetic_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/arithmetic_npu.h (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/arithmetic_self_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/arithmetic_self_npu.h (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/avg_pooling_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/avg_pooling_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/batchnorm_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/batchnorm_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/broadcast_to_npu.cc (93%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/broadcast_to_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/cast_npu.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/cast_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/concat_npu.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/concat_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_base_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_base_npu.h (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_depthwise_int8_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_depthwise_int8_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_depthwise_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_depthwise_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_int8_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_int8_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/convolution_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/crop_and_resize_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/crop_and_resize_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/deconvolution_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/deconvolution_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/eltwise_npu.cc (94%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/eltwise_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/expand_dims_npu.cc (93%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/expand_dims_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/flatten_npu.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/flatten_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/fullconnection_int8_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/fullconnection_int8_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/fullconnection_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/fullconnection_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/gather_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/gather_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/instance_norm_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/instance_norm_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/matmul_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/matmul_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/max_pooling_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/max_pooling_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/npu_op.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/pad_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/pad_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/reduce_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/reduce_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/reshape_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/reshape_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/resize_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/resize_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/scale_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/scale_npu.h (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/slice_npu.cc (93%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/slice_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/softmax_npu.cc (94%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/softmax_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/split_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/split_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/squeeze_npu.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/squeeze_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/strided_slice_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/strided_slice_npu.h (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/tile_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/tile_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/transpose_npu.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/transpose_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/unsqueeze_npu.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/op/unsqueeze_npu.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_base_pass.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_fusion_pass.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_fusion_pass.h (92%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_insert_transform_pass.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_insert_transform_pass.h (94%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_pass_manager.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_pass_manager.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_pass_utils.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_pass_utils.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_transform_pass.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/pass/npu_transform_pass.h (92%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/transpose_kernel.cc (89%) rename mindspore/lite/src/{runtime => litert}/delegate/npu/transpose_kernel.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/cache_algorithm.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/cache_mem_base.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/embedding_cache.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/embedding_cache.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/embedding_cache_manager.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/embedding_cache_manager.h (91%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/factory_mgr_base.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/gpu/gpu_cache_mem.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/gpu/gpu_cache_mem.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/lfu_cache.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/lfu_cache.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/load_host_cache_model.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/parameter_cache/load_host_cache_model.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/CMakeLists.txt (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/activation.cu (94%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/activation.cuh (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cast.cu (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cast.cuh (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cublas_utils.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cublas_utils.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cuda_helper.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cuda_helper.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cudnn_utils.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/cudnn_utils.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/equal.cu (91%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/equal.cuh (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/hash.cu (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/hash.cuh (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/logical.cu (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/logical.cuh (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/normalize.cu (94%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/normalize.cuh (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/cuda_impl/utils.cuh (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_base.cc (90%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_base.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_base_impl.cc (87%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_collective.cc (94%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_collective.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_collective_impl.cc (92%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_utils.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/distribution/distribution_utils.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/activation_opt_plugin.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/activation_opt_plugin.h (94%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/activation_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/activation_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/allgather_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/allgather_tensorrt.h (94%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/cast_plugin.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/cast_plugin.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/cast_tensorrt.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/cast_tensorrt.h (89%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/concate_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/concate_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/convolution_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/convolution_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/cumsum_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/cumsum_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/deconvolution_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/deconvolution_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/elementwise_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/elementwise_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/equal_tensorrt.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/equal_tensorrt.h (93%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/fullyconnected_tensorrt.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/fullyconnected_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/gather_d_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/gather_d_tensorrt.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/gather_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/gather_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/logical_not_tensorrt.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/logical_not_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/logical_tensorrt.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/logical_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/lstm_tensorrt.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/lstm_tensorrt.h (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/matmul_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/matmul_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/normalize_opt_plugin.cc (92%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/normalize_opt_plugin.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/normalize_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/normalize_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/pad_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/pad_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/pool_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/pool_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/prelu_tensorrt.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/prelu_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/reduce_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/reduce_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/reducescatter_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/reducescatter_tensorrt.h (93%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/resize_tensorrt.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/resize_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/scale_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/scale_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/scatternd_tensorrt.cc (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/scatternd_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/shape_tensorrt.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/shape_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/shuffle_tensorrt.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/shuffle_tensorrt.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/slice_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/slice_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/softmax_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/softmax_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/split_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/split_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/tensorrt_op.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/tensorrt_op.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/tensorrt_plugin.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/tensorrt_plugin.h (100%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/tile_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/tile_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/topk_tensorrt.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/topk_tensorrt.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/unary_tensorrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/op/unary_tensorrt.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_allocator.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_allocator.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_context.cc (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_context.h (96%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_delegate.cc (98%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_delegate.h (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_runtime.cc (95%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_runtime.h (97%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_serializer.cc (94%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_serializer.h (92%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_subgraph.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_subgraph.h (94%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_utils.cc (99%) rename mindspore/lite/src/{runtime => litert}/delegate/tensorrt/tensorrt_utils.h (98%) rename mindspore/lite/src/{runtime => litert}/dynamic_mem_allocator.cc (97%) rename mindspore/lite/src/{runtime => litert}/dynamic_mem_allocator.h (97%) rename mindspore/lite/src/{runtime => litert}/dynamic_mem_manager.cc (99%) rename mindspore/lite/src/{runtime => litert}/dynamic_mem_manager.h (98%) rename mindspore/lite/src/{runtime => litert}/executor.cc (97%) rename mindspore/lite/src/{runtime => litert}/executor.h (95%) rename mindspore/lite/src/{runtime => litert}/huffman_decode.cc (99%) rename mindspore/lite/src/{runtime => litert}/huffman_decode.h (100%) rename mindspore/lite/src/{runtime => litert}/infer_manager.cc (98%) rename mindspore/lite/src/{runtime => litert}/infer_manager.h (100%) rename mindspore/lite/src/{runtime => litert}/inner_allocator.cc (99%) rename mindspore/lite/src/{runtime => litert}/inner_allocator.h (100%) rename mindspore/lite/src/{runtime => litert}/inner_context.cc (98%) rename mindspore/lite/src/{runtime => litert}/inner_context.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/CMakeLists.txt (100%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/acl_env_guard.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/acl_env_guard.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/acl_model_options.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/acl_options_parser.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/acl_options_parser.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/custom_interface.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/custom_interface.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/custom_kernel.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/custom_kernel.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/model_infer.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/model_infer.h (91%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/model_process.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/ascend/src/model_process.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/CMakeLists.txt (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/argminmax_base.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/argminmax_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/arithmetic_base.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/arithmetic_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/assert.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/assert.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/call.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/call.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/concat_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/concat_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/constant_of_shape.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/constant_of_shape.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/convolution_base.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/convolution_base.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/crop_base.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/crop_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/detection_post_process_base.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/detection_post_process_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/format_transpose.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/format_transpose.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/gather_base.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/gather_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/group_convolution_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/group_convolution_base.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/group_convolution_creator.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/group_convolution_creator.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/layout_transform.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/layout_transform.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/one_hot_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/one_hot_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/partial_fusion.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/partial_fusion.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/pooling_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/pooling_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/prior_box.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/prior_box.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/quant_dtype_cast.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/quant_dtype_cast.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/random_normal.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/random_normal.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/reduce_base.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/reduce_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/reshape_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/reshape_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/resize_base.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/resize_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/scatter_nd_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/scatter_nd_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/select.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/select.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/slice_base.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/slice_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/softmax_base.cc (92%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/softmax_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/split_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/split_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/split_with_over_lap_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/split_with_over_lap_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/stack_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/stack_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/strided_slice.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/strided_slice.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/tile_base.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/tile_base.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/transpose_base.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/base/transpose_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/switch.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/switch.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/switch_layer.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/switch_layer.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensor_array.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensor_array.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_fromtensor.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_fromtensor.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_getitem.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_getitem.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_reserve.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_reserve.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_setitem.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_setitem.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_stack.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/control/tensorlist_stack.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/cpu_kernel.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/cpu_kernel.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/activation_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/activation_fp16.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/addn_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/addn_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/arithmetic_compare_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/arithmetic_compare_fp16.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/arithmetic_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/arithmetic_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/arithmetic_self_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/arithmetic_self_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/batchnorm_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/batchnorm_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/biasadd_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/biasadd_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/cast_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/cast_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/common_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/common_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/concat_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/concat_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_1x1_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_1x1_fp16.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_delegate_fp16.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_delegate_fp16.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_depthwise_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_depthwise_fp16.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_fp16.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_winograd_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/convolution_winograd_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/crop_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/crop_fp16.h (91%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/deconvolution_depthwise_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/deconvolution_depthwise_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/deconvolution_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/deconvolution_fp16.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/deconvolution_winograd_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/deconvolution_winograd_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/depth_to_space_fp16.cc (92%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/depth_to_space_fp16.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/fill_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/fill_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/fp16_op_handler.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/fullconnection_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/fullconnection_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/fused_batchnorm_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/fused_batchnorm_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/gather_fp16.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/gather_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/group_convolution_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/group_convolution_fp16.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/gru_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/gru_fp16.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/instance_norm_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/instance_norm_fp16.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/layer_norm_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/layer_norm_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/layout_transform_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/layout_transform_fp16.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/log_softmax_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/log_softmax_fp16.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/lstm_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/lstm_fp16.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/matmul_base_fp16.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/matmul_base_fp16.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/matmul_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/matmul_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/pad_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/pad_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/pooling_fp16.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/pooling_fp16.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/power_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/power_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/prelu_fp16.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/prelu_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/quant_dtype_cast_fp16.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/quant_dtype_cast_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/ragged_range_fp16.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/ragged_range_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/reduce_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/reduce_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/resize_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/resize_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/scale_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/scale_fp16.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/slice_fp16.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/slice_fp16.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/softmax_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/softmax_fp16.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/stack_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/stack_fp16.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/transpose_fp16.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/transpose_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/where_fp16.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16/where_fp16.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/activation_fp16_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/activation_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/arithmetic_fp16_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/bias_fp16_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/bias_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/bn_fp16_grad.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/bn_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/convolution_fp16_grad_input.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/dropout_fp16_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/dropout_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/layernorm_fp16_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/layernorm_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/neg_fp16_grad.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/neg_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/pooling_fp16_grad.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/pooling_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/resize_fp16_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/resize_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/strided_slice_fp16_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/activation_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/activation_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/adder_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/adder_fp32.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/addn_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/addn_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/affine_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/affine_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/all_gather_fp32.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/all_gather_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/arithmetic_compare_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/arithmetic_compare_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/arithmetic_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/arithmetic_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/arithmetic_self_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/arithmetic_self_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/batch_to_space_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/batch_to_space_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/batchnorm_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/batchnorm_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/bias_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/bias_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/broadcast_to_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/broadcast_to_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/cast_for_x86_fp16.cc (90%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/cast_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/cast_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_1x1_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_1x1_fp32.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_delegate_fp32.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_delegate_fp32.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_fp32.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_slidewindow_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_slidewindow_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_winograd_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/convolution_winograd_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/crop_and_resize_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/crop_and_resize_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/crop_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/crop_fp32.h (90%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/cumsum_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/cumsum_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/deconvolution_depthwise_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/deconvolution_depthwise_fp32.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/deconvolution_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/deconvolution_fp32.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/deconvolution_winograd_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/deconvolution_winograd_fp32.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/depth_to_space_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/depth_to_space_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/detection_post_process_fp32.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/detection_post_process_fp32.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/embedding_lookup_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/embedding_lookup_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/fill_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/fill_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/fullconnection_fp32.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/fullconnection_fp32.h (92%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/fused_batchnorm_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/fused_batchnorm_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gatherNd_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gatherNd_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gather_d_fp32.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gather_d_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gather_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gather_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/glu_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/glu_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/group_convolution_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/group_convolution_fp32.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/groupnorm_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/groupnorm_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gru_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/gru_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/instance_norm_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/instance_norm_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/invert_permutation_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/invert_permutation_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/l2_norm_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/l2_norm_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/layer_norm_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/layer_norm_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/local_response_norm_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/local_response_norm_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/log_softmax_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/log_softmax_fp32.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/lstm_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/lstm_fp32.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32.h (92%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_arm32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_arm32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_arm64.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_arm64.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_avx.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_avx.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_avx512.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_avx512.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_base.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_base.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_sse.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/matmul_fp32_sse.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/nllloss_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/nllloss_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/non_max_suppression_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/non_max_suppression_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/nonzero_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/nonzero_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/pad_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/pad_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/pooling_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/pooling_fp32.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/power_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/power_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/prelu_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/prelu_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/ragged_range_fp32.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/ragged_range_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/range_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/range_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/rank_fp32.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/rank_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reduce_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reduce_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reduce_scatter_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reduce_scatter_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/relative_position_attention_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/relative_position_attention_fp32.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/resize_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/resize_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reverse_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reverse_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reverse_sequence_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/reverse_sequence_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/roi_pooling_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/roi_pooling_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/scale_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/scale_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/scatter_nd_update_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/scatter_nd_update_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/shape_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/shape_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/shape_fusion_fp32.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/shape_fusion_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/size_fp32.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/size_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/softmax_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/softmax_fp32.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/space_to_batch_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/space_to_batch_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/space_to_depth_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/space_to_depth_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/sparse_to_dense_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/sparse_to_dense_fp32.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/splice_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/splice_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/topk_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/topk_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/transpose_fp32.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/transpose_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/transpose_server_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/transpose_server_fp32.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/uniform_real_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/uniform_real_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/unique_fp32.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/unique_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/unstack_fp32.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/unstack_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/where_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/where_fp32.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/zeroslike_fp32.cc (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32/zeroslike_fp32.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/activation_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/activation_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/adam.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/adam.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/apply_momentum.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/apply_momentum.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/arithmetic_grad.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/arithmetic_grad.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/arithmetic_self_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/arithmetic_self_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/assign.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/assign.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/bias_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/bias_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/bn_grad.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/bn_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/convolution.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/convolution.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/convolution_grad_filter.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/convolution_grad_filter.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/convolution_grad_input.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/convolution_grad_input.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/deconvolution_grad_filter.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/deconvolution_grad_filter.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/dropout.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/dropout.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/dropout_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/dropout_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/layernorm_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/layernorm_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/lstm_grad_data_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/lstm_grad_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/lstm_grad_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/make_tuple.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/neg_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/neg_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/nllloss_grad.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/nllloss_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/pooling_grad.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/pooling_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/power_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/power_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/resize_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/resize_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sgd.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sgd.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/smooth_l1_loss.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/smooth_l1_loss.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/smooth_l1_loss_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/softmax_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/softmax_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/strided_slice_grad.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/strided_slice_grad.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/unsorted_segment_sum.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_grad/unsorted_segment_sum.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_sparse/matmul_sparse_fp32.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/activation_int8.cc (90%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/add_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/add_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/argminmax_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/argminmax_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/arithmetic_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/arithmetic_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/arithmetic_self_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/arithmetic_self_int8.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/batch_to_space_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/batch_to_space_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/batchnorm_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/batchnorm_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/concat_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/concat_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_1x1_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_1x1_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_3x3_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_3x3_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_depthwise_3x3_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_depthwise_3x3_int8.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_depthwise_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_depthwise_int8.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_int8_creator.cc (90%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/convolution_int8_creator.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/crop_int8.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/crop_int8.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/deconvolution_depthwise_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/deconvolution_depthwise_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/deconvolution_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/deconvolution_int8.h (92%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/depth_to_space_int8.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/depth_to_space_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/detection_post_process_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/detection_post_process_int8.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/div_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/div_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/dynamic_gather_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/dynamic_gather_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/dynamic_quant.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/dynamic_quant.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/fullconnection_int8.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/fullconnection_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/gatherNd_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/gatherNd_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/gather_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/gather_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/group_convolution_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/group_convolution_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/hswish_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/hswish_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/l2_norm_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/l2_norm_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/layer_norm_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/layer_norm_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/leaky_relu_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/leaky_relu_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_base_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_base_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_dynamic_base_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_dynamic_base_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_dynamic_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_dynamic_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_dynamic_sdot_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_dynamic_sdot_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_int8.cc (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/matmul_int8.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/mul_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/mul_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/opt_op_handler.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/opt_op_handler.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/pad_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/pad_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/pooling_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/pooling_int8.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/power_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/power_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/reduce_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/reduce_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/relux_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/relux_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/reshape_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/reshape_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/resize_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/resize_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/scale_int8.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/scale_int8.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/sigmoid_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/sigmoid_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/slice_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/slice_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/softmax_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/softmax_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/space_to_batch_int8.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/space_to_batch_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/split_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/split_int8.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/squeeze_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/squeeze_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/sub_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/sub_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/tanh_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/tanh_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/topk_int8.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/topk_int8.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/transpose_int8.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/transpose_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/unsqueeze_int8.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/int8/unsqueeze_int8.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/extract_feature.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/extract_feature.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/hashtable_lookup.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/hashtable_lookup.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/lsh_projection.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/lsh_projection.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/normalize.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/normalize.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/predict.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/predict.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/skip_gram.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/cpu/string/skip_gram.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_allocator.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_allocator.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_executor.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_executor.h (91%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_runtime.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_runtime.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_runtime_wrapper.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_wrapper.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/gpu/opencl/opencl_wrapper.h (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/CMakeLists.txt (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/activation.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/argminmax.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/arithmetic.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/arithmeticself.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/batch_to_space_nd.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/batchnorm.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/cast.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/concat.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/conv2d.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/conv2d_transpose.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/depthwise_conv2d.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/fullconnection.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/gather.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/gl_to_cl.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/int8/arithmetic.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/layer_norm.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/matmul.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/one_hot.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/pad.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/pooling2d.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/power.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/prelu.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/reduce.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/reshape.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/resize.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/scale.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/softmax.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/space_to_batch_nd.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/space_to_depth.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/sparse_to_dense.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/split.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/stack.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/strassen.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/strided_slice.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/to_format.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/transpose.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/cl/winograd.cl (100%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/activation.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/activation.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/argminmax.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/argminmax.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/arithmetic.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/arithmetic.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/arithmetic_self.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/arithmetic_self.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/batch_to_space_nd.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/batch_to_space_nd.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/batchnorm.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/batchnorm.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/cast.cc (95%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/cast.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/concat.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/concat.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/conv2d.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/conv2d.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/conv2d_transpose.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/conv2d_transpose.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/depthwise_conv2d.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/depthwise_conv2d.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/fill.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/fill.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/fullconnection.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/fullconnection.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/fusion_eltwise.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/fusion_eltwise.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/gather.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/gather.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/gl_to_cl.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/gl_to_cl.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/int8/arithmetic_int8.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/int8/arithmetic_int8.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/layer_norm.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/layer_norm.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/matmul.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/matmul.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/one_hot.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/one_hot.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/pad.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/pad.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/pooling2d.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/pooling2d.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/power.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/power.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/prelu.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/prelu.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/reduce.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/reduce.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/reshape.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/reshape.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/resize.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/resize.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/scale.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/scale.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/softmax.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/softmax.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/space_to_batch_nd.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/space_to_batch_nd.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/space_to_depth.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/space_to_depth.h (93%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/sparse_to_dense.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/sparse_to_dense.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/split.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/split.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/stack.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/stack.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/strassen.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/strassen.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/strided_slice.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/strided_slice.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/to_format.cc (96%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/to_format.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/transpose.cc (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/transpose.h (94%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/winograd.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/kernel/winograd.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/opencl_fusion.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/opencl_kernel.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/opencl_kernel.h (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/opencl_subgraph.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/opencl_subgraph.h (95%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/utils.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel/opencl/utils.h (97%) rename mindspore/lite/src/{runtime => litert}/kernel_exec.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel_exec.h (99%) rename mindspore/lite/src/{runtime => litert}/kernel_exec_util.cc (98%) rename mindspore/lite/src/{runtime => litert}/kernel_exec_util.h (96%) rename mindspore/lite/src/{runtime => litert}/kernel_registry.cc (99%) rename mindspore/lite/src/{runtime => litert}/kernel_registry.h (99%) rename mindspore/lite/src/{runtime => litert}/lite_kernel.cc (97%) rename mindspore/lite/src/{runtime => litert}/lite_kernel.h (98%) rename mindspore/lite/src/{runtime => litert}/lite_mindrt.cc (98%) rename mindspore/lite/src/{runtime => litert}/lite_mindrt.h (97%) rename mindspore/lite/src/{runtime => litert}/lite_model.cc (99%) rename mindspore/lite/src/{runtime => litert}/lite_model.h (99%) rename mindspore/lite/src/{runtime => litert}/lite_session.cc (98%) rename mindspore/lite/src/{runtime => litert}/lite_session.h (97%) rename mindspore/lite/src/{runtime => litert}/mindrt_executor.cc (98%) rename mindspore/lite/src/{runtime => litert}/mindrt_executor.h (94%) rename mindspore/lite/src/{runtime => litert}/numa_adapter.cc (99%) rename mindspore/lite/src/{runtime => litert}/numa_adapter.h (100%) rename mindspore/lite/src/{runtime => litert}/pack_weight.cc (99%) rename mindspore/lite/src/{runtime => litert}/pack_weight.h (98%) rename mindspore/lite/src/{runtime => litert}/pack_weight_manager.cc (99%) rename mindspore/lite/src/{runtime => litert}/pack_weight_manager.h (98%) rename mindspore/lite/src/{runtime => litert}/parallel_config.h (100%) rename mindspore/lite/src/{runtime => litert}/pass/decrease_transpose_algo.cc (99%) rename mindspore/lite/src/{runtime => litert}/pass/decrease_transpose_algo.h (89%) rename mindspore/lite/src/{runtime => litert}/pass/delete_isolated_kernel.cc (94%) rename mindspore/lite/src/{runtime => litert}/pass/delete_isolated_kernel.h (95%) rename mindspore/lite/src/{runtime => litert}/pass/infershape_pass.cc (92%) rename mindspore/lite/src/{runtime => litert}/pass/infershape_pass.h (95%) rename mindspore/lite/src/{runtime => litert}/pass/pass_utils.cc (98%) rename mindspore/lite/src/{runtime => litert}/pass/pass_utils.h (96%) rename mindspore/lite/src/{runtime => litert}/pass/runtime_ncx_pass.cc (90%) rename mindspore/lite/src/{runtime => litert}/pass/runtime_ncx_pass.h (92%) rename mindspore/lite/src/{runtime => litert}/pass/runtime_optimizer.cc (96%) rename mindspore/lite/src/{runtime => litert}/pass/runtime_optimizer.h (97%) rename mindspore/lite/src/{runtime => litert}/pass/to_nchw_format.cc (97%) rename mindspore/lite/src/{runtime => litert}/pass/to_nchw_format.h (96%) rename mindspore/lite/src/{runtime => litert}/pass/transpose_strategy.cc (99%) rename mindspore/lite/src/{runtime => litert}/pass/transpose_strategy.h (98%) rename mindspore/lite/src/{runtime => litert}/runtime_allocator.cc (98%) rename mindspore/lite/src/{runtime => litert}/runtime_allocator.h (100%) rename mindspore/lite/src/{runtime => litert}/runtime_convert.cc (99%) rename mindspore/lite/src/{runtime => litert}/runtime_convert.h (100%) rename mindspore/lite/src/{runtime => litert}/runtime_pass.cc (99%) rename mindspore/lite/src/{runtime => litert}/runtime_pass.h (96%) rename mindspore/lite/src/{runtime => litert}/runtime_shape_fusion_pass.cc (99%) rename mindspore/lite/src/{runtime => litert}/runtime_shape_fusion_pass.h (98%) rename mindspore/lite/src/{runtime => litert}/scheduler.cc (99%) rename mindspore/lite/src/{runtime => litert}/scheduler.h (98%) rename mindspore/lite/src/{runtime => litert}/scheduler_cb.h (100%) rename mindspore/lite/src/{runtime => litert}/schema_tensor_wrapper.cc (97%) rename mindspore/lite/src/{runtime => litert}/schema_tensor_wrapper.h (100%) rename mindspore/lite/src/{runtime => litert}/sub_graph_kernel.cc (98%) rename mindspore/lite/src/{runtime => litert}/sub_graph_kernel.h (98%) rename mindspore/lite/src/{runtime => litert}/sub_graph_split.cc (99%) rename mindspore/lite/src/{runtime => litert}/sub_graph_split.h (98%) rename mindspore/lite/src/{runtime => litert}/tensor_category.cc (97%) rename mindspore/lite/src/{runtime => litert}/tensor_category.h (100%) rename mindspore/lite/src/{runtime => litert}/thread_cost_model.cc (98%) rename mindspore/lite/src/{runtime => litert}/thread_cost_model.h (100%) rename mindspore/lite/src/{runtime => litert}/weight_decoder.cc (99%) rename mindspore/lite/src/{runtime => litert}/weight_decoder.h (99%) diff --git a/.gitignore b/.gitignore index bcb8498bb02..f0ed8ce0e31 100644 --- a/.gitignore +++ b/.gitignore @@ -28,8 +28,8 @@ mindspore/lite/tools/converter/schema/inner mindspore/lite/schema/*.h mindspore/lite/schema/inner -mindspore/lite/src/runtime/kernel/opencl/cl/fp16/*.inc -mindspore/lite/src/runtime/kernel/opencl/cl/fp32/*.inc +mindspore/lite/src/litert/kernel/opencl/cl/fp16/*.inc +mindspore/lite/src/litert/kernel/opencl/cl/fp32/*.inc # Cmake files CMakeFiles/ diff --git a/.jenkins/check/config/filter_cppcheck.txt b/.jenkins/check/config/filter_cppcheck.txt index b2c2c6da62e..27fc81f7484 100644 --- a/.jenkins/check/config/filter_cppcheck.txt +++ b/.jenkins/check/config/filter_cppcheck.txt @@ -55,8 +55,8 @@ "mindspore/mindspore/lite/tools/converter/parser/onnx/onnx_relu_parser.cc" "useStlAlgorithm" "mindspore/mindspore/lite/tools/converter/parser/pytorch/pytorch_model_parser.cc" "variableScope" "mindspore/mindspore/lite/tools/converter/quantizer/quantize_util.cc" "useStlAlgorithm" -"mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/" "unreadVariable" -"mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/" "unreadVariable" +"mindspore/mindspore/lite/src/litert/kernel/opencl/kernel/" "unreadVariable" +"mindspore/mindspore/lite/src/litert/kernel/opencl/cl/" "unreadVariable" "mindspore/mindspore/lite/examples/quick_start_micro/" "syntaxError" "mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental" "unreadVariable" "mindspore/mindspore/lite/python/src/pybind_module.cc" "syntaxError" diff --git a/.jenkins/check/config/filter_cpplint.txt b/.jenkins/check/config/filter_cpplint.txt index 3ea0c08b526..2ebeaed6a8e 100644 --- a/.jenkins/check/config/filter_cpplint.txt +++ b/.jenkins/check/config/filter_cpplint.txt @@ -55,17 +55,17 @@ "mindspore/mindspore/lite/tools/benchmark/run_benchmark.cc" "runtime/threadsafe_fn" "mindspore/mindspore/lite/src/executor.h" "runtime/references" "mindspore/mindspore/lite/src/lite_kernel.h" "runtime/references" -"mindspore/mindspore/lite/src/runtime/opencl/opencl_runtime.h" "runtime/references" -"mindspore/mindspore/lite/src/runtime/opencl/opencl_executor.h" "runtime/references" -"mindspore/mindspore/lite/src/runtime/opencl/opencl_wrapper.h" "readability/casting" -"mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/" "legal/copyright" -"mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/" "readability/casting" -"mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/" "readability/fn_size" -"mindspore/mindspore/lite/src/runtime/thread_pool.c" "readability/casting" -"mindspore/mindspore/lite/src/runtime/thread_pool.c" "runtime/arrays" -"mindspore/mindspore/lite/src/runtime/thread_pool.c" "runtime/int" +"mindspore/mindspore/lite/src/litert/opencl/opencl_runtime.h" "runtime/references" +"mindspore/mindspore/lite/src/litert/opencl/opencl_executor.h" "runtime/references" +"mindspore/mindspore/lite/src/litert/opencl/opencl_wrapper.h" "readability/casting" +"mindspore/mindspore/lite/src/litert/kernel/opencl/cl/" "legal/copyright" +"mindspore/mindspore/lite/src/litert/kernel/opencl/cl/" "readability/casting" +"mindspore/mindspore/lite/src/litert/kernel/opencl/cl/" "readability/fn_size" +"mindspore/mindspore/lite/src/litert/thread_pool.c" "readability/casting" +"mindspore/mindspore/lite/src/litert/thread_pool.c" "runtime/arrays" +"mindspore/mindspore/lite/src/litert/thread_pool.c" "runtime/int" "mindspore/mindspore/lite/src/common/ops/ops_def.cc" "runtime/int" -"mindspore/mindspore/lite/src/runtime/delegate/coreml/coreml_executor.h" "readability/casting" +"mindspore/mindspore/lite/src/litert/delegate/coreml/coreml_executor.h" "readability/casting" "mindspore/mindspore/lite/examples/runtime_gpu_extend/src/cl" "legal/copyright" "mindspore/mindspore/lite/examples/runtime_gpu_extend/src/cl" "readability/casting" "mindspore/mindspore/lite/examples/runtime_gpu_extend/src/cl" "readability/fn_size" diff --git a/.jenkins/check/config/whitelizard.txt b/.jenkins/check/config/whitelizard.txt index 0ab276834e6..8520388ef49 100644 --- a/.jenkins/check/config/whitelizard.txt +++ b/.jenkins/check/config/whitelizard.txt @@ -29,13 +29,13 @@ mindspore/mindspore/python/mindspore/context.py:set_auto_parallel_context mindspore/mindspore/python/mindspore/common/tensor.py:__init__ mindspore/mindspore/python/mindspore/common/parameter.py:set_data mindspore/mindspore/ccsrc/pybind_api/ir/tensor_py.cc:mindspore::tensor::GetDataType -mindspore/mindspore/lite/src/runtime/thread_pool.c:GetArch -mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d.cc:mindspore::kernel::UseWinograd4x4To6x6 -mindspore/mindspore/lite/src/runtime/scheduler.cc:mindspore::lite::Scheduler::FindBackendKernel -mindspore/mindspore/lite/src/runtime/ios_reg_ops.cc:mindspore::lite::IosRegisterOps -mindspore/mindspore/lite/src/runtime/ios_reg_kernels.h:mindspore::kernel::IosRegisterKernels -mindspore/mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.cc:mindspore::kernel::QuantDTypeCastCPUKernel::QuantDTypeCast -mindspore/mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.cc:mindspore::kernel::QuantDTypeCastCPUKernel::Run +mindspore/mindspore/lite/src/litert/thread_pool.c:GetArch +mindspore/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d.cc:mindspore::kernel::UseWinograd4x4To6x6 +mindspore/mindspore/lite/src/litert/scheduler.cc:mindspore::lite::Scheduler::FindBackendKernel +mindspore/mindspore/lite/src/litert/ios_reg_ops.cc:mindspore::lite::IosRegisterOps +mindspore/mindspore/lite/src/litert/ios_reg_kernels.h:mindspore::kernel::IosRegisterKernels +mindspore/mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.cc:mindspore::kernel::QuantDTypeCastCPUKernel::QuantDTypeCast +mindspore/mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.cc:mindspore::kernel::QuantDTypeCastCPUKernel::Run mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/infer/strided_slice_infer.c:StridedSliceInferShape mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_transform_fp16.c:WinogradInputTransformFp16 mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/pooling_fp16.c:AvgPoolingFp16 @@ -177,7 +177,7 @@ mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-genera mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_12x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_12x8_kernel_nc8hw8_fp32 mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_5x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_5x8_kernel_nc8hw8_fp32 mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_3x8_kernel_nc8hw8_fp32 -mindspore/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::init_global_variable +mindspore/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::init_global_variable mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x24_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_3x24_kernel_nc8hw8_fp32 mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_4x16_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_4x16_kernel_nc8hw8_fp32 mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_1x24_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_1x24_kernel_nc8hw8_fp32 @@ -193,13 +193,13 @@ mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-genera mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x32_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_2x32_kernel_nc8hw8_fp32 mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x24_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_2x24_kernel_nc8hw8_fp32 mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_1x32_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_1x32_kernel_nc8hw8_fp32 -mindspore/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::Run +mindspore/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::Run mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/rec_core/rec_partition.cc:mindspore::parallel::GetWeights mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/rec_core/rec_partition.cc:mindspore::parallel::PartitionNode mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/instance_norm_fp16.c:InstanceNormNC8HW8Fp16 -mindspore/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::init_global_variable +mindspore/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::init_global_variable mindspore/mindspore/lite/src/train/train_loop.cc:mindspore::lite::TrainLoop::Train mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/conv_winograd_fp32.c:ConvWinogardFp32 mindspore/mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fusion/lamb_next_mv_with_decay_v1_rule.cc:mindspore::opt::MatchAdd5Pattern mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/conv_fp32_nchwx_avx512.c:conv2d_compute_fp32_nchwx_avx512 -mindspore/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_setitem.cc:mindspore::kernel::TensorListSetItemCPUKernel::Run +mindspore/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_setitem.cc:mindspore::kernel::TensorListSetItemCPUKernel::Run diff --git a/cmake/package_lite.cmake b/cmake/package_lite.cmake index 7492538f203..81d2529c6b3 100644 --- a/cmake/package_lite.cmake +++ b/cmake/package_lite.cmake @@ -606,7 +606,7 @@ if(PLATFORM_ARM64) COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") install(DIRECTORY ${TOP_DIR}/mindspore/core/mindapi/ DESTINATION ${RUNTIME_INC_DIR}/core/mindapi COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(FILES ${TOP_DIR}/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor.h DESTINATION + install(FILES ${TOP_DIR}/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor.h DESTINATION ${RUNTIME_INC_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME}) install(TARGETS kernel_executor DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME}) install(TARGETS mindspore_core DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME}) @@ -977,7 +977,7 @@ else() COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") install(DIRECTORY ${TOP_DIR}/mindspore/core/mindapi/ DESTINATION ${RUNTIME_INC_DIR}/core/mindapi COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(FILES ${TOP_DIR}/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor.h DESTINATION + install(FILES ${TOP_DIR}/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor.h DESTINATION ${RUNTIME_INC_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME}) install(TARGETS kernel_executor DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME}) install(TARGETS mindspore_core DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME}) diff --git a/mindspore/lite/CMakeLists.txt b/mindspore/lite/CMakeLists.txt index abde6a97acf..00a0d713014 100644 --- a/mindspore/lite/CMakeLists.txt +++ b/mindspore/lite/CMakeLists.txt @@ -578,7 +578,7 @@ include_directories(${CORE_DIR}) include_directories(${CORE_DIR}/ir) include_directories(${CCSRC_DIR}) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/runtime/kernel/cpu) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/litert/kernel/cpu) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/) include_directories(${TOP_DIR}/third_party) include_directories(${CMAKE_BINARY_DIR}) @@ -726,8 +726,8 @@ include(${LITE_DIR}/cmake/lite_dependences.cmake) if(MSLITE_GPU_BACKEND STREQUAL opencl) add_definitions(-DGPU_OPENCL) - gene_opencl(${CMAKE_CURRENT_SOURCE_DIR}/src/runtime/kernel/opencl/cl) - gene_opencl(${CMAKE_CURRENT_SOURCE_DIR}/src/runtime/kernel/opencl/cl/int8) + gene_opencl(${CMAKE_CURRENT_SOURCE_DIR}/src/litert/kernel/opencl/cl) + gene_opencl(${CMAKE_CURRENT_SOURCE_DIR}/src/litert/kernel/opencl/cl/int8) add_definitions(-DUSE_OPENCL_WRAPPER) add_definitions(-DMS_OPENCL_PROFILE=false) add_definitions(-DCL_TARGET_OPENCL_VERSION=200) diff --git a/mindspore/lite/experimental/kernel/convolution_fp32.h b/mindspore/lite/experimental/kernel/convolution_fp32.h index f80767e930a..cb8ba4a55fb 100644 --- a/mindspore/lite/experimental/kernel/convolution_fp32.h +++ b/mindspore/lite/experimental/kernel/convolution_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_EXPERIMENTAL_KERNEL_CONVOLUTION_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/experimental/src/exec_env_utils.h b/mindspore/lite/experimental/src/exec_env_utils.h index c7784042dc7..c127560665c 100644 --- a/mindspore/lite/experimental/src/exec_env_utils.h +++ b/mindspore/lite/experimental/src/exec_env_utils.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_EXPERIMENTAL_SRC_EXEC_ENV_UTILS_H_ #include "thread/threadpool.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "src/common/log_adapter.h" #include "src/common/log_util.h" diff --git a/mindspore/lite/experimental/src/tensor.h b/mindspore/lite/experimental/src/tensor.h index ef0a99acd83..0bdd66a3db8 100644 --- a/mindspore/lite/experimental/src/tensor.h +++ b/mindspore/lite/experimental/src/tensor.h @@ -25,11 +25,11 @@ #include #include #include "include/api/format.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "src/common/log_adapter.h" #include "schema/model_generated.h" #include "src/common/utils.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "nnacl/tensor_c.h" namespace mindspore { diff --git a/mindspore/lite/include/train/train_loop.h b/mindspore/lite/include/train/train_loop.h index 0a3ac9328f5..7f08107ba38 100644 --- a/mindspore/lite/include/train/train_loop.h +++ b/mindspore/lite/include/train/train_loop.h @@ -21,7 +21,7 @@ #include #include "include/train/train_loop_callback.h" #include "include/train/metrics.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" namespace mindspore { class MSTensor; diff --git a/mindspore/lite/minddata/CMakeLists.txt b/mindspore/lite/minddata/CMakeLists.txt index 5cb9f65fafe..096c1ec8765 100644 --- a/mindspore/lite/minddata/CMakeLists.txt +++ b/mindspore/lite/minddata/CMakeLists.txt @@ -109,9 +109,9 @@ if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "full") include_directories("${TOP_DIR}") set(MINDDATA_FULL_SRC - ${TOP_DIR}/mindspore/lite/src/runtime/cxx_api/types.cc - ${TOP_DIR}/mindspore/lite/src/runtime/cxx_api/tensor_utils.cc - ${TOP_DIR}/mindspore/lite/src/runtime/cxx_api/tensor/tensor_impl.cc + ${TOP_DIR}/mindspore/lite/src/litert/cxx_api/types.cc + ${TOP_DIR}/mindspore/lite/src/litert/cxx_api/tensor_utils.cc + ${TOP_DIR}/mindspore/lite/src/litert/cxx_api/tensor/tensor_impl.cc ${TOP_DIR}/mindspore/lite/src/tensor.cc ${TOP_DIR}/mindspore/lite/src/common/utils.cc ${TOP_DIR}/mindspore/lite/src/common/string_util.cc @@ -429,7 +429,7 @@ elseif(MSLITE_MINDDATA_IMPLEMENT STREQUAL "wrapper") set(MINDSPORE_LITE_CXXAPI_SRC ${CORE_DIR}/utils/status.cc - ${CMAKE_CURRENT_SOURCE_DIR}/../src/runtime/cxx_api/types.cc + ${CMAKE_CURRENT_SOURCE_DIR}/../src/litert/cxx_api/types.cc ${CMAKE_CURRENT_SOURCE_DIR}/../src/tensor.cc ${CMAKE_CURRENT_SOURCE_DIR}/../src/common/utils.cc ) diff --git a/mindspore/lite/src/CMakeLists.txt b/mindspore/lite/src/CMakeLists.txt index e9e3d355dbb..3d2341cc26f 100644 --- a/mindspore/lite/src/CMakeLists.txt +++ b/mindspore/lite/src/CMakeLists.txt @@ -60,23 +60,23 @@ elseif(NOT MSVC) endif() file(GLOB CXX_API_SRCS - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/model/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/graph/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/tensor/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/model/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/graph/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/tensor/*.cc ) if(MSLITE_ENABLE_PARALLEL_INFERENCE) set(CXX_API_SRCS ${CXX_API_SRCS} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/model_pool/predict_task_queue.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/model_pool/model_worker.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/model_pool/model_pool.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/model_pool/model_parallel_runner.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/model_pool/predict_task_queue.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/model_pool/model_worker.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/model_pool/model_pool.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/model_pool/model_parallel_runner.cc ) endif() file(GLOB C_API_SRCS - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/c_api/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/c_api/*.cc ) set(API_SRC ${CXX_API_SRCS} ${C_API_SRCS}) if(NOT MSLITE_ENABLE_RUNTIME_CONVERT) @@ -85,10 +85,10 @@ if(NOT MSLITE_ENABLE_RUNTIME_CONVERT) endif() if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "full") file(GLOB CXX_API_TRAIN_SRCS - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/train/model.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/train/model_impl.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/metrics/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/callback/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/train/model.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/train/model_impl.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/metrics/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/callback/*.cc ) set(API_TRAIN_SRC ${CXX_API_TRAIN_SRCS} @@ -110,30 +110,30 @@ set(LITE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/common/log.cc ${CMAKE_CURRENT_SOURCE_DIR}/common/prim_util.cc ${CMAKE_CURRENT_SOURCE_DIR}/common/tensor_util.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/allocator.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/inner_allocator.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/runtime_allocator.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/infer_manager.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/runtime_shape_fusion_pass.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/runtime_pass.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/runtime_ncx_pass.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/schema_tensor_wrapper.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/allocator.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/inner_allocator.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/runtime_allocator.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/infer_manager.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/runtime_shape_fusion_pass.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/runtime_pass.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/runtime_ncx_pass.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/schema_tensor_wrapper.cc ${CMAKE_CURRENT_SOURCE_DIR}/tensor.cc ${CMAKE_CURRENT_SOURCE_DIR}/tensorlist.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/tensor_category.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/executor.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/inner_context.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/lite_model.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/kernel_registry.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/lite_kernel.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/kernel_exec.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/kernel_exec_util.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/sub_graph_kernel.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/scheduler.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/lite_session.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/tensor_category.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/executor.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/inner_context.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/lite_model.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/kernel_registry.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/lite_kernel.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/kernel_exec.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/kernel_exec_util.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/sub_graph_kernel.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/scheduler.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/lite_session.cc ${CMAKE_CURRENT_SOURCE_DIR}/errorcode.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cpu_info.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pack_weight_manager.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cpu_info.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pack_weight_manager.cc ${CMAKE_CURRENT_SOURCE_DIR}/control_flow/control_flow_scheduler.cc ${CMAKE_CURRENT_SOURCE_DIR}/control_flow/control_subgraph_creator.cc ) @@ -161,23 +161,23 @@ endif() if(MSLITE_ENABLE_BFC_MEMORY) set(LITE_SRC ${LITE_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/dynamic_mem_allocator.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/dynamic_mem_manager.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/numa_adapter.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/dynamic_mem_allocator.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/dynamic_mem_manager.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/numa_adapter.cc ) endif() if(MSLITE_ENABLE_SHARING_MODEL_WEIGHT) set(LITE_SRC ${LITE_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pack_weight.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pack_weight.cc ) endif() if(MSLITE_ENABLE_DYNAMIC_THREAD_DISTRIBUTE) set(LITE_SRC ${LITE_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/thread_cost_model.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/thread_cost_model.cc ) endif() @@ -212,7 +212,7 @@ if(MSLITE_ENABLE_RUNTIME_CONVERT) ${CMAKE_CURRENT_SOURCE_DIR}/common/ops/ops_def.cc ${CMAKE_CURRENT_SOURCE_DIR}/common/ops/ops_utils.cc ${CMAKE_CURRENT_SOURCE_DIR}/common/ops/anf_utils.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/runtime_convert.cc) + ${CMAKE_CURRENT_SOURCE_DIR}/litert/runtime_convert.cc) set(LITE_SRC ${LITE_SRC} ${RUNTIME_CONVERT_SRC}) endif() @@ -225,20 +225,20 @@ if(MSLITE_ENABLE_STRING_KERNEL) endif() if(ENABLE_RUNTIME_NCX_PASS) file(GLOB RUNTIME_NCX_PASS_SRC - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/decrease_transpose_algo.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/delete_isolated_kernel.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/infershape_pass.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/pass_utils.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/runtime_optimizer.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/to_nchw_format.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/pass/transpose_strategy.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/decrease_transpose_algo.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/delete_isolated_kernel.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/infershape_pass.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/pass_utils.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/runtime_optimizer.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/to_nchw_format.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/pass/transpose_strategy.cc ) set(LITE_SRC ${LITE_SRC} ${RUNTIME_NCX_PASS_SRC}) endif() if(MSLITE_ENABLE_WEIGHT_DECODE) set(LITE_SRC ${LITE_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/huffman_decode.cc) + ${CMAKE_CURRENT_SOURCE_DIR}/litert/huffman_decode.cc) if(NOT MSLITE_ENABLE_RUNTIME_CONVERT) set(LITE_SRC ${LITE_SRC} ${TOOLS_DIR}/converter/quantizer/fse_decoder.cc @@ -249,7 +249,7 @@ endif() if(MSLITE_ENABLE_AUTO_PARALLEL) set(LITE_SRC ${LITE_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/sub_graph_split.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/sub_graph_split.cc ) endif() @@ -260,12 +260,12 @@ endif() set(LITE_SRC ${LITE_SRC} ${KERNEL_REG_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/weight_decoder.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/weight_decoder.cc ) if(MSLITE_GPU_BACKEND STREQUAL opencl) file(GLOB_RECURSE OPENCL_RUNTIME_SRC - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/kernel/gpu/opencl/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/kernel/gpu/opencl/*.cc ) set(LITE_SRC ${LITE_SRC} @@ -275,8 +275,8 @@ endif() if(MSLITE_GPU_BACKEND STREQUAL cuda) file(GLOB CUDA_RUNTIME_SRC - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/gpu/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/gpu/cuda/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/gpu/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/gpu/cuda/*.cc ) set(LITE_SRC ${LITE_SRC} @@ -291,7 +291,7 @@ endif() file(GLOB CXX_API_EXPRESSION - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/expression/*.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/expression/*.cc ) file(GLOB EXPRESSION_OPS @@ -317,11 +317,11 @@ set(TRAIN_SRC ${TRAIN_SRC_WITH_MD} ${EXPRESSION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/common/quant_utils.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/metrics/accuracy.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/train/model_build.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/train/model_build_impl.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/train/converters.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/cxx_api/train/train_support.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/metrics/accuracy.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/train/model_build.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/train/model_build_impl.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/train/converters.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/cxx_api/train/train_support.cc ${CMAKE_CURRENT_SOURCE_DIR}/train/train_populate_parameter.cc ${CMAKE_CURRENT_SOURCE_DIR}/train/train_session.cc ${CMAKE_CURRENT_SOURCE_DIR}/train/graph_fusion.cc @@ -350,8 +350,8 @@ set(TRAIN_SRC if(MSLITE_ENABLE_MINDRT) add_subdirectory(${CORE_DIR}/mindrt mindspore_mindrt) set(LITE_SRC ${LITE_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/lite_mindrt.cc - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/mindrt_executor.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/lite_mindrt.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/mindrt_executor.cc ${CMAKE_CURRENT_SOURCE_DIR}/control_flow/control_actor_creator.cc ) if(MSLITE_ENABLE_CONTROLFLOW) @@ -370,17 +370,17 @@ endif() if(MSLITE_ENABLE_GRAPH_KERNEL) file(GLOB_RECURSE GRAPH_KERNEL_SRC ${TOOLS_DIR}/graph_kernel/common/*.cc - ${TOOLS_DIR}/graph_kernel/runtime/*.cc + ${TOOLS_DIR}/graph_kernel/litert/*.cc ) set(LITE_SRC ${LITE_SRC} ${GRAPH_KERNEL_SRC}) endif() if(NOT MSLITE_ENABLE_COREML) set(LITE_SRC ${LITE_SRC} - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/delegate/coreml/stub/coreml_delegate_stub.cc) + ${CMAKE_CURRENT_SOURCE_DIR}/litert/delegate/coreml/stub/coreml_delegate_stub.cc) endif() -add_subdirectory(runtime/kernel/cpu) +add_subdirectory(litert/kernel/cpu) add_library(lite_src_mid OBJECT ${LITE_SRC}) add_dependencies(lite_src_mid fbs_src) @@ -388,7 +388,7 @@ add_dependencies(lite_src_mid fbs_src) if(MSLITE_ENABLE_ACL) include_directories(${TOP_DIR}/graphengine/inc/external) if(NOT MSLITE_ENABLE_CLOUD_FUSION_INFERENCE) - add_subdirectory(runtime/kernel/ascend) + add_subdirectory(litert/kernel/ascend) else() add_compile_definitions(ENABLE_CLOUD_FUSION_INFERENCE) endif() @@ -431,7 +431,7 @@ if(APPLE) ${MINDSPORE_LITE_PUB_HDRS_SCHEMA_HDRS} ${MINDSPORE_LITE_PUB_HDRS_FBS_HDRS} ) - add_subdirectory(runtime/delegate/coreml) + add_subdirectory(litert/delegate/coreml) target_link_libraries(mindspore-lite_static coreml_proto_mid coreml_kernel_mid) endif() add_dependencies(mindspore-lite_static fbs_inner_src) @@ -482,14 +482,14 @@ if(SUPPORT_TENSORRT) set(CUDA_LIB_PATH ${CUDA_PATH}/lib64) include_directories(${TENSORRT_PATH}/include) include_directories(${CUDA_PATH}/include) - add_subdirectory(runtime/delegate/tensorrt) + add_subdirectory(litert/delegate/tensorrt) endif() target_link_libraries(mindspore-lite tensorrt_kernel_mid cuda_kernel_mid gpu_distribution_collective) target_link_libraries(mindspore-lite_static tensorrt_kernel_mid cuda_kernel_mid gpu_distribution_collective) else() if(NOT MSLITE_ENABLE_CLOUD_FUSION_INFERENCE) set(TENSORRT_STUB - ${CMAKE_CURRENT_SOURCE_DIR}/runtime/delegate/tensorrt/distribution/distribution_base.cc + ${CMAKE_CURRENT_SOURCE_DIR}/litert/delegate/tensorrt/distribution/distribution_base.cc ) add_library(tensorrt_stub OBJECT ${TENSORRT_STUB}) endif() @@ -498,13 +498,13 @@ else() endif() if(MSLITE_GPU_BACKEND STREQUAL opencl) - add_subdirectory(runtime/kernel/opencl) + add_subdirectory(litert/kernel/opencl) target_link_libraries(mindspore-lite opencl_kernel_mid) target_link_libraries(mindspore-lite_static opencl_kernel_mid) endif() if(SUPPORT_NPU) - add_subdirectory(runtime/delegate/npu) + add_subdirectory(litert/delegate/npu) target_link_libraries(mindspore-lite npu_kernel_mid) target_link_libraries(mindspore-lite_static npu_kernel_mid) endif() @@ -542,7 +542,7 @@ if(SUPPORT_TRAIN) endif() if(MSLITE_ENABLE_KERNEL_EXECUTOR) - add_subdirectory(runtime/cxx_api/kernel_executor) + add_subdirectory(litert/cxx_api/kernel_executor) endif() ########################## build optimize and float16 library ################################# diff --git a/mindspore/lite/src/common/context_util.h b/mindspore/lite/src/common/context_util.h index cc3140481da..d3e43268f10 100644 --- a/mindspore/lite/src/common/context_util.h +++ b/mindspore/lite/src/common/context_util.h @@ -21,7 +21,7 @@ #include #include "include/context.h" #include "include/api/context.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/common/tensor_util.cc b/mindspore/lite/src/common/tensor_util.cc index f44f9bb0712..5bde7fefbcd 100644 --- a/mindspore/lite/src/common/tensor_util.cc +++ b/mindspore/lite/src/common/tensor_util.cc @@ -22,7 +22,7 @@ #include "include/errorcode.h" #include "src/common/log_adapter.h" #ifdef ENABLE_FP16 -#include "src/runtime/kernel/cpu/fp16/fp16_op_handler.h" +#include "src/litert/kernel/cpu/fp16/fp16_op_handler.h" #endif namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/common/tensor_util.h b/mindspore/lite/src/common/tensor_util.h index 6e8ac3af7be..b90db3d34b1 100644 --- a/mindspore/lite/src/common/tensor_util.h +++ b/mindspore/lite/src/common/tensor_util.h @@ -25,7 +25,7 @@ #include "src/tensorlist.h" #include "nnacl/infer/common_infer.h" #include "nnacl/tensorlist_c_utils.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/control_flow/actor/entrance_actor.cc b/mindspore/lite/src/control_flow/actor/entrance_actor.cc index 7fa8e417f14..2077e6a37ba 100644 --- a/mindspore/lite/src/control_flow/actor/entrance_actor.cc +++ b/mindspore/lite/src/control_flow/actor/entrance_actor.cc @@ -18,7 +18,7 @@ #include #include "mindrt/include/mindrt.hpp" #include "src/common/tensor_util.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" namespace { const constexpr int kToExitIndex = 0; diff --git a/mindspore/lite/src/control_flow/actor/entrance_actor.h b/mindspore/lite/src/control_flow/actor/entrance_actor.h index 43e453c7a83..f27c5741963 100644 --- a/mindspore/lite/src/control_flow/actor/entrance_actor.h +++ b/mindspore/lite/src/control_flow/actor/entrance_actor.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/lite_mindrt.h" +#include "src/litert/lite_mindrt.h" namespace mindspore::lite { class LiteEntranceOpActor : public LiteOpActor { diff --git a/mindspore/lite/src/control_flow/actor/exit_actor.cc b/mindspore/lite/src/control_flow/actor/exit_actor.cc index ac244d10823..e5809b2ad4c 100644 --- a/mindspore/lite/src/control_flow/actor/exit_actor.cc +++ b/mindspore/lite/src/control_flow/actor/exit_actor.cc @@ -17,7 +17,7 @@ #include "src/control_flow/actor/exit_actor.h" #include #include "src/control_flow/kernel/exit_subgraph_kernel.h" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" #include "src/common/tensor_util.h" namespace { diff --git a/mindspore/lite/src/control_flow/actor/exit_actor.h b/mindspore/lite/src/control_flow/actor/exit_actor.h index 9b0ab8223f8..c7d8ea9ef76 100644 --- a/mindspore/lite/src/control_flow/actor/exit_actor.h +++ b/mindspore/lite/src/control_flow/actor/exit_actor.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/lite_mindrt.h" +#include "src/litert/lite_mindrt.h" namespace mindspore::lite { class LiteExitOpActor : public LiteOpActor { diff --git a/mindspore/lite/src/control_flow/actor/switch_actor.cc b/mindspore/lite/src/control_flow/actor/switch_actor.cc index d35ae373f84..1cafbefdd35 100644 --- a/mindspore/lite/src/control_flow/actor/switch_actor.cc +++ b/mindspore/lite/src/control_flow/actor/switch_actor.cc @@ -18,11 +18,11 @@ #include #include #include "mindrt/include/mindrt.hpp" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" #include "src/common/tensor_util.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #ifdef ENABLE_FP16 -#include "src/runtime/kernel/cpu/fp16/fp16_op_handler.h" +#include "src/litert/kernel/cpu/fp16/fp16_op_handler.h" #endif namespace { const constexpr int kSwitchMaxInputKernelSize = 3; diff --git a/mindspore/lite/src/control_flow/actor/switch_actor.h b/mindspore/lite/src/control_flow/actor/switch_actor.h index d858a38b4e7..1817b4d7afc 100644 --- a/mindspore/lite/src/control_flow/actor/switch_actor.h +++ b/mindspore/lite/src/control_flow/actor/switch_actor.h @@ -22,7 +22,7 @@ #include #include #include -#include "src/runtime/lite_mindrt.h" +#include "src/litert/lite_mindrt.h" namespace mindspore::lite { class LiteSwitchOpActor : public LiteOpActor { diff --git a/mindspore/lite/src/control_flow/control_actor_creator.cc b/mindspore/lite/src/control_flow/control_actor_creator.cc index 08e14f20f96..58810eecf2c 100644 --- a/mindspore/lite/src/control_flow/control_actor_creator.cc +++ b/mindspore/lite/src/control_flow/control_actor_creator.cc @@ -15,7 +15,7 @@ */ #include "src/control_flow/control_actor_creator.h" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" #ifndef CONTROLFLOW_TENSORLIST_CLIP #include "src/control_flow/actor/switch_actor.h" #include "src/control_flow/actor/entrance_actor.h" diff --git a/mindspore/lite/src/control_flow/control_actor_creator.h b/mindspore/lite/src/control_flow/control_actor_creator.h index aa8b57fae73..0826d062dda 100644 --- a/mindspore/lite/src/control_flow/control_actor_creator.h +++ b/mindspore/lite/src/control_flow/control_actor_creator.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_CONTROL_FLOW_CONTROL_ACTOR_CREATOR_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/lite_mindrt.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/lite_mindrt.h" namespace mindspore::lite { std::shared_ptr CreateActor(kernel::KernelExec *kernel, lite::InnerContext *ctx); diff --git a/mindspore/lite/src/control_flow/control_flow_scheduler.cc b/mindspore/lite/src/control_flow/control_flow_scheduler.cc index 61212322097..f9633f1126d 100644 --- a/mindspore/lite/src/control_flow/control_flow_scheduler.cc +++ b/mindspore/lite/src/control_flow/control_flow_scheduler.cc @@ -18,8 +18,8 @@ #ifndef CONTROLFLOW_TENSORLIST_CLIP #include #include -#include "src/runtime/kernel_exec_util.h" -#include "src/runtime/kernel/cpu/base/partial_fusion.h" +#include "src/litert/kernel_exec_util.h" +#include "src/litert/kernel/cpu/base/partial_fusion.h" #include "nnacl/call_parameter.h" #include "src/control_flow/kernel/exit_subgraph_kernel.h" #include "src/control_flow/kernel/identity_kernel.h" diff --git a/mindspore/lite/src/control_flow/control_flow_scheduler.h b/mindspore/lite/src/control_flow/control_flow_scheduler.h index 80c68bbd846..51364278ea3 100644 --- a/mindspore/lite/src/control_flow/control_flow_scheduler.h +++ b/mindspore/lite/src/control_flow/control_flow_scheduler.h @@ -27,9 +27,9 @@ #include "src/common/utils.h" #include "src/common/log_util.h" #include "nnacl/op_base.h" -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" #include "src/tensor.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/sub_graph_kernel.h" #include "include/model.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/control_flow/control_subgraph_creator.h b/mindspore/lite/src/control_flow/control_subgraph_creator.h index b4251aea6c5..bdf24efbc16 100644 --- a/mindspore/lite/src/control_flow/control_subgraph_creator.h +++ b/mindspore/lite/src/control_flow/control_subgraph_creator.h @@ -16,8 +16,8 @@ #ifndef MINDSPORE_LITE_SRC_CONTROL_FLOW_CONTROL_SUBGRAPH_CREATOR_H_ #define MINDSPORE_LITE_SRC_CONTROL_FLOW_CONTROL_SUBGRAPH_CREATOR_H_ -#include "src/runtime/lite_kernel.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::lite { kernel::SubGraphKernel *CreateControlSubgraph(const kernel::SubGraphType &type, kernel::LiteKernel *kernel); diff --git a/mindspore/lite/src/control_flow/kernel/entrance_subgraph_kernel.h b/mindspore/lite/src/control_flow/kernel/entrance_subgraph_kernel.h index 43c9d097d09..4affc033e0d 100644 --- a/mindspore/lite/src/control_flow/kernel/entrance_subgraph_kernel.h +++ b/mindspore/lite/src/control_flow/kernel/entrance_subgraph_kernel.h @@ -22,12 +22,12 @@ #include #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/executor.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/executor.h" #include "src/common/log_adapter.h" #include "src/common/version_manager.h" -#include "src/runtime/cpu_info.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/cpu_info.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::kernel { class EntranceSubGraphKernel : public SubGraphKernel { diff --git a/mindspore/lite/src/control_flow/kernel/exit_subgraph_kernel.h b/mindspore/lite/src/control_flow/kernel/exit_subgraph_kernel.h index 5411995387f..a2c9abfc753 100644 --- a/mindspore/lite/src/control_flow/kernel/exit_subgraph_kernel.h +++ b/mindspore/lite/src/control_flow/kernel/exit_subgraph_kernel.h @@ -23,12 +23,12 @@ #include #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/executor.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/executor.h" #include "src/common/log_adapter.h" #include "src/common/version_manager.h" -#include "src/runtime/cpu_info.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/cpu_info.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::kernel { class ExitSubGraphKernel : public SubGraphKernel { diff --git a/mindspore/lite/src/control_flow/kernel/identity_kernel.cc b/mindspore/lite/src/control_flow/kernel/identity_kernel.cc index e75fafea1a5..cb689097caf 100644 --- a/mindspore/lite/src/control_flow/kernel/identity_kernel.cc +++ b/mindspore/lite/src/control_flow/kernel/identity_kernel.cc @@ -16,7 +16,7 @@ #include "src/control_flow/kernel/identity_kernel.h" #include "src/tensor.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/common/tensor_util.h" #include "src/common/prim_inner.h" diff --git a/mindspore/lite/src/control_flow/kernel/identity_kernel.h b/mindspore/lite/src/control_flow/kernel/identity_kernel.h index 5471e52d175..dbb6c3f4f2d 100644 --- a/mindspore/lite/src/control_flow/kernel/identity_kernel.h +++ b/mindspore/lite/src/control_flow/kernel/identity_kernel.h @@ -23,12 +23,12 @@ #include #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/executor.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/executor.h" #include "src/common/log_adapter.h" #include "src/common/version_manager.h" -#include "src/runtime/cpu_info.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/cpu_info.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::kernel { // Identity kernel is used to update a reference to a tensor. This is useful in control flow model. diff --git a/mindspore/lite/src/expression/net.cc b/mindspore/lite/src/expression/net.cc index 4ca3c31a50c..560f8cf6303 100644 --- a/mindspore/lite/src/expression/net.cc +++ b/mindspore/lite/src/expression/net.cc @@ -16,7 +16,7 @@ #include "src/expression/net.h" #include -#include "src/runtime/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/expression/net_impl.h" #include "src/expression/ops.h" #include "src/expression/export.h" #include "src/expression/ops/addn.h" diff --git a/mindspore/lite/src/expression/node.cc b/mindspore/lite/src/expression/node.cc index e78d08eea70..276caacaaf3 100644 --- a/mindspore/lite/src/expression/node.cc +++ b/mindspore/lite/src/expression/node.cc @@ -20,9 +20,9 @@ #include "src/expression/node.h" #include "src/expression/ops.h" #include "src/expression/export.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" #include "src/common/utils.h" -#include "src/runtime/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/expression/net_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/activation.cc b/mindspore/lite/src/expression/ops/activation.cc index c0d59864fc0..3429a0034a2 100644 --- a/mindspore/lite/src/expression/ops/activation.cc +++ b/mindspore/lite/src/expression/ops/activation.cc @@ -17,7 +17,7 @@ #include "nnacl/fp32/activation_fp32.h" #include "src/expression/import.h" #include "src/expression/ops.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/adam.cc b/mindspore/lite/src/expression/ops/adam.cc index 2d28f07954b..7fcfdc740f7 100644 --- a/mindspore/lite/src/expression/ops/adam.cc +++ b/mindspore/lite/src/expression/ops/adam.cc @@ -23,7 +23,7 @@ #include "src/expression/ops/arithmetic.h" #include "nnacl/fp32_grad/optimizer.h" #include "include/api/net.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace NN { diff --git a/mindspore/lite/src/expression/ops/arithmetic.cc b/mindspore/lite/src/expression/ops/arithmetic.cc index 41f9a21f74b..8a141e0c01c 100644 --- a/mindspore/lite/src/expression/ops/arithmetic.cc +++ b/mindspore/lite/src/expression/ops/arithmetic.cc @@ -23,7 +23,7 @@ #include "src/expression/ops.h" #include "nnacl/arithmetic.h" #include "src/expression/import.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/batchnorm.cc b/mindspore/lite/src/expression/ops/batchnorm.cc index b0684b07bb2..7b8d4fd9178 100644 --- a/mindspore/lite/src/expression/ops/batchnorm.cc +++ b/mindspore/lite/src/expression/ops/batchnorm.cc @@ -20,7 +20,7 @@ #include "nnacl/fp32_grad/batch_norm.h" #include "src/expression/import.h" #include "src/expression/ops.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/conv.cc b/mindspore/lite/src/expression/ops/conv.cc index ff1d47756f7..6bebdef741c 100644 --- a/mindspore/lite/src/expression/ops/conv.cc +++ b/mindspore/lite/src/expression/ops/conv.cc @@ -23,7 +23,7 @@ #include "inner/model_generated.h" #include "src/expression/import.h" #include "src/expression/ops.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/dense.cc b/mindspore/lite/src/expression/ops/dense.cc index 0b338768373..9d1df46fbc7 100644 --- a/mindspore/lite/src/expression/ops/dense.cc +++ b/mindspore/lite/src/expression/ops/dense.cc @@ -23,7 +23,7 @@ #include "nnacl/matmul_parameter.h" #include "src/expression/import.h" #include "inner/model_generated.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/dropout.cc b/mindspore/lite/src/expression/ops/dropout.cc index 7aaf9c80d33..e49bf07a1bc 100644 --- a/mindspore/lite/src/expression/ops/dropout.cc +++ b/mindspore/lite/src/expression/ops/dropout.cc @@ -20,7 +20,7 @@ #include "inner/model_generated.h" #include "src/expression/import.h" #include "src/expression/ops.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/flatten.cc b/mindspore/lite/src/expression/ops/flatten.cc index 4e6e6430b8d..765641869b6 100644 --- a/mindspore/lite/src/expression/ops/flatten.cc +++ b/mindspore/lite/src/expression/ops/flatten.cc @@ -20,7 +20,7 @@ #include "src/expression/import.h" #include "src/expression/ops.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" #include "nnacl/op_base.h" namespace mindspore { diff --git a/mindspore/lite/src/expression/ops/pooling.cc b/mindspore/lite/src/expression/ops/pooling.cc index 3278ae018da..e5b0581fbfb 100644 --- a/mindspore/lite/src/expression/ops/pooling.cc +++ b/mindspore/lite/src/expression/ops/pooling.cc @@ -17,7 +17,7 @@ #include "src/expression/ops/pooling.h" #include "src/expression/ops.h" #include "src/expression/import.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" #include "src/expression/ops/transpose.h" namespace mindspore { diff --git a/mindspore/lite/src/expression/ops/reduce.cc b/mindspore/lite/src/expression/ops/reduce.cc index ad433ac8242..055d2026441 100644 --- a/mindspore/lite/src/expression/ops/reduce.cc +++ b/mindspore/lite/src/expression/ops/reduce.cc @@ -23,7 +23,7 @@ #include "src/expression/ops_utils.h" #include "src/expression/import.h" #include "nnacl/reduce_parameter.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/expression/ops/softmax.cc b/mindspore/lite/src/expression/ops/softmax.cc index e90302a90b2..29ab5ee1c63 100644 --- a/mindspore/lite/src/expression/ops/softmax.cc +++ b/mindspore/lite/src/expression/ops/softmax.cc @@ -22,7 +22,7 @@ #include "src/expression/ops/reduce.h" #include "src/expression/ops/arithmetic.h" #include "src/expression/ops/transpose.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" #include "src/expression/ops.h" namespace mindspore { diff --git a/mindspore/lite/src/expression/ops/softmaxCE.cc b/mindspore/lite/src/expression/ops/softmaxCE.cc index dfb6bc4751f..f4ffce87316 100644 --- a/mindspore/lite/src/expression/ops/softmaxCE.cc +++ b/mindspore/lite/src/expression/ops/softmaxCE.cc @@ -16,7 +16,7 @@ #include "src/expression/ops/softmaxCE.h" #include "include/api/net.h" -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" #include "src/expression/ops/reduce.h" namespace mindspore { namespace NN { diff --git a/mindspore/lite/src/extendrt/cxx_api/context.cc b/mindspore/lite/src/extendrt/cxx_api/context.cc index d717f6d0c2e..29cec65b737 100644 --- a/mindspore/lite/src/extendrt/cxx_api/context.cc +++ b/mindspore/lite/src/extendrt/cxx_api/context.cc @@ -19,7 +19,7 @@ #include "include/api/types.h" #include "include/api/data_type.h" #include "include/lite_types.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "src/common/log_adapter.h" #include "src/extendrt/delegate/tensorrt/distribution/distribution_base.h" diff --git a/mindspore/lite/src/extendrt/delegate/parameter_cache/load_host_cache_model.h b/mindspore/lite/src/extendrt/delegate/parameter_cache/load_host_cache_model.h index fb3630eb0d4..8340993e5b9 100644 --- a/mindspore/lite/src/extendrt/delegate/parameter_cache/load_host_cache_model.h +++ b/mindspore/lite/src/extendrt/delegate/parameter_cache/load_host_cache_model.h @@ -24,7 +24,7 @@ #include "include/api/types.h" #include "include/api/kernel.h" #include "include/api/delegate.h" -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" namespace mindspore { namespace cache { diff --git a/mindspore/lite/src/extendrt/delegate/tensorrt/CMakeLists.txt b/mindspore/lite/src/extendrt/delegate/tensorrt/CMakeLists.txt index 1a33073ad48..92f552b8e77 100644 --- a/mindspore/lite/src/extendrt/delegate/tensorrt/CMakeLists.txt +++ b/mindspore/lite/src/extendrt/delegate/tensorrt/CMakeLists.txt @@ -43,7 +43,7 @@ file(GLOB TENSORRT_RUNTIME_SRC LIST_DIRECTORIES false ${CMAKE_CURRENT_SOURCE_DIR}/*.cc ${CMAKE_CURRENT_SOURCE_DIR}/op/*.cc ${CMAKE_CURRENT_SOURCE_DIR}/cuda_impl/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/../../../runtime/delegate/delegate_utils.cc + ${CMAKE_CURRENT_SOURCE_DIR}/../../../litert/delegate/delegate_utils.cc ${CCSRC_DIR}/plugin/device/gpu/kernel/cuda_impl/cuda_ops/cuda_device_info.cc ) diff --git a/mindspore/lite/src/extendrt/delegate/tensorrt/op/normalize_tensorrt.cc b/mindspore/lite/src/extendrt/delegate/tensorrt/op/normalize_tensorrt.cc index 1318639fc8c..2fa776dfa31 100644 --- a/mindspore/lite/src/extendrt/delegate/tensorrt/op/normalize_tensorrt.cc +++ b/mindspore/lite/src/extendrt/delegate/tensorrt/op/normalize_tensorrt.cc @@ -17,6 +17,7 @@ #include "src/extendrt/delegate/tensorrt/op/normalize_tensorrt.h" #include #include +#include #include "src/extendrt/delegate/tensorrt/op/normalize_opt_plugin.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/extendrt/delegate/tensorrt/op/tensorrt_op.h b/mindspore/lite/src/extendrt/delegate/tensorrt/op/tensorrt_op.h index 12f2a8c6e45..94bc586d5dc 100644 --- a/mindspore/lite/src/extendrt/delegate/tensorrt/op/tensorrt_op.h +++ b/mindspore/lite/src/extendrt/delegate/tensorrt/op/tensorrt_op.h @@ -25,7 +25,7 @@ #include "include/errorcode.h" #include "src/extendrt/delegate/tensorrt/tensorrt_context.h" #include "src/extendrt/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/auto_registration_factory.h" +#include "src/litert/delegate/auto_registration_factory.h" #include "src/common/log_util.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_delegate.cc b/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_delegate.cc index 5a0c5f489ea..ec7359aa207 100644 --- a/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_delegate.cc +++ b/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_delegate.cc @@ -19,8 +19,8 @@ #include #include #include -#include "src/runtime/delegate/delegate_utils.h" -#include "src/runtime/delegate/auto_registration_factory.h" +#include "src/litert/delegate/delegate_utils.h" +#include "src/litert/delegate/auto_registration_factory.h" namespace mindspore::lite { TensorRTDelegate::~TensorRTDelegate() { diff --git a/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_subgraph.cc b/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_subgraph.cc index 17c664aae07..fde064cb8a2 100644 --- a/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_subgraph.cc +++ b/mindspore/lite/src/extendrt/delegate/tensorrt/tensorrt_subgraph.cc @@ -21,7 +21,7 @@ #include #include #include -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/delegate_utils.h" namespace mindspore::lite { TensorRTSubGraph::~TensorRTSubGraph() { diff --git a/mindspore/lite/src/extendrt/kernel/cuda/cuda_kernel.h b/mindspore/lite/src/extendrt/kernel/cuda/cuda_kernel.h index 9fce4acb67b..f6e6ac1d7bf 100644 --- a/mindspore/lite/src/extendrt/kernel/cuda/cuda_kernel.h +++ b/mindspore/lite/src/extendrt/kernel/cuda/cuda_kernel.h @@ -21,8 +21,8 @@ #include #include #include -#include "src/runtime/inner_kernel.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/inner_kernel.h" +#include "src/litert/lite_kernel.h" #include "cuda_impl/cuda_class/helper_base.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/extendrt/mindir_loader/abstract_base_model.h b/mindspore/lite/src/extendrt/mindir_loader/abstract_base_model.h index a29e3d32019..39aabf6691b 100644 --- a/mindspore/lite/src/extendrt/mindir_loader/abstract_base_model.h +++ b/mindspore/lite/src/extendrt/mindir_loader/abstract_base_model.h @@ -22,7 +22,7 @@ #include "include/model.h" #include "src/tensor.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" using Model = mindspore::lite::Model; using LiteGraph = mindspore::lite::LiteGraph; diff --git a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/inner_kernel.h b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/inner_kernel.h index 95dd34b60d7..01e31e04e42 100644 --- a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/inner_kernel.h +++ b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/inner_kernel.h @@ -24,7 +24,7 @@ #include "src/tensor.h" #include "include/errorcode.h" #include "include/api/kernel.h" -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" // #include "include/api/context.h" #include "kernel/kernel.h" #include "extendrt/mindir_loader/abstract_kernel.h" diff --git a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.cc b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.cc index bccb11f0566..6e6c7a888ad 100644 --- a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.cc +++ b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.cc @@ -23,11 +23,11 @@ #include "utils/ms_utils_secure.h" #include "extendrt/mindir_loader/mindir_model/mindir_model_util.h" #include "extendrt/mindir_loader/mindir_model/kernel_mod_util.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "extendrt/mindir_loader/mindir_model/inner_kernel.h" #include "extendrt/mock/lite_runtime/populate/base_operator_populate_register.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" namespace mindspore::infer::mindir { #define IS_LITTLE_ENDIAN (uint8_t)1U diff --git a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.h b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.h index 780ca21700c..158bde451ca 100644 --- a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.h +++ b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model.h @@ -21,7 +21,7 @@ #include #include "extendrt/mindir_loader/abstract_base_model.h" -#include "src/runtime/schema_tensor_wrapper.h" +#include "src/litert/schema_tensor_wrapper.h" #include "proto/mind_ir.pb.h" namespace mindspore::infer::mindir { diff --git a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_convertor.h b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_convertor.h index a9545625c86..af6c260deb8 100644 --- a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_convertor.h +++ b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_convertor.h @@ -19,7 +19,7 @@ #include -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" #include "extendrt/mindir_loader/mindir_model/mindir_model.h" namespace mindspore::infer::mindir { diff --git a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_loader.cc b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_loader.cc index 225e80926de..d2f6470942f 100644 --- a/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_loader.cc +++ b/mindspore/lite/src/extendrt/mindir_loader/mindir_model/mindir_model_loader.cc @@ -19,7 +19,7 @@ #include "extendrt/mindir_loader/mindir_model/mindir_model_loader.h" #include "extendrt/mindir_loader/mindir_model/mindir_model_util.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "ops/primitive_c.h" namespace mindspore::infer::mindir { diff --git a/mindspore/lite/src/extendrt/mock/lite_runtime/CMakeLists.txt b/mindspore/lite/src/extendrt/mock/lite_runtime/CMakeLists.txt index c40612bc1a7..58496e5bc5f 100644 --- a/mindspore/lite/src/extendrt/mock/lite_runtime/CMakeLists.txt +++ b/mindspore/lite/src/extendrt/mock/lite_runtime/CMakeLists.txt @@ -24,30 +24,30 @@ set(LITE_SRC ${LITE_DIR}/src/common/log.cc ${LITE_DIR}/src/common/prim_util.cc ${LITE_DIR}/src/common/tensor_util.cc - ${LITE_DIR}/src/runtime/allocator.cc - ${LITE_DIR}/src/runtime/inner_allocator.cc - ${LITE_DIR}/src/runtime/runtime_allocator.cc - ${LITE_DIR}/src/runtime/infer_manager.cc - ${LITE_DIR}/src/runtime/runtime_shape_fusion_pass.cc - ${LITE_DIR}/src/runtime/runtime_pass.cc - ${LITE_DIR}/src/runtime/pass/runtime_ncx_pass.cc - ${LITE_DIR}/src/runtime/schema_tensor_wrapper.cc + ${LITE_DIR}/src/litert/allocator.cc + ${LITE_DIR}/src/litert/inner_allocator.cc + ${LITE_DIR}/src/litert/runtime_allocator.cc + ${LITE_DIR}/src/litert/infer_manager.cc + ${LITE_DIR}/src/litert/runtime_shape_fusion_pass.cc + ${LITE_DIR}/src/litert/runtime_pass.cc + ${LITE_DIR}/src/litert/pass/runtime_ncx_pass.cc + ${LITE_DIR}/src/litert/schema_tensor_wrapper.cc ${LITE_DIR}/src/tensor.cc ${LITE_DIR}/src/tensorlist.cc - ${LITE_DIR}/src/runtime/tensor_category.cc - ${LITE_DIR}/src/runtime/executor.cc - ${LITE_DIR}/src/runtime/inner_context.cc - ${LITE_DIR}/src/runtime/lite_model.cc - ${LITE_DIR}/src/runtime/kernel_registry.cc - ${LITE_DIR}/src/runtime/lite_kernel.cc - ${LITE_DIR}/src/runtime/kernel_exec.cc - ${LITE_DIR}/src/runtime/kernel_exec_util.cc - ${LITE_DIR}/src/runtime/sub_graph_kernel.cc - ${LITE_DIR}/src/runtime/scheduler.cc - ${LITE_DIR}/src/runtime/lite_session.cc + ${LITE_DIR}/src/litert/tensor_category.cc + ${LITE_DIR}/src/litert/executor.cc + ${LITE_DIR}/src/litert/inner_context.cc + ${LITE_DIR}/src/litert/lite_model.cc + ${LITE_DIR}/src/litert/kernel_registry.cc + ${LITE_DIR}/src/litert/lite_kernel.cc + ${LITE_DIR}/src/litert/kernel_exec.cc + ${LITE_DIR}/src/litert/kernel_exec_util.cc + ${LITE_DIR}/src/litert/sub_graph_kernel.cc + ${LITE_DIR}/src/litert/scheduler.cc + ${LITE_DIR}/src/litert/lite_session.cc ${LITE_DIR}/src/errorcode.cc - ${LITE_DIR}/src/runtime/cpu_info.cc - ${LITE_DIR}/src/runtime/pack_weight_manager.cc + ${LITE_DIR}/src/litert/cpu_info.cc + ${LITE_DIR}/src/litert/pack_weight_manager.cc ${LITE_DIR}/src/control_flow/control_flow_scheduler.cc ${LITE_DIR}/src/control_flow/control_subgraph_creator.cc ) @@ -68,23 +68,23 @@ endif() if(MSLITE_ENABLE_BFC_MEMORY) set(LITE_SRC ${LITE_SRC} - ${LITE_DIR}/src/runtime/dynamic_mem_allocator.cc - ${LITE_DIR}/src/runtime/dynamic_mem_manager.cc - ${LITE_DIR}/src/runtime/numa_adapter.cc + ${LITE_DIR}/src/litert/dynamic_mem_allocator.cc + ${LITE_DIR}/src/litert/dynamic_mem_manager.cc + ${LITE_DIR}/src/litert/numa_adapter.cc ) endif() if(MSLITE_ENABLE_SHARING_MODEL_WEIGHT) set(LITE_SRC ${LITE_SRC} - ${LITE_DIR}/src/runtime/pack_weight.cc + ${LITE_DIR}/src/litert/pack_weight.cc ) endif() if(MSLITE_ENABLE_DYNAMIC_THREAD_DISTRIBUTE) set(LITE_SRC ${LITE_SRC} - ${LITE_DIR}/src/runtime/thread_cost_model.cc + ${LITE_DIR}/src/litert/thread_cost_model.cc ) endif() @@ -114,7 +114,7 @@ if(MSLITE_ENABLE_RUNTIME_CONVERT) ${LITE_DIR}/src/common/ops/ops_def.cc ${LITE_DIR}/src/common/ops/ops_utils.cc ${LITE_DIR}/src/common/ops/anf_utils.cc - ${LITE_DIR}/src/runtime/runtime_convert.cc) + ${LITE_DIR}/src/litert/runtime_convert.cc) set(LITE_SRC ${LITE_SRC} ${RUNTIME_CONVERT_SRC}) endif() @@ -127,20 +127,20 @@ endif() if(ENABLE_RUNTIME_NCX_PASS) file(GLOB RUNTIME_NCX_PASS_SRC - ${LITE_DIR}/src/runtime/pass/decrease_transpose_algo.cc - ${LITE_DIR}/src/runtime/pass/delete_isolated_kernel.cc - ${LITE_DIR}/src/runtime/pass/infershape_pass.cc - ${LITE_DIR}/src/runtime/pass/pass_utils.cc - ${LITE_DIR}/src/runtime/pass/runtime_optimizer.cc - ${LITE_DIR}/src/runtime/pass/to_nchw_format.cc - ${LITE_DIR}/src/runtime/pass/transpose_strategy.cc + ${LITE_DIR}/src/litert/pass/decrease_transpose_algo.cc + ${LITE_DIR}/src/litert/pass/delete_isolated_kernel.cc + ${LITE_DIR}/src/litert/pass/infershape_pass.cc + ${LITE_DIR}/src/litert/pass/pass_utils.cc + ${LITE_DIR}/src/litert/pass/runtime_optimizer.cc + ${LITE_DIR}/src/litert/pass/to_nchw_format.cc + ${LITE_DIR}/src/litert/pass/transpose_strategy.cc ) set(LITE_SRC ${LITE_SRC} ${RUNTIME_NCX_PASS_SRC}) endif() if(MSLITE_ENABLE_WEIGHT_DECODE) set(LITE_SRC ${LITE_SRC} - ${LITE_DIR}/src/runtime/huffman_decode.cc) + ${LITE_DIR}/src/litert/huffman_decode.cc) if(NOT MSLITE_ENABLE_RUNTIME_CONVERT) set(LITE_SRC ${LITE_SRC} ${TOOLS_DIR}/converter/quantizer/fse_decoder.cc @@ -151,7 +151,7 @@ endif() if(MSLITE_ENABLE_AUTO_PARALLEL) set(LITE_SRC ${LITE_SRC} - ${LITE_DIR}/src/runtime/sub_graph_split.cc + ${LITE_DIR}/src/litert/sub_graph_split.cc ) endif() @@ -162,12 +162,12 @@ endif() set(LITE_SRC ${LITE_SRC} ${KERNEL_REG_SRC} - ${LITE_DIR}/src/runtime/weight_decoder.cc + ${LITE_DIR}/src/litert/weight_decoder.cc ) if(MSLITE_GPU_BACKEND STREQUAL opencl) file(GLOB_RECURSE OPENCL_RUNTIME_SRC - ${LITE_DIR}/src/runtime/kernel/gpu/opencl/*.cc + ${LITE_DIR}/src/litert/kernel/gpu/opencl/*.cc ) set(LITE_SRC ${LITE_SRC} @@ -177,8 +177,8 @@ endif() if(MSLITE_GPU_BACKEND STREQUAL cuda) file(GLOB CUDA_RUNTIME_SRC - ${LITE_DIR}/src/runtime/gpu/*.cc - ${LITE_DIR}/src/runtime/gpu/cuda/*.cc + ${LITE_DIR}/src/litert/gpu/*.cc + ${LITE_DIR}/src/litert/gpu/cuda/*.cc ) set(LITE_SRC ${LITE_SRC} @@ -193,7 +193,7 @@ endif() file(GLOB CXX_API_EXPRESSION - ${LITE_DIR}/src/runtime/cxx_api/expression/*.cc + ${LITE_DIR}/src/litert/cxx_api/expression/*.cc ) file(GLOB EXPRESSION_OPS @@ -219,11 +219,11 @@ set(TRAIN_SRC ${TRAIN_SRC_WITH_MD} ${EXPRESSION_SRC} ${LITE_DIR}/src/common/quant_utils.cc - ${LITE_DIR}/src/runtime/cxx_api/metrics/accuracy.cc - ${LITE_DIR}/src/runtime/cxx_api/train/model_build.cc - ${LITE_DIR}/src/runtime/cxx_api/train/model_build_impl.cc - ${LITE_DIR}/src/runtime/cxx_api/train/converters.cc - ${LITE_DIR}/src/runtime/cxx_api/train/train_support.cc + ${LITE_DIR}/src/litert/cxx_api/metrics/accuracy.cc + ${LITE_DIR}/src/litert/cxx_api/train/model_build.cc + ${LITE_DIR}/src/litert/cxx_api/train/model_build_impl.cc + ${LITE_DIR}/src/litert/cxx_api/train/converters.cc + ${LITE_DIR}/src/litert/cxx_api/train/train_support.cc ${LITE_DIR}/src/train/train_populate_parameter.cc ${LITE_DIR}/src/train/train_session.cc ${LITE_DIR}/src/train/graph_fusion.cc @@ -250,8 +250,8 @@ set(TRAIN_SRC if(MSLITE_ENABLE_MINDRT) set(LITE_SRC ${LITE_SRC} - ${LITE_DIR}/src/runtime/lite_mindrt.cc - ${LITE_DIR}/src/runtime/mindrt_executor.cc + ${LITE_DIR}/src/litert/lite_mindrt.cc + ${LITE_DIR}/src/litert/mindrt_executor.cc ${LITE_DIR}/src/control_flow/control_actor_creator.cc ) if(MSLITE_ENABLE_CONTROLFLOW) @@ -277,7 +277,7 @@ endif() if(NOT MSLITE_ENABLE_COREML) set(LITE_SRC ${LITE_SRC} - ${LITE_DIR}/src/runtime/delegate/coreml/stub/coreml_delegate_stub.cc) + ${LITE_DIR}/src/litert/delegate/coreml/stub/coreml_delegate_stub.cc) endif() add_library(infer_lite_src_mid OBJECT ${LITE_SRC}) diff --git a/mindspore/lite/src/extendrt/mock/lite_runtime/converters.h b/mindspore/lite/src/extendrt/mock/lite_runtime/converters.h index 8fdfcfd72e5..62afc008bf2 100644 --- a/mindspore/lite/src/extendrt/mock/lite_runtime/converters.h +++ b/mindspore/lite/src/extendrt/mock/lite_runtime/converters.h @@ -23,7 +23,7 @@ #include "include/api/status.h" #include "include/api/cfg.h" #include "include/train/train_cfg.h" -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" namespace mindspore { class ContextUtils { diff --git a/mindspore/lite/src/extendrt/session/lite_infer_session.h b/mindspore/lite/src/extendrt/session/lite_infer_session.h index 60d497b04db..a1fbe6a7009 100644 --- a/mindspore/lite/src/extendrt/session/lite_infer_session.h +++ b/mindspore/lite/src/extendrt/session/lite_infer_session.h @@ -21,7 +21,7 @@ #include #include "src/extendrt/infer_session.h" -#include "runtime/lite_session.h" +#include "src/litert/lite_session.h" namespace mindspore { class LiteInferSession : public InferSession { diff --git a/mindspore/lite/src/runtime/allocator.cc b/mindspore/lite/src/litert/allocator.cc similarity index 94% rename from mindspore/lite/src/runtime/allocator.cc rename to mindspore/lite/src/litert/allocator.cc index 91a8d54a4b0..32eda3bfc0f 100644 --- a/mindspore/lite/src/runtime/allocator.cc +++ b/mindspore/lite/src/litert/allocator.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" namespace mindspore { std::shared_ptr Allocator::Create() { return std::make_shared(); } diff --git a/mindspore/lite/src/runtime/c_api/context_c.cc b/mindspore/lite/src/litert/c_api/context_c.cc similarity index 99% rename from mindspore/lite/src/runtime/c_api/context_c.cc rename to mindspore/lite/src/litert/c_api/context_c.cc index a26675a1d34..65564d9ae57 100644 --- a/mindspore/lite/src/runtime/c_api/context_c.cc +++ b/mindspore/lite/src/litert/c_api/context_c.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "include/c_api/context_c.h" -#include "src/runtime/c_api/context_c.h" +#include "src/litert/c_api/context_c.h" #include "src/common/log_adapter.h" // ================ Context ================ diff --git a/mindspore/lite/src/runtime/c_api/context_c.h b/mindspore/lite/src/litert/c_api/context_c.h similarity index 100% rename from mindspore/lite/src/runtime/c_api/context_c.h rename to mindspore/lite/src/litert/c_api/context_c.h diff --git a/mindspore/lite/src/runtime/c_api/model_c.cc b/mindspore/lite/src/litert/c_api/model_c.cc similarity index 99% rename from mindspore/lite/src/runtime/c_api/model_c.cc rename to mindspore/lite/src/litert/c_api/model_c.cc index 8a300be6a1b..ecc5f975c71 100644 --- a/mindspore/lite/src/runtime/c_api/model_c.cc +++ b/mindspore/lite/src/litert/c_api/model_c.cc @@ -18,10 +18,10 @@ #include #include "include/api/context.h" #include "include/api/types.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" -#include "src/runtime/cxx_api/converters.h" -#include "src/runtime/lite_session.h" -#include "src/runtime/cpu_info.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/converters.h" +#include "src/litert/lite_session.h" +#include "src/litert/cpu_info.h" namespace mindspore { class ModelC { diff --git a/mindspore/lite/src/runtime/c_api/tensor_c.cc b/mindspore/lite/src/litert/c_api/tensor_c.cc similarity index 98% rename from mindspore/lite/src/runtime/c_api/tensor_c.cc rename to mindspore/lite/src/litert/c_api/tensor_c.cc index a7ef409c638..82be452a5c1 100644 --- a/mindspore/lite/src/runtime/c_api/tensor_c.cc +++ b/mindspore/lite/src/litert/c_api/tensor_c.cc @@ -16,8 +16,8 @@ #include "include/c_api/tensor_c.h" #include "include/api/status.h" #include "src/tensor.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" +#include "src/litert/inner_allocator.h" MSTensorHandle MSTensorCreate(const char *name, MSDataType type, const int64_t *shape, size_t shape_num, const void *data, size_t data_len) { diff --git a/mindspore/lite/src/runtime/cpu_info.cc b/mindspore/lite/src/litert/cpu_info.cc similarity index 99% rename from mindspore/lite/src/runtime/cpu_info.cc rename to mindspore/lite/src/litert/cpu_info.cc index e1a043e2af1..c9a47dbd3a6 100644 --- a/mindspore/lite/src/runtime/cpu_info.cc +++ b/mindspore/lite/src/litert/cpu_info.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #ifdef ENABLE_ARM -#include "src/runtime/cpu_info.h" +#include "src/litert/cpu_info.h" #include #include #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/cpu_info.h b/mindspore/lite/src/litert/cpu_info.h similarity index 100% rename from mindspore/lite/src/runtime/cpu_info.h rename to mindspore/lite/src/litert/cpu_info.h diff --git a/mindspore/lite/src/runtime/cxx_api/callback/callback_adapter.h b/mindspore/lite/src/litert/cxx_api/callback/callback_adapter.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/callback/callback_adapter.h rename to mindspore/lite/src/litert/cxx_api/callback/callback_adapter.h diff --git a/mindspore/lite/src/runtime/cxx_api/callback/callback_impl.h b/mindspore/lite/src/litert/cxx_api/callback/callback_impl.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/callback/callback_impl.h rename to mindspore/lite/src/litert/cxx_api/callback/callback_impl.h diff --git a/mindspore/lite/src/runtime/cxx_api/callback/ckpt_saver.cc b/mindspore/lite/src/litert/cxx_api/callback/ckpt_saver.cc similarity index 96% rename from mindspore/lite/src/runtime/cxx_api/callback/ckpt_saver.cc rename to mindspore/lite/src/litert/cxx_api/callback/ckpt_saver.cc index b0c0cb787ff..a07956c8fad 100644 --- a/mindspore/lite/src/runtime/cxx_api/callback/ckpt_saver.cc +++ b/mindspore/lite/src/litert/cxx_api/callback/ckpt_saver.cc @@ -19,7 +19,7 @@ #include #include "include/train/ckpt_saver.h" #include "include/api/callback/ckpt_saver.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" +#include "src/litert/cxx_api/callback/callback_impl.h" #include "src/common/log_adapter.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/cxx_api/callback/loss_monitor.cc b/mindspore/lite/src/litert/cxx_api/callback/loss_monitor.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/callback/loss_monitor.cc rename to mindspore/lite/src/litert/cxx_api/callback/loss_monitor.cc index b2fecf33607..6094143bba8 100644 --- a/mindspore/lite/src/runtime/cxx_api/callback/loss_monitor.cc +++ b/mindspore/lite/src/litert/cxx_api/callback/loss_monitor.cc @@ -19,7 +19,7 @@ #include #include "include/train/loss_monitor.h" #include "include/api/callback/loss_monitor.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" +#include "src/litert/cxx_api/callback/callback_impl.h" #include "src/common/log_adapter.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/cxx_api/callback/lr_scheduler.cc b/mindspore/lite/src/litert/cxx_api/callback/lr_scheduler.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/callback/lr_scheduler.cc rename to mindspore/lite/src/litert/cxx_api/callback/lr_scheduler.cc index dc0bfbd5c58..6f0b570c70d 100644 --- a/mindspore/lite/src/runtime/cxx_api/callback/lr_scheduler.cc +++ b/mindspore/lite/src/litert/cxx_api/callback/lr_scheduler.cc @@ -19,7 +19,7 @@ #include #include "include/train/lr_scheduler.h" #include "include/api/callback/lr_scheduler.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" +#include "src/litert/cxx_api/callback/callback_impl.h" #include "src/common/log_adapter.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/cxx_api/callback/train_accuracy.cc b/mindspore/lite/src/litert/cxx_api/callback/train_accuracy.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/callback/train_accuracy.cc rename to mindspore/lite/src/litert/cxx_api/callback/train_accuracy.cc index 9792f0fbc77..7081d04ccf0 100644 --- a/mindspore/lite/src/runtime/cxx_api/callback/train_accuracy.cc +++ b/mindspore/lite/src/litert/cxx_api/callback/train_accuracy.cc @@ -19,7 +19,7 @@ #include #include "include/train/classification_train_accuracy_monitor.h" #include "include/api/callback/train_accuracy.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" +#include "src/litert/cxx_api/callback/callback_impl.h" #include "src/common/log_adapter.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/cxx_api/cell.cc b/mindspore/lite/src/litert/cxx_api/cell.cc similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/cell.cc rename to mindspore/lite/src/litert/cxx_api/cell.cc diff --git a/mindspore/lite/src/runtime/cxx_api/context.cc b/mindspore/lite/src/litert/cxx_api/context.cc similarity index 99% rename from mindspore/lite/src/runtime/cxx_api/context.cc rename to mindspore/lite/src/litert/cxx_api/context.cc index d550975b848..42fad0463c9 100644 --- a/mindspore/lite/src/runtime/cxx_api/context.cc +++ b/mindspore/lite/src/litert/cxx_api/context.cc @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/cxx_api/context.h" +#include "src/litert/cxx_api/context.h" #include #include #include "include/api/types.h" #include "include/api/data_type.h" #include "include/lite_types.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "src/common/log_adapter.h" #include "src/extendrt/delegate/tensorrt/distribution/distribution_base.h" diff --git a/mindspore/lite/src/runtime/cxx_api/context.h b/mindspore/lite/src/litert/cxx_api/context.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/context.h rename to mindspore/lite/src/litert/cxx_api/context.h diff --git a/mindspore/lite/src/runtime/cxx_api/converters.cc b/mindspore/lite/src/litert/cxx_api/converters.cc similarity index 99% rename from mindspore/lite/src/runtime/cxx_api/converters.cc rename to mindspore/lite/src/litert/cxx_api/converters.cc index 490612208d3..bc58dd71113 100644 --- a/mindspore/lite/src/runtime/cxx_api/converters.cc +++ b/mindspore/lite/src/litert/cxx_api/converters.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/cxx_api/converters.h" +#include "src/litert/cxx_api/converters.h" #include "src/common/log_adapter.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/cxx_api/converters.h b/mindspore/lite/src/litert/cxx_api/converters.h similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/converters.h rename to mindspore/lite/src/litert/cxx_api/converters.h index cd15d6e6576..ed9f00a9d57 100644 --- a/mindspore/lite/src/runtime/cxx_api/converters.h +++ b/mindspore/lite/src/litert/cxx_api/converters.h @@ -23,8 +23,8 @@ #include "include/api/status.h" #include "include/api/cfg.h" #include "include/train/train_cfg.h" -#include "src/runtime/inner_context.h" -#include "src/runtime/c_api/context_c.h" +#include "src/litert/inner_context.h" +#include "src/litert/c_api/context_c.h" namespace mindspore { class ContextUtils { diff --git a/mindspore/lite/src/runtime/cxx_api/expression/net.cc b/mindspore/lite/src/litert/cxx_api/expression/net.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/expression/net.cc rename to mindspore/lite/src/litert/cxx_api/expression/net.cc index 982f53f64d1..fd590e94278 100644 --- a/mindspore/lite/src/runtime/cxx_api/expression/net.cc +++ b/mindspore/lite/src/litert/cxx_api/expression/net.cc @@ -16,8 +16,8 @@ #include "include/api/net.h" #include "include/api/status.h" -#include "src/runtime/cxx_api/expression/node_impl.h" -#include "src/runtime/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/net_impl.h" #include "src/expression/ops.h" #include "src/expression/cfg.h" diff --git a/mindspore/lite/src/runtime/cxx_api/expression/net_impl.cc b/mindspore/lite/src/litert/cxx_api/expression/net_impl.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/expression/net_impl.cc rename to mindspore/lite/src/litert/cxx_api/expression/net_impl.cc index 212380a789a..9a3b04a633b 100644 --- a/mindspore/lite/src/runtime/cxx_api/expression/net_impl.cc +++ b/mindspore/lite/src/litert/cxx_api/expression/net_impl.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/expression/net_impl.h" #include #include #include "include/api/serialization.h" #include "src/expression/import.h" #include "src/expression/ops.h" -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" namespace { constexpr size_t kFlatbuffersBuilderInitSize = 1024; diff --git a/mindspore/lite/src/runtime/cxx_api/expression/net_impl.h b/mindspore/lite/src/litert/cxx_api/expression/net_impl.h similarity index 96% rename from mindspore/lite/src/runtime/cxx_api/expression/net_impl.h rename to mindspore/lite/src/litert/cxx_api/expression/net_impl.h index 2a60fc5a104..682ba0b2901 100644 --- a/mindspore/lite/src/runtime/cxx_api/expression/net_impl.h +++ b/mindspore/lite/src/litert/cxx_api/expression/net_impl.h @@ -27,8 +27,8 @@ #include "include/api/graph.h" #include "include/api/status.h" #include "include/api/net.h" -#include "src/runtime/cxx_api/expression/node_impl.h" -#include "src/runtime/cxx_api/graph/net_data.h" +#include "src/litert/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/graph/net_data.h" #include "src/expression/net.h" #include "src/expression/ops.h" diff --git a/mindspore/lite/src/runtime/cxx_api/expression/node_impl.cc b/mindspore/lite/src/litert/cxx_api/expression/node_impl.cc similarity index 96% rename from mindspore/lite/src/runtime/cxx_api/expression/node_impl.cc rename to mindspore/lite/src/litert/cxx_api/expression/node_impl.cc index 76094a3b8ba..df10a7d0e17 100644 --- a/mindspore/lite/src/runtime/cxx_api/expression/node_impl.cc +++ b/mindspore/lite/src/litert/cxx_api/expression/node_impl.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" #include #include "include/api/net.h" #include "src/expression/ops.h" diff --git a/mindspore/lite/src/runtime/cxx_api/expression/node_impl.h b/mindspore/lite/src/litert/cxx_api/expression/node_impl.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/expression/node_impl.h rename to mindspore/lite/src/litert/cxx_api/expression/node_impl.h diff --git a/mindspore/lite/src/runtime/cxx_api/graph/graph.cc b/mindspore/lite/src/litert/cxx_api/graph/graph.cc similarity index 93% rename from mindspore/lite/src/runtime/cxx_api/graph/graph.cc rename to mindspore/lite/src/litert/cxx_api/graph/graph.cc index 28db3028245..35912580a98 100644 --- a/mindspore/lite/src/runtime/cxx_api/graph/graph.cc +++ b/mindspore/lite/src/litert/cxx_api/graph/graph.cc @@ -17,8 +17,8 @@ #include "include/api/graph.h" #include "include/api/cell.h" #include "include/api/net.h" -#include "src/runtime/cxx_api/graph/graph_data.h" -#include "src/runtime/cxx_api/graph/net_data.h" +#include "src/litert/cxx_api/graph/graph_data.h" +#include "src/litert/cxx_api/graph/net_data.h" namespace mindspore { Graph::Graph() : graph_data_(nullptr) {} diff --git a/mindspore/lite/src/runtime/cxx_api/graph/graph_data.h b/mindspore/lite/src/litert/cxx_api/graph/graph_data.h similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/graph/graph_data.h rename to mindspore/lite/src/litert/cxx_api/graph/graph_data.h index 2314080abd3..040a90c9e0d 100644 --- a/mindspore/lite/src/runtime/cxx_api/graph/graph_data.h +++ b/mindspore/lite/src/litert/cxx_api/graph/graph_data.h @@ -23,7 +23,7 @@ #include #include "include/api/graph.h" #include "include/api/types.h" -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" namespace mindspore { class Graph::GraphData { diff --git a/mindspore/lite/src/runtime/cxx_api/graph/net_data.cc b/mindspore/lite/src/litert/cxx_api/graph/net_data.cc similarity index 87% rename from mindspore/lite/src/runtime/cxx_api/graph/net_data.cc rename to mindspore/lite/src/litert/cxx_api/graph/net_data.cc index 827f43c8efc..2de4d87525d 100644 --- a/mindspore/lite/src/runtime/cxx_api/graph/net_data.cc +++ b/mindspore/lite/src/litert/cxx_api/graph/net_data.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/cxx_api/graph/net_data.h" -#include "src/runtime/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/graph/net_data.h" +#include "src/litert/cxx_api/expression/net_impl.h" namespace mindspore { NetData::~NetData() { net_->impl_->Release(); } diff --git a/mindspore/lite/src/runtime/cxx_api/graph/net_data.h b/mindspore/lite/src/litert/cxx_api/graph/net_data.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/graph/net_data.h rename to mindspore/lite/src/litert/cxx_api/graph/net_data.h diff --git a/mindspore/lite/src/runtime/cxx_api/kernel.cc b/mindspore/lite/src/litert/cxx_api/kernel.cc similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/kernel.cc rename to mindspore/lite/src/litert/cxx_api/kernel.cc diff --git a/mindspore/lite/src/runtime/cxx_api/kernel_executor/CMakeLists.txt b/mindspore/lite/src/litert/cxx_api/kernel_executor/CMakeLists.txt similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/kernel_executor/CMakeLists.txt rename to mindspore/lite/src/litert/cxx_api/kernel_executor/CMakeLists.txt diff --git a/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor.cc b/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor.cc similarity index 93% rename from mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor.cc rename to mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor.cc index 975b91f5670..c5fab4619a9 100644 --- a/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor.cc +++ b/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/kernel_executor/kernel_executor.h" -#include "src/runtime/cxx_api/kernel_executor/kernel_executor_impl.h" +#include "src/litert/cxx_api/kernel_executor/kernel_executor.h" +#include "src/litert/cxx_api/kernel_executor/kernel_executor_impl.h" namespace mindspore { Status KernelExecutor::Build(const std::shared_ptr &op, const std::vector &inputs, diff --git a/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor.h b/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor.h rename to mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor.h diff --git a/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor_impl.cc b/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor_impl.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor_impl.cc rename to mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor_impl.cc index a1db638eb31..a274da78f31 100644 --- a/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor_impl.cc +++ b/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor_impl.cc @@ -16,14 +16,14 @@ #include #include "src/common/ops/ops_utils.h" -#include "src/runtime/cxx_api/converters.h" +#include "src/litert/cxx_api/converters.h" #include "src/common/prim_util.h" #include "src/common/ops/populate/populate_register.h" #include "src/common/primitive_t_utils.h" #include "schema/inner/model_generated.h" -#include "src/runtime/infer_manager.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/cxx_api/kernel_executor/kernel_executor_impl.h" +#include "src/litert/infer_manager.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/cxx_api/kernel_executor/kernel_executor_impl.h" namespace mindspore { constexpr size_t INITIAL_SIZE = 1024; diff --git a/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor_impl.h b/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor_impl.h similarity index 95% rename from mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor_impl.h rename to mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor_impl.h index ea1b1512c51..991a6159df7 100644 --- a/mindspore/lite/src/runtime/cxx_api/kernel_executor/kernel_executor_impl.h +++ b/mindspore/lite/src/litert/cxx_api/kernel_executor/kernel_executor_impl.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/cxx_api/kernel_executor/kernel_executor.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/cxx_api/kernel_executor/kernel_executor.h" +#include "src/litert/kernel_exec.h" #include "common/version_manager.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/cxx_api/metrics/accuracy.cc b/mindspore/lite/src/litert/cxx_api/metrics/accuracy.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/metrics/accuracy.cc rename to mindspore/lite/src/litert/cxx_api/metrics/accuracy.cc index 3445e6870cb..d24d880bc11 100644 --- a/mindspore/lite/src/runtime/cxx_api/metrics/accuracy.cc +++ b/mindspore/lite/src/litert/cxx_api/metrics/accuracy.cc @@ -19,7 +19,7 @@ #include #include "include/train/accuracy_metrics.h" #include "include/api/metrics/accuracy.h" -#include "src/runtime/cxx_api/metrics/metrics_impl.h" +#include "src/litert/cxx_api/metrics/metrics_impl.h" #include "src/common/log_adapter.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/cxx_api/metrics/metrics_adapter.h b/mindspore/lite/src/litert/cxx_api/metrics/metrics_adapter.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/metrics/metrics_adapter.h rename to mindspore/lite/src/litert/cxx_api/metrics/metrics_adapter.h diff --git a/mindspore/lite/src/runtime/cxx_api/metrics/metrics_impl.h b/mindspore/lite/src/litert/cxx_api/metrics/metrics_impl.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/metrics/metrics_impl.h rename to mindspore/lite/src/litert/cxx_api/metrics/metrics_impl.h diff --git a/mindspore/lite/src/runtime/cxx_api/model/model.cc b/mindspore/lite/src/litert/cxx_api/model/model.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/model/model.cc rename to mindspore/lite/src/litert/cxx_api/model/model.cc index 48952caf5a4..94e4f4e960b 100644 --- a/mindspore/lite/src/runtime/cxx_api/model/model.cc +++ b/mindspore/lite/src/litert/cxx_api/model/model.cc @@ -30,10 +30,10 @@ #include "include/api/serialization.h" #include "include/api/graph.h" #include "src/common/log_adapter.h" -#include "src/runtime/cxx_api/expression/net_impl.h" -#include "src/runtime/cxx_api/callback/callback_adapter.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/callback/callback_adapter.h" +#include "src/litert/cxx_api/callback/callback_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" #ifdef ENABLE_OPENSSL #include "src/common/decrypt.h" #include "src/common/file_utils.h" diff --git a/mindspore/lite/src/runtime/cxx_api/model/model_impl.cc b/mindspore/lite/src/litert/cxx_api/model/model_impl.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/model/model_impl.cc rename to mindspore/lite/src/litert/cxx_api/model/model_impl.cc index e1d81ebfd94..680ca1b8ab6 100644 --- a/mindspore/lite/src/runtime/cxx_api/model/model_impl.cc +++ b/mindspore/lite/src/litert/cxx_api/model/model_impl.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" #include #include #include @@ -24,16 +24,16 @@ #include "include/api/types.h" #include "include/api/context.h" #include "include/context.h" -#include "src/runtime/inner_allocator.h" -#include "src/runtime/cxx_api/converters.h" -#include "src/runtime/cxx_api/graph/graph_data.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" -#include "src/runtime/cxx_api/tensor_utils.h" +#include "src/litert/inner_allocator.h" +#include "src/litert/cxx_api/converters.h" +#include "src/litert/cxx_api/graph/graph_data.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor_utils.h" #include "src/common/log_adapter.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "src/common/file_utils.h" #include "src/common/config_file.h" -#include "src/runtime/cpu_info.h" +#include "src/litert/cpu_info.h" namespace mindspore { namespace { diff --git a/mindspore/lite/src/runtime/cxx_api/model/model_impl.h b/mindspore/lite/src/litert/cxx_api/model/model_impl.h similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/model/model_impl.h rename to mindspore/lite/src/litert/cxx_api/model/model_impl.h index 3d359f144e2..69b999e99c0 100644 --- a/mindspore/lite/src/runtime/cxx_api/model/model_impl.h +++ b/mindspore/lite/src/litert/cxx_api/model/model_impl.h @@ -27,9 +27,9 @@ #include "include/api/model.h" #include "include/api/context.h" #include "include/api/cell.h" -#include "src/runtime/cxx_api/graph/graph_data.h" -#include "src/runtime/inner_context.h" -#include "src/runtime/lite_session.h" +#include "src/litert/cxx_api/graph/graph_data.h" +#include "src/litert/inner_context.h" +#include "src/litert/lite_session.h" #include "include/train/train_loop_callback.h" template diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/model_parallel_runner.cc b/mindspore/lite/src/litert/cxx_api/model_pool/model_parallel_runner.cc similarity index 95% rename from mindspore/lite/src/runtime/cxx_api/model_pool/model_parallel_runner.cc rename to mindspore/lite/src/litert/cxx_api/model_pool/model_parallel_runner.cc index 6cd8f74df94..da9f8a33f90 100644 --- a/mindspore/lite/src/runtime/cxx_api/model_pool/model_parallel_runner.cc +++ b/mindspore/lite/src/litert/cxx_api/model_pool/model_parallel_runner.cc @@ -14,10 +14,10 @@ * limitations under the License. */ #include "include/api/model_parallel_runner.h" -#include "src/runtime/cxx_api/model_pool/model_pool.h" -#include "src/runtime/cxx_api/model_pool/runner_config.h" +#include "src/litert/cxx_api/model_pool/model_pool.h" +#include "src/litert/cxx_api/model_pool/runner_config.h" #include "src/common/log_adapter.h" -#include "src/runtime/cpu_info.h" +#include "src/litert/cpu_info.h" namespace mindspore { namespace { constexpr size_t kMaxSectionNum = 100; diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/model_pool.cc b/mindspore/lite/src/litert/cxx_api/model_pool/model_pool.cc similarity index 99% rename from mindspore/lite/src/runtime/cxx_api/model_pool/model_pool.cc rename to mindspore/lite/src/litert/cxx_api/model_pool/model_pool.cc index 09ce794f31d..a63a365b4e7 100644 --- a/mindspore/lite/src/runtime/cxx_api/model_pool/model_pool.cc +++ b/mindspore/lite/src/litert/cxx_api/model_pool/model_pool.cc @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/cxx_api/model_pool/model_pool.h" +#include "src/litert/cxx_api/model_pool/model_pool.h" #include #include #include "src/common/log_adapter.h" #include "include/lite_types.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "src/common/file_utils.h" -#include "src/runtime/pack_weight_manager.h" -#include "src/runtime/numa_adapter.h" +#include "src/litert/pack_weight_manager.h" +#include "src/litert/numa_adapter.h" #include "src/common/common.h" namespace mindspore { namespace { diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/model_pool.h b/mindspore/lite/src/litert/cxx_api/model_pool/model_pool.h similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/model_pool/model_pool.h rename to mindspore/lite/src/litert/cxx_api/model_pool/model_pool.h index 1d72651ca88..0b6b8ca31c4 100644 --- a/mindspore/lite/src/runtime/cxx_api/model_pool/model_pool.h +++ b/mindspore/lite/src/litert/cxx_api/model_pool/model_pool.h @@ -23,12 +23,12 @@ #include #include #include -#include "src/runtime/dynamic_mem_allocator.h" +#include "src/litert/dynamic_mem_allocator.h" #include "include/api/status.h" #include "include/api/context.h" #include "include/api/model_parallel_runner.h" -#include "src/runtime/cxx_api/model_pool/model_worker.h" -#include "src/runtime/cxx_api/model_pool/predict_task_queue.h" +#include "src/litert/cxx_api/model_pool/model_worker.h" +#include "src/litert/cxx_api/model_pool/predict_task_queue.h" namespace mindspore { using ModelPoolConfig = std::vector>; diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/model_worker.cc b/mindspore/lite/src/litert/cxx_api/model_pool/model_worker.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/model_pool/model_worker.cc rename to mindspore/lite/src/litert/cxx_api/model_pool/model_worker.cc index c5287e3d2fd..f8f220078dd 100644 --- a/mindspore/lite/src/runtime/cxx_api/model_pool/model_worker.cc +++ b/mindspore/lite/src/litert/cxx_api/model_pool/model_worker.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/cxx_api/model_pool/model_worker.h" +#include "src/litert/cxx_api/model_pool/model_worker.h" #include "src/common/log_adapter.h" -#include "src/runtime/numa_adapter.h" +#include "src/litert/numa_adapter.h" #include "src/common/common.h" #include "nnacl/op_base.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/model_worker.h b/mindspore/lite/src/litert/cxx_api/model_pool/model_worker.h similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/model_pool/model_worker.h rename to mindspore/lite/src/litert/cxx_api/model_pool/model_worker.h index 83bfad2d92f..f74673065c4 100644 --- a/mindspore/lite/src/runtime/cxx_api/model_pool/model_worker.h +++ b/mindspore/lite/src/litert/cxx_api/model_pool/model_worker.h @@ -25,7 +25,7 @@ #include #include #include "include/api/model.h" -#include "src/runtime/cxx_api/model_pool/predict_task_queue.h" +#include "src/litert/cxx_api/model_pool/predict_task_queue.h" namespace mindspore { class PredictTaskQueue; enum Strategy { BASE = 0, ADVANCED = 1 }; diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/predict_task_queue.cc b/mindspore/lite/src/litert/cxx_api/model_pool/predict_task_queue.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/model_pool/predict_task_queue.cc rename to mindspore/lite/src/litert/cxx_api/model_pool/predict_task_queue.cc index 8033a2a610e..e6316dc6262 100644 --- a/mindspore/lite/src/runtime/cxx_api/model_pool/predict_task_queue.cc +++ b/mindspore/lite/src/litert/cxx_api/model_pool/predict_task_queue.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/model_pool/predict_task_queue.h" +#include "src/litert/cxx_api/model_pool/predict_task_queue.h" #include "src/common/log.h" namespace mindspore { PredictTaskQueue::~PredictTaskQueue() { diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/predict_task_queue.h b/mindspore/lite/src/litert/cxx_api/model_pool/predict_task_queue.h similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/model_pool/predict_task_queue.h rename to mindspore/lite/src/litert/cxx_api/model_pool/predict_task_queue.h index bad6adbcb44..d043f590752 100644 --- a/mindspore/lite/src/runtime/cxx_api/model_pool/predict_task_queue.h +++ b/mindspore/lite/src/litert/cxx_api/model_pool/predict_task_queue.h @@ -23,7 +23,7 @@ #include #include "include/api/types.h" #include "include/api/status.h" -#include "src/runtime/cxx_api/model_pool/model_worker.h" +#include "src/litert/cxx_api/model_pool/model_worker.h" #include "thread/hqueue.h" #ifndef USE_HQUEUE #define USE_HQUEUE diff --git a/mindspore/lite/src/runtime/cxx_api/model_pool/runner_config.h b/mindspore/lite/src/litert/cxx_api/model_pool/runner_config.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/model_pool/runner_config.h rename to mindspore/lite/src/litert/cxx_api/model_pool/runner_config.h diff --git a/mindspore/lite/src/runtime/cxx_api/serialization.cc b/mindspore/lite/src/litert/cxx_api/serialization.cc similarity index 96% rename from mindspore/lite/src/runtime/cxx_api/serialization.cc rename to mindspore/lite/src/litert/cxx_api/serialization.cc index 7a93422b1ba..ee45cc7ee30 100644 --- a/mindspore/lite/src/runtime/cxx_api/serialization.cc +++ b/mindspore/lite/src/litert/cxx_api/serialization.cc @@ -20,12 +20,12 @@ #include "include/api/graph.h" #include "include/api/types.h" #include "include/model.h" -#include "src/runtime/cxx_api/expression/net_impl.h" -#include "src/runtime/cxx_api/graph/graph_data.h" -#include "src/runtime/cxx_api/model/model_impl.h" -#include "src/runtime/cxx_api/converters.h" +#include "src/litert/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/graph/graph_data.h" +#include "src/litert/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/converters.h" #include "src/common/log_adapter.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" namespace mindspore { std::function ExpressionCallback; diff --git a/mindspore/lite/src/runtime/cxx_api/tensor/tensor_impl.cc b/mindspore/lite/src/litert/cxx_api/tensor/tensor_impl.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/tensor/tensor_impl.cc rename to mindspore/lite/src/litert/cxx_api/tensor/tensor_impl.cc index 329b19392af..aea9227ba49 100644 --- a/mindspore/lite/src/runtime/cxx_api/tensor/tensor_impl.cc +++ b/mindspore/lite/src/litert/cxx_api/tensor/tensor_impl.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" #include #include #include @@ -22,7 +22,7 @@ #include #include #include -#include "src/runtime/cxx_api/tensor_utils.h" +#include "src/litert/cxx_api/tensor_utils.h" #include "src/tensor.h" #include "src/common/string_utils.h" diff --git a/mindspore/lite/src/runtime/cxx_api/tensor/tensor_impl.h b/mindspore/lite/src/litert/cxx_api/tensor/tensor_impl.h similarity index 100% rename from mindspore/lite/src/runtime/cxx_api/tensor/tensor_impl.h rename to mindspore/lite/src/litert/cxx_api/tensor/tensor_impl.h diff --git a/mindspore/lite/src/runtime/cxx_api/tensor_utils.cc b/mindspore/lite/src/litert/cxx_api/tensor_utils.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/tensor_utils.cc rename to mindspore/lite/src/litert/cxx_api/tensor_utils.cc index ec0ea53b183..1e49d4eba39 100644 --- a/mindspore/lite/src/runtime/cxx_api/tensor_utils.cc +++ b/mindspore/lite/src/litert/cxx_api/tensor_utils.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/tensor_utils.h" +#include "src/litert/cxx_api/tensor_utils.h" #include "src/common/log_adapter.h" #include "src/tensor.h" diff --git a/mindspore/lite/src/runtime/cxx_api/tensor_utils.h b/mindspore/lite/src/litert/cxx_api/tensor_utils.h similarity index 96% rename from mindspore/lite/src/runtime/cxx_api/tensor_utils.h rename to mindspore/lite/src/litert/cxx_api/tensor_utils.h index 7cd475e90b9..d07cd8178c7 100644 --- a/mindspore/lite/src/runtime/cxx_api/tensor_utils.h +++ b/mindspore/lite/src/litert/cxx_api/tensor_utils.h @@ -23,7 +23,7 @@ #include "ir/dtype/type_id.h" #include "src/tensor.h" #include "include/api/types.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" namespace mindspore { std::vector MS_API TruncateShape(const std::vector &shape, enum TypeId type, size_t data_len, diff --git a/mindspore/lite/src/runtime/cxx_api/train/converters.cc b/mindspore/lite/src/litert/cxx_api/train/converters.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/train/converters.cc rename to mindspore/lite/src/litert/cxx_api/train/converters.cc index 694259b3582..b31ed6db8f6 100644 --- a/mindspore/lite/src/runtime/cxx_api/train/converters.cc +++ b/mindspore/lite/src/litert/cxx_api/train/converters.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/cxx_api/converters.h" +#include "src/litert/cxx_api/converters.h" #include "include/train/train_cfg.h" #include "include/api/cfg.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/cxx_api/train/model.cc b/mindspore/lite/src/litert/cxx_api/train/model.cc similarity index 97% rename from mindspore/lite/src/runtime/cxx_api/train/model.cc rename to mindspore/lite/src/litert/cxx_api/train/model.cc index 3f76fc20e88..40525d9d756 100644 --- a/mindspore/lite/src/runtime/cxx_api/train/model.cc +++ b/mindspore/lite/src/litert/cxx_api/train/model.cc @@ -18,8 +18,8 @@ #include "include/api/net.h" #include "include/api/callback/callback.h" #include "include/api/dual_abi_helper.h" -#include "src/runtime/cxx_api/model/model_impl.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/callback/callback_impl.h" #include "src/common/log_adapter.h" #include "src/train/train_loop.h" #include "include/train/train_loop_callback.h" diff --git a/mindspore/lite/src/runtime/cxx_api/train/model_build.cc b/mindspore/lite/src/litert/cxx_api/train/model_build.cc similarity index 98% rename from mindspore/lite/src/runtime/cxx_api/train/model_build.cc rename to mindspore/lite/src/litert/cxx_api/train/model_build.cc index b59159780b3..c2f0161b95f 100644 --- a/mindspore/lite/src/runtime/cxx_api/train/model_build.cc +++ b/mindspore/lite/src/litert/cxx_api/train/model_build.cc @@ -16,7 +16,7 @@ #include "include/api/model.h" #include "src/common/log_adapter.h" -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" namespace mindspore { Status Model::Build(GraphCell lossGraphCell, Node *optimizer, std::vector inputs, const std::shared_ptr &model_context, const std::shared_ptr &train_cfg) { diff --git a/mindspore/lite/src/runtime/cxx_api/train/model_build_impl.cc b/mindspore/lite/src/litert/cxx_api/train/model_build_impl.cc similarity index 93% rename from mindspore/lite/src/runtime/cxx_api/train/model_build_impl.cc rename to mindspore/lite/src/litert/cxx_api/train/model_build_impl.cc index 98de3c1a3df..28328944f3c 100644 --- a/mindspore/lite/src/runtime/cxx_api/train/model_build_impl.cc +++ b/mindspore/lite/src/litert/cxx_api/train/model_build_impl.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" #include "include/train/train_cfg.h" -#include "src/runtime/cxx_api/converters.h" +#include "src/litert/cxx_api/converters.h" #include "src/train/transfer_session.h" -#include "src/runtime/cxx_api/expression/node_impl.h" -#include "src/runtime/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/expression/node_impl.h" +#include "src/litert/cxx_api/expression/net_impl.h" namespace mindspore { std::unique_ptr ModelImpl::BuildTrain(Node *optimizer, std::vector inputs) { auto opt_impl = NodeImpl::GetImpl(optimizer); diff --git a/mindspore/lite/src/runtime/cxx_api/train/model_impl.cc b/mindspore/lite/src/litert/cxx_api/train/model_impl.cc similarity index 90% rename from mindspore/lite/src/runtime/cxx_api/train/model_impl.cc rename to mindspore/lite/src/litert/cxx_api/train/model_impl.cc index 1cbb19b603b..e2fe7a828d5 100644 --- a/mindspore/lite/src/runtime/cxx_api/train/model_impl.cc +++ b/mindspore/lite/src/litert/cxx_api/train/model_impl.cc @@ -14,18 +14,18 @@ * limitations under the License. */ -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" #include #include #include "include/api/serialization.h" #include "include/api/callback/callback.h" #include "include/api/metrics/metrics.h" -#include "src/runtime/cxx_api/expression/net_impl.h" -#include "src/runtime/cxx_api/converters.h" -#include "src/runtime/cxx_api/metrics/metrics_adapter.h" -#include "src/runtime/cxx_api/metrics/metrics_impl.h" -#include "src/runtime/cxx_api/callback/callback_adapter.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" +#include "src/litert/cxx_api/expression/net_impl.h" +#include "src/litert/cxx_api/converters.h" +#include "src/litert/cxx_api/metrics/metrics_adapter.h" +#include "src/litert/cxx_api/metrics/metrics_impl.h" +#include "src/litert/cxx_api/callback/callback_adapter.h" +#include "src/litert/cxx_api/callback/callback_impl.h" #include "src/common/log_adapter.h" #include "src/train/train_session.h" #include "src/train/transfer_session.h" diff --git a/mindspore/lite/src/runtime/cxx_api/train/train_support.cc b/mindspore/lite/src/litert/cxx_api/train/train_support.cc similarity index 83% rename from mindspore/lite/src/runtime/cxx_api/train/train_support.cc rename to mindspore/lite/src/litert/cxx_api/train/train_support.cc index 2e6a6d3e7c8..38bd0ed6d39 100644 --- a/mindspore/lite/src/runtime/cxx_api/train/train_support.cc +++ b/mindspore/lite/src/litert/cxx_api/train/train_support.cc @@ -23,18 +23,18 @@ #include "include/context.h" #include "include/api/callback/callback.h" #include "include/api/metrics/metrics.h" -#include "src/runtime/lite_model.h" -#include "src/runtime/inner_context.h" -#include "src/runtime/inner_allocator.h" -#include "src/runtime/cxx_api/model/model_impl.h" -#include "src/runtime/cxx_api/converters.h" -#include "src/runtime/cxx_api/graph/graph_data.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" -#include "src/runtime/cxx_api/tensor_utils.h" -#include "src/runtime/cxx_api/metrics/metrics_adapter.h" -#include "src/runtime/cxx_api/metrics/metrics_impl.h" -#include "src/runtime/cxx_api/callback/callback_adapter.h" -#include "src/runtime/cxx_api/callback/callback_impl.h" +#include "src/litert/lite_model.h" +#include "src/litert/inner_context.h" +#include "src/litert/inner_allocator.h" +#include "src/litert/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/converters.h" +#include "src/litert/cxx_api/graph/graph_data.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor_utils.h" +#include "src/litert/cxx_api/metrics/metrics_adapter.h" +#include "src/litert/cxx_api/metrics/metrics_impl.h" +#include "src/litert/cxx_api/callback/callback_adapter.h" +#include "src/litert/cxx_api/callback/callback_impl.h" #include "src/common/log_adapter.h" #include "src/train/train_session.h" #include "src/train/static_allocator.h" diff --git a/mindspore/lite/src/runtime/cxx_api/types.cc b/mindspore/lite/src/litert/cxx_api/types.cc similarity index 99% rename from mindspore/lite/src/runtime/cxx_api/types.cc rename to mindspore/lite/src/litert/cxx_api/types.cc index fa05f3ed4d6..b194d9fbf90 100644 --- a/mindspore/lite/src/runtime/cxx_api/types.cc +++ b/mindspore/lite/src/litert/cxx_api/types.cc @@ -20,7 +20,7 @@ #include #include "include/api/status.h" #include "include/api/dual_abi_helper.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" #include "src/common/log_adapter.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/delegate/auto_registration_factory.h b/mindspore/lite/src/litert/delegate/auto_registration_factory.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/auto_registration_factory.h rename to mindspore/lite/src/litert/delegate/auto_registration_factory.h diff --git a/mindspore/lite/src/runtime/delegate/coreml/CMakeLists.txt b/mindspore/lite/src/litert/delegate/coreml/CMakeLists.txt similarity index 100% rename from mindspore/lite/src/runtime/delegate/coreml/CMakeLists.txt rename to mindspore/lite/src/litert/delegate/coreml/CMakeLists.txt diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_delegate.h b/mindspore/lite/src/litert/delegate/coreml/coreml_delegate.h similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_delegate.h rename to mindspore/lite/src/litert/delegate/coreml/coreml_delegate.h index 6f944d79618..b9fd14787be 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/coreml_delegate.h +++ b/mindspore/lite/src/litert/delegate/coreml/coreml_delegate.h @@ -21,8 +21,8 @@ #include #include "include/api/delegate.h" #include "include/context.h" -#include "src/runtime/delegate/coreml/op/coreml_op.h" -#include "src/runtime/delegate/coreml/pass/coreml_pass_manager.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/pass/coreml_pass_manager.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_delegate.mm b/mindspore/lite/src/litert/delegate/coreml/coreml_delegate.mm similarity index 85% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_delegate.mm rename to mindspore/lite/src/litert/delegate/coreml/coreml_delegate.mm index 7719d5819df..b04a98e07e5 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/coreml_delegate.mm +++ b/mindspore/lite/src/litert/delegate/coreml/coreml_delegate.mm @@ -14,31 +14,31 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/coreml_delegate.h" +#include "src/litert/delegate/coreml/coreml_delegate.h" #include "include/errorcode.h" #include "src/common/prim_util.h" -#include "src/runtime/delegate/coreml/op/coreml_op.h" -#include "src/runtime/delegate/coreml/op/activation_coreml.h" -#include "src/runtime/delegate/coreml/op/transpose_coreml.h" -#include "src/runtime/delegate/coreml/op/convolution_coreml.h" -#include "src/runtime/delegate/coreml/op/deconvolution_coreml.h" -#include "src/runtime/delegate/coreml/op/avg_pooling_coreml.h" -#include "src/runtime/delegate/coreml/op/max_pooling_coreml.h" -#include "src/runtime/delegate/coreml/op/arithmetic_coreml.h" -#include "src/runtime/delegate/coreml/op/resize_coreml.h" -#include "src/runtime/delegate/coreml/op/reshape_coreml.h" -#include "src/runtime/delegate/coreml/op/matmul_coreml.h" -#include "src/runtime/delegate/coreml/op/concat_coreml.h" -#include "src/runtime/delegate/coreml/op/unsqueeze_coreml.h" -#include "src/runtime/delegate/coreml/op/gather_coreml.h" -#include "src/runtime/delegate/coreml/op/shape_coreml.h" -#include "src/runtime/delegate/coreml/op/softmax_coreml.h" -#include "src/runtime/delegate/coreml/op/flatten_coreml.h" -#include "src/runtime/delegate/coreml/coreml_graph.h" -#include "src/runtime/delegate/delegate_utils.h" -#include "src/runtime/delegate/coreml/pass/coreml_format_trans_pass.h" -#include "src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.h" -#include "src/runtime/delegate/coreml/pass/coreml_fusion_pass.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/activation_coreml.h" +#include "src/litert/delegate/coreml/op/transpose_coreml.h" +#include "src/litert/delegate/coreml/op/convolution_coreml.h" +#include "src/litert/delegate/coreml/op/deconvolution_coreml.h" +#include "src/litert/delegate/coreml/op/avg_pooling_coreml.h" +#include "src/litert/delegate/coreml/op/max_pooling_coreml.h" +#include "src/litert/delegate/coreml/op/arithmetic_coreml.h" +#include "src/litert/delegate/coreml/op/resize_coreml.h" +#include "src/litert/delegate/coreml/op/reshape_coreml.h" +#include "src/litert/delegate/coreml/op/matmul_coreml.h" +#include "src/litert/delegate/coreml/op/concat_coreml.h" +#include "src/litert/delegate/coreml/op/unsqueeze_coreml.h" +#include "src/litert/delegate/coreml/op/gather_coreml.h" +#include "src/litert/delegate/coreml/op/shape_coreml.h" +#include "src/litert/delegate/coreml/op/softmax_coreml.h" +#include "src/litert/delegate/coreml/op/flatten_coreml.h" +#include "src/litert/delegate/coreml/coreml_graph.h" +#include "src/litert/delegate/delegate_utils.h" +#include "src/litert/delegate/coreml/pass/coreml_format_trans_pass.h" +#include "src/litert/delegate/coreml/pass/coreml_trans_extend_pass.h" +#include "src/litert/delegate/coreml/pass/coreml_fusion_pass.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_executor.h b/mindspore/lite/src/litert/delegate/coreml/coreml_executor.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_executor.h rename to mindspore/lite/src/litert/delegate/coreml/coreml_executor.h diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_executor.mm b/mindspore/lite/src/litert/delegate/coreml/coreml_executor.mm similarity index 99% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_executor.mm rename to mindspore/lite/src/litert/delegate/coreml/coreml_executor.mm index 845fc0256c3..df1b9bacb8e 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/coreml_executor.mm +++ b/mindspore/lite/src/litert/delegate/coreml/coreml_executor.mm @@ -14,7 +14,7 @@ * limitations under the License. */ -#import "src/runtime/delegate/coreml/coreml_executor.h" +#import "src/litert/delegate/coreml/coreml_executor.h" #include #include diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_executor_wrapper.h b/mindspore/lite/src/litert/delegate/coreml/coreml_executor_wrapper.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_executor_wrapper.h rename to mindspore/lite/src/litert/delegate/coreml/coreml_executor_wrapper.h diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_executor_wrapper.mm b/mindspore/lite/src/litert/delegate/coreml/coreml_executor_wrapper.mm similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_executor_wrapper.mm rename to mindspore/lite/src/litert/delegate/coreml/coreml_executor_wrapper.mm index d53ccbb6248..4dffecc94e3 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/coreml_executor_wrapper.mm +++ b/mindspore/lite/src/litert/delegate/coreml/coreml_executor_wrapper.mm @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/coreml_executor_wrapper.h" -#import "src/runtime/delegate/coreml/coreml_executor.h" +#include "src/litert/delegate/coreml/coreml_executor_wrapper.h" +#import "src/litert/delegate/coreml/coreml_executor.h" namespace mindspore::lite { CoreMLExecutorWrapper::CoreMLExecutorWrapper() { diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_graph.cc b/mindspore/lite/src/litert/delegate/coreml/coreml_graph.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_graph.cc rename to mindspore/lite/src/litert/delegate/coreml/coreml_graph.cc index cd0db8a20e4..706840312af 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/coreml_graph.cc +++ b/mindspore/lite/src/litert/delegate/coreml/coreml_graph.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/coreml_graph.h" +#include "src/litert/delegate/coreml/coreml_graph.h" #include namespace mindspore::lite { CoreMLGraph::~CoreMLGraph() { diff --git a/mindspore/lite/src/runtime/delegate/coreml/coreml_graph.h b/mindspore/lite/src/litert/delegate/coreml/coreml_graph.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/coreml_graph.h rename to mindspore/lite/src/litert/delegate/coreml/coreml_graph.h index ad1577b90e5..e0aea4fa629 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/coreml_graph.h +++ b/mindspore/lite/src/litert/delegate/coreml/coreml_graph.h @@ -25,8 +25,8 @@ #include "proto/Model.pb.h" #include "proto/NeuralNetwork.pb.h" #include "include/api/kernel.h" -#include "src/runtime/delegate/coreml/op/coreml_op.h" -#include "src/runtime/delegate/coreml/coreml_executor_wrapper.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/coreml_executor_wrapper.h" namespace mindspore::lite { constexpr int kCoreMLVersion4 = 4; diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/activation_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/activation_coreml.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/coreml/op/activation_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/activation_coreml.cc index dd6b46a4ce5..08000adaa51 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/activation_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/activation_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/activation_coreml.h" +#include "src/litert/delegate/coreml/op/activation_coreml.h" namespace mindspore::lite { int ActivationCoreMLOp::IsSupport() { auto act_prim = op_primitive_->value_as_Activation(); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/activation_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/activation_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/activation_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/activation_coreml.h index bd35f21afaa..a274749e72a 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/activation_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/activation_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class ActivationCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/arithmetic_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/arithmetic_coreml.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/coreml/op/arithmetic_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/arithmetic_coreml.cc index 728125d12d6..93512c03aca 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/arithmetic_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/arithmetic_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/arithmetic_coreml.h" +#include "src/litert/delegate/coreml/op/arithmetic_coreml.h" namespace mindspore::lite { int ArithmeticCoreMLOp::IsSupport() { MS_CHECK_TRUE_MSG(in_tensors_.size() == kInputSize1, RET_NOT_SUPPORT, "Arithmetic op only support two inputs."); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/arithmetic_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/arithmetic_coreml.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/coreml/op/arithmetic_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/arithmetic_coreml.h index a36f9700233..e8ac705ec9a 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/arithmetic_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/arithmetic_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class ArithmeticCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/avg_pooling_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/avg_pooling_coreml.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/avg_pooling_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/avg_pooling_coreml.cc index 9e16851eee4..6d53d10cf37 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/avg_pooling_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/avg_pooling_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/avg_pooling_coreml.h" +#include "src/litert/delegate/coreml/op/avg_pooling_coreml.h" namespace mindspore::lite { int AvgPoolingCoreMLOp::InitParams() { pooling_prim_ = op_primitive_->value_as_AvgPoolFusion(); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/avg_pooling_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/avg_pooling_coreml.h similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/avg_pooling_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/avg_pooling_coreml.h index a3873684de5..1c5c421521b 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/avg_pooling_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/avg_pooling_coreml.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class AvgPoolingCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/concat_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/concat_coreml.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/coreml/op/concat_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/concat_coreml.cc index 20387bad40a..982f8db63f0 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/concat_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/concat_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/concat_coreml.h" +#include "src/litert/delegate/coreml/op/concat_coreml.h" namespace mindspore::lite { int ConcatCoreMLOp::IsSupport() { MS_CHECK_GE(in_tensors_.size(), kInputSize1, RET_NOT_SUPPORT); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/concat_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/concat_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/concat_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/concat_coreml.h index 7ef9edafde6..098f7a63287 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/concat_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/concat_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class ConcatCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_base_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/convolution_base_coreml.cc similarity index 94% rename from mindspore/lite/src/runtime/delegate/coreml/op/convolution_base_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/convolution_base_coreml.cc index 96cfcc43407..79214118bc2 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_base_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/convolution_base_coreml.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/convolution_base_coreml.h" -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/coreml/op/convolution_base_coreml.h" +#include "src/litert/delegate/delegate_utils.h" namespace mindspore::lite { int ConvolutionBaseCoreMLOp::SetConvWeight() { auto weight_tensor = in_tensors_.at(kWeightIndex); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_base_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/convolution_base_coreml.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/convolution_base_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/convolution_base_coreml.h index 47fe66353b9..441885c3228 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_base_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/convolution_base_coreml.h @@ -21,7 +21,7 @@ #include #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class ConvolutionBaseCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/convolution_coreml.cc similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/convolution_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/convolution_coreml.cc index 5d8479ad481..429ab00084a 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/convolution_coreml.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/convolution_coreml.h" +#include "src/litert/delegate/coreml/op/convolution_coreml.h" #include -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/delegate_utils.h" namespace mindspore::lite { int ConvolutionCoreMLOp::IsSupport() { if (!in_tensors_[kWeightIndex].IsConst()) { diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/convolution_coreml.h similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/convolution_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/convolution_coreml.h index a82d72de29d..66ed178fd4b 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/convolution_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/convolution_coreml.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/delegate/coreml/op/convolution_base_coreml.h" +#include "src/litert/delegate/coreml/op/convolution_base_coreml.h" namespace mindspore::lite { class ConvolutionCoreMLOp : public ConvolutionBaseCoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/coreml_op.cc b/mindspore/lite/src/litert/delegate/coreml/op/coreml_op.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/coreml/op/coreml_op.cc rename to mindspore/lite/src/litert/delegate/coreml/op/coreml_op.cc index 195ddf45140..3ea67a2ec02 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/coreml_op.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/coreml_op.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" #include "nnacl/base/cast_base.h" namespace mindspore::lite { int CoreMLOp::Init() { diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/coreml_op.h b/mindspore/lite/src/litert/delegate/coreml/op/coreml_op.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/coreml/op/coreml_op.h rename to mindspore/lite/src/litert/delegate/coreml/op/coreml_op.h diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/deconvolution_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/deconvolution_coreml.cc similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/deconvolution_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/deconvolution_coreml.cc index 11901eb1ecd..7ddf4b3168d 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/deconvolution_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/deconvolution_coreml.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/deconvolution_coreml.h" -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/coreml/op/deconvolution_coreml.h" +#include "src/litert/delegate/delegate_utils.h" namespace mindspore::lite { int DeconvolutionCoreMLOp::IsSupport() { if (!in_tensors_[kWeightIndex].IsConst()) { diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/deconvolution_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/deconvolution_coreml.h similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/deconvolution_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/deconvolution_coreml.h index 5f1269c4273..e368d5ac7fd 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/deconvolution_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/deconvolution_coreml.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/delegate/coreml/op/convolution_base_coreml.h" +#include "src/litert/delegate/coreml/op/convolution_base_coreml.h" namespace mindspore::lite { class DeconvolutionCoreMLOp : public ConvolutionBaseCoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/flatten_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/flatten_coreml.cc similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/flatten_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/flatten_coreml.cc index 32a4552611f..b44c0a4b9fe 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/flatten_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/flatten_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/flatten_coreml.h" +#include "src/litert/delegate/coreml/op/flatten_coreml.h" namespace mindspore::lite { int FlattenCoreMLOp::BuildLayer() { MS_ASSERT(op_ != nullptr); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/flatten_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/flatten_coreml.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/flatten_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/flatten_coreml.h index b5741570e43..d4e7a5502a0 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/flatten_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/flatten_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class FlattenCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/gather_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/gather_coreml.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/gather_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/gather_coreml.cc index e72c188ab7b..bb8cb3cd0be 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/gather_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/gather_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/gather_coreml.h" +#include "src/litert/delegate/coreml/op/gather_coreml.h" namespace mindspore::lite { int GatherCoreMLOp::IsSupport() { MS_CHECK_GE(in_tensors_.size(), kInputSize2, RET_NOT_SUPPORT); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/gather_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/gather_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/gather_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/gather_coreml.h index 7c471d0065b..b9343410a58 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/gather_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/gather_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class GatherCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/matmul_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/matmul_coreml.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/coreml/op/matmul_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/matmul_coreml.cc index 476d902ccaf..5689841cb56 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/matmul_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/matmul_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/matmul_coreml.h" +#include "src/litert/delegate/coreml/op/matmul_coreml.h" namespace mindspore::lite { int MatMulCoreMLOp::IsSupport() { MS_CHECK_GE(in_tensors_.size(), kInputSize1, RET_NOT_SUPPORT); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/matmul_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/matmul_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/matmul_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/matmul_coreml.h index 1235bdf08d2..9ea517e95f6 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/matmul_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/matmul_coreml.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class MatMulCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/max_pooling_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/max_pooling_coreml.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/max_pooling_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/max_pooling_coreml.cc index 5423cedb60d..f2e71a20820 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/max_pooling_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/max_pooling_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/max_pooling_coreml.h" +#include "src/litert/delegate/coreml/op/max_pooling_coreml.h" namespace mindspore::lite { int MaxPoolingCoreMLOp::InitParams() { pooling_prim_ = op_primitive_->value_as_MaxPoolFusion(); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/max_pooling_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/max_pooling_coreml.h similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/max_pooling_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/max_pooling_coreml.h index 246b5015c39..3904c7ccc68 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/max_pooling_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/max_pooling_coreml.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class MaxPoolingCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/reshape_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/reshape_coreml.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/reshape_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/reshape_coreml.cc index 53eed02ed95..818f9398e3a 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/reshape_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/reshape_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/reshape_coreml.h" +#include "src/litert/delegate/coreml/op/reshape_coreml.h" namespace mindspore::lite { int ReshapeCoreMLOp::IsSupport() { MS_CHECK_GE(in_tensors_.size(), kInputSize1, RET_NOT_SUPPORT); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/reshape_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/reshape_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/reshape_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/reshape_coreml.h index ae109714e20..8a5ae82fcd0 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/reshape_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/reshape_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class ReshapeCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/resize_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/resize_coreml.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/coreml/op/resize_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/resize_coreml.cc index 13099fd586a..ce15d0d769b 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/resize_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/resize_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/resize_coreml.h" +#include "src/litert/delegate/coreml/op/resize_coreml.h" namespace mindspore::lite { int ResizeCoreMLOp::IsSupport() { resize_prim_ = op_primitive_->value_as_Resize(); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/resize_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/resize_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/resize_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/resize_coreml.h index c1e47debabd..1d34bf2fcf9 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/resize_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/resize_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class ResizeCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/shape_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/shape_coreml.cc similarity index 93% rename from mindspore/lite/src/runtime/delegate/coreml/op/shape_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/shape_coreml.cc index 2343a046371..9610330450c 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/shape_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/shape_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/shape_coreml.h" +#include "src/litert/delegate/coreml/op/shape_coreml.h" namespace mindspore::lite { int ShapeCoreMLOp::BuildLayer() { MS_ASSERT(op_ != nullptr); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/shape_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/shape_coreml.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/shape_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/shape_coreml.h index ae48a602e35..d0873cfeea8 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/shape_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/shape_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class ShapeCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/softmax_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/softmax_coreml.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/softmax_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/softmax_coreml.cc index 9f7b4921ff2..a11161addb6 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/softmax_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/softmax_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/softmax_coreml.h" +#include "src/litert/delegate/coreml/op/softmax_coreml.h" namespace mindspore::lite { int SoftmaxCoreMLOp::InitParams() { softmax_prim_ = op_primitive_->value_as_Softmax(); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/softmax_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/softmax_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/softmax_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/softmax_coreml.h index 05fb0e6eec4..5d257b04bcb 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/softmax_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/softmax_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class SoftmaxCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/transpose_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/transpose_coreml.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/transpose_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/transpose_coreml.cc index 739f52f15b1..3b491bc6909 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/transpose_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/transpose_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/transpose_coreml.h" +#include "src/litert/delegate/coreml/op/transpose_coreml.h" namespace mindspore::lite { int TransposeCoreMLOp::IsSupport() { MS_CHECK_GE(in_tensors_.size(), kInputSize1, RET_NOT_SUPPORT); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/transpose_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/transpose_coreml.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/coreml/op/transpose_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/transpose_coreml.h index 8cdd725e380..7a676ca861f 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/transpose_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/transpose_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class TransposeCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/unsqueeze_coreml.cc b/mindspore/lite/src/litert/delegate/coreml/op/unsqueeze_coreml.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/op/unsqueeze_coreml.cc rename to mindspore/lite/src/litert/delegate/coreml/op/unsqueeze_coreml.cc index e8c7fc95a2b..9b2375a8d6d 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/unsqueeze_coreml.cc +++ b/mindspore/lite/src/litert/delegate/coreml/op/unsqueeze_coreml.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/op/unsqueeze_coreml.h" +#include "src/litert/delegate/coreml/op/unsqueeze_coreml.h" namespace mindspore::lite { int UnsqueezeCoreMLOp::InitParams() { unsqueeze_prim_ = op_primitive_->value_as_Unsqueeze(); diff --git a/mindspore/lite/src/runtime/delegate/coreml/op/unsqueeze_coreml.h b/mindspore/lite/src/litert/delegate/coreml/op/unsqueeze_coreml.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/coreml/op/unsqueeze_coreml.h rename to mindspore/lite/src/litert/delegate/coreml/op/unsqueeze_coreml.h index 40ad1785f4f..db68f962def 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/op/unsqueeze_coreml.h +++ b/mindspore/lite/src/litert/delegate/coreml/op/unsqueeze_coreml.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" namespace mindspore::lite { class UnsqueezeCoreMLOp : public CoreMLOp { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_base_pass.h b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_base_pass.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_base_pass.h rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_base_pass.h index 9f783a5d48e..4060125b9cb 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_base_pass.h +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_base_pass.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_BASE_PASS_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_BASE_PASS_H_ #include -#include "src/runtime/delegate/coreml/coreml_graph.h" +#include "src/litert/delegate/coreml/coreml_graph.h" namespace mindspore::lite { class CoreMLBasePass { diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_format_trans_pass.cc b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_format_trans_pass.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_format_trans_pass.cc rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_format_trans_pass.cc index 2009e2df33c..3074da9e896 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_format_trans_pass.cc +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_format_trans_pass.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/delegate/coreml/pass/coreml_format_trans_pass.h" +#include "src/litert/delegate/coreml/pass/coreml_format_trans_pass.h" #include -#include "src/runtime/delegate/coreml/pass/coreml_pass_utils.h" +#include "src/litert/delegate/coreml/pass/coreml_pass_utils.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_format_trans_pass.h b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_format_trans_pass.h similarity index 92% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_format_trans_pass.h rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_format_trans_pass.h index d86095a8c09..d2e6dc17ba8 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_format_trans_pass.h +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_format_trans_pass.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" -#include "src/runtime/delegate/coreml/pass/coreml_base_pass.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/pass/coreml_base_pass.h" namespace mindspore::lite { class CoreMLFormatTransPass : public CoreMLBasePass { diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_fusion_pass.cc b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_fusion_pass.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_fusion_pass.cc rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_fusion_pass.cc index 7d93f820d7c..2857ae1a8a1 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_fusion_pass.cc +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_fusion_pass.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/pass/coreml_fusion_pass.h" +#include "src/litert/delegate/coreml/pass/coreml_fusion_pass.h" #include -#include "src/runtime/delegate/coreml/pass/coreml_pass_utils.h" +#include "src/litert/delegate/coreml/pass/coreml_pass_utils.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_fusion_pass.h b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_fusion_pass.h similarity index 92% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_fusion_pass.h rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_fusion_pass.h index ab518812021..d68ddd89cc4 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_fusion_pass.h +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_fusion_pass.h @@ -17,8 +17,8 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_FUSION_PASS_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_FUSION_PASS_H_ #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" -#include "src/runtime/delegate/coreml/pass/coreml_base_pass.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/pass/coreml_base_pass.h" namespace mindspore::lite { class CoreMLFusionPass : public CoreMLBasePass { diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_manager.cc b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_manager.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_manager.cc rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_manager.cc index 4120a51f72c..b84031bb490 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_manager.cc +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_manager.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/pass/coreml_pass_manager.h" +#include "src/litert/delegate/coreml/pass/coreml_pass_manager.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_manager.h b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_manager.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_manager.h rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_manager.h index 2c3103601a2..2710a825284 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_manager.h +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_manager.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_PASS_MANAGER_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_PASS_MANAGER_H_ #include -#include "src/runtime/delegate/coreml/pass/coreml_base_pass.h" +#include "src/litert/delegate/coreml/pass/coreml_base_pass.h" namespace mindspore::lite { class CoreMLPassManager { public: diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_utils.cc b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_utils.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_utils.cc rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_utils.cc index 613d1974ba7..0cb8e7bf7c5 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_utils.cc +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_utils.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/coreml/pass/coreml_pass_utils.h" +#include "src/litert/delegate/coreml/pass/coreml_pass_utils.h" #include -#include "src/runtime/delegate/coreml/op/transpose_coreml.h" +#include "src/litert/delegate/coreml/op/transpose_coreml.h" namespace mindspore::lite { CoreMLOp *CoreMLPassUtils::CreateNchw2NhwcOp(const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_utils.h b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_utils.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_utils.h rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_utils.h index f385e6f2b53..5ce71f08fc7 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_pass_utils.h +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_pass_utils.h @@ -20,8 +20,8 @@ #include #include #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" -#include "src/runtime/delegate/coreml/op/transpose_coreml.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/op/transpose_coreml.h" namespace mindspore::lite { class CoreMLPassUtils { diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.cc b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_trans_extend_pass.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.cc rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_trans_extend_pass.cc index b0b05584354..810a29d0cf7 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.cc +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_trans_extend_pass.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.h" +#include "src/litert/delegate/coreml/pass/coreml_trans_extend_pass.h" #include #include #include -#include "src/runtime/delegate/coreml/pass/coreml_pass_utils.h" +#include "src/litert/delegate/coreml/pass/coreml_pass_utils.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.h b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_trans_extend_pass.h similarity index 94% rename from mindspore/lite/src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.h rename to mindspore/lite/src/litert/delegate/coreml/pass/coreml_trans_extend_pass.h index aaecb014890..5c98af69c76 100644 --- a/mindspore/lite/src/runtime/delegate/coreml/pass/coreml_trans_extend_pass.h +++ b/mindspore/lite/src/litert/delegate/coreml/pass/coreml_trans_extend_pass.h @@ -17,8 +17,8 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_TRANS_EXTEND_PASS_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_COREML_PASS_COREML_TRANS_EXTEND_PASS_H_ #include -#include "src/runtime/delegate/coreml/op/coreml_op.h" -#include "src/runtime/delegate/coreml/pass/coreml_base_pass.h" +#include "src/litert/delegate/coreml/op/coreml_op.h" +#include "src/litert/delegate/coreml/pass/coreml_base_pass.h" namespace mindspore::lite { enum class InsertState { InsertNone, PreInsert, PostInsert, BothInsert }; class CoreMLTransExtendPass : public CoreMLBasePass { diff --git a/mindspore/lite/src/runtime/delegate/coreml/stub/coreml_delegate_stub.cc b/mindspore/lite/src/litert/delegate/coreml/stub/coreml_delegate_stub.cc similarity index 100% rename from mindspore/lite/src/runtime/delegate/coreml/stub/coreml_delegate_stub.cc rename to mindspore/lite/src/litert/delegate/coreml/stub/coreml_delegate_stub.cc diff --git a/mindspore/lite/src/runtime/delegate/delegate_utils.cc b/mindspore/lite/src/litert/delegate/delegate_utils.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/delegate_utils.cc rename to mindspore/lite/src/litert/delegate/delegate_utils.cc index bb5ce55fc21..6befde4791d 100644 --- a/mindspore/lite/src/runtime/delegate/delegate_utils.cc +++ b/mindspore/lite/src/litert/delegate/delegate_utils.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/delegate_utils.h" #include "nnacl/fp32/pack_fp32.h" namespace mindspore::lite { void PackNHWCToNCHWFp32(const void *src, void *dst, int batches, int plane, int channel) { diff --git a/mindspore/lite/src/runtime/delegate/delegate_utils.h b/mindspore/lite/src/litert/delegate/delegate_utils.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/delegate_utils.h rename to mindspore/lite/src/litert/delegate/delegate_utils.h diff --git a/mindspore/lite/src/runtime/delegate/npu/CMakeLists.txt b/mindspore/lite/src/litert/delegate/npu/CMakeLists.txt similarity index 100% rename from mindspore/lite/src/runtime/delegate/npu/CMakeLists.txt rename to mindspore/lite/src/litert/delegate/npu/CMakeLists.txt diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_converter_utils.cc b/mindspore/lite/src/litert/delegate/npu/npu_converter_utils.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/npu_converter_utils.cc rename to mindspore/lite/src/litert/delegate/npu/npu_converter_utils.cc index 0bc4e9defee..b331be357e2 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_converter_utils.cc +++ b/mindspore/lite/src/litert/delegate/npu/npu_converter_utils.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/npu_converter_utils.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { #define C4NUM 4 #define C8NUM 8 diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_converter_utils.h b/mindspore/lite/src/litert/delegate/npu/npu_converter_utils.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/npu/npu_converter_utils.h rename to mindspore/lite/src/litert/delegate/npu/npu_converter_utils.h diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_delegate.cc b/mindspore/lite/src/litert/delegate/npu/npu_delegate.cc similarity index 83% rename from mindspore/lite/src/runtime/delegate/npu/npu_delegate.cc rename to mindspore/lite/src/litert/delegate/npu/npu_delegate.cc index 80c6be68285..7584b514ee6 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_delegate.cc +++ b/mindspore/lite/src/litert/delegate/npu/npu_delegate.cc @@ -14,51 +14,51 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/npu_delegate.h" +#include "src/litert/delegate/npu/npu_delegate.h" #include #include "include/errorcode.h" #include "src/common/prim_util.h" -#include "src/runtime/delegate/npu/pass/npu_pass_utils.h" -#include "src/runtime/delegate/npu/op/npu_op.h" -#include "src/runtime/delegate/npu/op/activation_npu.h" -#include "src/runtime/delegate/npu/op/argmax_npu.h" -#include "src/runtime/delegate/npu/op/arithmetic_npu.h" -#include "src/runtime/delegate/npu/op/arithmetic_self_npu.h" -#include "src/runtime/delegate/npu/op/avg_pooling_npu.h" -#include "src/runtime/delegate/npu/op/batchnorm_npu.h" -#include "src/runtime/delegate/npu/op/cast_npu.h" -#include "src/runtime/delegate/npu/op/concat_npu.h" -#include "src/runtime/delegate/npu/op/convolution_npu.h" -#include "src/runtime/delegate/npu/op/crop_and_resize_npu.h" -#include "src/runtime/delegate/npu/op/deconvolution_npu.h" -#include "src/runtime/delegate/npu/op/eltwise_npu.h" -#include "src/runtime/delegate/npu/op/expand_dims_npu.h" -#include "src/runtime/delegate/npu/op/fullconnection_npu.h" -#include "src/runtime/delegate/npu/op/gather_npu.h" -#include "src/runtime/delegate/npu/op/instance_norm_npu.h" -#include "src/runtime/delegate/npu/op/matmul_npu.h" -#include "src/runtime/delegate/npu/op/max_pooling_npu.h" -#include "src/runtime/delegate/npu/op/pad_npu.h" -#include "src/runtime/delegate/npu/op/reduce_npu.h" -#include "src/runtime/delegate/npu/op/reshape_npu.h" -#include "src/runtime/delegate/npu/op/resize_npu.h" -#include "src/runtime/delegate/npu/op/scale_npu.h" -#include "src/runtime/delegate/npu/op/slice_npu.h" -#include "src/runtime/delegate/npu/op/softmax_npu.h" -#include "src/runtime/delegate/npu/op/split_npu.h" -#include "src/runtime/delegate/npu/op/squeeze_npu.h" -#include "src/runtime/delegate/npu/op/strided_slice_npu.h" -#include "src/runtime/delegate/npu/op/tile_npu.h" -#include "src/runtime/delegate/npu/op/transpose_npu.h" -#include "src/runtime/delegate/npu/op/unsqueeze_npu.h" -#include "src/runtime/delegate/npu/op/abs_npu.h" -#include "src/runtime/delegate/npu/op/flatten_npu.h" -#include "src/runtime/delegate/npu/op/broadcast_to_npu.h" -#include "src/runtime/delegate/npu/npu_graph.h" -#include "src/runtime/delegate/delegate_utils.h" -#include "src/runtime/delegate/npu/pass/npu_transform_pass.h" -#include "src/runtime/delegate/npu/pass/npu_insert_transform_pass.h" -#include "src/runtime/delegate/npu/pass/npu_fusion_pass.h" +#include "src/litert/delegate/npu/pass/npu_pass_utils.h" +#include "src/litert/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/activation_npu.h" +#include "src/litert/delegate/npu/op/argmax_npu.h" +#include "src/litert/delegate/npu/op/arithmetic_npu.h" +#include "src/litert/delegate/npu/op/arithmetic_self_npu.h" +#include "src/litert/delegate/npu/op/avg_pooling_npu.h" +#include "src/litert/delegate/npu/op/batchnorm_npu.h" +#include "src/litert/delegate/npu/op/cast_npu.h" +#include "src/litert/delegate/npu/op/concat_npu.h" +#include "src/litert/delegate/npu/op/convolution_npu.h" +#include "src/litert/delegate/npu/op/crop_and_resize_npu.h" +#include "src/litert/delegate/npu/op/deconvolution_npu.h" +#include "src/litert/delegate/npu/op/eltwise_npu.h" +#include "src/litert/delegate/npu/op/expand_dims_npu.h" +#include "src/litert/delegate/npu/op/fullconnection_npu.h" +#include "src/litert/delegate/npu/op/gather_npu.h" +#include "src/litert/delegate/npu/op/instance_norm_npu.h" +#include "src/litert/delegate/npu/op/matmul_npu.h" +#include "src/litert/delegate/npu/op/max_pooling_npu.h" +#include "src/litert/delegate/npu/op/pad_npu.h" +#include "src/litert/delegate/npu/op/reduce_npu.h" +#include "src/litert/delegate/npu/op/reshape_npu.h" +#include "src/litert/delegate/npu/op/resize_npu.h" +#include "src/litert/delegate/npu/op/scale_npu.h" +#include "src/litert/delegate/npu/op/slice_npu.h" +#include "src/litert/delegate/npu/op/softmax_npu.h" +#include "src/litert/delegate/npu/op/split_npu.h" +#include "src/litert/delegate/npu/op/squeeze_npu.h" +#include "src/litert/delegate/npu/op/strided_slice_npu.h" +#include "src/litert/delegate/npu/op/tile_npu.h" +#include "src/litert/delegate/npu/op/transpose_npu.h" +#include "src/litert/delegate/npu/op/unsqueeze_npu.h" +#include "src/litert/delegate/npu/op/abs_npu.h" +#include "src/litert/delegate/npu/op/flatten_npu.h" +#include "src/litert/delegate/npu/op/broadcast_to_npu.h" +#include "src/litert/delegate/npu/npu_graph.h" +#include "src/litert/delegate/delegate_utils.h" +#include "src/litert/delegate/npu/pass/npu_transform_pass.h" +#include "src/litert/delegate/npu/pass/npu_insert_transform_pass.h" +#include "src/litert/delegate/npu/pass/npu_fusion_pass.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_delegate.h b/mindspore/lite/src/litert/delegate/npu/npu_delegate.h similarity index 91% rename from mindspore/lite/src/runtime/delegate/npu/npu_delegate.h rename to mindspore/lite/src/litert/delegate/npu/npu_delegate.h index c85dd5c119c..14766d12fdb 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_delegate.h +++ b/mindspore/lite/src/litert/delegate/npu/npu_delegate.h @@ -21,9 +21,9 @@ #include #include "include/api/delegate.h" #include "include/context.h" -#include "src/runtime/delegate/npu/npu_manager.h" -#include "src/runtime/delegate/npu/pass/npu_pass_manager.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/pass/npu_pass_manager.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class NPUDelegate : public Delegate { diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_executor.cc b/mindspore/lite/src/litert/delegate/npu/npu_executor.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/npu_executor.cc rename to mindspore/lite/src/litert/delegate/npu/npu_executor.cc index 9d2e640365d..74a8aa69025 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_executor.cc +++ b/mindspore/lite/src/litert/delegate/npu/npu_executor.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/npu_executor.h" +#include "src/litert/delegate/npu/npu_executor.h" #include #include #include "include/errorcode.h" -#include "src/runtime/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/npu_manager.h" #include "src/common/log_adapter.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_executor.h b/mindspore/lite/src/litert/delegate/npu/npu_executor.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/npu_executor.h rename to mindspore/lite/src/litert/delegate/npu/npu_executor.h index bbf80f55dd8..30b8800b646 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_executor.h +++ b/mindspore/lite/src/litert/delegate/npu/npu_executor.h @@ -22,8 +22,8 @@ #include #include "include/errorcode.h" #include "include/HiAiModelManagerService.h" -#include "src/runtime/delegate/npu/npu_manager.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class NPUExecutor { diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_graph.cc b/mindspore/lite/src/litert/delegate/npu/npu_graph.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/npu_graph.cc rename to mindspore/lite/src/litert/delegate/npu/npu_graph.cc index 05c94191c5b..b07f8e66bd8 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_graph.cc +++ b/mindspore/lite/src/litert/delegate/npu/npu_graph.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/npu_graph.h" +#include "src/litert/delegate/npu/npu_graph.h" #include -#include "src/runtime/delegate/npu/npu_subgraph.h" -#include "src/runtime/delegate/delegate_utils.h" -#include "src/runtime/delegate/npu/op/transpose_npu.h" -#include "src/runtime/delegate/npu/transpose_kernel.h" +#include "src/litert/delegate/npu/npu_subgraph.h" +#include "src/litert/delegate/delegate_utils.h" +#include "src/litert/delegate/npu/op/transpose_npu.h" +#include "src/litert/delegate/npu/transpose_kernel.h" namespace mindspore::lite { NPUGraph::~NPUGraph() { for (auto *kernel : all_kernels_) { diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_graph.h b/mindspore/lite/src/litert/delegate/npu/npu_graph.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/npu_graph.h rename to mindspore/lite/src/litert/delegate/npu/npu_graph.h index 50c5b14a83e..1ff835c422e 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_graph.h +++ b/mindspore/lite/src/litert/delegate/npu/npu_graph.h @@ -22,8 +22,8 @@ #include #include #include "include/api/kernel.h" -#include "src/runtime/delegate/npu/op/npu_op.h" -#include "src/runtime/delegate/npu/npu_executor.h" +#include "src/litert/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/npu_executor.h" namespace mindspore::lite { class NPUGraph : public kernel::Kernel { diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_manager.cc b/mindspore/lite/src/litert/delegate/npu/npu_manager.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/npu/npu_manager.cc rename to mindspore/lite/src/litert/delegate/npu/npu_manager.cc index 4ddd6446dde..cb8bff2ac6d 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_manager.cc +++ b/mindspore/lite/src/litert/delegate/npu/npu_manager.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/npu_manager.h" #include #include "include/hiai_ir_build.h" #include "include/HiAiModelManagerService.h" diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_manager.h b/mindspore/lite/src/litert/delegate/npu/npu_manager.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/npu/npu_manager.h rename to mindspore/lite/src/litert/delegate/npu/npu_manager.h diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_subgraph.cc b/mindspore/lite/src/litert/delegate/npu/npu_subgraph.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/npu_subgraph.cc rename to mindspore/lite/src/litert/delegate/npu/npu_subgraph.cc index 6b4a369d34a..3d858649838 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_subgraph.cc +++ b/mindspore/lite/src/litert/delegate/npu/npu_subgraph.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/npu_subgraph.h" +#include "src/litert/delegate/npu/npu_subgraph.h" #include #include #include @@ -25,7 +25,7 @@ #include "include/graph/model.h" #include "include/hiai_ir_build.h" #include "src/common/utils.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { static std::set npu_specific_weight_nodes = { schema::PrimitiveType_Conv2DFusion, schema::PrimitiveType_Conv2dTransposeFusion, schema::PrimitiveType_PadFusion, diff --git a/mindspore/lite/src/runtime/delegate/npu/npu_subgraph.h b/mindspore/lite/src/litert/delegate/npu/npu_subgraph.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/npu_subgraph.h rename to mindspore/lite/src/litert/delegate/npu/npu_subgraph.h index 8970a7bb1b2..3f2faf4143a 100644 --- a/mindspore/lite/src/runtime/delegate/npu/npu_subgraph.h +++ b/mindspore/lite/src/litert/delegate/npu/npu_subgraph.h @@ -21,7 +21,7 @@ #include #include #include "include/api/kernel.h" -#include "src/runtime/delegate/npu/npu_executor.h" +#include "src/litert/delegate/npu/npu_executor.h" namespace mindspore::lite { class NPUSubGraph : public kernel::Kernel { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/abs_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/abs_npu.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/op/abs_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/abs_npu.cc index beffa0a285d..387cd60a213 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/abs_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/abs_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/abs_npu.h" +#include "src/litert/delegate/npu/op/abs_npu.h" #include "include/graph/op/all_ops.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" namespace mindspore::lite { int AbsNPUOp::Init(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/abs_npu.h b/mindspore/lite/src/litert/delegate/npu/op/abs_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/abs_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/abs_npu.h index ec87cd0a192..399045eb97a 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/abs_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/abs_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class AbsNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/activation_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/activation_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/activation_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/activation_npu.cc index 08b7928baf4..a1e9c2b965b 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/activation_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/activation_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/activation_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/activation_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ActivationNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, const std::vector &out_tensors) { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/activation_npu.h b/mindspore/lite/src/litert/delegate/npu/op/activation_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/activation_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/activation_npu.h index 5faceb04ade..9f0a3101074 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/activation_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/activation_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/compatible/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ActivationNPUOp : public NPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/argmax_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/argmax_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/argmax_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/argmax_npu.cc index f072c2ffc78..aad874c560c 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/argmax_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/argmax_npu.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/argmax_npu.h" +#include "src/litert/delegate/npu/op/argmax_npu.h" #include namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/argmax_npu.h b/mindspore/lite/src/litert/delegate/npu/op/argmax_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/argmax_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/argmax_npu.h index 341ec2b8005..456c479e2b3 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/argmax_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/argmax_npu.h @@ -21,7 +21,7 @@ #include #include "include/graph/op/all_ops.h" #include "include/graph/compatible/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/arithmetic_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/arithmetic_npu.cc index 2d3e8cbc228..cfbad72233b 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/arithmetic_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/arithmetic_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int ARITHMETIC_INPUT_NUM = 2; constexpr int MAX_HW_SIZE = 1664; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_npu.h b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_npu.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/arithmetic_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/arithmetic_npu.h index a8131946cb0..d20e9b20e0b 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ArithmeticNPUOp : public NPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_self_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_self_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/arithmetic_self_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/arithmetic_self_npu.cc index 289922d86ed..6268bf358e8 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_self_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_self_npu.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/arithmetic_self_npu.h" +#include "src/litert/delegate/npu/op/arithmetic_self_npu.h" #include namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_self_npu.h b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_self_npu.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/arithmetic_self_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/arithmetic_self_npu.h index cba4d4caa2d..9b44a9188b0 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/arithmetic_self_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/arithmetic_self_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/math_defs.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ArithmeticSelfNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/avg_pooling_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/avg_pooling_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/avg_pooling_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/avg_pooling_npu.cc index cb3a1956820..680f39d1885 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/avg_pooling_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/avg_pooling_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/avg_pooling_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" -#include "src/runtime/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/op/avg_pooling_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_manager.h" namespace mindspore::lite { constexpr int MAX_HW_SIZE = 65534; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/avg_pooling_npu.h b/mindspore/lite/src/litert/delegate/npu/op/avg_pooling_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/avg_pooling_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/avg_pooling_npu.h index ca93695ade9..af33982e24a 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/avg_pooling_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/avg_pooling_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class AvgPoolingNPUOp : public ConvolutionBaseNPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/batchnorm_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/batchnorm_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/batchnorm_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/batchnorm_npu.cc index 5f2916d3b84..aacfe1d01e7 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/batchnorm_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/batchnorm_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/batchnorm_npu.h" +#include "src/litert/delegate/npu/op/batchnorm_npu.h" #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int SCALE_INDEX = 1; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/batchnorm_npu.h b/mindspore/lite/src/litert/delegate/npu/op/batchnorm_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/batchnorm_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/batchnorm_npu.h index 072c40ef3d8..fc541a5e0cf 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/batchnorm_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/batchnorm_npu.h @@ -20,7 +20,7 @@ #include #include "include/graph/op/all_ops.h" #include "include/graph/compatible/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class BatchnormNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/broadcast_to_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/broadcast_to_npu.cc similarity index 93% rename from mindspore/lite/src/runtime/delegate/npu/op/broadcast_to_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/broadcast_to_npu.cc index d4d2f0652e1..7c936fd8b5b 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/broadcast_to_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/broadcast_to_npu.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/broadcast_to_npu.h" +#include "src/litert/delegate/npu/op/broadcast_to_npu.h" #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" -#include "src/runtime/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_manager.h" namespace mindspore::lite { int BroadcastToNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/broadcast_to_npu.h b/mindspore/lite/src/litert/delegate/npu/op/broadcast_to_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/broadcast_to_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/broadcast_to_npu.h index 6e70e578134..278c709965f 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/broadcast_to_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/broadcast_to_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class BroadcastToNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/cast_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/cast_npu.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/op/cast_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/cast_npu.cc index 6ec8fc9cdb6..9fef95ea3c0 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/cast_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/cast_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/cast_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/cast_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int CastNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/cast_npu.h b/mindspore/lite/src/litert/delegate/npu/op/cast_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/cast_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/cast_npu.h index 0e74dbe8a3f..1058fde052b 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/cast_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/cast_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class CastNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/concat_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/concat_npu.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/op/concat_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/concat_npu.cc index dc5eb11c088..4c6c30ad984 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/concat_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/concat_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/concat_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/concat_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ConcatNPUOp::Init(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/concat_npu.h b/mindspore/lite/src/litert/delegate/npu/op/concat_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/concat_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/concat_npu.h index c0812ddb00f..c5d649e61d0 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/concat_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/concat_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ConcatNPUOp : public NPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_base_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/convolution_base_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_base_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/convolution_base_npu.cc index 97cce7f255b..3dc1d008b23 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_base_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_base_npu.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" -#include "src/runtime/delegate/npu/transpose_kernel.h" -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/transpose_kernel.h" +#include "src/litert/delegate/delegate_utils.h" #include "nnacl/int8/pack_int8.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_base_npu.h b/mindspore/lite/src/litert/delegate/npu/op/convolution_base_npu.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_base_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/convolution_base_npu.h index 229766b0ee3..aa3601b0421 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_base_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_base_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { constexpr int WEIGHT_INDEX = 1; constexpr int BIAS_INDEX = 2; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_int8_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_int8_npu.cc index 8b9cd1c1921..ab2305f0851 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_int8_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/convolution_depthwise_int8_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ConvolutionDepthwiseInt8NPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.h b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_int8_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_int8_npu.h index 09f030e239b..7a6470bae13 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_int8_npu.h @@ -20,7 +20,7 @@ #include #include #include "include/graph/compatible/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class ConvolutionDepthwiseInt8NPUOp : public ConvolutionBaseNPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_npu.cc index 6b70a1341d1..b11ea909d8b 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/convolution_depthwise_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/convolution_depthwise_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ConvolutionDepthwiseNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_npu.h b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_npu.h index 4ea42cabb62..06218189959 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_depthwise_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_depthwise_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/compatible/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class ConvolutionDepthwiseNPUOp : public ConvolutionBaseNPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_int8_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/convolution_int8_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_int8_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/convolution_int8_npu.cc index 6126ec0eb06..dffcd61221a 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_int8_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_int8_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/convolution_int8_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/convolution_int8_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ConvolutionInt8NPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_int8_npu.h b/mindspore/lite/src/litert/delegate/npu/op/convolution_int8_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_int8_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/convolution_int8_npu.h index 9c1724d952e..5bdf8ebfb3a 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_int8_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_int8_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class ConvolutionInt8NPUOp : public ConvolutionBaseNPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/convolution_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/convolution_npu.cc index 430df275664..3e2fe116b6f 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_npu.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/convolution_npu.h" +#include "src/litert/delegate/npu/op/convolution_npu.h" #include -#include "src/runtime/delegate/npu/op/convolution_depthwise_npu.h" -#include "src/runtime/delegate/npu/op/convolution_int8_npu.h" -#include "src/runtime/delegate/npu/op/convolution_depthwise_int8_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/convolution_depthwise_npu.h" +#include "src/litert/delegate/npu/op/convolution_int8_npu.h" +#include "src/litert/delegate/npu/op/convolution_depthwise_int8_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ConvolutionNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, const std::vector &out_tensors) { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/convolution_npu.h b/mindspore/lite/src/litert/delegate/npu/op/convolution_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/convolution_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/convolution_npu.h index aa666ea42c4..23cbf9df82c 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/convolution_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/convolution_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class ConvolutionNPUOp : public ConvolutionBaseNPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/crop_and_resize_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/crop_and_resize_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/crop_and_resize_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/crop_and_resize_npu.cc index 1d34ec3c23b..31948cc8478 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/crop_and_resize_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/crop_and_resize_npu.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/crop_and_resize_npu.h" +#include "src/litert/delegate/npu/op/crop_and_resize_npu.h" namespace mindspore::lite { constexpr int BOXES_INDEX = 1; constexpr int BOX_INDEX = 2; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/crop_and_resize_npu.h b/mindspore/lite/src/litert/delegate/npu/op/crop_and_resize_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/crop_and_resize_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/crop_and_resize_npu.h index b087c400ba3..c61cd38cd9d 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/crop_and_resize_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/crop_and_resize_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class CropAndResizeNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/deconvolution_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/deconvolution_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/deconvolution_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/deconvolution_npu.cc index dc3dcb69de5..cd5fdff90ce 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/deconvolution_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/deconvolution_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/deconvolution_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/deconvolution_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" #include "nnacl/op_base.h" #include "src/common/log_util.h" diff --git a/mindspore/lite/src/runtime/delegate/npu/op/deconvolution_npu.h b/mindspore/lite/src/litert/delegate/npu/op/deconvolution_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/deconvolution_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/deconvolution_npu.h index 92a2ddfa797..c57755d7071 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/deconvolution_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/deconvolution_npu.h @@ -20,7 +20,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class DeconvolutionNPUOp : public ConvolutionBaseNPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/eltwise_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/eltwise_npu.cc similarity index 94% rename from mindspore/lite/src/runtime/delegate/npu/op/eltwise_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/eltwise_npu.cc index 9c8401156c6..d2a686fb3ad 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/eltwise_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/eltwise_npu.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/eltwise_npu.h" +#include "src/litert/delegate/npu/op/eltwise_npu.h" #include "include/graph/op/all_ops.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int EltwiseNPUOp::Init(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/eltwise_npu.h b/mindspore/lite/src/litert/delegate/npu/op/eltwise_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/eltwise_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/eltwise_npu.h index 32c2811be92..9876c141f10 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/eltwise_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/eltwise_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class EltwiseNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/expand_dims_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/expand_dims_npu.cc similarity index 93% rename from mindspore/lite/src/runtime/delegate/npu/op/expand_dims_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/expand_dims_npu.cc index 6e15f2c17a3..4a2890c7fe4 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/expand_dims_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/expand_dims_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/expand_dims_npu.h" +#include "src/litert/delegate/npu/op/expand_dims_npu.h" #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ExpandDimsNPUOp::Init(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/expand_dims_npu.h b/mindspore/lite/src/litert/delegate/npu/op/expand_dims_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/expand_dims_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/expand_dims_npu.h index 93812671eaf..ac3854e88a8 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/expand_dims_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/expand_dims_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ExpandDimsNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/flatten_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/flatten_npu.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/op/flatten_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/flatten_npu.cc index 1c70e46c05c..6257b015835 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/flatten_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/flatten_npu.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/flatten_npu.h" +#include "src/litert/delegate/npu/op/flatten_npu.h" #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" -#include "src/runtime/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_manager.h" namespace mindspore::lite { int FlattenNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/flatten_npu.h b/mindspore/lite/src/litert/delegate/npu/op/flatten_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/flatten_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/flatten_npu.h index 5cf94bee10e..0f0a9e0f67b 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/flatten_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/flatten_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class FlattenNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_int8_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_int8_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/fullconnection_int8_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/fullconnection_int8_npu.cc index a02ead1e938..d332e7669b7 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_int8_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_int8_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/fullconnection_int8_npu.h" +#include "src/litert/delegate/npu/op/fullconnection_int8_npu.h" #include -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int FC_INPUT_DIM = 2; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_int8_npu.h b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_int8_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/fullconnection_int8_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/fullconnection_int8_npu.h index 682b56e7beb..9072b9edb97 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_int8_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_int8_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class FullconnectionINT8NPUOp : public ConvolutionBaseNPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/fullconnection_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/fullconnection_npu.cc index c437201e38f..e50e273d47c 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_npu.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/fullconnection_npu.h" -#include "src/runtime/delegate/npu/op/fullconnection_int8_npu.h" +#include "src/litert/delegate/npu/op/fullconnection_npu.h" +#include "src/litert/delegate/npu/op/fullconnection_int8_npu.h" #include -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int FC_INPUT_DIM = 2; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_npu.h b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/fullconnection_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/fullconnection_npu.h index b2f293f2bb6..2f42a15af61 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/fullconnection_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/fullconnection_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class FullconnectionNPUOp : public ConvolutionBaseNPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/gather_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/gather_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/gather_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/gather_npu.cc index 0fce97b9742..84cdab4f9a4 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/gather_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/gather_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/gather_npu.h" -#include "src/runtime/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/op/gather_npu.h" +#include "src/litert/delegate/npu/npu_manager.h" namespace mindspore::lite { constexpr int AXIS_INDEX = 2; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/gather_npu.h b/mindspore/lite/src/litert/delegate/npu/op/gather_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/gather_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/gather_npu.h index bb76aa6b6dd..e4026172c87 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/gather_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/gather_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class GatherNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/instance_norm_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/instance_norm_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/instance_norm_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/instance_norm_npu.cc index 7e8807a52c5..088653d0f00 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/instance_norm_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/instance_norm_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/instance_norm_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/instance_norm_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int GAMMA_INDEX = 1; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/instance_norm_npu.h b/mindspore/lite/src/litert/delegate/npu/op/instance_norm_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/instance_norm_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/instance_norm_npu.h index 4e4471b48da..de76758f4c4 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/instance_norm_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/instance_norm_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class InstanceNormNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/matmul_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/matmul_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/matmul_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/matmul_npu.cc index abcc605043a..5b5ff388c11 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/matmul_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/matmul_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/matmul_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/matmul_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int BIAS_INDEX = 2; constexpr int MATMUL_COMMON_DIM = 2; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/matmul_npu.h b/mindspore/lite/src/litert/delegate/npu/op/matmul_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/matmul_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/matmul_npu.h index ecb2a494d77..7f6eeb03b34 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/matmul_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/matmul_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class MatMulNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/max_pooling_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/max_pooling_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/max_pooling_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/max_pooling_npu.cc index 1aaab560415..4ce5a9538cf 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/max_pooling_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/max_pooling_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/max_pooling_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/max_pooling_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int MaxPoolingNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, const std::vector &out_tensors) { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/max_pooling_npu.h b/mindspore/lite/src/litert/delegate/npu/op/max_pooling_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/max_pooling_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/max_pooling_npu.h index dc4116eb1d7..597bf1a1c57 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/max_pooling_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/max_pooling_npu.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_OP_MAX_POOLING_NPU_H_ #include #include -#include "src/runtime/delegate/npu/op/convolution_base_npu.h" +#include "src/litert/delegate/npu/op/convolution_base_npu.h" namespace mindspore::lite { class MaxPoolingNPUOp : public ConvolutionBaseNPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/npu_op.h b/mindspore/lite/src/litert/delegate/npu/op/npu_op.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/npu/op/npu_op.h rename to mindspore/lite/src/litert/delegate/npu/op/npu_op.h diff --git a/mindspore/lite/src/runtime/delegate/npu/op/pad_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/pad_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/pad_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/pad_npu.cc index 4a9942e65e8..229076e63c9 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/pad_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/pad_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/pad_npu.h" +#include "src/litert/delegate/npu/op/pad_npu.h" #include -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int PAD_PAIR_SIZE = 2; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/pad_npu.h b/mindspore/lite/src/litert/delegate/npu/op/pad_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/pad_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/pad_npu.h index 7e79a02cf0f..816b66b4f68 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/pad_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/pad_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class PadNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/reduce_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/reduce_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/reduce_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/reduce_npu.cc index 517c161e76c..e450ea67693 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/reduce_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/reduce_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/reduce_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/reduce_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ReduceNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/reduce_npu.h b/mindspore/lite/src/litert/delegate/npu/op/reduce_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/reduce_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/reduce_npu.h index 5dd73b9c7bf..21940c3d978 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/reduce_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/reduce_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ReduceNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/reshape_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/reshape_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/reshape_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/reshape_npu.cc index c187aead77f..163f0ab7e45 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/reshape_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/reshape_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/reshape_npu.h" +#include "src/litert/delegate/npu/op/reshape_npu.h" #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int ReshapeNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, const std::vector &out_tensors) { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/reshape_npu.h b/mindspore/lite/src/litert/delegate/npu/op/reshape_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/reshape_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/reshape_npu.h index 323c990cae9..dfaee998270 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/reshape_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/reshape_npu.h @@ -21,7 +21,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ReshapeNPUOp : public NPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/resize_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/resize_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/resize_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/resize_npu.cc index ac6bbeb02d4..90fdb5a9929 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/resize_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/resize_npu.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/resize_npu.h" +#include "src/litert/delegate/npu/op/resize_npu.h" #include -#include "src/runtime/delegate/npu/npu_converter_utils.h" -#include "src/runtime/delegate/npu/npu_manager.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_manager.h" namespace mindspore::lite { int ResizeNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/resize_npu.h b/mindspore/lite/src/litert/delegate/npu/op/resize_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/resize_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/resize_npu.h index b5ae1500366..d463c157edc 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/resize_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/resize_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ResizeNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/scale_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/scale_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/scale_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/scale_npu.cc index 216ae57fe19..db0a625d3eb 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/scale_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/scale_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/scale_npu.h" +#include "src/litert/delegate/npu/op/scale_npu.h" #include -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int INPUT_INDEX = 0; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/scale_npu.h b/mindspore/lite/src/litert/delegate/npu/op/scale_npu.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/scale_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/scale_npu.h index 13c68c708b7..a2bfcc62f48 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/scale_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/scale_npu.h @@ -20,7 +20,7 @@ #include #include "include/graph/op/all_ops.h" #include "include/graph/op/nn_defs.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class ScaleNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/slice_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/slice_npu.cc similarity index 93% rename from mindspore/lite/src/runtime/delegate/npu/op/slice_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/slice_npu.cc index d3e15250308..039267cc83c 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/slice_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/slice_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/slice_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/slice_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { constexpr int OFFSET_INDEX = 1; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/slice_npu.h b/mindspore/lite/src/litert/delegate/npu/op/slice_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/slice_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/slice_npu.h index 720e2964740..27462071f7a 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/slice_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/slice_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class SliceNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/softmax_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/softmax_npu.cc similarity index 94% rename from mindspore/lite/src/runtime/delegate/npu/op/softmax_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/softmax_npu.cc index bf3f84d6400..cda82ebe3ba 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/softmax_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/softmax_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/softmax_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/softmax_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int SoftmaxNPUOp::Init(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/softmax_npu.h b/mindspore/lite/src/litert/delegate/npu/op/softmax_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/softmax_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/softmax_npu.h index a89f7b69951..513db36891f 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/softmax_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/softmax_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/nn_defs.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class SoftmaxNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/split_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/split_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/split_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/split_npu.cc index 0ab19e3a5c8..52a210cb60c 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/split_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/split_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/split_npu.h" +#include "src/litert/delegate/npu/op/split_npu.h" #include -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int SplitNPUOp::Init(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/split_npu.h b/mindspore/lite/src/litert/delegate/npu/op/split_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/split_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/split_npu.h index 2167ccc3a0c..c43dfe6bcf8 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/split_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/split_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class SplitNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/squeeze_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/squeeze_npu.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/squeeze_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/squeeze_npu.cc index 35b9cee9302..c958e25c83a 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/squeeze_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/squeeze_npu.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/squeeze_npu.h" +#include "src/litert/delegate/npu/op/squeeze_npu.h" namespace mindspore::lite { int SqueezeNPUOp::Init(const schema::Primitive *primitive, const std::vector &in_tensors, const std::vector &out_tensors) { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/squeeze_npu.h b/mindspore/lite/src/litert/delegate/npu/op/squeeze_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/squeeze_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/squeeze_npu.h index e7f20a9d521..c72d62adaee 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/squeeze_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/squeeze_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class SqueezeNPUOp : public NPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/strided_slice_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/strided_slice_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/strided_slice_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/strided_slice_npu.cc index 9f068482c03..addc663b344 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/strided_slice_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/strided_slice_npu.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/strided_slice_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/strided_slice_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int StridedSliceNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/strided_slice_npu.h b/mindspore/lite/src/litert/delegate/npu/op/strided_slice_npu.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/strided_slice_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/strided_slice_npu.h index 685b1166e7f..99130b7ea98 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/strided_slice_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/strided_slice_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { constexpr int ONNX_INPUT_SIZE = 5; diff --git a/mindspore/lite/src/runtime/delegate/npu/op/tile_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/tile_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/tile_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/tile_npu.cc index 55658488d75..9025ffd32d1 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/tile_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/tile_npu.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/tile_npu.h" +#include "src/litert/delegate/npu/op/tile_npu.h" #include -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { int TileNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/op/tile_npu.h b/mindspore/lite/src/litert/delegate/npu/op/tile_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/tile_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/tile_npu.h index 8841849cdc5..bc9dfc0f296 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/tile_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/tile_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class TileNPUOp : public NPUOp { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/transpose_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/transpose_npu.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/op/transpose_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/transpose_npu.cc index b518dde8a2a..0ee79094a79 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/transpose_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/transpose_npu.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/transpose_npu.h" +#include "src/litert/delegate/npu/op/transpose_npu.h" namespace mindspore::lite { int TransposeNPUOp::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, const std::vector &out_tensors) { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/transpose_npu.h b/mindspore/lite/src/litert/delegate/npu/op/transpose_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/transpose_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/transpose_npu.h index 63c1a16468c..966542618ec 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/transpose_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/transpose_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class TransposeNPUOp : public NPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/op/unsqueeze_npu.cc b/mindspore/lite/src/litert/delegate/npu/op/unsqueeze_npu.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/op/unsqueeze_npu.cc rename to mindspore/lite/src/litert/delegate/npu/op/unsqueeze_npu.cc index 50330d140f0..9600e0848d6 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/unsqueeze_npu.cc +++ b/mindspore/lite/src/litert/delegate/npu/op/unsqueeze_npu.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/op/unsqueeze_npu.h" +#include "src/litert/delegate/npu/op/unsqueeze_npu.h" #include namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/npu/op/unsqueeze_npu.h b/mindspore/lite/src/litert/delegate/npu/op/unsqueeze_npu.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/npu/op/unsqueeze_npu.h rename to mindspore/lite/src/litert/delegate/npu/op/unsqueeze_npu.h index e419b053d4b..14865c28f96 100644 --- a/mindspore/lite/src/runtime/delegate/npu/op/unsqueeze_npu.h +++ b/mindspore/lite/src/litert/delegate/npu/op/unsqueeze_npu.h @@ -19,7 +19,7 @@ #include #include #include "include/graph/op/all_ops.h" -#include "src/runtime/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/npu_op.h" namespace mindspore::lite { class UnsqueezeNPUOp : public NPUOp { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_base_pass.h b/mindspore/lite/src/litert/delegate/npu/pass/npu_base_pass.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_base_pass.h rename to mindspore/lite/src/litert/delegate/npu/pass/npu_base_pass.h index bcc1866061a..1af5bcc4ef9 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_base_pass.h +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_base_pass.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_BASE_PASS_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_BASE_PASS_H_ #include -#include "src/runtime/delegate/npu/npu_graph.h" +#include "src/litert/delegate/npu/npu_graph.h" namespace mindspore::lite { class NPUBasePass { diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_fusion_pass.cc b/mindspore/lite/src/litert/delegate/npu/pass/npu_fusion_pass.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_fusion_pass.cc rename to mindspore/lite/src/litert/delegate/npu/pass/npu_fusion_pass.cc index 2cf1571c5db..139cc442813 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_fusion_pass.cc +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_fusion_pass.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/pass/npu_fusion_pass.h" +#include "src/litert/delegate/npu/pass/npu_fusion_pass.h" #include -#include "src/runtime/delegate/npu/pass/npu_pass_utils.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/pass/npu_pass_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_fusion_pass.h b/mindspore/lite/src/litert/delegate/npu/pass/npu_fusion_pass.h similarity index 92% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_fusion_pass.h rename to mindspore/lite/src/litert/delegate/npu/pass/npu_fusion_pass.h index 550288c6fcc..bcc28a2f666 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_fusion_pass.h +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_fusion_pass.h @@ -17,8 +17,8 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_FUSION_PASS_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_FUSION_PASS_H_ #include -#include "src/runtime/delegate/npu/op/npu_op.h" -#include "src/runtime/delegate/npu/pass/npu_base_pass.h" +#include "src/litert/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/pass/npu_base_pass.h" namespace mindspore::lite { class NPUFusionPass : public NPUBasePass { diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_insert_transform_pass.cc b/mindspore/lite/src/litert/delegate/npu/pass/npu_insert_transform_pass.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_insert_transform_pass.cc rename to mindspore/lite/src/litert/delegate/npu/pass/npu_insert_transform_pass.cc index 4ed7c924a63..b59037a4f64 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_insert_transform_pass.cc +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_insert_transform_pass.cc @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/delegate/npu/pass/npu_insert_transform_pass.h" +#include "src/litert/delegate/npu/pass/npu_insert_transform_pass.h" #include #include #include -#include "src/runtime/delegate/npu/pass/npu_pass_utils.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/pass/npu_pass_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_insert_transform_pass.h b/mindspore/lite/src/litert/delegate/npu/pass/npu_insert_transform_pass.h similarity index 94% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_insert_transform_pass.h rename to mindspore/lite/src/litert/delegate/npu/pass/npu_insert_transform_pass.h index 31794499195..13e73a5f1d6 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_insert_transform_pass.h +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_insert_transform_pass.h @@ -17,8 +17,8 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_INSERT_TRANSFORM_PASS_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_INSERT_TRANSFORM_PASS_H_ #include -#include "src/runtime/delegate/npu/op/npu_op.h" -#include "src/runtime/delegate/npu/pass/npu_base_pass.h" +#include "src/litert/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/pass/npu_base_pass.h" namespace mindspore::lite { enum class InsertState { InsertNone, PreInsert, PostInsert, BothInsert }; class NPUInsertTransformPass : public NPUBasePass { diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_manager.cc b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_manager.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_manager.cc rename to mindspore/lite/src/litert/delegate/npu/pass/npu_pass_manager.cc index b568f4b12aa..1d4d94465dc 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_manager.cc +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_manager.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/pass/npu_pass_manager.h" +#include "src/litert/delegate/npu/pass/npu_pass_manager.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_manager.h b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_manager.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_manager.h rename to mindspore/lite/src/litert/delegate/npu/pass/npu_pass_manager.h index e3b6c1d6c80..ab948b220fb 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_manager.h +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_manager.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_PASS_MANAGER_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_NPU_PASS_NPU_PASS_MANAGER_H_ #include -#include "src/runtime/delegate/npu/pass/npu_base_pass.h" +#include "src/litert/delegate/npu/pass/npu_base_pass.h" namespace mindspore::lite { class NPUPassManager { public: diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_utils.cc b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_utils.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_utils.cc rename to mindspore/lite/src/litert/delegate/npu/pass/npu_pass_utils.cc index bedaa0389b9..b22f3c72915 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_utils.cc +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_utils.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/pass/npu_pass_utils.h" +#include "src/litert/delegate/npu/pass/npu_pass_utils.h" #include -#include "src/runtime/delegate/npu/op/scale_npu.h" -#include "src/runtime/delegate/npu/op/transpose_npu.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/scale_npu.h" +#include "src/litert/delegate/npu/op/transpose_npu.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" namespace mindspore::lite { NPUOp *NPUPassUtils::CreateNchw2NhwcOp(const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_utils.h b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_utils.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_utils.h rename to mindspore/lite/src/litert/delegate/npu/pass/npu_pass_utils.h index bb78316344d..95f92321678 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_pass_utils.h +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_pass_utils.h @@ -20,8 +20,8 @@ #include #include #include -#include "src/runtime/delegate/npu/op/npu_op.h" -#include "src/runtime/delegate/npu/op/transpose_npu.h" +#include "src/litert/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/op/transpose_npu.h" namespace mindspore::lite { class NPUPassUtils { diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_transform_pass.cc b/mindspore/lite/src/litert/delegate/npu/pass/npu_transform_pass.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_transform_pass.cc rename to mindspore/lite/src/litert/delegate/npu/pass/npu_transform_pass.cc index ed23c9932a2..3cc5f161ab6 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_transform_pass.cc +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_transform_pass.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/delegate/npu/pass/npu_transform_pass.h" +#include "src/litert/delegate/npu/pass/npu_transform_pass.h" #include -#include "src/runtime/delegate/npu/pass/npu_pass_utils.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/pass/npu_pass_utils.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/npu/pass/npu_transform_pass.h b/mindspore/lite/src/litert/delegate/npu/pass/npu_transform_pass.h similarity index 92% rename from mindspore/lite/src/runtime/delegate/npu/pass/npu_transform_pass.h rename to mindspore/lite/src/litert/delegate/npu/pass/npu_transform_pass.h index 25448061a67..9f1acc50e9c 100644 --- a/mindspore/lite/src/runtime/delegate/npu/pass/npu_transform_pass.h +++ b/mindspore/lite/src/litert/delegate/npu/pass/npu_transform_pass.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/delegate/npu/op/npu_op.h" -#include "src/runtime/delegate/npu/pass/npu_base_pass.h" +#include "src/litert/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/npu/pass/npu_base_pass.h" namespace mindspore::lite { class NPUTransformPass : public NPUBasePass { diff --git a/mindspore/lite/src/runtime/delegate/npu/transpose_kernel.cc b/mindspore/lite/src/litert/delegate/npu/transpose_kernel.cc similarity index 89% rename from mindspore/lite/src/runtime/delegate/npu/transpose_kernel.cc rename to mindspore/lite/src/litert/delegate/npu/transpose_kernel.cc index 88ca6439cae..36e9409cbec 100644 --- a/mindspore/lite/src/runtime/delegate/npu/transpose_kernel.cc +++ b/mindspore/lite/src/litert/delegate/npu/transpose_kernel.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/npu/transpose_kernel.h" -#include "src/runtime/delegate/npu/npu_converter_utils.h" -#include "src/runtime/delegate/npu/op/npu_op.h" -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/npu/transpose_kernel.h" +#include "src/litert/delegate/npu/npu_converter_utils.h" +#include "src/litert/delegate/npu/op/npu_op.h" +#include "src/litert/delegate/delegate_utils.h" #include "nnacl/fp32/pack_fp32.h" namespace mindspore::lite { int TransposeNPUKernel::Execute() { diff --git a/mindspore/lite/src/runtime/delegate/npu/transpose_kernel.h b/mindspore/lite/src/litert/delegate/npu/transpose_kernel.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/npu/transpose_kernel.h rename to mindspore/lite/src/litert/delegate/npu/transpose_kernel.h diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/cache_algorithm.h b/mindspore/lite/src/litert/delegate/parameter_cache/cache_algorithm.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/parameter_cache/cache_algorithm.h rename to mindspore/lite/src/litert/delegate/parameter_cache/cache_algorithm.h diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/cache_mem_base.h b/mindspore/lite/src/litert/delegate/parameter_cache/cache_mem_base.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/parameter_cache/cache_mem_base.h rename to mindspore/lite/src/litert/delegate/parameter_cache/cache_mem_base.h diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache.cc b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache.cc rename to mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache.cc index 10222514736..d41485e6581 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache.cc +++ b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/delegate/parameter_cache/embedding_cache.h" +#include "src/litert/delegate/parameter_cache/embedding_cache.h" #include #include #include @@ -22,9 +22,9 @@ #include #include "src/common/log_adapter.h" #include "include/errorcode.h" -#include "src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.h" -#include "src/runtime/delegate/parameter_cache/lfu_cache.h" -#include "src/runtime/delegate/parameter_cache/factory_mgr_base.h" +#include "src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.h" +#include "src/litert/delegate/parameter_cache/lfu_cache.h" +#include "src/litert/delegate/parameter_cache/factory_mgr_base.h" namespace { constexpr size_t kEmbeddingTensorShapeSize = 2; diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache.h b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache.h rename to mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache.h index c6067944397..76d09c7963a 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache.h +++ b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache.h @@ -23,8 +23,8 @@ #include "include/api/types.h" #include "include/api/data_type.h" #include "src/common/log_adapter.h" -#include "src/runtime/delegate/parameter_cache/cache_algorithm.h" -#include "src/runtime/delegate/parameter_cache/cache_mem_base.h" +#include "src/litert/delegate/parameter_cache/cache_algorithm.h" +#include "src/litert/delegate/parameter_cache/cache_mem_base.h" namespace mindspore { namespace cache { diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache_manager.cc b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache_manager.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache_manager.cc rename to mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache_manager.cc index 4d48521c917..d71ed7052fe 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache_manager.cc +++ b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache_manager.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/delegate/parameter_cache/embedding_cache_manager.h" +#include "src/litert/delegate/parameter_cache/embedding_cache_manager.h" #include #include #include diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache_manager.h b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache_manager.h similarity index 91% rename from mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache_manager.h rename to mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache_manager.h index 2c8e2b47a64..425747e4559 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/embedding_cache_manager.h +++ b/mindspore/lite/src/litert/delegate/parameter_cache/embedding_cache_manager.h @@ -23,9 +23,9 @@ #include "include/api/kernel.h" #include "include/api/status.h" #include "include/api/data_type.h" -#include "src/runtime/delegate/parameter_cache/embedding_cache.h" -#include "src/runtime/delegate/parameter_cache/load_host_cache_model.h" -#include "src/runtime/delegate/tensorrt/distribution/distribution_base.h" +#include "src/litert/delegate/parameter_cache/embedding_cache.h" +#include "src/litert/delegate/parameter_cache/load_host_cache_model.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_base.h" namespace mindspore { namespace cache { diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/factory_mgr_base.h b/mindspore/lite/src/litert/delegate/parameter_cache/factory_mgr_base.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/parameter_cache/factory_mgr_base.h rename to mindspore/lite/src/litert/delegate/parameter_cache/factory_mgr_base.h diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.cc b/mindspore/lite/src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.cc rename to mindspore/lite/src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.cc index c285b844e40..833ed58e60a 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.cc +++ b/mindspore/lite/src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.h" +#include "src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.h" #include #include -#include "src/runtime/delegate/tensorrt/cuda_impl/hash.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/hash.cuh" #include "plugin/device/gpu/hal/device/cuda_driver.h" #include "src/common/log_adapter.h" -#include "src/runtime/delegate/parameter_cache/factory_mgr_base.h" +#include "src/litert/delegate/parameter_cache/factory_mgr_base.h" namespace mindspore { namespace cache { namespace gpu { diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.h b/mindspore/lite/src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.h rename to mindspore/lite/src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.h index f6196d95711..e9cd1900add 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/gpu/gpu_cache_mem.h +++ b/mindspore/lite/src/litert/delegate/parameter_cache/gpu/gpu_cache_mem.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/delegate/parameter_cache/cache_mem_base.h" +#include "src/litert/delegate/parameter_cache/cache_mem_base.h" namespace mindspore { namespace cache { diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/lfu_cache.cc b/mindspore/lite/src/litert/delegate/parameter_cache/lfu_cache.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/parameter_cache/lfu_cache.cc rename to mindspore/lite/src/litert/delegate/parameter_cache/lfu_cache.cc index bde17d6f54c..b00e4d98889 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/lfu_cache.cc +++ b/mindspore/lite/src/litert/delegate/parameter_cache/lfu_cache.cc @@ -16,8 +16,8 @@ #include #include #include "src/common/log_adapter.h" -#include "src/runtime/delegate/parameter_cache/lfu_cache.h" -#include "src/runtime/delegate/parameter_cache/factory_mgr_base.h" +#include "src/litert/delegate/parameter_cache/lfu_cache.h" +#include "src/litert/delegate/parameter_cache/factory_mgr_base.h" namespace mindspore { namespace cache { RET_COMMON_PRODUCT_REGISTRAR(std::string, cache::CacheAlgorithm, cache::LFUCacheAlgorithm, "lfu", LFUCacheAlgorithm); diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/lfu_cache.h b/mindspore/lite/src/litert/delegate/parameter_cache/lfu_cache.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/parameter_cache/lfu_cache.h rename to mindspore/lite/src/litert/delegate/parameter_cache/lfu_cache.h index 3704a98415c..1e5d0f87f08 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/lfu_cache.h +++ b/mindspore/lite/src/litert/delegate/parameter_cache/lfu_cache.h @@ -22,7 +22,7 @@ #include #include #include "include/api/status.h" -#include "src/runtime/delegate/parameter_cache/cache_algorithm.h" +#include "src/litert/delegate/parameter_cache/cache_algorithm.h" namespace mindspore { namespace cache { class LFUCacheAlgorithm : public CacheAlgorithm { diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/load_host_cache_model.cc b/mindspore/lite/src/litert/delegate/parameter_cache/load_host_cache_model.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/parameter_cache/load_host_cache_model.cc rename to mindspore/lite/src/litert/delegate/parameter_cache/load_host_cache_model.cc index 839d8e60e28..56b55446395 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/load_host_cache_model.cc +++ b/mindspore/lite/src/litert/delegate/parameter_cache/load_host_cache_model.cc @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/parameter_cache/load_host_cache_model.h" +#include "src/litert/delegate/parameter_cache/load_host_cache_model.h" #include "src/common/log_adapter.h" #include "src/common/common.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/delegate/parameter_cache/load_host_cache_model.h b/mindspore/lite/src/litert/delegate/parameter_cache/load_host_cache_model.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/parameter_cache/load_host_cache_model.h rename to mindspore/lite/src/litert/delegate/parameter_cache/load_host_cache_model.h index 52b22eea0d0..93e5217151e 100644 --- a/mindspore/lite/src/runtime/delegate/parameter_cache/load_host_cache_model.h +++ b/mindspore/lite/src/litert/delegate/parameter_cache/load_host_cache_model.h @@ -24,7 +24,7 @@ #include "include/api/types.h" #include "include/api/kernel.h" #include "include/api/delegate.h" -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" namespace mindspore { namespace cache { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/CMakeLists.txt b/mindspore/lite/src/litert/delegate/tensorrt/CMakeLists.txt similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/CMakeLists.txt rename to mindspore/lite/src/litert/delegate/tensorrt/CMakeLists.txt index 1a33073ad48..92f552b8e77 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/CMakeLists.txt +++ b/mindspore/lite/src/litert/delegate/tensorrt/CMakeLists.txt @@ -43,7 +43,7 @@ file(GLOB TENSORRT_RUNTIME_SRC LIST_DIRECTORIES false ${CMAKE_CURRENT_SOURCE_DIR}/*.cc ${CMAKE_CURRENT_SOURCE_DIR}/op/*.cc ${CMAKE_CURRENT_SOURCE_DIR}/cuda_impl/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/../../../runtime/delegate/delegate_utils.cc + ${CMAKE_CURRENT_SOURCE_DIR}/../../../litert/delegate/delegate_utils.cc ${CCSRC_DIR}/plugin/device/gpu/kernel/cuda_impl/cuda_ops/cuda_device_info.cc ) diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/activation.cu b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/activation.cu similarity index 94% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/activation.cu rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/activation.cu index ce412e6fcb4..fae745e2f2d 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/activation.cu +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/activation.cu @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/activation.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/activation.cuh" #include #include -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" template __global__ void SigmoidKernel(const T *input1, T *output, int element_cnt) { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/activation.cuh b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/activation.cuh similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/activation.cuh rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/activation.cuh diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cast.cu b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cast.cu similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cast.cu rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cast.cu index a1e90b16d48..a37edfb6fb8 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cast.cu +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cast.cu @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/cast.cuh" -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cast.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" // Generic cast template diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cast.cuh b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cast.cuh similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cast.cuh rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cast.cuh diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.cc b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cublas_utils.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.cc rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cublas_utils.cc index cd50b470ef4..58656ef1595 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cublas_utils.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cublas_utils.h" namespace mindspore::lite { void Cublas2DTranspose(const float *in_addr, float *out_addr, const int *params, cublasHandle_t cublas_handle) { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.h b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cublas_utils.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.h rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cublas_utils.h index 4a7f4eb0576..9b3a66bedea 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cublas_utils.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_CUDA_IMPL_CUBLAS_UTILS_H_ #include -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" #include "src/common/log_util.h" // cublas API error checking diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.cc b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cuda_helper.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.cc rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cuda_helper.cc index 54f5738aeb8..0c7f1c857eb 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cuda_helper.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" #include #include "src/common/log_util.h" diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.cc b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.cc rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.cc index 1590560f697..b6f3fb4541d 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.h" #include namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.h b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.h rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.h index d3202e05e00..0f45f780cbe 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" #include "src/common/log_util.h" #define CUDNN_CHECK_VOID(err) \ diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/equal.cu b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/equal.cu similarity index 91% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/equal.cu rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/equal.cu index 7d4840e9fea..a0267c48c36 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/equal.cu +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/equal.cu @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/equal.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/equal.cuh" #include -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" template __global__ void EqualKernel(const T *input1, const T *input2, T *output, int element_cnt) { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/equal.cuh b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/equal.cuh similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/equal.cuh rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/equal.cuh diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/hash.cu b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/hash.cu similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/hash.cu rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/hash.cu index 27c626bc5fe..79802a28885 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/hash.cu +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/hash.cu @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/hash.cuh" -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/hash.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" template __global__ void HashSwapOut(const T *hash_table, T *swap_out_value, const int *swap_out_index, const int index_size, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/hash.cuh b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/hash.cuh similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/hash.cuh rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/hash.cuh diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/logical.cu b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/logical.cu similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/logical.cu rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/logical.cu index 7c28811db26..907ab6e8803 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/logical.cu +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/logical.cu @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/logical.cuh" -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/logical.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" template __global__ void LogicalNotKernel(const T *input1, T *output, int element_cnt) { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/logical.cuh b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/logical.cuh similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/logical.cuh rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/logical.cuh diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/normalize.cu b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/normalize.cu similarity index 94% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/normalize.cu rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/normalize.cu index b8005a98334..1d00caba688 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/normalize.cu +++ b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/normalize.cu @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/cuda_impl/normalize.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/normalize.cuh" #include #include -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/utils.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/utils.cuh" template __global__ void NormalizeKernel(const T *input, const T *gamma, const T *beta, T *output, size_t n, float epsilion, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/normalize.cuh b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/normalize.cuh similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/normalize.cuh rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/normalize.cuh diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/utils.cuh b/mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/utils.cuh similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/cuda_impl/utils.cuh rename to mindspore/lite/src/litert/delegate/tensorrt/cuda_impl/utils.cuh diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base.cc b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base.cc similarity index 90% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base.cc rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base.cc index 48f49e688d1..25b15a290b8 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/distribution/distribution_base.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_base.h" namespace mindspore::lite { int GetGPUGroupSize() { return 1; } diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base.h b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base.h rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base.h diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base_impl.cc b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base_impl.cc similarity index 87% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base_impl.cc rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base_impl.cc index 760952e89b2..55e4bd29177 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_base_impl.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_base_impl.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/distribution/distribution_base.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_base.h" #include #include #include #include "plugin/device/gpu/hal/device/distribution/collective_wrapper.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { int GetGPUGroupSize() { return GetGroupSize(NCCL_WORLD_GROUP); } diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective.cc b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective.cc similarity index 94% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective.cc rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective.cc index e3cc692de7b..46d4380e409 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/distribution/distribution_collective.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_collective.h" namespace mindspore::lite { DistributionCollective::DistributionCollective() {} diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective.h b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective.h rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective.h index 43ac1acbfa7..c56aac45014 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective.h @@ -19,7 +19,7 @@ #include #include "NvInfer.h" #include "schema/ops_types_generated.h" -#include "src/runtime/delegate/tensorrt/distribution/distribution_base.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_base.h" namespace mindspore::lite { class DistributionCollective { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective_impl.cc b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective_impl.cc similarity index 92% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective_impl.cc rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective_impl.cc index e524db6a6f9..d3013c38bcd 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_collective_impl.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_collective_impl.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/distribution/distribution_collective.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_collective.h" #include #include #include #include "plugin/device/gpu/hal/device/distribution/collective_wrapper.h" -#include "src/runtime/delegate/tensorrt/distribution/distribution_utils.h" -#include "src/runtime/delegate/tensorrt/distribution/distribution_base.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_utils.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_base.h" namespace mindspore::lite { DistributionCollective::DistributionCollective() { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_utils.cc b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_utils.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_utils.cc rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_utils.cc index 8f45360c1b4..15b1ea23b4c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_utils.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_utils.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/distribution/distribution_utils.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_utils.h" #include #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_utils.h b/mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_utils.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/distribution/distribution_utils.h rename to mindspore/lite/src/litert/delegate/tensorrt/distribution/distribution_utils.h diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_opt_plugin.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_opt_plugin.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/activation_opt_plugin.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/activation_opt_plugin.cc index 6ef4682d4be..9ae5e0a29f8 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_opt_plugin.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_opt_plugin.cc @@ -21,10 +21,10 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" #include "NvInferRuntimeCommon.h" -#include "src/runtime/delegate/tensorrt/op/activation_opt_plugin.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/activation.cuh" +#include "src/litert/delegate/tensorrt/op/activation_opt_plugin.h" +#include "src/litert/delegate/tensorrt/cuda_impl/activation.cuh" #include "plugin/device/gpu/kernel/cuda_impl/cuda_ops/swish_impl.cuh" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_opt_plugin.h b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_opt_plugin.h similarity index 94% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/activation_opt_plugin.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/activation_opt_plugin.h index 9e3b5dfd952..b9c1a507c52 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_opt_plugin.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_opt_plugin.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_ACTIVATION_OPT_PLUGIN_H_ #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/cudnn_utils.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cudnn_utils.h" namespace mindspore::lite { constexpr char *ACTIVATION_OPT_PLUGIN_NAME{"ActivationOptPlugin"}; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/activation_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/activation_tensorrt.cc index 4d3ca3ddb23..909efa505c5 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_tensorrt.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" #include #include #include -#include "src/runtime/delegate/tensorrt/op/cast_tensorrt.h" -#include "src/runtime/delegate/tensorrt/op/activation_opt_plugin.h" +#include "src/litert/delegate/tensorrt/op/cast_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/activation_opt_plugin.h" namespace mindspore::lite { namespace { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/activation_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/activation_tensorrt.h index b2aa4834788..4dc78ce0df0 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/activation_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/activation_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_ACTIVATION_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ActivationTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/allgather_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/allgather_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/allgather_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/allgather_tensorrt.cc index f493a9e3dae..93367fcc60d 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/allgather_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/allgather_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/allgather_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/allgather_tensorrt.h" #include #include "NvInferRuntimeCommon.h" diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/allgather_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/allgather_tensorrt.h similarity index 94% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/allgather_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/allgather_tensorrt.h index a8e266e526e..fcf4f8200e0 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/allgather_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/allgather_tensorrt.h @@ -19,9 +19,9 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" -#include "src/runtime/delegate/tensorrt/distribution/distribution_collective.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_collective.h" namespace mindspore::lite { constexpr char *ALLGATHER_PLUGIN_NAME{"AllGatherPlugin"}; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_plugin.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_plugin.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/cast_plugin.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/cast_plugin.cc index 9fde14fb2e4..ba2f74bd74a 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_plugin.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_plugin.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/cast_plugin.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/cast.cuh" +#include "src/litert/delegate/tensorrt/op/cast_plugin.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cast.cuh" #include #include #include diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_plugin.h b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_plugin.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/cast_plugin.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/cast_plugin.h index 100e142c990..450b9bb90dd 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_plugin.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_plugin.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_CAST_PLUGIN_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" namespace mindspore::lite { constexpr char *CAST_PLUGIN_NAME{"CastPluginCreater"}; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_tensorrt.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/cast_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/cast_tensorrt.cc index 08df74dd63c..d939eb60f96 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_tensorrt.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/cast_tensorrt.h" -#include "src/runtime/delegate/tensorrt/op/cast_plugin.h" +#include "src/litert/delegate/tensorrt/op/cast_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/cast_plugin.h" #include #include #include diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_tensorrt.h similarity index 89% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/cast_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/cast_tensorrt.h index e96d9477568..55e4c44ef03 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/cast_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/cast_tensorrt.h @@ -17,9 +17,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_CAST_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/cast.cuh" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cast.cuh" namespace mindspore::lite { class CastTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/concate_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/concate_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/concate_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/concate_tensorrt.cc index 7179dca2de9..b2bbaf11d0c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/concate_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/concate_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/concate_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/concate_tensorrt.h" #include #include diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/concate_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/concate_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/concate_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/concate_tensorrt.h index 351f4abf17b..4d764e668eb 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/concate_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/concate_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_CONCATE_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ConcateTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/convolution_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/convolution_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/convolution_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/convolution_tensorrt.cc index 87b7d8ec307..5b54d43c48d 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/convolution_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/convolution_tensorrt.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/convolution_tensorrt.h" -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/convolution_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" namespace mindspore::lite { constexpr int BIAS_INDEX = 2; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/convolution_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/convolution_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/convolution_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/convolution_tensorrt.h index cfeb755a579..bffe9cc90a5 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/convolution_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/convolution_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_CONVOLUTION_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ConvolutionTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/cumsum_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/cumsum_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/cumsum_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/cumsum_tensorrt.cc index ca551a521bc..07f4aecaa1e 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/cumsum_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/cumsum_tensorrt.cc @@ -20,9 +20,9 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" #include "NvInferRuntimeCommon.h" -#include "src/runtime/delegate/tensorrt/op/cumsum_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/cumsum_tensorrt.h" #include "cumsum_impl.cuh" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/cumsum_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/cumsum_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/cumsum_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/cumsum_tensorrt.h index b00dae389ef..66eacbcc5ca 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/cumsum_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/cumsum_tensorrt.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" namespace mindspore::lite { class CumsumTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/deconvolution_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/deconvolution_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/deconvolution_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/deconvolution_tensorrt.cc index b67aa0eecca..c31d25b9dc9 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/deconvolution_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/deconvolution_tensorrt.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/deconvolution_tensorrt.h" -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/deconvolution_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" #include "nnacl/pack.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/deconvolution_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/deconvolution_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/deconvolution_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/deconvolution_tensorrt.h index e7cfe233816..8adabb44590 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/deconvolution_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/deconvolution_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_DECONVOLUTION_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class DeconvolutionTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/elementwise_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/elementwise_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/elementwise_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/elementwise_tensorrt.cc index 8abd8f5202d..b7848b7026f 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/elementwise_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/elementwise_tensorrt.cc @@ -16,9 +16,9 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/elementwise_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/elementwise_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" namespace mindspore::lite { namespace { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/elementwise_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/elementwise_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/elementwise_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/elementwise_tensorrt.h index ece6aeaa62c..106a6f0e1b5 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/elementwise_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/elementwise_tensorrt.h @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ElementWiseTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/equal_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/equal_tensorrt.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/equal_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/equal_tensorrt.cc index 2d1fac9f047..88bd9c7cb99 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/equal_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/equal_tensorrt.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/equal_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/equal_tensorrt.h" #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" #include "NvInferRuntimeCommon.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/equal_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/equal_tensorrt.h similarity index 93% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/equal_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/equal_tensorrt.h index 35e5d2259b5..911085b0e89 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/equal_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/equal_tensorrt.h @@ -17,9 +17,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_EQUAL_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/equal.cuh" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/cuda_impl/equal.cuh" namespace mindspore::lite { constexpr char *EQUAL_PLUGIN_NAME{"EqualPlugin"}; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/fullyconnected_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/fullyconnected_tensorrt.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/fullyconnected_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/fullyconnected_tensorrt.cc index efabf361718..fce382e051c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/fullyconnected_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/fullyconnected_tensorrt.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/fullyconnected_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/fullyconnected_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" namespace mindspore::lite { constexpr int BIAS_INDEX = 2; int FullyConnectedTensorRT::IsSupport(const mindspore::schema::Primitive *primitive, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/fullyconnected_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/fullyconnected_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/fullyconnected_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/fullyconnected_tensorrt.h index f98c543a565..bb35c05dfae 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/fullyconnected_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/fullyconnected_tensorrt.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class FullyConnectedTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_d_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_d_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/gather_d_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/gather_d_tensorrt.cc index f7abab47e7b..a6176732291 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_d_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_d_tensorrt.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/gather_d_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/gather_d_tensorrt.h" #include #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { REGISTER_TENSORRT_PLUGIN(GatherDPluginCreater); diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_d_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_d_tensorrt.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/gather_d_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/gather_d_tensorrt.h index 714e6c89819..44ef3f7916f 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_d_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_d_tensorrt.h @@ -17,10 +17,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_GATHER_D_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" #include "plugin/device/gpu/kernel/cuda_impl/cuda_ops/gather.cuh" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { constexpr char *GATHER_D_PLUGIN_NAME{"GatherDPluginCreater"}; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/gather_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/gather_tensorrt.cc index b2266bc36a7..3cfcde71e9b 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_tensorrt.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/gather_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/gather_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { constexpr int AXIS_INDEX = 2; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/gather_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/gather_tensorrt.h index 1bd44af8a1f..aba482f444c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/gather_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/gather_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_GATHER_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class GatherTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_not_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_not_tensorrt.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/logical_not_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/logical_not_tensorrt.cc index 59b8fc1de49..71e2c084617 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_not_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_not_tensorrt.cc @@ -20,10 +20,10 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" #include "NvInferRuntimeCommon.h" -#include "src/runtime/delegate/tensorrt/op/logical_not_tensorrt.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/logical.cuh" +#include "src/litert/delegate/tensorrt/op/logical_not_tensorrt.h" +#include "src/litert/delegate/tensorrt/cuda_impl/logical.cuh" namespace mindspore::lite { int LogicalNotTensorRT::IsSupport(const schema::Primitive *primitive, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_not_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_not_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/logical_not_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/logical_not_tensorrt.h index 09c2582bf22..86d309c3146 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_not_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_not_tensorrt.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class LogicalNotTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_tensorrt.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/logical_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/logical_tensorrt.cc index 5dc57aca5ae..5a15c62255e 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_tensorrt.cc @@ -20,10 +20,10 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" #include "NvInferRuntimeCommon.h" -#include "src/runtime/delegate/tensorrt/op/logical_tensorrt.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/logical.cuh" +#include "src/litert/delegate/tensorrt/op/logical_tensorrt.h" +#include "src/litert/delegate/tensorrt/cuda_impl/logical.cuh" namespace mindspore::lite { int LogicalTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/logical_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/logical_tensorrt.h index 9ec52e43bc0..76a63246c11 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/logical_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/logical_tensorrt.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" namespace mindspore::lite { class LogicalTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/lstm_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/lstm_tensorrt.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/lstm_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/lstm_tensorrt.cc index de47f511ab6..4ccfad55057 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/lstm_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/lstm_tensorrt.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/lstm_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/op/lstm_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" namespace mindspore::lite { int LSTMTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/lstm_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/lstm_tensorrt.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/lstm_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/lstm_tensorrt.h index ae18591087e..2cae8dae590 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/lstm_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/lstm_tensorrt.h @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { constexpr int INPUT_TENSOR_SIZE = 6; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/matmul_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/matmul_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/matmul_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/matmul_tensorrt.cc index f03a5108834..c423f20c8c0 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/matmul_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/matmul_tensorrt.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/matmul_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/matmul_tensorrt.h" #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" namespace mindspore::lite { MatMulTensorRT::~MatMulTensorRT() { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/matmul_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/matmul_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/matmul_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/matmul_tensorrt.h index dc75ecdd676..f8c55326730 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/matmul_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/matmul_tensorrt.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class MatMulTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_opt_plugin.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_opt_plugin.cc similarity index 92% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_opt_plugin.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/normalize_opt_plugin.cc index 4100a39bf1f..b033d50095b 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_opt_plugin.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_opt_plugin.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/normalize_opt_plugin.h" +#include "src/litert/delegate/tensorrt/op/normalize_opt_plugin.h" #include #include #include #include -#include "src/runtime/delegate/tensorrt/cuda_impl/cuda_helper.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cuda_helper.h" #include "NvInferRuntimeCommon.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/normalize.cuh" +#include "src/litert/delegate/tensorrt/cuda_impl/normalize.cuh" namespace mindspore::lite { REGISTER_TENSORRT_PLUGIN(NormalizeOptPluginCreater); diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_opt_plugin.h b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_opt_plugin.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_opt_plugin.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/normalize_opt_plugin.h index 981628e6da5..d193ae1eb4a 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_opt_plugin.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_opt_plugin.h @@ -17,8 +17,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_NORMALIZE_OPT_PLUGIN_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" namespace mindspore::lite { constexpr char *NORMALIZE_OPT_PLUGIN_NAME{"NormalizeOptPlugin"}; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/normalize_tensorrt.cc index e16161f68ab..accb825543b 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_tensorrt.cc @@ -14,10 +14,11 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/normalize_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/normalize_tensorrt.h" #include #include -#include "src/runtime/delegate/tensorrt/op/normalize_opt_plugin.h" +#include +#include "src/litert/delegate/tensorrt/op/normalize_opt_plugin.h" namespace mindspore::lite { int NormalizeTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/normalize_tensorrt.h index 5b7e67882fd..7728fc354f1 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/normalize_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/normalize_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_NORMALIZE_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { constexpr int BETA_INDEX = 2; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/pad_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/pad_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/pad_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/pad_tensorrt.cc index 0d12fd256ab..f563e63d611 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/pad_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/pad_tensorrt.cc @@ -16,8 +16,8 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/pad_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/pad_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { int PadTensorRT::IsSupport(const mindspore::schema::Primitive *primitive, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/pad_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/pad_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/pad_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/pad_tensorrt.h index def44c32bc8..c1059d17b1c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/pad_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/pad_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_PAD_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class PadTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/pool_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/pool_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/pool_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/pool_tensorrt.cc index 96520d100d4..36632be2eb1 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/pool_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/pool_tensorrt.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/pool_tensorrt.h" -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/pool_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { int PoolTensorRT::IsSupport(const mindspore::schema::Primitive *primitive, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/pool_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/pool_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/pool_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/pool_tensorrt.h index de8003ca08c..9079da11394 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/pool_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/pool_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_POOL_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class PoolTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/prelu_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/prelu_tensorrt.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/prelu_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/prelu_tensorrt.cc index 7a91107c31d..12685074444 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/prelu_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/prelu_tensorrt.cc @@ -15,8 +15,8 @@ */ #include -#include "src/runtime/delegate/tensorrt/op/prelu_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/prelu_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { int PReluTensorRT::IsSupport(const mindspore::schema::Primitive *primitive, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/prelu_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/prelu_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/prelu_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/prelu_tensorrt.h index 3d6505b8afd..b0fcf978e04 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/prelu_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/prelu_tensorrt.h @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class PReluTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/reduce_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/reduce_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/reduce_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/reduce_tensorrt.cc index 1f6bb71b3e1..6d722ebbb9c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/reduce_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/reduce_tensorrt.cc @@ -15,7 +15,7 @@ */ #include -#include "src/runtime/delegate/tensorrt/op/reduce_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/reduce_tensorrt.h" namespace mindspore::lite { int ReduceTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/reduce_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/reduce_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/reduce_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/reduce_tensorrt.h index d01927f704b..ace2db3c993 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/reduce_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/reduce_tensorrt.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ReduceTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/reducescatter_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/reducescatter_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/reducescatter_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/reducescatter_tensorrt.cc index 8359e51410b..ffd4bf3c390 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/reducescatter_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/reducescatter_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/reducescatter_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/reducescatter_tensorrt.h" #include #include #include "NvInferRuntimeCommon.h" diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/reducescatter_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/reducescatter_tensorrt.h similarity index 93% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/reducescatter_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/reducescatter_tensorrt.h index 297397922a0..f279125557b 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/reducescatter_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/reducescatter_tensorrt.h @@ -19,10 +19,10 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/distribution/distribution_collective.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_collective.h" namespace mindspore::lite { constexpr char *REDUCESCATTER_PLUGIN_NAME{"ReduceScatterPlugin"}; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/resize_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/resize_tensorrt.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/resize_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/resize_tensorrt.cc index 2a6e0860cc0..16040bd263c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/resize_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/resize_tensorrt.cc @@ -15,7 +15,7 @@ */ #include -#include "src/runtime/delegate/tensorrt/op/resize_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/resize_tensorrt.h" #include "nnacl/nnacl_common.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/resize_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/resize_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/resize_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/resize_tensorrt.h index 90a86c5f2d1..458ef7b5d46 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/resize_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/resize_tensorrt.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ResizeTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/scale_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/scale_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/scale_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/scale_tensorrt.cc index e068d3ad5a2..c2b69297ad5 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/scale_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/scale_tensorrt.cc @@ -16,9 +16,9 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/scale_tensorrt.h" -#include "src/runtime/delegate/tensorrt/op/activation_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/scale_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/activation_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { constexpr int SCALE_INDEX = 1; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/scale_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/scale_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/scale_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/scale_tensorrt.h index 463b7813549..ed31528157a 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/scale_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/scale_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_SCALE_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/scatternd_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/scatternd_tensorrt.cc similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/scatternd_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/scatternd_tensorrt.cc index 9ed3e778213..8a912907546 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/scatternd_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/scatternd_tensorrt.cc @@ -15,8 +15,8 @@ */ #include -#include "src/runtime/delegate/tensorrt/op/scatternd_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/scatternd_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { int ScatterNdTensorRT::IsSupport(const mindspore::schema::Primitive *primitive, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/scatternd_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/scatternd_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/scatternd_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/scatternd_tensorrt.h index c8954d206aa..db29d8fb1c6 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/scatternd_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/scatternd_tensorrt.h @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ScatterNdTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/shape_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/shape_tensorrt.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/shape_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/shape_tensorrt.cc index c173281d81c..238eb328413 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/shape_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/shape_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/shape_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/shape_tensorrt.h" namespace mindspore::lite { int ShapeTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/shape_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/shape_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/shape_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/shape_tensorrt.h index f7cce06daa4..407271995d5 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/shape_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/shape_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_SHAPE_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class ShapeTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/shuffle_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/shuffle_tensorrt.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/shuffle_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/shuffle_tensorrt.cc index 70ab2c7e075..9f452d96f66 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/shuffle_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/shuffle_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/shuffle_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/shuffle_tensorrt.h" #include #include #include diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/shuffle_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/shuffle_tensorrt.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/shuffle_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/shuffle_tensorrt.h index ec0d6661f32..65069a095fc 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/shuffle_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/shuffle_tensorrt.h @@ -17,8 +17,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_SHUFFLE_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { class ShuffleTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/slice_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/slice_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/slice_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/slice_tensorrt.cc index 99c88cefe4a..3c22a6e5442 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/slice_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/slice_tensorrt.cc @@ -16,8 +16,8 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/slice_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/slice_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { namespace { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/slice_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/slice_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/slice_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/slice_tensorrt.h index e1f82cbe183..e118bc1e45f 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/slice_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/slice_tensorrt.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class SliceTensorRTUtil { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/softmax_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/softmax_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/softmax_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/softmax_tensorrt.cc index 6551421a435..3c30d64dd01 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/softmax_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/softmax_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/softmax_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/softmax_tensorrt.h" namespace mindspore::lite { int SoftMaxTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/softmax_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/softmax_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/softmax_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/softmax_tensorrt.h index a31d0f8b5a6..d5ab2198a92 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/softmax_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/softmax_tensorrt.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_SOFTMAX_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class SoftMaxTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/split_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/split_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/split_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/split_tensorrt.cc index 2ebb4a25043..92854dbbea7 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/split_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/split_tensorrt.cc @@ -16,8 +16,8 @@ #include #include -#include "src/runtime/delegate/tensorrt/op/split_tensorrt.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/split_tensorrt.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { int SplitTensorRT::IsSupport(const mindspore::schema::Primitive *primitive, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/split_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/split_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/split_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/split_tensorrt.h index df5b1c21533..939d2f7fefc 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/split_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/split_tensorrt.h @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class SplitTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_op.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_op.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_op.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_op.cc index 7c5c0660341..b50a3b376ca 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_op.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_op.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" #include namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_op.h b/mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_op.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_op.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_op.h index c3c4fbe0efc..09cbd00b5aa 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_op.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_op.h @@ -23,9 +23,9 @@ #include "include/api/kernel.h" #include "src/common/log_adapter.h" #include "include/errorcode.h" -#include "src/runtime/delegate/tensorrt/tensorrt_context.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/auto_registration_factory.h" +#include "src/litert/delegate/tensorrt/tensorrt_context.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/auto_registration_factory.h" #include "src/common/log_util.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_plugin.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_plugin.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_plugin.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_plugin.cc index 1ecaa90167e..da5a2b725d0 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_plugin.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_plugin.cc @@ -15,7 +15,7 @@ */ #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" namespace mindspore::lite { void SerializeValue(void **buffer, const void *value, size_t cpy_size) { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_plugin.h b/mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_plugin.h similarity index 100% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/tensorrt_plugin.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/tensorrt_plugin.h diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/tile_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/tile_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/tile_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/tile_tensorrt.cc index 1f74f1c997f..d5bba365385 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/tile_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/tile_tensorrt.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/tile_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/tile_tensorrt.h" #include #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" namespace mindspore::lite { REGISTER_TENSORRT_PLUGIN(TilePluginCreater); diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/tile_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/tile_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/tile_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/tile_tensorrt.h index 750d09e8bd9..8ad96495296 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/tile_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/tile_tensorrt.h @@ -17,8 +17,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_OP_TILE_TENSORRT_H_ #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_plugin.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_plugin.h" #include "plugin/device/gpu/kernel/cuda_impl/cuda_ops/tile_impl.cuh" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/topk_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/topk_tensorrt.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/topk_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/topk_tensorrt.cc index d347c4161a0..353a5313c96 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/topk_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/topk_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/topk_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/topk_tensorrt.h" namespace mindspore::lite { int TopKTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/topk_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/topk_tensorrt.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/topk_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/topk_tensorrt.h index 5344d2fda93..dbaf39b5ad4 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/topk_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/topk_tensorrt.h @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class TopKTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/unary_tensorrt.cc b/mindspore/lite/src/litert/delegate/tensorrt/op/unary_tensorrt.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/unary_tensorrt.cc rename to mindspore/lite/src/litert/delegate/tensorrt/op/unary_tensorrt.cc index 2982911edc9..fadccd1a9b9 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/unary_tensorrt.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/unary_tensorrt.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/op/unary_tensorrt.h" +#include "src/litert/delegate/tensorrt/op/unary_tensorrt.h" namespace mindspore::lite { int UnaryTensorRT::IsSupport(const schema::Primitive *primitive, const std::vector &in_tensors, diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/op/unary_tensorrt.h b/mindspore/lite/src/litert/delegate/tensorrt/op/unary_tensorrt.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/op/unary_tensorrt.h rename to mindspore/lite/src/litert/delegate/tensorrt/op/unary_tensorrt.h index 5f7f18f6908..64294b8f0e8 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/op/unary_tensorrt.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/op/unary_tensorrt.h @@ -18,7 +18,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" namespace mindspore::lite { class UnaryTensorRT : public TensorRTOp { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_allocator.cc b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_allocator.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_allocator.cc rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_allocator.cc index ab40a64b4b8..dcc55827975 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_allocator.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_allocator.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/tensorrt_allocator.h" +#include "src/litert/delegate/tensorrt/tensorrt_allocator.h" #include #include #include "src/common/log_adapter.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/cast.cuh" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cast.cuh" namespace mindspore::lite { void *TensorRTAllocator::MallocDeviceMem(const mindspore::MSTensor &host_tensor, size_t size) { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_allocator.h b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_allocator.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_allocator.h rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_allocator.h index c0c592019ab..f363b8881e2 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_allocator.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_allocator.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_TENSORRT_ALLOCATOR_H_ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_TENSORRT_ALLOCATOR_H_ -#include "src/runtime/delegate/tensorrt/tensorrt_allocator.h" +#include "src/litert/delegate/tensorrt/tensorrt_allocator.h" #include #include #include diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_context.cc b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_context.cc similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_context.cc rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_context.cc index bd376c7a60a..6ed35d4a0d9 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_context.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_context.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/tensorrt_context.h" +#include "src/litert/delegate/tensorrt/tensorrt_context.h" namespace mindspore::lite { TensorRTContext::~TensorRTContext() { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_context.h b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_context.h similarity index 96% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_context.h rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_context.h index 2e91a054e1e..ab392184ae6 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_context.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_context.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" namespace mindspore::lite { struct ITensorHelper { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_delegate.cc b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_delegate.cc similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_delegate.cc rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_delegate.cc index 1882681a8b6..e480c495736 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_delegate.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_delegate.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/tensorrt_delegate.h" +#include "src/litert/delegate/tensorrt/tensorrt_delegate.h" #include #include #include #include -#include "src/runtime/delegate/delegate_utils.h" -#include "src/runtime/delegate/auto_registration_factory.h" +#include "src/litert/delegate/delegate_utils.h" +#include "src/litert/delegate/auto_registration_factory.h" namespace mindspore::lite { TensorRTDelegate::~TensorRTDelegate() { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_delegate.h b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_delegate.h similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_delegate.h rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_delegate.h index 52f4bdcf5cf..655a4b74e21 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_delegate.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_delegate.h @@ -21,8 +21,8 @@ #include #include #include "include/api/delegate.h" -#include "src/runtime/delegate/tensorrt/tensorrt_subgraph.h" -#include "src/runtime/delegate/parameter_cache/embedding_cache_manager.h" +#include "src/litert/delegate/tensorrt/tensorrt_subgraph.h" +#include "src/litert/delegate/parameter_cache/embedding_cache_manager.h" #include "include/api/kernel.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_runtime.cc b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_runtime.cc similarity index 95% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_runtime.cc rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_runtime.cc index 73b0dc31287..12d40de7965 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_runtime.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_runtime.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" #include #include diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_runtime.h b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_runtime.h similarity index 97% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_runtime.h rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_runtime.h index 6abc61142e0..cd63d07c130 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_runtime.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_runtime.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_DELEGATE_TENSORRT_TENSORRT_RUNTIME_H_ #include #include "include/errorcode.h" -#include "src/runtime/delegate/tensorrt/tensorrt_allocator.h" +#include "src/litert/delegate/tensorrt/tensorrt_allocator.h" #include "src/common/log_adapter.h" #define MAX_BATCH_SIZE 64 diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_serializer.cc b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_serializer.cc similarity index 94% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_serializer.cc rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_serializer.cc index 8047cac6e9e..1955fd03140 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_serializer.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_serializer.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/tensorrt_serializer.h" -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/tensorrt_serializer.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" #include "src/common/file_utils.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_serializer.h b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_serializer.h similarity index 92% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_serializer.h rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_serializer.h index d5ae0b1baf8..79925750444 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_serializer.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_serializer.h @@ -19,8 +19,8 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_subgraph.cc b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_subgraph.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_subgraph.cc rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_subgraph.cc index 2f317278ac0..9fe2fffa151 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_subgraph.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_subgraph.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include "src/runtime/delegate/tensorrt/tensorrt_subgraph.h" +#include "src/litert/delegate/tensorrt/tensorrt_subgraph.h" #include #include #include #include #include #include -#include "src/runtime/delegate/delegate_utils.h" +#include "src/litert/delegate/delegate_utils.h" namespace mindspore::lite { TensorRTSubGraph::~TensorRTSubGraph() { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_subgraph.h b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_subgraph.h similarity index 94% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_subgraph.h rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_subgraph.h index 707c6f2b8af..23a3561786c 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_subgraph.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_subgraph.h @@ -22,11 +22,11 @@ #include #include #include "include/api/kernel.h" -#include "src/runtime/delegate/tensorrt/tensorrt_runtime.h" -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/tensorrt_serializer.h" -#include "src/runtime/delegate/tensorrt/op/tensorrt_op.h" -#include "src/runtime/delegate/parameter_cache/embedding_cache_manager.h" +#include "src/litert/delegate/tensorrt/tensorrt_runtime.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_serializer.h" +#include "src/litert/delegate/tensorrt/op/tensorrt_op.h" +#include "src/litert/delegate/parameter_cache/embedding_cache_manager.h" #include "include/api/context.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_utils.cc b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_utils.cc similarity index 99% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_utils.cc rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_utils.cc index 38d9ebaadfa..30ae188193e 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_utils.cc +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_utils.cc @@ -19,9 +19,9 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_utils.h" -#include "src/runtime/delegate/tensorrt/op/cast_plugin.h" -#include "src/runtime/delegate/tensorrt/distribution/distribution_collective.h" +#include "src/litert/delegate/tensorrt/tensorrt_utils.h" +#include "src/litert/delegate/tensorrt/op/cast_plugin.h" +#include "src/litert/delegate/tensorrt/distribution/distribution_collective.h" namespace mindspore::lite { nvinfer1::Dims ConvertCudaDims(int data, size_t size) { diff --git a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_utils.h b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_utils.h similarity index 98% rename from mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_utils.h rename to mindspore/lite/src/litert/delegate/tensorrt/tensorrt_utils.h index 57c5f2d599f..261d5978e6a 100644 --- a/mindspore/lite/src/runtime/delegate/tensorrt/tensorrt_utils.h +++ b/mindspore/lite/src/litert/delegate/tensorrt/tensorrt_utils.h @@ -21,8 +21,8 @@ #include #include #include -#include "src/runtime/delegate/tensorrt/tensorrt_context.h" -#include "src/runtime/delegate/tensorrt/cuda_impl/cublas_utils.h" +#include "src/litert/delegate/tensorrt/tensorrt_context.h" +#include "src/litert/delegate/tensorrt/cuda_impl/cublas_utils.h" #include "mindspore/core/ir/dtype/type_id.h" #include "schema/ops_generated.h" #include "nnacl/pack.h" diff --git a/mindspore/lite/src/runtime/dynamic_mem_allocator.cc b/mindspore/lite/src/litert/dynamic_mem_allocator.cc similarity index 97% rename from mindspore/lite/src/runtime/dynamic_mem_allocator.cc rename to mindspore/lite/src/litert/dynamic_mem_allocator.cc index 2041fcdb11c..2c645500a50 100644 --- a/mindspore/lite/src/runtime/dynamic_mem_allocator.cc +++ b/mindspore/lite/src/litert/dynamic_mem_allocator.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/dynamic_mem_allocator.h" +#include "src/litert/dynamic_mem_allocator.h" #include #include "src/common/utils.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/dynamic_mem_allocator.h b/mindspore/lite/src/litert/dynamic_mem_allocator.h similarity index 97% rename from mindspore/lite/src/runtime/dynamic_mem_allocator.h rename to mindspore/lite/src/litert/dynamic_mem_allocator.h index f99e26142d9..bbe1bb44273 100644 --- a/mindspore/lite/src/runtime/dynamic_mem_allocator.h +++ b/mindspore/lite/src/litert/dynamic_mem_allocator.h @@ -22,7 +22,7 @@ #include #include #include "include/api/allocator.h" -#include "src/runtime/dynamic_mem_manager.h" +#include "src/litert/dynamic_mem_manager.h" namespace mindspore { class DynamicMemAllocator : public Allocator { diff --git a/mindspore/lite/src/runtime/dynamic_mem_manager.cc b/mindspore/lite/src/litert/dynamic_mem_manager.cc similarity index 99% rename from mindspore/lite/src/runtime/dynamic_mem_manager.cc rename to mindspore/lite/src/litert/dynamic_mem_manager.cc index c0acd5c8feb..8d739f52e12 100644 --- a/mindspore/lite/src/runtime/dynamic_mem_manager.cc +++ b/mindspore/lite/src/litert/dynamic_mem_manager.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/dynamic_mem_manager.h" +#include "src/litert/dynamic_mem_manager.h" #include "src/common/log_adapter.h" #include "src/common/utils.h" #include "src/common/common.h" diff --git a/mindspore/lite/src/runtime/dynamic_mem_manager.h b/mindspore/lite/src/litert/dynamic_mem_manager.h similarity index 98% rename from mindspore/lite/src/runtime/dynamic_mem_manager.h rename to mindspore/lite/src/litert/dynamic_mem_manager.h index 99525d02b84..409693c508e 100644 --- a/mindspore/lite/src/runtime/dynamic_mem_manager.h +++ b/mindspore/lite/src/litert/dynamic_mem_manager.h @@ -23,7 +23,7 @@ #include #include #include -#include "src/runtime/numa_adapter.h" +#include "src/litert/numa_adapter.h" namespace mindspore { struct Block { diff --git a/mindspore/lite/src/runtime/executor.cc b/mindspore/lite/src/litert/executor.cc similarity index 97% rename from mindspore/lite/src/runtime/executor.cc rename to mindspore/lite/src/litert/executor.cc index 035835e895c..29fa737d7bd 100644 --- a/mindspore/lite/src/runtime/executor.cc +++ b/mindspore/lite/src/litert/executor.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/executor.h" +#include "src/litert/executor.h" #include #include "include/errorcode.h" #include "src/common/tensor_util.h" diff --git a/mindspore/lite/src/runtime/executor.h b/mindspore/lite/src/litert/executor.h similarity index 95% rename from mindspore/lite/src/runtime/executor.h rename to mindspore/lite/src/litert/executor.h index 51d42812c7f..a078dd7b5ff 100644 --- a/mindspore/lite/src/runtime/executor.h +++ b/mindspore/lite/src/litert/executor.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_EXECUTOR_H_ #include -#include "src/runtime/inner_allocator.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/inner_allocator.h" +#include "src/litert/kernel_exec.h" namespace mindspore::lite { class Executor { diff --git a/mindspore/lite/src/runtime/huffman_decode.cc b/mindspore/lite/src/litert/huffman_decode.cc similarity index 99% rename from mindspore/lite/src/runtime/huffman_decode.cc rename to mindspore/lite/src/litert/huffman_decode.cc index 22271e4c753..1226f1f9957 100644 --- a/mindspore/lite/src/runtime/huffman_decode.cc +++ b/mindspore/lite/src/litert/huffman_decode.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/huffman_decode.h" +#include "src/litert/huffman_decode.h" #include namespace mindspore { diff --git a/mindspore/lite/src/runtime/huffman_decode.h b/mindspore/lite/src/litert/huffman_decode.h similarity index 100% rename from mindspore/lite/src/runtime/huffman_decode.h rename to mindspore/lite/src/litert/huffman_decode.h diff --git a/mindspore/lite/src/runtime/infer_manager.cc b/mindspore/lite/src/litert/infer_manager.cc similarity index 98% rename from mindspore/lite/src/runtime/infer_manager.cc rename to mindspore/lite/src/litert/infer_manager.cc index 4d6794b1ead..bc2c73945f9 100644 --- a/mindspore/lite/src/runtime/infer_manager.cc +++ b/mindspore/lite/src/litert/infer_manager.cc @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" #include #include #include #include #include "src/common/prim_util.h" #include "src/common/tensor_util.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" #include "schema/model_generated.h" #include "include/errorcode.h" #include "nnacl/errorcode.h" #include "src/tensorlist.h" #include "include/registry/register_kernel_interface.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/runtime/infer_manager.h b/mindspore/lite/src/litert/infer_manager.h similarity index 100% rename from mindspore/lite/src/runtime/infer_manager.h rename to mindspore/lite/src/litert/infer_manager.h diff --git a/mindspore/lite/src/runtime/inner_allocator.cc b/mindspore/lite/src/litert/inner_allocator.cc similarity index 99% rename from mindspore/lite/src/runtime/inner_allocator.cc rename to mindspore/lite/src/litert/inner_allocator.cc index 80b4e34c88b..9bd0c017b6c 100644 --- a/mindspore/lite/src/runtime/inner_allocator.cc +++ b/mindspore/lite/src/litert/inner_allocator.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include #include "src/common/log_adapter.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/inner_allocator.h b/mindspore/lite/src/litert/inner_allocator.h similarity index 100% rename from mindspore/lite/src/runtime/inner_allocator.h rename to mindspore/lite/src/litert/inner_allocator.h diff --git a/mindspore/lite/src/runtime/inner_context.cc b/mindspore/lite/src/litert/inner_context.cc similarity index 98% rename from mindspore/lite/src/runtime/inner_context.cc rename to mindspore/lite/src/litert/inner_context.cc index 40557f90db6..8d225e7185b 100644 --- a/mindspore/lite/src/runtime/inner_context.cc +++ b/mindspore/lite/src/litert/inner_context.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" #include #include #include "include/errorcode.h" @@ -27,10 +27,10 @@ #include "include/HiAiModelManagerType.h" #endif #ifdef GPU_OPENCL -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" #endif #include "nnacl/kernel.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "experimental/src/exec_env_utils.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/inner_context.h b/mindspore/lite/src/litert/inner_context.h similarity index 95% rename from mindspore/lite/src/runtime/inner_context.h rename to mindspore/lite/src/litert/inner_context.h index adbeacbfab8..ab35a414e4a 100644 --- a/mindspore/lite/src/runtime/inner_context.h +++ b/mindspore/lite/src/litert/inner_context.h @@ -21,14 +21,14 @@ #include #include "include/context.h" #ifdef BFC_MEMORY -#include "src/runtime/dynamic_mem_allocator.h" +#include "src/litert/dynamic_mem_allocator.h" #else -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #endif #include "thread/threadpool.h" #include "nnacl/op_base.h" #ifdef ENABLE_ARM -#include "src/runtime/cpu_info.h" +#include "src/litert/cpu_info.h" #endif namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/kernel/ascend/CMakeLists.txt b/mindspore/lite/src/litert/kernel/ascend/CMakeLists.txt similarity index 100% rename from mindspore/lite/src/runtime/kernel/ascend/CMakeLists.txt rename to mindspore/lite/src/litert/kernel/ascend/CMakeLists.txt diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/acl_env_guard.cc b/mindspore/lite/src/litert/kernel/ascend/src/acl_env_guard.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/ascend/src/acl_env_guard.cc rename to mindspore/lite/src/litert/kernel/ascend/src/acl_env_guard.cc index a021c254f87..a0d66b1865d 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/acl_env_guard.cc +++ b/mindspore/lite/src/litert/kernel/ascend/src/acl_env_guard.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/ascend/src/acl_env_guard.h" +#include "src/litert/kernel/ascend/src/acl_env_guard.h" #include "common/log_adapter.h" #include "acl/acl.h" diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/acl_env_guard.h b/mindspore/lite/src/litert/kernel/ascend/src/acl_env_guard.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/ascend/src/acl_env_guard.h rename to mindspore/lite/src/litert/kernel/ascend/src/acl_env_guard.h diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/acl_model_options.h b/mindspore/lite/src/litert/kernel/ascend/src/acl_model_options.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/ascend/src/acl_model_options.h rename to mindspore/lite/src/litert/kernel/ascend/src/acl_model_options.h diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.cc b/mindspore/lite/src/litert/kernel/ascend/src/acl_options_parser.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.cc rename to mindspore/lite/src/litert/kernel/ascend/src/acl_options_parser.cc index 98fe142d370..00af0e09ce6 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.cc +++ b/mindspore/lite/src/litert/kernel/ascend/src/acl_options_parser.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/ascend/src/acl_options_parser.h" +#include "src/litert/kernel/ascend/src/acl_options_parser.h" #include #include #include "common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.h b/mindspore/lite/src/litert/kernel/ascend/src/acl_options_parser.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.h rename to mindspore/lite/src/litert/kernel/ascend/src/acl_options_parser.h index c07b78f2b55..403586d5b13 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.h +++ b/mindspore/lite/src/litert/kernel/ascend/src/acl_options_parser.h @@ -21,7 +21,7 @@ #include #include "include/api/context.h" #include "include/errorcode.h" -#include "src/runtime/kernel/ascend/src/acl_model_options.h" +#include "src/litert/kernel/ascend/src/acl_model_options.h" namespace mindspore::kernel { namespace acl { diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/custom_interface.cc b/mindspore/lite/src/litert/kernel/ascend/src/custom_interface.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/ascend/src/custom_interface.cc rename to mindspore/lite/src/litert/kernel/ascend/src/custom_interface.cc index 29bfb6ad856..418cf606595 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/custom_interface.cc +++ b/mindspore/lite/src/litert/kernel/ascend/src/custom_interface.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/ascend/src/custom_interface.h" +#include "src/litert/kernel/ascend/src/custom_interface.h" #include #include "include/errorcode.h" #include "include/registry/register_kernel_interface.h" diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/custom_interface.h b/mindspore/lite/src/litert/kernel/ascend/src/custom_interface.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/ascend/src/custom_interface.h rename to mindspore/lite/src/litert/kernel/ascend/src/custom_interface.h diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/custom_kernel.cc b/mindspore/lite/src/litert/kernel/ascend/src/custom_kernel.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/ascend/src/custom_kernel.cc rename to mindspore/lite/src/litert/kernel/ascend/src/custom_kernel.cc index c6bf422eebb..2a8df2d0e8a 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/custom_kernel.cc +++ b/mindspore/lite/src/litert/kernel/ascend/src/custom_kernel.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/ascend/src/custom_kernel.h" +#include "src/litert/kernel/ascend/src/custom_kernel.h" #include #include "include/registry/register_kernel.h" #include "include/api/types.h" #include "include/api/data_type.h" -#include "src/runtime/kernel/ascend/src/model_infer.h" -#include "src/runtime/kernel/ascend/src/acl_options_parser.h" +#include "src/litert/kernel/ascend/src/model_infer.h" +#include "src/litert/kernel/ascend/src/acl_options_parser.h" #include "src/common/log_util.h" #include "common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/custom_kernel.h b/mindspore/lite/src/litert/kernel/ascend/src/custom_kernel.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/ascend/src/custom_kernel.h rename to mindspore/lite/src/litert/kernel/ascend/src/custom_kernel.h index 6c1edad47a1..b9fd528ca99 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/custom_kernel.h +++ b/mindspore/lite/src/litert/kernel/ascend/src/custom_kernel.h @@ -20,8 +20,8 @@ #include #include #include -#include "src/runtime/kernel/ascend/src/acl_model_options.h" -#include "src/runtime/kernel/ascend/src/model_infer.h" +#include "src/litert/kernel/ascend/src/acl_model_options.h" +#include "src/litert/kernel/ascend/src/model_infer.h" #include "include/api/types.h" #include "include/api/context.h" #include "include/api/kernel.h" diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/model_infer.cc b/mindspore/lite/src/litert/kernel/ascend/src/model_infer.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/ascend/src/model_infer.cc rename to mindspore/lite/src/litert/kernel/ascend/src/model_infer.cc index 07027fc7f8f..1f2a940ac6e 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/model_infer.cc +++ b/mindspore/lite/src/litert/kernel/ascend/src/model_infer.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/ascend/src/model_infer.h" +#include "src/litert/kernel/ascend/src/model_infer.h" #include "common/log_adapter.h" #include "acl/acl.h" diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/model_infer.h b/mindspore/lite/src/litert/kernel/ascend/src/model_infer.h similarity index 91% rename from mindspore/lite/src/runtime/kernel/ascend/src/model_infer.h rename to mindspore/lite/src/litert/kernel/ascend/src/model_infer.h index 36419d79641..eecb8f17615 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/model_infer.h +++ b/mindspore/lite/src/litert/kernel/ascend/src/model_infer.h @@ -22,9 +22,9 @@ #include #include #include -#include "src/runtime/kernel/ascend/src/model_process.h" -#include "src/runtime/kernel/ascend/src/acl_env_guard.h" -#include "src/runtime/kernel/ascend/src/acl_model_options.h" +#include "src/litert/kernel/ascend/src/model_process.h" +#include "src/litert/kernel/ascend/src/acl_env_guard.h" +#include "src/litert/kernel/ascend/src/acl_model_options.h" #include "include/api/types.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/model_process.cc b/mindspore/lite/src/litert/kernel/ascend/src/model_process.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/ascend/src/model_process.cc rename to mindspore/lite/src/litert/kernel/ascend/src/model_process.cc index 6fab80e0891..5a3ae3e22ab 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/model_process.cc +++ b/mindspore/lite/src/litert/kernel/ascend/src/model_process.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/ascend/src/model_process.h" +#include "src/litert/kernel/ascend/src/model_process.h" #include #include #include diff --git a/mindspore/lite/src/runtime/kernel/ascend/src/model_process.h b/mindspore/lite/src/litert/kernel/ascend/src/model_process.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/ascend/src/model_process.h rename to mindspore/lite/src/litert/kernel/ascend/src/model_process.h index cc931b3ea6a..6b8e4322c5e 100644 --- a/mindspore/lite/src/runtime/kernel/ascend/src/model_process.h +++ b/mindspore/lite/src/litert/kernel/ascend/src/model_process.h @@ -27,7 +27,7 @@ #include "acl/acl_rt.h" #include "include/api/types.h" #include "include/errorcode.h" -#include "src/runtime/kernel/ascend/src/acl_model_options.h" +#include "src/litert/kernel/ascend/src/acl_model_options.h" namespace mindspore::kernel { namespace acl { diff --git a/mindspore/lite/src/runtime/kernel/cpu/CMakeLists.txt b/mindspore/lite/src/litert/kernel/cpu/CMakeLists.txt similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/CMakeLists.txt rename to mindspore/lite/src/litert/kernel/cpu/CMakeLists.txt diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/argminmax_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/argminmax_base.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/argminmax_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/argminmax_base.cc index e607e4b8b9a..85c9ac90fd1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/argminmax_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/argminmax_base.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/argminmax_base.h" +#include "src/litert/kernel/cpu/base/argminmax_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/argminmax_base.h b/mindspore/lite/src/litert/kernel/cpu/base/argminmax_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/argminmax_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/argminmax_base.h index e54db7232e3..16ee713fe83 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/argminmax_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/argminmax_base.h @@ -23,7 +23,7 @@ #include "nnacl/fp16/arg_min_max_fp16.h" #endif #include "nnacl/common_func.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ArgMinMaxCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/arithmetic_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/arithmetic_base.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/arithmetic_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/arithmetic_base.cc index e8f8161af0e..b1777d2652f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/arithmetic_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/arithmetic_base.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/arithmetic_base.h" +#include "src/litert/kernel/cpu/base/arithmetic_base.h" #include #include #include diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/arithmetic_base.h b/mindspore/lite/src/litert/kernel/cpu/base/arithmetic_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/arithmetic_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/arithmetic_base.h index c544d19178d..d1d19bb43c0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/arithmetic_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/arithmetic_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_ARITHMETIC_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/arithmetic.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/assert.cc b/mindspore/lite/src/litert/kernel/cpu/base/assert.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/base/assert.cc rename to mindspore/lite/src/litert/kernel/cpu/base/assert.cc index efd9a8df550..ab818cbaf25 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/assert.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/assert.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/assert.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/base/assert.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/assert.h b/mindspore/lite/src/litert/kernel/cpu/base/assert.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/assert.h rename to mindspore/lite/src/litert/kernel/cpu/base/assert.h index 468542ce219..2a1f48b5b7b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/assert.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/assert.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_ASSERT_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class AssertCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/call.cc b/mindspore/lite/src/litert/kernel/cpu/base/call.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/base/call.cc rename to mindspore/lite/src/litert/kernel/cpu/base/call.cc index 23e09cc9a20..a894aa1903a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/call.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/call.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/call.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/base/call.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/call.h b/mindspore/lite/src/litert/kernel/cpu/base/call.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/call.h rename to mindspore/lite/src/litert/kernel/cpu/base/call.h index e9d9c7e5f44..81fefd06729 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/call.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/call.h @@ -18,7 +18,7 @@ #include #include "src/tensor.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" // this file is useless when move create actor before schedule. namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/concat_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/concat_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/concat_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/concat_base.cc index 8af14e11477..1aa41ab536a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/concat_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/concat_base.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/concat_base.h" +#include "src/litert/kernel/cpu/base/concat_base.h" #include #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/concat_base.h b/mindspore/lite/src/litert/kernel/cpu/base/concat_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/concat_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/concat_base.h index 56e2dd86291..29c2d059b8e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/concat_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/concat_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_CONCAT_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/concat_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/constant_of_shape.cc b/mindspore/lite/src/litert/kernel/cpu/base/constant_of_shape.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/constant_of_shape.cc rename to mindspore/lite/src/litert/kernel/cpu/base/constant_of_shape.cc index 3797934ddc7..010f7633173 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/constant_of_shape.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/constant_of_shape.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/constant_of_shape.h" +#include "src/litert/kernel/cpu/base/constant_of_shape.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/constant_of_shape.h b/mindspore/lite/src/litert/kernel/cpu/base/constant_of_shape.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/constant_of_shape.h rename to mindspore/lite/src/litert/kernel/cpu/base/constant_of_shape.h index 6981fb7adf0..d2e297ef24e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/constant_of_shape.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/constant_of_shape.h @@ -18,7 +18,7 @@ #include #include "include/errorcode.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/constant_of_shape_parameter.h" #include "nnacl/fp32/constant_of_shape_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/convolution_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/convolution_base.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/convolution_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/convolution_base.cc index 1870a9563ca..91efee27214 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/convolution_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/convolution_base.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/convolution_base.h b/mindspore/lite/src/litert/kernel/cpu/base/convolution_base.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/base/convolution_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/convolution_base.h index 67d19508e41..93e439e646c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/convolution_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/convolution_base.h @@ -27,11 +27,11 @@ #include #endif #endif -#include "src/runtime/lite_kernel.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/pack_weight_manager.h" #include "include/context.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" -#include "src/runtime/weight_decoder.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" +#include "src/litert/weight_decoder.h" #include "include/errorcode.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/crop_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/crop_base.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/base/crop_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/crop_base.cc index 950d2897b62..82a68846c76 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/crop_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/crop_base.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/crop_base.h" +#include "src/litert/kernel/cpu/base/crop_base.h" #include -#include "src/runtime/kernel/cpu/fp32/crop_fp32.h" +#include "src/litert/kernel/cpu/fp32/crop_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "include/context.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/crop_base.h b/mindspore/lite/src/litert/kernel/cpu/base/crop_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/crop_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/crop_base.h index d5d2e8da643..e630f1d1c3e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/crop_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/crop_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_CROP_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/crop_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/detection_post_process_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/detection_post_process_base.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/detection_post_process_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/detection_post_process_base.cc index f712bd5b727..7e3547f61e1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/detection_post_process_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/detection_post_process_base.cc @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/detection_post_process_base.h" +#include "src/litert/kernel/cpu/base/detection_post_process_base.h" #include #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/int8/quant_dtype_cast_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/detection_post_process_base.h b/mindspore/lite/src/litert/kernel/cpu/base/detection_post_process_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/detection_post_process_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/detection_post_process_base.h index 939a6c66e5b..0ff03ba1eb7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/detection_post_process_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/detection_post_process_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_DETECTION_POST_PROCESS_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp32/detection_post_process_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/format_transpose.cc b/mindspore/lite/src/litert/kernel/cpu/base/format_transpose.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/base/format_transpose.cc rename to mindspore/lite/src/litert/kernel/cpu/base/format_transpose.cc index 404c30c9060..3819164d55e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/format_transpose.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/format_transpose.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/format_transpose.h" +#include "src/litert/kernel/cpu/base/format_transpose.h" #include "nnacl/base/format_transpose.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/format_transpose.h b/mindspore/lite/src/litert/kernel/cpu/base/format_transpose.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/format_transpose.h rename to mindspore/lite/src/litert/kernel/cpu/base/format_transpose.h index e061257cd25..7aece02a62b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/format_transpose.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/format_transpose.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_FORMAT_TRANSPOSE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/format_transpose_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/gather_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/gather_base.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/gather_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/gather_base.cc index 2d2c9f57b1f..574e28aaef8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/gather_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/gather_base.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/gather_base.h" +#include "src/litert/kernel/cpu/base/gather_base.h" #include using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/gather_base.h b/mindspore/lite/src/litert/kernel/cpu/base/gather_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/gather_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/gather_base.h index 6a34836bf2d..8e94ce1ce60 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/gather_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/gather_base.h @@ -19,7 +19,7 @@ #include #include "include/errorcode.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class GatherBaseCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/group_convolution_base.cc index aa50a916451..47edbb92bc2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_base.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/group_convolution_base.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/kernel/cpu/base/group_convolution_base.h" +#include "src/litert/infer_manager.h" #include "include/errorcode.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_base.h b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_base.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/group_convolution_base.h index 2cfddc6f2a4..f4d34d385ca 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_base.h @@ -19,11 +19,11 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_common_fp32.h" -#include "src/runtime/kernel/cpu/base/group_convolution_creator.h" +#include "src/litert/kernel/cpu/base/group_convolution_creator.h" namespace mindspore::kernel { class GroupConvolutionBaseCPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_creator.cc b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_creator.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_creator.cc rename to mindspore/lite/src/litert/kernel/cpu/base/group_convolution_creator.cc index f8c5cf337ab..d93fd940a36 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_creator.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_creator.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/group_convolution_creator.h" +#include "src/litert/kernel/cpu/base/group_convolution_creator.h" namespace mindspore::kernel { void CopyTensorQuantParam(lite::Tensor *dst, const lite::Tensor *src) { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_creator.h b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_creator.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_creator.h rename to mindspore/lite/src/litert/kernel/cpu/base/group_convolution_creator.h index 9815496d912..d14c9ff6e07 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/group_convolution_creator.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/group_convolution_creator.h @@ -19,9 +19,9 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/conv_parameter.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" namespace mindspore::kernel { struct TensorInfo { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/layout_transform.cc b/mindspore/lite/src/litert/kernel/cpu/base/layout_transform.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/layout_transform.cc rename to mindspore/lite/src/litert/kernel/cpu/base/layout_transform.cc index 4d5d08b9652..32ffe2714cc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/layout_transform.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/layout_transform.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" #include "src/common/log_adapter.h" #include "schema/ops_types_generated.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/layout_transform.h b/mindspore/lite/src/litert/kernel/cpu/base/layout_transform.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/base/layout_transform.h rename to mindspore/lite/src/litert/kernel/cpu/base/layout_transform.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/one_hot_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/one_hot_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/one_hot_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/one_hot_base.cc index 156d23192fb..ac1affd3650 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/one_hot_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/one_hot_base.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/one_hot_base.h" +#include "src/litert/kernel/cpu/base/one_hot_base.h" #include "nnacl/fp32/one_hot_fp32.h" #if defined(ENABLE_ARM) && defined(ENABLE_FP16) #include "nnacl/fp16/one_hot_fp16.h" #endif #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/one_hot_base.h b/mindspore/lite/src/litert/kernel/cpu/base/one_hot_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/one_hot_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/one_hot_base.h index 5527716a125..86382a8921f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/one_hot_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/one_hot_base.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_ONE_HOT_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/one_hot_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/partial_fusion.cc b/mindspore/lite/src/litert/kernel/cpu/base/partial_fusion.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/base/partial_fusion.cc rename to mindspore/lite/src/litert/kernel/cpu/base/partial_fusion.cc index 08103d85f29..76a52612db8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/partial_fusion.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/partial_fusion.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/partial_fusion.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/base/partial_fusion.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/partial_fusion.h b/mindspore/lite/src/litert/kernel/cpu/base/partial_fusion.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/partial_fusion.h rename to mindspore/lite/src/litert/kernel/cpu/base/partial_fusion.h index e289d189693..7f0f2ba6041 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/partial_fusion.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/partial_fusion.h @@ -18,7 +18,7 @@ #include #include "src/tensor.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" // this file is going to be removed when move create actor before schedule. namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/pooling_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/pooling_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/pooling_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/pooling_base.cc index a5ca1608677..109922cef25 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/pooling_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/pooling_base.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/pooling_base.h" +#include "src/litert/kernel/cpu/base/pooling_base.h" #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "include/context.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/pooling_base.h b/mindspore/lite/src/litert/kernel/cpu/base/pooling_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/pooling_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/pooling_base.h index 76ce17b2707..fc5613f0a3f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/pooling_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/pooling_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_POOLING_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/pooling_fp32.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/prior_box.cc b/mindspore/lite/src/litert/kernel/cpu/base/prior_box.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/prior_box.cc rename to mindspore/lite/src/litert/kernel/cpu/base/prior_box.cc index 2aa966a40d4..c5bb9f20cda 100755 --- a/mindspore/lite/src/runtime/kernel/cpu/base/prior_box.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/prior_box.cc @@ -16,9 +16,9 @@ #include #include -#include "src/runtime/kernel/cpu/base/prior_box.h" +#include "src/litert/kernel/cpu/base/prior_box.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "include/context.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/prior_box.h b/mindspore/lite/src/litert/kernel/cpu/base/prior_box.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/prior_box.h rename to mindspore/lite/src/litert/kernel/cpu/base/prior_box.h index a32ada6e888..bbd6b38ea68 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/prior_box.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/prior_box.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_PRIOR_BOX_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/reshape_parameter.h" #include "nnacl/fp32/prior_box_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.cc b/mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.cc rename to mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.cc index 1efcc16f107..4abc909961f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/quant_dtype_cast.h" +#include "src/litert/kernel/cpu/base/quant_dtype_cast.h" #include #include "nnacl/int8/quant_dtype_cast_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.h b/mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.h rename to mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.h index b091c84d026..c9c0ef727b3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_QUANT_DTYPE_CAST_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class QuantDTypeCastCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/random_normal.cc b/mindspore/lite/src/litert/kernel/cpu/base/random_normal.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/base/random_normal.cc rename to mindspore/lite/src/litert/kernel/cpu/base/random_normal.cc index dc85e2f5cd6..e36417fe19c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/random_normal.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/random_normal.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/random_normal.h" +#include "src/litert/kernel/cpu/base/random_normal.h" #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/random_normal.h b/mindspore/lite/src/litert/kernel/cpu/base/random_normal.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/random_normal.h rename to mindspore/lite/src/litert/kernel/cpu/base/random_normal.h index 5e9df5bddc6..b352386bbd5 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/random_normal.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/random_normal.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_RANDOM_NORMAL_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/random_parameter.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/reduce_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/reduce_base.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/reduce_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/reduce_base.cc index 6e21ee77595..0dbfe426363 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/reduce_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/reduce_base.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/reduce_base.h" +#include "src/litert/kernel/cpu/base/reduce_base.h" #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/fp32/reduce_fp32.h" +#include "src/litert/kernel/cpu/fp32/reduce_fp32.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/reduce_base.h b/mindspore/lite/src/litert/kernel/cpu/base/reduce_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/reduce_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/reduce_base.h index 16806ca0d1e..74bb3f2711d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/reduce_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/reduce_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_REDUCE_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/reduce_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/reshape_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/reshape_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/reshape_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/reshape_base.cc index 5790692c19d..46f6a89cd61 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/reshape_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/reshape_base.cc @@ -15,9 +15,9 @@ */ #include -#include "src/runtime/kernel/cpu/base/reshape_base.h" +#include "src/litert/kernel/cpu/base/reshape_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/reshape_base.h b/mindspore/lite/src/litert/kernel/cpu/base/reshape_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/reshape_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/reshape_base.h index fb46a4f4d84..81666935213 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/reshape_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/reshape_base.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_RESHAPE_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/resize_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/resize_base.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/resize_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/resize_base.cc index b2dbfa55bcd..732d73b377a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/resize_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/resize_base.cc @@ -15,9 +15,9 @@ */ #include -#include "src/runtime/kernel/cpu/base/resize_base.h" +#include "src/litert/kernel/cpu/base/resize_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/resize_base.h b/mindspore/lite/src/litert/kernel/cpu/base/resize_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/resize_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/resize_base.h index 2c937d3ed3e..c82068bcf49 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/resize_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/resize_base.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_RESIZE_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/resize_parameter.h" using mindspore::schema::PrimitiveType_Resize; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/scatter_nd_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/scatter_nd_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/scatter_nd_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/scatter_nd_base.cc index 755fd08eb7c..cce13980313 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/scatter_nd_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/scatter_nd_base.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/scatter_nd_base.h" +#include "src/litert/kernel/cpu/base/scatter_nd_base.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/scatter_nd_base.h b/mindspore/lite/src/litert/kernel/cpu/base/scatter_nd_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/scatter_nd_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/scatter_nd_base.h index 9b919d422bd..65e8202b785 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/scatter_nd_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/scatter_nd_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_SCATTER_ND_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/base/scatter_nd_base.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/select.cc b/mindspore/lite/src/litert/kernel/cpu/base/select.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/select.cc rename to mindspore/lite/src/litert/kernel/cpu/base/select.cc index c0a6ab0a5de..f3ba5c0fbf1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/select.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/select.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/select.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/base/select.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "src/tensorlist.h" #include "src/common/tensor_util.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/select.h b/mindspore/lite/src/litert/kernel/cpu/base/select.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/select.h rename to mindspore/lite/src/litert/kernel/cpu/base/select.h index a4177059e7d..44626c09517 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/select.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/select.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_SELECT_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensorlist.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/slice_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/slice_base.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/slice_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/slice_base.cc index 6456959ddf7..98181615862 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/slice_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/slice_base.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/slice_base.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/base/slice_base.h" +#include "src/litert/kernel_registry.h" #include "nnacl/base/slice_base.h" #include "src/tensor.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/slice_base.h b/mindspore/lite/src/litert/kernel/cpu/base/slice_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/slice_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/slice_base.h index 50444ae3d7e..7d7b15128e5 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/slice_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/slice_base.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_SLICE_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/slice_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/softmax_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/softmax_base.cc similarity index 92% rename from mindspore/lite/src/runtime/kernel/cpu/base/softmax_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/softmax_base.cc index 3cade9c0293..76857554209 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/softmax_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/softmax_base.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/softmax_base.h" +#include "src/litert/kernel/cpu/base/softmax_base.h" #include -#include "src/runtime/kernel/cpu/fp32/softmax_fp32.h" +#include "src/litert/kernel/cpu/fp32/softmax_fp32.h" #include "nnacl/fp32/softmax_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/softmax_base.h b/mindspore/lite/src/litert/kernel/cpu/base/softmax_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/softmax_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/softmax_base.h index 73cc68c7bc8..5b9d6afb4c6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/softmax_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/softmax_base.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_SOFTMAX_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/softmax_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/split_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/split_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/split_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/split_base.cc index 036b794fbe9..e7d99480a35 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/split_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/split_base.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/split_base.h" +#include "src/litert/kernel/cpu/base/split_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/split_base.h b/mindspore/lite/src/litert/kernel/cpu/base/split_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/split_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/split_base.h index 5047d9cb8fb..f8b86b1c516 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/split_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/split_base.h @@ -20,7 +20,7 @@ #include #include "include/errorcode.h" #include "include/context.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/split_parameter.h" #include "nnacl/base/split_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/split_with_over_lap_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/split_with_over_lap_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/split_with_over_lap_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/split_with_over_lap_base.cc index 3067fb8fd63..a0de9597e96 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/split_with_over_lap_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/split_with_over_lap_base.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/split_with_over_lap_base.h" +#include "src/litert/kernel/cpu/base/split_with_over_lap_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "src/tensor.h" #include "nnacl/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/split_with_over_lap_base.h b/mindspore/lite/src/litert/kernel/cpu/base/split_with_over_lap_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/split_with_over_lap_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/split_with_over_lap_base.h index 45762d1080a..fd862878c2e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/split_with_over_lap_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/split_with_over_lap_base.h @@ -20,7 +20,7 @@ #include #include "include/errorcode.h" #include "include/context.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "nnacl/split_parameter.h" #include "nnacl/base/split_with_over_lap_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/stack_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/stack_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/stack_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/stack_base.cc index 8a783d29a31..81269d14934 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/stack_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/stack_base.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/stack_base.h" +#include "src/litert/kernel/cpu/base/stack_base.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/base/stack_base.h" #include "include/errorcode.h" #include "nnacl/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/stack_base.h b/mindspore/lite/src/litert/kernel/cpu/base/stack_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/stack_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/stack_base.h index 581cb898806..869a5b1ab7e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/stack_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/stack_base.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_STACK_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/stack_parameter.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/strided_slice.cc b/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/strided_slice.cc rename to mindspore/lite/src/litert/kernel/cpu/base/strided_slice.cc index 5db44a0ab18..2cebdd6c75a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/strided_slice.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/strided_slice.h" +#include "src/litert/kernel/cpu/base/strided_slice.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/strided_slice.h b/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/strided_slice.h rename to mindspore/lite/src/litert/kernel/cpu/base/strided_slice.h index 8b92b195331..06d09dfac16 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/strided_slice.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/strided_slice.h @@ -19,7 +19,7 @@ #include #include "nnacl/fp32/strided_slice_fp32.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class StridedSliceCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/tile_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/tile_base.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/tile_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/tile_base.cc index 621e93e0f99..ca8d1793379 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/tile_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/tile_base.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/tile_base.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/base/tile_base.h" +#include "src/litert/kernel_registry.h" #include "nnacl/nnacl_common.h" #include "include/errorcode.h" #include "nnacl/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/tile_base.h b/mindspore/lite/src/litert/kernel/cpu/base/tile_base.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/base/tile_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/tile_base.h index 69121369aca..bc9900c4e4a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/tile_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/tile_base.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_BASE_TILE_BASE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/base/tile_base.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/transpose_base.cc b/mindspore/lite/src/litert/kernel/cpu/base/transpose_base.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/base/transpose_base.cc rename to mindspore/lite/src/litert/kernel/cpu/base/transpose_base.cc index b84995dfb49..2efb1f05b18 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/transpose_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/base/transpose_base.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/base/transpose_base.h" +#include "src/litert/kernel/cpu/base/transpose_base.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/base/transpose_base.h b/mindspore/lite/src/litert/kernel/cpu/base/transpose_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/base/transpose_base.h rename to mindspore/lite/src/litert/kernel/cpu/base/transpose_base.h index 57605b8661a..b54980be269 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/base/transpose_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/base/transpose_base.h @@ -18,7 +18,7 @@ #include #include "nnacl/transpose.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class TransposeBaseCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/switch.cc b/mindspore/lite/src/litert/kernel/cpu/control/switch.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/control/switch.cc rename to mindspore/lite/src/litert/kernel/cpu/control/switch.cc index f21866b62d6..3efbb6ca5fc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/switch.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/switch.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/control/switch.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/control/switch.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/switch.h b/mindspore/lite/src/litert/kernel/cpu/control/switch.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/switch.h rename to mindspore/lite/src/litert/kernel/cpu/control/switch.h index c3d8b028dc3..338725ca427 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/switch.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/switch.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_CONTROL_SWITCH_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class SwitchCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/switch_layer.cc b/mindspore/lite/src/litert/kernel/cpu/control/switch_layer.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/control/switch_layer.cc rename to mindspore/lite/src/litert/kernel/cpu/control/switch_layer.cc index 45527c13a9d..9d41c6ca566 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/switch_layer.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/switch_layer.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/control/switch_layer.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/control/switch_layer.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/switch_layer.h b/mindspore/lite/src/litert/kernel/cpu/control/switch_layer.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/switch_layer.h rename to mindspore/lite/src/litert/kernel/cpu/control/switch_layer.h index a1eab9b8a6d..c5d2accb962 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/switch_layer.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/switch_layer.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_CONTROL_SWITCH_LAYER_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class SwitchLayerCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensor_array.cc b/mindspore/lite/src/litert/kernel/cpu/control/tensor_array.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensor_array.cc rename to mindspore/lite/src/litert/kernel/cpu/control/tensor_array.cc index e93377293c5..46d0bd36997 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensor_array.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensor_array.cc @@ -16,11 +16,11 @@ #include #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/control/tensor_array.h" +#include "src/litert/kernel/cpu/control/tensor_array.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "src/tensorlist.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "src/common/log_util.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensor_array.h b/mindspore/lite/src/litert/kernel/cpu/control/tensor_array.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensor_array.h rename to mindspore/lite/src/litert/kernel/cpu/control/tensor_array.h index d3c35cee5ed..3d691bec256 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensor_array.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensor_array.h @@ -20,7 +20,7 @@ #include #include #include "nnacl/tensor_array_parameter.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensorlist.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_fromtensor.cc b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_fromtensor.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_fromtensor.cc rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_fromtensor.cc index 43449b69169..9910c83e8c8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_fromtensor.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_fromtensor.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/control/tensorlist_fromtensor.h" +#include "src/litert/kernel/cpu/control/tensorlist_fromtensor.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_fromtensor.h b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_fromtensor.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_fromtensor.h rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_fromtensor.h index ae2c3e115ce..c4f8836a99b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_fromtensor.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_fromtensor.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_CONTROL_TENSORLIST_FROMTENSOR_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensorlist.h" #include "schema/model_generated.h" #include "nnacl/tensorlist_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_getitem.cc b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_getitem.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_getitem.cc rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_getitem.cc index 8a5227a3854..722438eda53 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_getitem.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_getitem.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/control/tensorlist_getitem.h" +#include "src/litert/kernel/cpu/control/tensorlist_getitem.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_getitem.h b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_getitem.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_getitem.h rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_getitem.h index c4f25dbd771..b7d87464a77 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_getitem.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_getitem.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_CONTROL_TENSORLIST_GETITEM_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensorlist.h" #include "schema/model_generated.h" #include "nnacl/tensorlist_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_reserve.cc b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_reserve.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_reserve.cc rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_reserve.cc index b8c55eb4862..a8e51e6db1e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_reserve.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_reserve.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/control/tensorlist_reserve.h" +#include "src/litert/kernel/cpu/control/tensorlist_reserve.h" #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_reserve.h b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_reserve.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_reserve.h rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_reserve.h index 12b45edfadd..884e0498e4b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_reserve.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_reserve.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_CONTROL_TENSORLIST_RESERVE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensorlist.h" #include "schema/model_generated.h" #include "nnacl/tensorlist_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_setitem.cc b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_setitem.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_setitem.cc rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_setitem.cc index f1585250bf6..d5cf5a95e12 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_setitem.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_setitem.cc @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/control/tensorlist_setitem.h" +#include "src/litert/kernel/cpu/control/tensorlist_setitem.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_setitem.h b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_setitem.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_setitem.h rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_setitem.h index 8a321746093..c388326b4df 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_setitem.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_setitem.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_CONTROL_TENSORLIST_SETITEM_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensorlist.h" #include "schema/model_generated.h" #include "nnacl/tensorlist_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_stack.cc b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_stack.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_stack.cc rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_stack.cc index eed534f3188..f3e8bcf4d41 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_stack.cc +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_stack.cc @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/control/tensorlist_stack.h" +#include "src/litert/kernel/cpu/control/tensorlist_stack.h" #include #include #include "include/errorcode.h" #include "ir/dtype/type_id.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_stack.h b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_stack.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_stack.h rename to mindspore/lite/src/litert/kernel/cpu/control/tensorlist_stack.h index e9e8a46b4eb..da4379dafb7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/control/tensorlist_stack.h +++ b/mindspore/lite/src/litert/kernel/cpu/control/tensorlist_stack.h @@ -19,7 +19,7 @@ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensorlist.h" #include "schema/model_generated.h" #include "nnacl/tensorlist_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/cpu_kernel.cc b/mindspore/lite/src/litert/kernel/cpu/cpu_kernel.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/cpu_kernel.cc rename to mindspore/lite/src/litert/kernel/cpu/cpu_kernel.cc index 50b5eb93723..902d47ce740 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/cpu_kernel.cc +++ b/mindspore/lite/src/litert/kernel/cpu/cpu_kernel.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/cpu_kernel.h" +#include "src/litert/kernel/cpu/cpu_kernel.h" #include "src/tensor.h" #include "common/tensor_util.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/cpu_kernel.h b/mindspore/lite/src/litert/kernel/cpu/cpu_kernel.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/cpu_kernel.h rename to mindspore/lite/src/litert/kernel/cpu/cpu_kernel.h index 64a691028fc..9c06cbd1d63 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/cpu_kernel.h +++ b/mindspore/lite/src/litert/kernel/cpu/cpu_kernel.h @@ -17,9 +17,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_CPU_KERNEL_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/kernel.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore::kernel { class CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/activation_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/activation_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/activation_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/activation_fp16.cc index fdbb987b2fd..70181f7acae 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/activation_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/activation_fp16.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/activation_fp16.h" +#include "src/litert/kernel/cpu/fp16/activation_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/activation_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/activation_fp16.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/activation_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/activation_fp16.h index 959c6784577..da154968d76 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/activation_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/activation_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_ACTIVATION_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/activation_fp32.h" #include "nnacl/fp16/activation_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/addn_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/addn_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/addn_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/addn_fp16.cc index c85826db531..045b1ad4aab 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/addn_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/addn_fp16.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/addn_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/addn_fp16.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16/arithmetic_fp16.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/addn_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/addn_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/addn_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/addn_fp16.h index c50bace6abd..56b5bb29f9a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/addn_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/addn_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_ADDN_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "schema/model_generated.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_compare_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_compare_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_compare_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_compare_fp16.cc index 66c29f0df3b..c881b5cca2c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_compare_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_compare_fp16.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/arithmetic_compare_fp16.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/arithmetic_compare_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/arithmetic_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_compare_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_compare_fp16.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_compare_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_compare_fp16.h index 5041eb492c6..aefc1443878 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_compare_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_compare_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_ARITHMETIC_COMPARE_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp16/arithmetic_fp16.h" #include "schema/model_generated.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_fp16.cc index 1d335023db7..f6f9993a4ec 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_fp16.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/arithmetic_fp16.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/arithmetic_fp16.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/arithmetic_fp16.h" #include "nnacl/fp16/cast_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_fp16.h index ff25b3ca4b0..a5b22bf44be 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_ARITHMETIC_FP16_H_ #include -#include "src/runtime/kernel/cpu/base/arithmetic_base.h" +#include "src/litert/kernel/cpu/base/arithmetic_base.h" namespace mindspore::kernel { class ArithmeticFP16CPUKernel : public ArithmeticBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_self_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_self_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_self_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_self_fp16.cc index bf03f574bc7..7d648ab78cd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_self_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_self_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/arithmetic_self_fp16.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/arithmetic_self_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16/arithmetic_self_fp16.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_self_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_self_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_self_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_self_fp16.h index b9e9b0405bf..b28725a4ef8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/arithmetic_self_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/arithmetic_self_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_ARITHMETIC_SELF_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.h" +#include "src/litert/kernel/cpu/fp32/arithmetic_self_fp32.h" namespace mindspore::kernel { typedef int (*ArithmeticSelfFp16Func)(const float16_t *input, float16_t *output, int element_size); diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/batchnorm_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/batchnorm_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/batchnorm_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/batchnorm_fp16.cc index 638da535b31..79b8a0484bd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/batchnorm_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/batchnorm_fp16.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/batchnorm_fp16.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/batchnorm_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/batchnorm_fp16.h" #include "nnacl/fp16/cast_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/batchnorm_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/batchnorm_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/batchnorm_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/batchnorm_fp16.h index 96f99b09051..81672bb2a02 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/batchnorm_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/batchnorm_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_BATCHNORM_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp32/batchnorm_fp32.h" +#include "src/litert/kernel/cpu/fp32/batchnorm_fp32.h" namespace mindspore::kernel { class BatchnormFp16CPUKernel : public BatchnormCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/biasadd_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/biasadd_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/biasadd_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/biasadd_fp16.cc index c280db5acc0..91de8d2e713 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/biasadd_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/biasadd_fp16.cc @@ -17,8 +17,8 @@ #include #include "include/errorcode.h" #include "schema/model_generated.h" -#include "src/runtime/kernel/cpu/fp16/biasadd_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/biasadd_fp16.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/biasadd_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/biasadd_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/biasadd_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/biasadd_fp16.h index 06308f53b36..25d977fd330 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/biasadd_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/biasadd_fp16.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_BIASADD_FP16_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_BIASADD_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp16/arithmetic_fp16.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/cast_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/cast_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/cast_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/cast_fp16.cc index 48e8dc0012a..e564d6efada 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/cast_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/cast_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/cast_fp16.h" +#include "src/litert/kernel/cpu/fp16/cast_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/cast_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/cast_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/cast_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/cast_fp16.h index 66b96376030..c88a68e123e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/cast_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/cast_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_CAST_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/op_base.h" #include "nnacl/fp16/cast_fp16.h" #include "nnacl/base/cast_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/common_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/common_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/common_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/common_fp16.cc index 70936242cea..31935c9c0e3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/common_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/common_fp16.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/common_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/common_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/common_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/common_fp16.h index bc42b81fbb6..cb43da36425 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/common_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/common_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_COMMON_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { float16_t *ConvertInputFp32toFp16(lite::Tensor *input, const lite::InnerContext *ctx); diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/concat_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/concat_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/concat_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/concat_fp16.cc index 1addcf94406..e243a58a0b3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/concat_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/concat_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/concat_fp16.h" +#include "src/litert/kernel/cpu/fp16/concat_fp16.h" #include "nnacl/fp16/cast_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/concat_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/concat_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/concat_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/concat_fp16.h index 5f2e646730a..9559b4d3eac 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/concat_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/concat_fp16.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/kernel/cpu/base/concat_base.h" +#include "src/litert/kernel/cpu/base/concat_base.h" using mindspore::lite::InnerContext; namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_1x1_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_1x1_fp16.cc index 44604a27190..536b962cca7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_1x1_fp16.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_1x1_fp16.h" #include "nnacl/base/conv1x1_base.h" #include "nnacl/fp16/conv_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "nnacl/fp16/pack_fp16.h" -#include "src/runtime/kernel/cpu/fp16/layout_transform_fp16.h" +#include "src/litert/kernel/cpu/fp16/layout_transform_fp16.h" #include "include/errorcode.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_1x1_fp16.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_1x1_fp16.h index c979bee961c..76cde5b9020 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_1x1_fp16.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "src/common/utils.h" #include "nnacl/matmul_parameter.h" #include "nnacl/fp16/matmul_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_delegate_fp16.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_delegate_fp16.cc index 7aa823b0af0..4b7661983d2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_delegate_fp16.cc @@ -14,19 +14,19 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_delegate_fp16.h" #include -#include "src/runtime/kernel/cpu/fp16/convolution_fp16.h" -#include "src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.h" -#include "src/runtime/kernel/cpu/fp16/convolution_1x1_fp16.h" -#include "src/runtime/kernel/cpu/fp16/group_convolution_fp16.h" -#include "src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.h" -#include "src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h" -#include "src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h" -#include "src/runtime/kernel/cpu/base/group_convolution_creator.h" +#include "src/litert/kernel/cpu/fp16/convolution_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_winograd_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_1x1_fp16.h" +#include "src/litert/kernel/cpu/fp16/group_convolution_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h" +#include "src/litert/kernel/cpu/base/group_convolution_creator.h" #include "nnacl/base/conv_common_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_delegate_fp16.h similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_delegate_fp16.h index 655abfbbcb0..c1581f52599 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_delegate_fp16.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/conv_parameter.h" #include "nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.cc index 5b609e1a6bf..15479cb2cb7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.cc @@ -15,7 +15,7 @@ */ #ifdef ENABLE_ARM -#include "src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h" #include "include/errorcode.h" #include "nnacl/fp16/pack_fp16.h" #include "nnacl/fp16/conv_depthwise_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h index bab6a9d77e4..303837245d1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_3x3_fp16.h @@ -19,8 +19,8 @@ #ifdef ENABLE_ARM #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.cc index 2f926711b13..5da5ae8f032 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.h" #include "nnacl/fp16/pack_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.h index b1ba4d4c380..706faeecabc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_fp16.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_CONVOLUTION_DEPTHWISE_FP16_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp16/conv_depthwise_fp16.h" #ifdef __cplusplus diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.cc index 654fee24730..d157966ebfa 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h" #include "nnacl/fp16/pack_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h index d9000d17498..c944041e2a6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_depthwise_slidewindow_fp16.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_CONVOLUTION_DEPTHWISE_SLIDEWINDOW_FP16_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp16/conv_depthwise_fp16.h" #ifdef __cplusplus diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_fp16.cc index 1bb32493741..842493ff0a6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_fp16.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/convolution_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_fp16.h" #include #include "include/errorcode.h" #include "nnacl/fp16/conv_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_fp16.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_fp16.h index 170cdb0b6ee..08afcf514a6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_fp16.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class ConvolutionFP16CPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_winograd_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_winograd_fp16.cc index 34438a0a89f..3e132d7e40e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_winograd_fp16.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_winograd_fp16.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_winograd_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/convolution_winograd_fp16.h index c3dd7db1990..f15c93c0600 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/convolution_winograd_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/convolution_winograd_fp16.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp16/conv_fp16.h" #include "nnacl/fp16/winograd_utils_fp16.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/crop_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/crop_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/crop_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/crop_fp16.cc index 819446b0b66..dc6d86a3c21 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/crop_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/crop_fp16.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/crop_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/crop_fp16.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/crop_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/crop_fp16.h similarity index 91% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/crop_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/crop_fp16.h index e099c1fa6b0..d4ab55242ad 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/crop_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/crop_fp16.h @@ -22,9 +22,9 @@ #include "include/errorcode.h" #include "nnacl/crop_parameter.h" #include "nnacl/fp16/crop_fp16.h" -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/crop_base.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/crop_base.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" namespace mindspore::kernel { class CropFp16CPUKernel : public CropBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.cc index 16268a94223..73e3b318837 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.h" +#include "src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.h" #include "nnacl/fp16/pack_fp16.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.h index 5645589f3ea..585572209cc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_DECONVOLUTION_DEPTHWISE_FP16_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp16/conv_depthwise_fp16.h" #ifdef __cplusplus diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_fp16.cc index 2dec262bd54..33ffe1e1bb2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_fp16.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/deconvolution_fp16.h" -#include "src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.h" -#include "src/runtime/kernel/cpu/fp16/deconvolution_depthwise_fp16.h" +#include "src/litert/kernel/cpu/fp16/deconvolution_fp16.h" +#include "src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.h" +#include "src/litert/kernel/cpu/fp16/deconvolution_depthwise_fp16.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_fp16.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_fp16.h index b91403a8f28..4a39cbe4621 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_fp16.h @@ -20,8 +20,8 @@ #include #include "nnacl/fp16/deconv_fp16.h" #include "nnacl/fp16/matmul_fp16.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class DeConvolutionFp16CPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.cc index d9930868d2a..04c16cef745 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.h" +#include "src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_MEMORY_FAILED; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.h index 06df19e4c76..12120d9c020 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/deconvolution_winograd_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/deconvolution_winograd_fp16.h @@ -22,7 +22,7 @@ #include "nnacl/fp16/common_func_fp16.h" #include "nnacl/fp16/deconv_winograd_fp16.h" #include "nnacl/fp16/pack_fp16.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class DeConvWinogradFp16CPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/depth_to_space_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/depth_to_space_fp16.cc similarity index 92% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/depth_to_space_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/depth_to_space_fp16.cc index f4ae2c4fd34..0e5a373f8dc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/depth_to_space_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/depth_to_space_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/depth_to_space_fp16.h" +#include "src/litert/kernel/cpu/fp16/depth_to_space_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/depth_to_space_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/depth_to_space_fp16.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/depth_to_space_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/depth_to_space_fp16.h index f62861f8730..9e4ebf7c3dc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/depth_to_space_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/depth_to_space_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_DEPTH_TO_SPACE_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp32/depth_to_space_fp32.h" +#include "src/litert/kernel/cpu/fp32/depth_to_space_fp32.h" namespace mindspore::kernel { class DepthToSpaceFp16CPUKernel : public DepthToSpaceCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/fill_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/fill_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/fill_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/fill_fp16.cc index 78ef73c3ce5..dcedd1647b5 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/fill_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/fill_fp16.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/fill_fp16.h" +#include "src/litert/kernel/cpu/fp16/fill_fp16.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/fill_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/fill_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/fill_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/fill_fp16.h index 42572952448..74b3217f4a9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/fill_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/fill_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_FILL_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp16/fill_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/fp16_op_handler.h b/mindspore/lite/src/litert/kernel/cpu/fp16/fp16_op_handler.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/fp16_op_handler.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/fp16_op_handler.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/fullconnection_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/fullconnection_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/fullconnection_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/fullconnection_fp16.cc index eec61011dab..cbaa84b6689 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/fullconnection_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/fullconnection_fp16.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/fullconnection_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/fullconnection_fp16.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/fullconnection_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/fullconnection_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/fullconnection_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/fullconnection_fp16.h index d48c1edd6da..79560d7a0c3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/fullconnection_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/fullconnection_fp16.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/kernel/cpu/fp16/matmul_base_fp16.h" +#include "src/litert/kernel/cpu/fp16/matmul_base_fp16.h" namespace mindspore::kernel { class FullconnectionFP16CPUKernel : public MatmulBaseFP16CPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/fused_batchnorm_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/fused_batchnorm_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/fused_batchnorm_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/fused_batchnorm_fp16.cc index 84b5a1a431d..1bc2a93cffd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/fused_batchnorm_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/fused_batchnorm_fp16.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/fused_batchnorm_fp16.h" +#include "src/litert/kernel/cpu/fp16/fused_batchnorm_fp16.h" #include "nnacl/fp16/batchnorm_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "nnacl/fp16/scale_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/fused_batchnorm_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/fused_batchnorm_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/fused_batchnorm_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/fused_batchnorm_fp16.h index 1e4b63fa11e..73d43801931 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/fused_batchnorm_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/fused_batchnorm_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_FUSED_BATCHNORM_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.h" +#include "src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.h" namespace mindspore::kernel { class FusedBatchnormFp16CPUKernel : public FusedBatchnormCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/gather_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/gather_fp16.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/gather_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/gather_fp16.cc index 8395269ba22..09c74ff947a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/gather_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/gather_fp16.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/gather_fp16.h" +#include "src/litert/kernel/cpu/fp16/gather_fp16.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16/cast_fp16.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/gather_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/gather_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/gather_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/gather_fp16.h index 6bad01e1b1e..8c01bfb5151 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/gather_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/gather_fp16.h @@ -20,7 +20,7 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/base/gather_base.h" +#include "src/litert/kernel/cpu/base/gather_base.h" namespace mindspore::kernel { class GatherFp16CPUKernel : public GatherBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/group_convolution_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/group_convolution_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/group_convolution_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/group_convolution_fp16.cc index 3a5bdd0b304..7d431744803 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/group_convolution_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/group_convolution_fp16.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/group_convolution_fp16.h" -#include "src/runtime/kernel/cpu/fp16/convolution_delegate_fp16.h" +#include "src/litert/kernel/cpu/fp16/group_convolution_fp16.h" +#include "src/litert/kernel/cpu/fp16/convolution_delegate_fp16.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/group_convolution_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/group_convolution_fp16.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/group_convolution_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/group_convolution_fp16.h index 9351e971633..ca6d09f4652 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/group_convolution_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/group_convolution_fp16.h @@ -19,9 +19,9 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/base/group_convolution_base.h" +#include "src/litert/kernel/cpu/base/group_convolution_base.h" #include "nnacl/fp16/conv_fp16.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/gru_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/gru_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/gru_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/gru_fp16.cc index eefbae4050a..232bbe44c13 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/gru_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/gru_fp16.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/gru_fp16.h" +#include "src/litert/kernel/cpu/fp16/gru_fp16.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp16/gru_fp16.h" #include "nnacl/fp16/cast_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/gru_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/gru_fp16.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/gru_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/gru_fp16.h index 3380475a238..baf5191a652 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/gru_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/gru_fp16.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRU_FP16_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRU_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/gru_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/instance_norm_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/instance_norm_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/instance_norm_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/instance_norm_fp16.cc index e7fbbe38cac..0c599fdfe59 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/instance_norm_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/instance_norm_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/instance_norm_fp16.h" +#include "src/litert/kernel/cpu/fp16/instance_norm_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp16/cast_fp16.h" #include "nnacl/fp16/instance_norm_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/instance_norm_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/instance_norm_fp16.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/instance_norm_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/instance_norm_fp16.h index 92c1bdc7dd7..3d04fb6ef90 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/instance_norm_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/instance_norm_fp16.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_INSTANCE_NORM_FP16_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_INSTANCE_NORM_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/instance_norm_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/layer_norm_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/layer_norm_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/layer_norm_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/layer_norm_fp16.cc index 89bee5adb81..f941cee17ca 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/layer_norm_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/layer_norm_fp16.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/layer_norm_fp16.h" +#include "src/litert/kernel/cpu/fp16/layer_norm_fp16.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp16/layer_norm_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/layer_norm_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/layer_norm_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/layer_norm_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/layer_norm_fp16.h index 924683fa467..2b4bc191053 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/layer_norm_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/layer_norm_fp16.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_LAYER_NORM_FP16_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_LAYER_NORM_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/layer_norm_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/layout_transform_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/layout_transform_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/layout_transform_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/layout_transform_fp16.cc index 4b5620d57f5..73ec20258f0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/layout_transform_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/layout_transform_fp16.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/layout_transform_fp16.h" +#include "src/litert/kernel/cpu/fp16/layout_transform_fp16.h" #include "nnacl/fp16/pack_fp16.h" #include "src/common/log_adapter.h" #include "schema/ops_types_generated.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/layout_transform_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/layout_transform_fp16.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/layout_transform_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/layout_transform_fp16.h index e7e5e301e6a..821fd7047a8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/layout_transform_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/layout_transform_fp16.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_LAYOUT_TRANSFORM_FP16_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_LAYOUT_TRANSFORM_FP16_H_ -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" namespace mindspore::kernel { LayoutConvertor LayoutTransformFp16(mindspore::Format src_format, mindspore::Format dst_format); diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/log_softmax_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/log_softmax_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/log_softmax_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/log_softmax_fp16.cc index c32b8daeb4b..29d4ba54a6d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/log_softmax_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/log_softmax_fp16.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/log_softmax_fp16.h" +#include "src/litert/kernel/cpu/fp16/log_softmax_fp16.h" #include #include -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/log_softmax_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/log_softmax_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/log_softmax_fp16.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/log_softmax_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/log_softmax_fp16.h index 44956239c42..fa385f27181 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/log_softmax_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/log_softmax_fp16.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/softmax_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/softmax_base.h" namespace mindspore::kernel { class LogSoftmaxFp16CPUKernel : public SoftmaxBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/lstm_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/lstm_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/lstm_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/lstm_fp16.cc index d8620918bf5..5eb6d5ed95a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/lstm_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/lstm_fp16.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/lstm_fp16.h" +#include "src/litert/kernel/cpu/fp16/lstm_fp16.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp16/lstm_fp16.h" #include "nnacl/fp16/cast_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/lstm_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/lstm_fp16.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/lstm_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/lstm_fp16.h index 11503417ba8..40d7c6d86ee 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/lstm_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/lstm_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_LSTM_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/lstm_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_base_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_base_fp16.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_base_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/matmul_base_fp16.cc index 32172806a18..8adb97b9913 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_base_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_base_fp16.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/matmul_base_fp16.h" +#include "src/litert/kernel/cpu/fp16/matmul_base_fp16.h" #include #include "nnacl/fp16/matmul_fp16.h" #include "nnacl/fp16/cast_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_base_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_base_fp16.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_base_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/matmul_base_fp16.h index afc261ec269..fc133ec2243 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_base_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_base_fp16.h @@ -21,7 +21,7 @@ #include #endif #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/common/common.h" #include "nnacl/matmul_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/matmul_fp16.cc index 0e447098344..358436bd4ee 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_fp16.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/matmul_fp16.h" +#include "src/litert/kernel/cpu/fp16/matmul_fp16.h" #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::kCHWDimNumber; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/matmul_fp16.h index 43e42d8ee06..bae24402500 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/matmul_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/matmul_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_MATMUL_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp16/matmul_base_fp16.h" +#include "src/litert/kernel/cpu/fp16/matmul_base_fp16.h" namespace mindspore::kernel { class MatmulFP16CPUKernel : public MatmulBaseFP16CPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/pad_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/pad_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/pad_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/pad_fp16.cc index 30acf8f44be..19cf0209f09 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/pad_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/pad_fp16.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/pad_fp16.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/pad_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/pad_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/pad_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/pad_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/pad_fp16.h index 9e64b48ed1d..38af45a9768 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/pad_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/pad_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_PAD_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp32/pad_fp32.h" +#include "src/litert/kernel/cpu/fp32/pad_fp32.h" #include "nnacl/fp16/pad_fp16.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/pooling_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/pooling_fp16.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/pooling_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/pooling_fp16.cc index 444b69ca5eb..854e4e1084e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/pooling_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/pooling_fp16.cc @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/pooling_fp16.h" +#include "src/litert/kernel/cpu/fp16/pooling_fp16.h" #include #include "nnacl/fp16/pooling_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/pooling_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/pooling_fp16.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/pooling_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/pooling_fp16.h index d39a45fc7f7..2a119504d1a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/pooling_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/pooling_fp16.h @@ -19,8 +19,8 @@ #include #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/pooling_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/pooling_base.h" namespace mindspore::kernel { class PoolingFp16CPUKernel : public PoolingBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/power_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/power_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/power_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/power_fp16.cc index 4ff27971a9a..b08dfe165a2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/power_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/power_fp16.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/power_fp16.h" +#include "src/litert/kernel/cpu/fp16/power_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/power_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/power_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/power_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/power_fp16.h index 5b84a134c77..c83de8fffbe 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/power_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/power_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_POWER_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp16/power_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/prelu_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/prelu_fp16.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/prelu_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/prelu_fp16.cc index 38983391166..8a4e818f76e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/prelu_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/prelu_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/prelu_fp16.h" +#include "src/litert/kernel/cpu/fp16/prelu_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp16/prelu_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/prelu_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/prelu_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/prelu_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/prelu_fp16.h index c2a145f2426..f23d3e39d3d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/prelu_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/prelu_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_PRELU_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp32/prelu_fp32.h" +#include "src/litert/kernel/cpu/fp32/prelu_fp32.h" namespace mindspore::kernel { class PReluFp16CPUKernel : public PReluCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/quant_dtype_cast_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/quant_dtype_cast_fp16.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/quant_dtype_cast_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/quant_dtype_cast_fp16.cc index e576d4ac8b5..06ae1f94749 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/quant_dtype_cast_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/quant_dtype_cast_fp16.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/quant_dtype_cast_fp16.h" +#include "src/litert/kernel/cpu/fp16/quant_dtype_cast_fp16.h" #include #include "nnacl/int8/quant_dtype_cast_int8.h" #include "nnacl/fp16/quant_dtype_cast_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/quant_dtype_cast_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/quant_dtype_cast_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/quant_dtype_cast_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/quant_dtype_cast_fp16.h index 23641a83a45..748f34888a6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/quant_dtype_cast_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/quant_dtype_cast_fp16.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class QuantDTypeCastFp16CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/ragged_range_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/ragged_range_fp16.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/ragged_range_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/ragged_range_fp16.cc index 47d52f330cd..9365fdb0b73 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/ragged_range_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/ragged_range_fp16.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/ragged_range_fp16.h" +#include "src/litert/kernel/cpu/fp16/ragged_range_fp16.h" #include #include "nnacl/fp16/ragged_range_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/ragged_range_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/ragged_range_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/ragged_range_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/ragged_range_fp16.h index c5aba7b265d..e02223f792e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/ragged_range_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/ragged_range_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_RAGGED_RANGE_FP16_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class RaggedRangeFp16CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/reduce_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/reduce_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/reduce_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/reduce_fp16.cc index 51bc9024b72..8ae7dac38e8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/reduce_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/reduce_fp16.cc @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/reduce_fp16.h" +#include "src/litert/kernel/cpu/fp16/reduce_fp16.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp16/reduce_fp16.h" -#include "src/runtime/kernel/cpu/base/reduce_base.h" +#include "src/litert/kernel/cpu/base/reduce_base.h" #include "nnacl/fp16/cast_fp16.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/reduce_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/reduce_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/reduce_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/reduce_fp16.h index ca3ca8105b5..b823d9b2150 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/reduce_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/reduce_fp16.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/kernel/cpu/fp32/reduce_fp32.h" +#include "src/litert/kernel/cpu/fp32/reduce_fp32.h" namespace mindspore::kernel { class ReduceFp16CPUKernel : public ReduceCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/resize_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/resize_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/resize_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/resize_fp16.cc index 3cf89c10262..2f26862cc36 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/resize_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/resize_fp16.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/resize_fp16.h" +#include "src/litert/kernel/cpu/fp16/resize_fp16.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/resize_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/resize_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/resize_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/resize_fp16.h index 7497d1e03b1..cdae563fb67 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/resize_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/resize_fp16.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/kernel/cpu/fp32/resize_fp32.h" +#include "src/litert/kernel/cpu/fp32/resize_fp32.h" #include "nnacl/fp16/resize_fp16.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/scale_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/scale_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/scale_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/scale_fp16.cc index 72aa3286b80..c2f9c5239ab 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/scale_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/scale_fp16.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/scale_fp16.h" +#include "src/litert/kernel/cpu/fp16/scale_fp16.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/scale_fp16.h" #include "nnacl/fp16/cast_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/scale_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/scale_fp16.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/scale_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/scale_fp16.h index ea8ed77a0ec..e880a9054f1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/scale_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/scale_fp16.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_SCALE_FP16_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/fp32/scale_fp32.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/fp32/scale_fp32.h" #include "nnacl/scale.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/slice_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/slice_fp16.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/slice_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/slice_fp16.cc index 82c6c7c5bd7..8b65361de31 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/slice_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/slice_fp16.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/slice_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/slice_fp16.h" +#include "src/litert/kernel_registry.h" #include "nnacl/base/slice_base.h" #include "nnacl/fp16/cast_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/slice_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/slice_fp16.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/slice_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/slice_fp16.h index 5c3a6f82431..579078f74ff 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/slice_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/slice_fp16.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_SLICE_FP16_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/slice_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/slice_base.h" namespace mindspore::kernel { class SliceFp16CPUKernel : public SliceCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/softmax_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/softmax_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/softmax_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/softmax_fp16.cc index 0759d73628b..2c626d77487 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/softmax_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/softmax_fp16.cc @@ -16,12 +16,12 @@ #include #include -#include "src/runtime/kernel/cpu/fp16/softmax_fp16.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/softmax_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/softmax_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/softmax_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/softmax_fp16.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/softmax_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/softmax_fp16.h index fed1a5988de..5bb79182f67 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/softmax_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/softmax_fp16.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/softmax_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/softmax_base.h" namespace mindspore::kernel { class SoftmaxFp16CPUKernel : public SoftmaxBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/stack_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/stack_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/stack_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/stack_fp16.cc index 7abcf28951d..e1c43ed5b56 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/stack_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/stack_fp16.cc @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/stack_fp16.h" +#include "src/litert/kernel/cpu/fp16/stack_fp16.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/stack_parameter.h" #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/fp16/common_fp16.h" +#include "src/litert/kernel/cpu/fp16/common_fp16.h" #include "nnacl/fp16/cast_fp16.h" #include "nnacl/base/stack_base.h" #include "nnacl/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/stack_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/stack_fp16.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/stack_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/stack_fp16.h index 7a3620e8377..3eaa744f46d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/stack_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/stack_fp16.h @@ -17,8 +17,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_STACK_FP16_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/stack_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/stack_base.h" namespace mindspore::kernel { class StackFp16CPUKernel : public StackBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/transpose_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/transpose_fp16.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/transpose_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/transpose_fp16.cc index 8b43839634f..fcac7df3d59 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/transpose_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/transpose_fp16.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/transpose_fp16.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/transpose_fp16.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16/pack_fp16.h" #include "nnacl/fp16/transpose_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/transpose_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/transpose_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/transpose_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/transpose_fp16.h index 2daf370d291..7f244050ac3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/transpose_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/transpose_fp16.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/kernel/cpu/base/transpose_base.h" +#include "src/litert/kernel/cpu/base/transpose_base.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/where_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16/where_fp16.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/where_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16/where_fp16.cc index c741a7bff10..764e0246217 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/where_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/where_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16/where_fp16.h" +#include "src/litert/kernel/cpu/fp16/where_fp16.h" #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16/where_fp16.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16/where_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16/where_fp16.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16/where_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16/where_fp16.h index 5194106c902..71de12e8407 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16/where_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16/where_fp16.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_WHERE_FP16_H_ #include -#include "src/runtime/kernel/cpu/fp32/where_fp32.h" +#include "src/litert/kernel/cpu/fp32/where_fp32.h" namespace mindspore::kernel { class WhereFp16CPUKernel : public WhereCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/activation_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/activation_fp16_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/activation_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/activation_fp16_grad.cc index ed3717cd635..a444ccd5941 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/activation_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/activation_fp16_grad.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/activation_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/activation_fp16_grad.h" #include "nnacl/fp16_grad/activation_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/activation_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/activation_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/activation_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/activation_fp16_grad.h index 238cb7be67c..cd1b116d4d5 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/activation_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/activation_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_ACTIVATION_FP16_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp16_grad/activation_grad.h" #include "nnacl/fp32_grad/activation_grad.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_grad.cc index 52504a6cde6..a7914e6144e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16_grad/arithmetic_grad.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h index 4eb6298062e..530fc14dfe3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_ARITHMETIC_FP16_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp16/arithmetic_fp16.h" #include "schema/model_generated.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.cc index f6fd0dd8f48..2d92de02286 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h index 4361aeca72e..105db40eee3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/arithmetic_fp16_self_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_ARITHMETIC_FP16_SELF_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp16_grad/arithmetic_self_grad.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bias_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bias_fp16_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bias_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/bias_fp16_grad.cc index d5b89748cac..2dc88c8cc50 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bias_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bias_fp16_grad.cc @@ -15,9 +15,9 @@ */ #include -#include "src/runtime/kernel/cpu/fp16_grad/bias_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/bias_fp16_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH::kCPU; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bias_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bias_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bias_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/bias_fp16_grad.h index f79ac4ad3dc..d0b6f4f1c69 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bias_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bias_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_BIAS_FP16_GRAD_H_ #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "nnacl/fp16/arithmetic_fp16.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bn_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bn_fp16_grad.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bn_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/bn_fp16_grad.cc index 62e7ffd2258..c67dd9c825e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bn_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bn_fp16_grad.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/bn_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/bn_fp16_grad.h" #include #include #include @@ -23,7 +23,7 @@ #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16_grad/batch_norm.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bn_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bn_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bn_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/bn_fp16_grad.h index 08307f43536..745c1514896 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/bn_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/bn_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_BN_FP16_GRAD_H_ #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "nnacl/fp32_grad/batch_norm.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.cc index b2a3a71da0f..5747801c093 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h" +#include "src/litert/kernel_registry.h" #include "nnacl/pack.h" #include "nnacl/fp16_grad/convolution_grad_filter.h" #include "nnacl/fp16_grad/pack_fp16_ext.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h index cfd8025d0e1..bd1e4912cc9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_filter.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_CONVOLUTION_FP16_GRAD_FILTER_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ConvolutionGradFilterCPUKernelFp16 : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_input.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_input.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_input.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_input.cc index b48c91eeb9f..956bc3ef492 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_input.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_input.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h" +#include "src/litert/kernel_registry.h" #include "nnacl/pack.h" #include "nnacl/fp16_grad/pack_fp16_ext.h" #include "nnacl/fp16_grad/gemm_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h index d28bb932acc..99e1f68d30f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/convolution_fp16_grad_input.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_CONVOLUTION_FP16_GRAD_INPUT_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ConvolutionGradInputCPUKernelFp16 : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/dropout_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/dropout_fp16_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/dropout_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/dropout_fp16_grad.cc index 6217cecfb11..598f2db4997 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/dropout_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/dropout_fp16_grad.cc @@ -15,10 +15,10 @@ */ #include -#include "src/runtime/kernel/cpu/fp16_grad/dropout_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/dropout_fp16_grad.h" #include "nnacl/fp16_grad/dropout_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32_grad/dropout_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/dropout_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/dropout_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/dropout_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/dropout_fp16_grad.h index f6052e654bb..5c69c9c7463 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/dropout_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/dropout_fp16_grad.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_DROPOUT_FP16_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class DropoutGradCPUKernelFp16 : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/layernorm_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/layernorm_fp16_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/layernorm_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/layernorm_fp16_grad.cc index a6c7e9d5083..e9382dcd20b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/layernorm_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/layernorm_fp16_grad.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/layernorm_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/layernorm_fp16_grad.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16_grad/layernorm_grad.h" #include "nnacl/fp32_grad/layernormgrad_parameter.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/layernorm_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/layernorm_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/layernorm_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/layernorm_fp16_grad.h index 607f7b450fd..bc4622c8839 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/layernorm_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/layernorm_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_LAYERNORM_FP16_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/neg_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/neg_fp16_grad.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/neg_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/neg_fp16_grad.cc index 8b1a36aeded..7e2d098ecfd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/neg_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/neg_fp16_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/neg_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/neg_fp16_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp16/arithmetic_self_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/neg_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/neg_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/neg_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/neg_fp16_grad.h index 5d0e722bcd7..189d952a022 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/neg_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/neg_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_NEG_FP16_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "schema/model_generated.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/pooling_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/pooling_fp16_grad.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/pooling_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/pooling_fp16_grad.cc index ed5d5295c27..54b3deb676b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/pooling_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/pooling_fp16_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/pooling_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/pooling_fp16_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16/pooling_fp16.h" #include "nnacl/fp16_grad/pooling_grad.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/pooling_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/pooling_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/pooling_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/pooling_fp16_grad.h index b75edb0ceec..0e5900c0d47 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/pooling_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/pooling_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_POOLING_FP16_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { using mindspore::schema::PadMode; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/resize_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/resize_fp16_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/resize_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/resize_fp16_grad.cc index 348661c80b9..f1050657a4b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/resize_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/resize_fp16_grad.cc @@ -15,11 +15,11 @@ */ #include -#include "src/runtime/kernel/cpu/fp16_grad/resize_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/resize_fp16_grad.h" #include "nnacl/fp16_grad/resize_grad.h" #include "nnacl/errorcode.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH::kCPU; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/resize_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/resize_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/resize_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/resize_fp16_grad.h index 034002a2d2c..8d51a0920c9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/resize_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/resize_fp16_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_RESIZE_FP16_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ResizeGradCPUKernelFp16 : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/strided_slice_fp16_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/strided_slice_fp16_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/strided_slice_fp16_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/strided_slice_fp16_grad.cc index 39015055dc2..b6db3387c69 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/strided_slice_fp16_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/strided_slice_fp16_grad.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h" +#include "src/litert/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16_grad/strided_slice_grad.h" #include "src/common/ops/populate/strided_slice_populate.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h index dbd3b2e45fe..017d40ad249 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/strided_slice_fp16_grad.h @@ -19,7 +19,7 @@ #include #include "nnacl/fp16_grad/strided_slice_grad.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore::kernel { class StridedSliceGradCPUKernelFp16 : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.cc index e65cd4e8541..40a1818db24 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h" +#include "src/litert/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp16_grad/unsorted_segment_sum.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h rename to mindspore/lite/src/litert/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h index 9474f584871..b1e81e2fddf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp16_grad/unsorted_segment_sum_fp16.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP16_GRAD_UNSORTED_SEGMENT_SUM_FP16_H_ #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore::kernel { class UnsortedSegmentSumCPUKernelFp16 : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/activation_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/activation_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/activation_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/activation_fp32.cc index efc134f0da5..a1f1d46e72b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/activation_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/activation_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/activation_fp32.h" +#include "src/litert/kernel/cpu/fp32/activation_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/activation_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/activation_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/activation_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/activation_fp32.h index e72299d4177..b6fd67b638c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/activation_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/activation_fp32.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/activation_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/adder_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/adder_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/adder_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/adder_fp32.cc index 8f2a9854db4..1e0f0687613 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/adder_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/adder_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/adder_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/adder_fp32.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "schema/model_generated.h" #include "nnacl/fp32/adder_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/adder_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/adder_fp32.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/adder_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/adder_fp32.h index d611b1b6ee9..2c57bf26f98 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/adder_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/adder_fp32.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_ADDER_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/fp32/convolution_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_fp32.h" namespace mindspore::kernel { class AdderCPUKernel : public ConvolutionCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/addn_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/addn_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/addn_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/addn_fp32.cc index f31ef8a4e63..31f250c7cfc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/addn_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/addn_fp32.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/addn_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/addn_fp32.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/arithmetic_fp32.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/addn_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/addn_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/addn_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/addn_fp32.h index e2d296139e2..119b8df96f6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/addn_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/addn_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_ADDN_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "schema/model_generated.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/affine_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/affine_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/affine_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/affine_fp32.cc index 2b7c6373306..b48a1872898 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/affine_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/affine_fp32.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/affine_fp32.h" +#include "src/litert/kernel/cpu/fp32/affine_fp32.h" #include #include -#include "src/runtime/kernel/cpu/fp32/matmul_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/activation_fp32.h" #include "nnacl/fp32/splice_fp32.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/affine_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/affine_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/affine_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/affine_fp32.h index c6076f27f52..4cf296fee66 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/affine_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/affine_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_AFFINE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/affine_parameter.h" #include "nnacl/splice_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/all_gather_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/all_gather_fp32.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/all_gather_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/all_gather_fp32.cc index 990e009b36f..abd8f9f9bf5 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/all_gather_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/all_gather_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/all_gather_fp32.h" +#include "src/litert/kernel/cpu/fp32/all_gather_fp32.h" #include "schema/ops_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/all_gather_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/all_gather_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/all_gather_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/all_gather_fp32.h index c866ddb3edd..04f8066b11c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/all_gather_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/all_gather_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_ALL_GATHER_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/all_gather_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_compare_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_compare_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_compare_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_compare_fp32.cc index ed8b376243f..5c017331220 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_compare_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_compare_fp32.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/arithmetic_compare_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/arithmetic_compare_fp32.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/arithmetic_compare_fp32.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_compare_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_compare_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_compare_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_compare_fp32.h index 5db1cc76afb..cb123ba6094 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_compare_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_compare_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_ARITHMETIC_COMPARE_FP32_H_ #include -#include "src/runtime/kernel/cpu/fp32/arithmetic_fp32.h" +#include "src/litert/kernel/cpu/fp32/arithmetic_fp32.h" namespace mindspore::kernel { class ArithmeticCompareCPUKernel : public ArithmeticCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_fp32.cc index 6c2cf8064b9..fe1c47c028c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/arithmetic_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/arithmetic_fp32.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/arithmetic_fp32.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_fp32.h index d43267b1e9f..923c2f644b6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_ARITHMETIC_FP32_H_ #include -#include "src/runtime/kernel/cpu/base/arithmetic_base.h" +#include "src/litert/kernel/cpu/base/arithmetic_base.h" namespace mindspore::kernel { class ArithmeticCPUKernel : public ArithmeticBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_self_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_self_fp32.cc index 0ccacdf9422..513e97688ce 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_self_fp32.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.h" +#include "src/litert/kernel/cpu/fp32/arithmetic_self_fp32.h" #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/arithmetic_self_fp32.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_self_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_self_fp32.h index 105d4d6c8a2..870ae39d58f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/arithmetic_self_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/arithmetic_self_fp32.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" using mindspore::schema::PrimitiveType_Abs; using mindspore::schema::PrimitiveType_Ceil; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/batch_to_space_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/batch_to_space_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/batch_to_space_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/batch_to_space_fp32.cc index f64d1427f72..adeac5f832a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/batch_to_space_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/batch_to_space_fp32.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/batch_to_space_fp32.h" +#include "src/litert/kernel/cpu/fp32/batch_to_space_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/batch_to_space_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/batch_to_space_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/batch_to_space_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/batch_to_space_fp32.h index ebbe7873dac..dfad7971941 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/batch_to_space_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/batch_to_space_fp32.h @@ -20,7 +20,7 @@ #include "include/errorcode.h" #include "nnacl/batch_to_space.h" #include "nnacl/base/batch_to_space_base.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class BatchToSpaceCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/batchnorm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/batchnorm_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/batchnorm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/batchnorm_fp32.cc index 80df1b63f1b..80a73b537de 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/batchnorm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/batchnorm_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/batchnorm_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/batchnorm_fp32.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/batchnorm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/batchnorm_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/batchnorm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/batchnorm_fp32.h index 0538277d2d4..4b421906423 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/batchnorm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/batchnorm_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_BATCHNORM_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp32/batchnorm_fp32.h" #include "nnacl/batchnorm_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/bias_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/bias_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/bias_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/bias_fp32.cc index 64cae0a95bb..25a03c5fe0c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/bias_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/bias_fp32.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/bias_fp32.h" +#include "src/litert/kernel/cpu/fp32/bias_fp32.h" #include #include "nnacl/fp32/bias_add.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/bias_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/bias_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/bias_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/bias_fp32.h index df3a6633cd8..60ca6a366b7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/bias_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/bias_fp32.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_BIAS_FP32_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_BIAS_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/arithmetic_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/broadcast_to_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/broadcast_to_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/broadcast_to_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/broadcast_to_fp32.cc index 90d3ea5c3c8..3c43ea53e14 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/broadcast_to_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/broadcast_to_fp32.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/broadcast_to_fp32.h" +#include "src/litert/kernel/cpu/fp32/broadcast_to_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/broadcast_to_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/broadcast_to_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/broadcast_to_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/broadcast_to_fp32.h index a1d60f5c927..90d158e40d7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/broadcast_to_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/broadcast_to_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_BROADCAST_TO_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/base/broadcast_to.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/cast_for_x86_fp16.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/cast_for_x86_fp16.cc similarity index 90% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/cast_for_x86_fp16.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/cast_for_x86_fp16.cc index 48f990f6d47..d4db78f042d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/cast_for_x86_fp16.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/cast_for_x86_fp16.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/cast_fp32.h" +#include "src/litert/kernel/cpu/fp32/cast_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/cast_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/cast_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/cast_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/cast_fp32.cc index 81b95185ba7..dbd47bc7d49 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/cast_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/cast_fp32.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/cast_fp32.h" +#include "src/litert/kernel/cpu/fp32/cast_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/cast_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/cast_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/cast_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/cast_fp32.h index fae9828c5f8..e10cfacd980 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/cast_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/cast_fp32.h @@ -18,7 +18,7 @@ #include #include "include/errorcode.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/tensor.h" #include "nnacl/op_base.h" #include "nnacl/base/cast_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_1x1_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_1x1_fp32.cc index f23478b6c80..76cc0482be2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_1x1_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/kernel/cpu/fp32/convolution_1x1_fp32.h" +#include "src/litert/pack_weight_manager.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_MEMORY_FAILED; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_1x1_fp32.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_1x1_fp32.h index 012b2ad3ecd..4793524e156 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_1x1_fp32.h @@ -19,11 +19,11 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/errorcode.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" #include "nnacl/base/conv1x1_base.h" #include "nnacl/fp32/common_func_fp32.h" #include "nnacl/matmul_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_delegate_fp32.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_delegate_fp32.cc index 101c29d0f5e..4f82be7ca08 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_delegate_fp32.cc @@ -14,27 +14,27 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/cpu/fp32/convolution_fp32.h" -#include "src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.h" -#include "src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.h" -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.h" -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h" -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h" -#include "src/runtime/kernel/cpu/base/group_convolution_creator.h" -#include "src/runtime/kernel/cpu/fp32/group_convolution_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_delegate_fp32.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/convolution_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_1x1_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_winograd_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h" +#include "src/litert/kernel/cpu/base/group_convolution_creator.h" +#include "src/litert/kernel/cpu/fp32/group_convolution_fp32.h" #include "nnacl/base/conv_common_base.h" #include "schema/model_generated.h" #include "include/errorcode.h" #if defined(ENABLE_ARM) || (defined(ENABLE_SSE) && !defined(ENABLE_AVX)) -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h" #endif #if defined(ENABLE_ARM64) -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h" #endif #ifdef ENABLE_AVX -#include "src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.h" #endif using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_delegate_fp32.h similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_delegate_fp32.h index 8baa7325d32..ca72756987f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_delegate_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_CONVOLUTION_DELEGATE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/conv_parameter.h" #include "nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.cc index 0862b793443..9241d9830b7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h" #include "include/errorcode.h" #if defined(ENABLE_ARM) || (defined(ENABLE_SSE) && !defined(ENABLE_AVX)) diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h index 36ce8987f08..e186617990b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_3x3_fp32.h @@ -19,8 +19,8 @@ #if defined(ENABLE_ARM) || (defined(ENABLE_SSE) && !defined(ENABLE_AVX)) #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.cc index 01e06d2673c..fcfd29fc2eb 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.h" #include "include/errorcode.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/pack_weight_manager.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_INFER_INVALID; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.h index 9a3fda0569b..63804d0287c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.cc index ab7f99fc10b..ddc2504f920 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h" #include "include/errorcode.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/pack_weight_manager.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_INFER_INVALID; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h index c3416e35844..9840e704e03 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_indirect_fp32.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_CONVOLUTION_DEPTHWISE_INDIRECT_FP32_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.cc index 957e5529c14..a170ebab53a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h" +#include "src/litert/pack_weight_manager.h" #include "include/errorcode.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h index 7519b7f7b76..e4d4bb46455 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_fp32.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_CONVOLUTION_DEPTHWISE_SLIDEWINDOW_FP32_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.cc index c0e4b715a1e..9ca47e2748b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #ifdef ENABLE_AVX -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h" #include "include/errorcode.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h index 09b330cf279..e959fe45755 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_depthwise_slidewindow_x86_fp32.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_CONVOLUTION_DEPTHWISE_SLIDEWINDOW_X86_FP32_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_fp32.cc index 51dc5d3e96b..2ed15018546 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_fp32.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/kernel/cpu/fp32/convolution_fp32.h" +#include "src/litert/pack_weight_manager.h" #include "include/errorcode.h" #include "nnacl/common_func.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/conv_common_fp32.h" #include "nnacl/fp32/matmul_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_fp32.h index 62650f23f56..8657f29aa3a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_fp32.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_CONVOLUTION_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class ConvolutionCPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.cc index 367e406fb8b..ab94e61e482 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ #ifdef ENABLE_AVX -#include "src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.h" #include "nnacl/fp32/conv_depthwise_fp32.h" #include "nnacl/fp32/conv_common_fp32.h" #include "nnacl/fp32/conv_1x1_x86_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.h index c7777a2e261..0d06f9d6228 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_slidewindow_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_slidewindow_fp32.h @@ -17,9 +17,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_CONVOLUTION_SLIDEWINDOW_FP32_H_ #ifdef ENABLE_AVX #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class ConvolutionSWCPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_winograd_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_winograd_fp32.cc index b36b260da89..2af1e625c9d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_winograd_fp32.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_winograd_fp32.h" #include "nnacl/fp32/conv_winograd_fp32.h" #include "nnacl/pack.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_winograd_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/convolution_winograd_fp32.h index a13f87c6c09..5765fa3bf6d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/convolution_winograd_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/convolution_winograd_fp32.h @@ -18,11 +18,11 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_CONVOLUTION_WINOGRAD_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/winograd_transform.h" #include "nnacl/base/minimal_filtering_generator.h" #include "nnacl/fp32/conv_winograd_fp32.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #define CONV_INPUT_UNIT_SIZE 8 namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_and_resize_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_and_resize_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/crop_and_resize_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/crop_and_resize_fp32.cc index 0e6414c489c..8a87cded04a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_and_resize_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_and_resize_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/crop_and_resize_fp32.h" +#include "src/litert/kernel/cpu/fp32/crop_and_resize_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/resize_fp32.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_and_resize_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_and_resize_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/crop_and_resize_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/crop_and_resize_fp32.h index 211c68b3fd2..8d4b7aa0dec 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_and_resize_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_and_resize_fp32.h @@ -19,7 +19,7 @@ #include #include "include/errorcode.h" #include "nnacl/resize_parameter.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class CropAndResizeCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/crop_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/crop_fp32.cc index 348de00e4bf..f36ea763603 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_fp32.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/crop_fp32.h" +#include "src/litert/kernel/cpu/fp32/crop_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_fp32.h similarity index 90% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/crop_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/crop_fp32.h index aa156854e8f..db54233c121 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/crop_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/crop_fp32.h @@ -20,9 +20,9 @@ #include "include/errorcode.h" #include "nnacl/fp32/crop_fp32.h" #include "nnacl/crop_parameter.h" -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" -#include "src/runtime/kernel/cpu/base/crop_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/crop_base.h" namespace mindspore::kernel { class CropCPUKernel : public CropBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/cumsum_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/cumsum_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/cumsum_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/cumsum_fp32.cc index 8f9635c40d5..a1a00cbd599 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/cumsum_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/cumsum_fp32.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/cumsum_fp32.h" +#include "src/litert/kernel/cpu/fp32/cumsum_fp32.h" #include "nnacl/fp32/cumsum_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/cumsum_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/cumsum_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/cumsum_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/cumsum_fp32.h index 4d60f660633..ad02c0240dc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/cumsum_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/cumsum_fp32.h @@ -19,7 +19,7 @@ #include #include "include/errorcode.h" #include "nnacl/cumsum_parameter.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore::kernel { class CumSumCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.cc index da45c3789e0..31cea413b2f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.h" +#include "src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.h" #include "include/errorcode.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.h index 2356030ac89..371ffc68e82 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_DECONVOLUTION_DEPTHWISE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_fp32.cc index adcecab788a..633a74cb087 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/deconvolution_fp32.h" -#include "src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.h" -#include "src/runtime/kernel/cpu/fp32/deconvolution_depthwise_fp32.h" +#include "src/litert/kernel/cpu/fp32/deconvolution_fp32.h" +#include "src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.h" +#include "src/litert/kernel/cpu/fp32/deconvolution_depthwise_fp32.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_fp32.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_fp32.h index 31d22de7dcb..ccc2f751fe6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_fp32.h @@ -19,11 +19,11 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "schema/model_generated.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/deconv_fp32.h" #include "nnacl/fp32/matmul_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.cc index 6b78027dae3..e76bd85d911 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.cc @@ -15,7 +15,7 @@ */ #include -#include "src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.h" +#include "src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_MEMORY_FAILED; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.h index 7b68744968f..e73687cf566 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_winograd_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_winograd_fp32.h @@ -19,13 +19,13 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "schema/model_generated.h" #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/fp32/deconv_winograd_fp32.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class DeConvolutionWinogradCPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/depth_to_space_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/depth_to_space_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/depth_to_space_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/depth_to_space_fp32.cc index 057a44075aa..f619dd0ae5e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/depth_to_space_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/depth_to_space_fp32.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/depth_to_space_fp32.h" +#include "src/litert/kernel/cpu/fp32/depth_to_space_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/base/depth_to_space_base.h" #include "nnacl/nnacl_common.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/depth_to_space_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/depth_to_space_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/depth_to_space_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/depth_to_space_fp32.h index 982277fa71c..54060a5a7e2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/depth_to_space_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/depth_to_space_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_DEPTH_TO_SPACE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/depth_to_space_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/detection_post_process_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/detection_post_process_fp32.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/detection_post_process_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/detection_post_process_fp32.cc index 3c4e56d40e9..a9907583053 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/detection_post_process_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/detection_post_process_fp32.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/detection_post_process_fp32.h" +#include "src/litert/kernel/cpu/fp32/detection_post_process_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/int8/quant_dtype_cast_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/detection_post_process_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/detection_post_process_fp32.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/detection_post_process_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/detection_post_process_fp32.h index d5e8d2fb443..0963c082683 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/detection_post_process_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/detection_post_process_fp32.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_DETECTION_POST_PROCESS_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" -#include "src/runtime/kernel/cpu/base/detection_post_process_base.h" +#include "src/litert/kernel/cpu/base/detection_post_process_base.h" #include "nnacl/fp32/detection_post_process_fp32.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/embedding_lookup_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/embedding_lookup_fp32.cc index 0715ab3a625..cfc63630859 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/embedding_lookup_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.h" +#include "src/litert/kernel/cpu/fp32/embedding_lookup_fp32.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/embedding_lookup_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/embedding_lookup_fp32.h index 1c17d15aa5e..58be4aad9c7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/embedding_lookup_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_EMBEDDING_LOOKUP_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/embedding_lookup_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/fill_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/fill_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/fill_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/fill_fp32.cc index 690c092c7e3..a6275687221 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/fill_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/fill_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/fill_fp32.h" +#include "src/litert/kernel/cpu/fp32/fill_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/fill_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/fill_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/fill_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/fill_fp32.h index 2a36c82e25a..964b8031d4c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/fill_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/fill_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_FILL_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/base/fill_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/fullconnection_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/fullconnection_fp32.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/fullconnection_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/fullconnection_fp32.cc index e3492ede1f5..3b3d5b239f4 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/fullconnection_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/fullconnection_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/fullconnection_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/fullconnection_fp32.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/fullconnection_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/fullconnection_fp32.h similarity index 92% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/fullconnection_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/fullconnection_fp32.h index bd4c44cc7f7..f9fb545a3f0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/fullconnection_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/fullconnection_fp32.h @@ -22,25 +22,25 @@ #include "include/errorcode.h" #include "nnacl/intrinsics/ms_simd_cpu_info.h" #include "nnacl/fp32/matmul_fp32.h" -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" #if defined(ENABLE_AVX512) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_avx512.h" #endif #if defined(ENABLE_AVX) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_avx.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_avx.h" #endif #if defined(ENABLE_SSE) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_sse.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_sse.h" #endif #if defined(ENABLE_ARM32) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_arm32.h" #endif #if defined(ENABLE_ARM64) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_arm64.h" #endif namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.cc index 7243e3b0056..cde343544ed 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.h index 6d99bf00b1f..fd022655304 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/fused_batchnorm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/fused_batchnorm_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_FUSED_BATCHNORM_FP32_H_ #include -#include "src/runtime/kernel/cpu/fp32/batchnorm_fp32.h" +#include "src/litert/kernel/cpu/fp32/batchnorm_fp32.h" #include "nnacl/fp32/scale_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gatherNd_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/gatherNd_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gatherNd_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/gatherNd_fp32.cc index 7024048a71b..5b2f0ab27f4 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gatherNd_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gatherNd_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/gatherNd_fp32.h" +#include "src/litert/kernel/cpu/fp32/gatherNd_fp32.h" #include #include #include "schema/model_generated.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gatherNd_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/gatherNd_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gatherNd_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/gatherNd_fp32.h index cc4a13e8627..d1bbe973597 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gatherNd_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gatherNd_fp32.h @@ -20,7 +20,7 @@ #include #include #include "nnacl/fp32/gatherNd_fp32.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_d_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_d_fp32.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gather_d_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/gather_d_fp32.cc index 9f90a2d28e7..32394cef089 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_d_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_d_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/gather_d_fp32.h" +#include "src/litert/kernel/cpu/fp32/gather_d_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_d_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_d_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gather_d_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/gather_d_fp32.h index b85482e10fd..541bebd9c70 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_d_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_d_fp32.h @@ -19,7 +19,7 @@ #include #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/base/gather_base.h" +#include "src/litert/kernel/cpu/base/gather_base.h" namespace mindspore::kernel { class GatherDCPUKernel : public GatherBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gather_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/gather_fp32.cc index 19bfc81dc7a..eb24f999a40 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/gather_fp32.h" +#include "src/litert/kernel/cpu/fp32/gather_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gather_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/gather_fp32.h index 3b47beaf703..10685aa7b35 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gather_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gather_fp32.h @@ -19,7 +19,7 @@ #include #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/base/gather_base.h" +#include "src/litert/kernel/cpu/base/gather_base.h" namespace mindspore::kernel { class GatherCPUKernel : public GatherBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/glu_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/glu_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/glu_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/glu_fp32.cc index 0aec828a30b..d697df0c0e7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/glu_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/glu_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/glu_fp32.h" +#include "src/litert/kernel/cpu/fp32/glu_fp32.h" #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/cpu/base/split_base.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/cpu/base/split_base.h" #include "nnacl/fp32/activation_fp32.h" #include "nnacl/fp32/arithmetic_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/glu_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/glu_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/glu_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/glu_fp32.h index 1822696f648..856c1826803 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/glu_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/glu_fp32.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/op_base.h" #include "nnacl/split_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/group_convolution_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/group_convolution_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/group_convolution_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/group_convolution_fp32.cc index 3c2528fb26c..971d72d1230 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/group_convolution_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/group_convolution_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/group_convolution_fp32.h" -#include "src/runtime/kernel/cpu/fp32/convolution_delegate_fp32.h" +#include "src/litert/kernel/cpu/fp32/group_convolution_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_delegate_fp32.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/group_convolution_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/group_convolution_fp32.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/group_convolution_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/group_convolution_fp32.h index aaea0f3afa5..e41a2971a72 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/group_convolution_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/group_convolution_fp32.h @@ -19,9 +19,9 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/base/group_convolution_base.h" +#include "src/litert/kernel/cpu/base/group_convolution_base.h" namespace mindspore::kernel { class GroupConvolutionFp32CPUKernel : public GroupConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/groupnorm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/groupnorm_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/groupnorm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/groupnorm_fp32.cc index f5c5753cefa..cb7e68c4d38 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/groupnorm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/groupnorm_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/groupnorm_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/groupnorm_fp32.h" +#include "src/litert/kernel_registry.h" #include "src/common/tensor_util.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/groupnorm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/groupnorm_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/groupnorm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/groupnorm_fp32.h index 23f8cdb036a..99340f5ea10 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/groupnorm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/groupnorm_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GROUPNORM_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp32/group_norm_fp32.h" #include "nnacl/fp32/scale_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gru_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/gru_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gru_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/gru_fp32.cc index 93fb6563483..76c558df312 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gru_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gru_fp32.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/gru_fp32.h" +#include "src/litert/kernel/cpu/fp32/gru_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/gru_fp32.h" #include "nnacl/fp32/lstm_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/gru_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/gru_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/gru_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/gru_fp32.h index a2a64d0da54..6db5f0068bc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/gru_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/gru_fp32.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRU_FP32_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRU_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/gru_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/instance_norm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/instance_norm_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/instance_norm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/instance_norm_fp32.cc index 75c019a7d7b..a058c64b272 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/instance_norm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/instance_norm_fp32.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/instance_norm_fp32.h" +#include "src/litert/kernel/cpu/fp32/instance_norm_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/instance_norm_fp32.h" #include "nnacl/fp32/pack_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/instance_norm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/instance_norm_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/instance_norm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/instance_norm_fp32.h index a32d407fb80..36d5e434b6f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/instance_norm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/instance_norm_fp32.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_INSTANCE_NORM_FP32_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_INSTANCE_NORM_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/instance_norm_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/invert_permutation_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/invert_permutation_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/invert_permutation_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/invert_permutation_fp32.cc index 01c6a3044ce..43b07b6571d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/invert_permutation_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/invert_permutation_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/invert_permutation_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/invert_permutation_fp32.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" #include "nnacl/fp32/invert_permutation_fp32.h" #include "mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/invert_permutation_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/invert_permutation_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/invert_permutation_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/invert_permutation_fp32.h index 1fafc8ca87a..4f85455b693 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/invert_permutation_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/invert_permutation_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_INVERT_PERMUTATION_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/errorcode.h" #include "include/context.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.cc index 86b4e73c8bc..12427368ee9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.cc @@ -16,7 +16,7 @@ #include #include -#include "src/runtime/kernel/cpu/fp32/l2_norm_fp32.h" +#include "src/litert/kernel/cpu/fp32/l2_norm_fp32.h" #include "include/errorcode.h" #include "nnacl/fp32/l2_norm_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.h index 81242a1df02..1b1e2dcc5e5 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.h @@ -18,11 +18,11 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_L2_NORM_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/l2_norm_parameter.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/layer_norm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/layer_norm_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/layer_norm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/layer_norm_fp32.cc index f78368ac7a2..90ef89fc5b4 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/layer_norm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/layer_norm_fp32.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/layer_norm_fp32.h" +#include "src/litert/kernel/cpu/fp32/layer_norm_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/layer_norm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/layer_norm_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/layer_norm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/layer_norm_fp32.h index 7eadafaf676..e983b69e7cf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/layer_norm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/layer_norm_fp32.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_LAYER_NORM_FP32_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_LAYER_NORM_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp32/layer_norm_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/local_response_norm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/local_response_norm_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/local_response_norm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/local_response_norm_fp32.cc index 31341b0f273..dc6eba9f860 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/local_response_norm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/local_response_norm_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/local_response_norm_fp32.h" +#include "src/litert/kernel/cpu/fp32/local_response_norm_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/local_response_norm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/local_response_norm_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/local_response_norm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/local_response_norm_fp32.h index d86ac9d6241..d1d45a97131 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/local_response_norm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/local_response_norm_fp32.h @@ -19,7 +19,7 @@ #include #include "nnacl/fp32/local_response_norm_fp32.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class LocalResponseNormCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/log_softmax_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/log_softmax_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/log_softmax_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/log_softmax_fp32.cc index 1e326ebb2b9..1ac4da8d748 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/log_softmax_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/log_softmax_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/log_softmax_fp32.h" +#include "src/litert/kernel/cpu/fp32/log_softmax_fp32.h" #include #include #include "nnacl/fp32/log_softmax_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/log_softmax_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/log_softmax_fp32.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/log_softmax_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/log_softmax_fp32.h index d8b0c560e97..3db7e052995 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/log_softmax_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/log_softmax_fp32.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_LOG_SOFTMAX_FP32_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/softmax_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/softmax_base.h" namespace mindspore::kernel { class LogSoftmaxCPUKernel : public SoftmaxBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/lstm_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/lstm_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/lstm_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/lstm_fp32.cc index 72ee445ae79..0807ac90560 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/lstm_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/lstm_fp32.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/lstm_fp32.h" +#include "src/litert/kernel/cpu/fp32/lstm_fp32.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/pack_fp32.h" #include "nnacl/fp32/matmul_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/lstm_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/lstm_fp32.h similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/lstm_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/lstm_fp32.h index 9440f3ddd00..3b452ad2555 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/lstm_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/lstm_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_LSTM_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/lstm_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32.cc index 416e40fa6f5..ea190ce6334 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/matmul_fp32.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32.h" #include #include "include/errorcode.h" #include "nnacl/fp32/matmul_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::kCHWDimNumber; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32.h similarity index 92% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32.h index 108abd7ff23..36e829647ef 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32.h @@ -21,26 +21,26 @@ #include "nnacl/matmul_parameter.h" #include "nnacl/intrinsics/ms_simd_cpu_info.h" #if defined(ENABLE_AVX512) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_avx512.h" #endif #if defined(ENABLE_AVX) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_avx.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_avx.h" #endif #if defined(ENABLE_SSE) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_sse.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_sse.h" #endif #if defined(ENABLE_ARM32) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_arm32.h" #endif #if defined(ENABLE_ARM64) -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_arm64.h" #endif -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" namespace mindspore::kernel { class MatmulCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm32.cc index 549e4fc1ecd..18ee1b1a861 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm32.cc @@ -15,8 +15,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.h" -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_arm32.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/fp32/pack_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm32.h index 9dcbc8a52ef..a73090b913f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_MATMUL_FP32_ARM32_H_ #ifdef ENABLE_ARM32 #include -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" namespace mindspore::kernel { class MatmulFp32ARM32CPUKernel : public MatmulFp32BaseCPUKernel { public: diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm64.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm64.cc index 150356e8a45..339f8fbe935 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm64.cc @@ -15,9 +15,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_arm64.h" #include -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/fp32/pack_fp32.h" #include "nnacl/fp32/pack_fp32_opt.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.h b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm64.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm64.h index ed0263432ea..3910b33aac1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_arm64.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_arm64.h @@ -19,7 +19,7 @@ #ifdef ENABLE_ARM64 #include -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" namespace mindspore::kernel { class MatmulFp32ARM64CPUKernel : public MatmulFp32BaseCPUKernel { public: diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx.cc index da2a5045317..0b4907ee4f2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx.cc @@ -15,8 +15,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_avx.h" -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_avx.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/fp32/pack_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx.h b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx.h index cb999bce1f8..dbd40c0f897 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx.h @@ -19,7 +19,7 @@ #if defined(ENABLE_AVX) #include -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" namespace mindspore::kernel { class MatmulFp32AVXCPUKernel : public MatmulFp32BaseCPUKernel { public: diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx512.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx512.cc index a53bb11955d..adddc657d90 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx512.cc @@ -15,8 +15,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.h" -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_avx512.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" #include "nnacl/fp32/matmul_avx512_fp32.h" #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/fp32/pack_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.h b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx512.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx512.h index 4c19b5fa91d..d5fe06535b6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_avx512.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_avx512.h @@ -19,7 +19,7 @@ #ifdef ENABLE_AVX512 #include -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" namespace mindspore::kernel { class MatmulFp32AVX512CPUKernel : public MatmulFp32BaseCPUKernel { public: diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.cc index c905181dd0e..ad6dada85fc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" #include #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/fp32/pack_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.h b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.h index 71884e3442c..b5eb2fc50e7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_base.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_base.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_MATMUL_FP32_BASE_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/pack_weight_manager.h" #include "nnacl/matmul_parameter.h" #include "include/errorcode.h" #include "src/common/common.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_sse.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_sse.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_sse.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_sse.cc index d70996fa424..ab65ac060de 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_sse.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_sse.cc @@ -15,8 +15,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_sse.h" -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_sse.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/fp32/pack_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_sse.h b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_sse.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_sse.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_sse.h index 7bcc8bdf752..526b88aa8be 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32_sse.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32_sse.h @@ -19,7 +19,7 @@ #if defined(ENABLE_SSE) #include -#include "src/runtime/kernel/cpu/fp32/matmul_fp32_base.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32_base.h" namespace mindspore::kernel { class MatmulFp32SSECPUKernel : public MatmulFp32BaseCPUKernel { public: diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/nllloss_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/nllloss_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/nllloss_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/nllloss_fp32.cc index 5c532e56a93..239da80a8cc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/nllloss_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/nllloss_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/nllloss_fp32.h" +#include "src/litert/kernel/cpu/fp32/nllloss_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/nllloss_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/nllloss_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/nllloss_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/nllloss_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/nllloss_fp32.h index 0f532d2d6d9..9e3c0be5a7a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/nllloss_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/nllloss_fp32.h @@ -19,7 +19,7 @@ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/nllloss_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/non_max_suppression_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/non_max_suppression_fp32.cc index 469094e1a17..00d63f21e6d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/non_max_suppression_fp32.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.h" +#include "src/litert/kernel/cpu/fp32/non_max_suppression_fp32.h" #include #include #include #include "nnacl/non_max_suppression_parameter.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/non_max_suppression_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/non_max_suppression_fp32.h index a4fe168ef54..7e6b011bc60 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/non_max_suppression_fp32.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/non_max_suppression_parameter.h" using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/nonzero_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/nonzero_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/nonzero_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/nonzero_fp32.cc index a512877ee3b..7daf19e2a83 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/nonzero_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/nonzero_fp32.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/nonzero_fp32.h" +#include "src/litert/kernel/cpu/fp32/nonzero_fp32.h" #include "include/errorcode.h" #include "nnacl/op_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "src/tensor.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/nonzero_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/nonzero_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/nonzero_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/nonzero_fp32.h index 39f80756c88..2f9b81db738 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/nonzero_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/nonzero_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_NONZERO_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class NonZeroCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/pad_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/pad_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/pad_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/pad_fp32.cc index 3807d5fccd4..c68b8c64757 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/pad_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/pad_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/pad_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/pad_fp32.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/pad_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/pad_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/pad_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/pad_fp32.h index 6fedf08efb5..d4d4130c78d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/pad_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/pad_fp32.h @@ -24,8 +24,8 @@ #include "nnacl/fp32/pad_fp32.h" #include "nnacl/errorcode.h" #include "nnacl/common_func.h" -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" namespace mindspore::kernel { class PadCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/pooling_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/pooling_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/pooling_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/pooling_fp32.cc index 152a6ab7d99..f352d5b6899 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/pooling_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/pooling_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/pooling_fp32.h" +#include "src/litert/kernel/cpu/fp32/pooling_fp32.h" #include #include "nnacl/fp32/pooling_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/pooling_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/pooling_fp32.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/pooling_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/pooling_fp32.h index 1de22a0ed66..ef5a00561c9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/pooling_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/pooling_fp32.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_POOLING_FP32_H_ #include -#include "src/runtime/kernel/cpu/base/pooling_base.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/kernel/cpu/base/pooling_base.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class PoolingCPUKernel : public PoolingBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/power_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/power_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/power_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/power_fp32.cc index 6144496085a..811ea3a0d89 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/power_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/power_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/power_fp32.h" +#include "src/litert/kernel/cpu/fp32/power_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/power_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/power_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/power_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/power_fp32.h index 6b2f69bcdbb..edd3f5b730c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/power_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/power_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_POWER_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp32/power_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/prelu_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/prelu_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/prelu_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/prelu_fp32.cc index 83483142633..f9636bccd79 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/prelu_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/prelu_fp32.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/prelu_fp32.h" +#include "src/litert/kernel/cpu/fp32/prelu_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/prelu_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/prelu_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/prelu_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/prelu_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/prelu_fp32.h index 43a72417c16..9b61d0f4438 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/prelu_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/prelu_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_PRELU_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/prelu_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/ragged_range_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/ragged_range_fp32.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/ragged_range_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/ragged_range_fp32.cc index 63d34f75087..a8b28dedacd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/ragged_range_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/ragged_range_fp32.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/ragged_range_fp32.h" +#include "src/litert/kernel/cpu/fp32/ragged_range_fp32.h" #include #include "nnacl/fp32/ragged_range_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/ragged_range_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/ragged_range_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/ragged_range_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/ragged_range_fp32.h index b33c6856e76..f2a2450adf4 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/ragged_range_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/ragged_range_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_RAGGED_RANGE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class RaggedRangeCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/range_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/range_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/range_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/range_fp32.cc index be49a511542..c4f2f1d1bb2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/range_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/range_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/range_fp32.h" +#include "src/litert/kernel/cpu/fp32/range_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/range_fp32.h" #ifdef ENABLE_FP16 diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/range_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/range_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/range_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/range_fp32.h index f05a83fb7cd..53677201732 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/range_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/range_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_RANGE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class RangeCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/rank_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/rank_fp32.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/rank_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/rank_fp32.cc index 2ed45cc6f59..8770cf2fd62 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/rank_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/rank_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/rank_fp32.h" +#include "src/litert/kernel/cpu/fp32/rank_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/rank_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/rank_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/rank_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/rank_fp32.h index c76ea95890c..f3a170d3de7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/rank_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/rank_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_RANK_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class RankCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/reduce_fp32.cc index b4625fba4cf..8ee2c84484a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_fp32.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/reduce_fp32.h" +#include "src/litert/kernel/cpu/fp32/reduce_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/reduce_fp32.h" -#include "src/runtime/kernel/cpu/base/reduce_base.h" +#include "src/litert/kernel/cpu/base/reduce_base.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/reduce_fp32.h index 274285a886e..d21b2c2ac7b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_fp32.h @@ -18,10 +18,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_REDUCE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/reduce_fp32.h" -#include "src/runtime/kernel/cpu/base/reduce_base.h" +#include "src/litert/kernel/cpu/base/reduce_base.h" using mindspore::schema::ReduceMode; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_scatter_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_scatter_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_scatter_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/reduce_scatter_fp32.cc index 7bd4640c088..4e72473ca67 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_scatter_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_scatter_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/reduce_scatter_fp32.h" +#include "src/litert/kernel/cpu/fp32/reduce_scatter_fp32.h" #include "schema/ops_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_scatter_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_scatter_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_scatter_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/reduce_scatter_fp32.h index b6f8a793172..909d751d104 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reduce_scatter_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reduce_scatter_fp32.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/reduce_scatter_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/relative_position_attention_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/relative_position_attention_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/relative_position_attention_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/relative_position_attention_fp32.cc index 20045199361..c10dab26148 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/relative_position_attention_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/relative_position_attention_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/relative_position_attention_fp32.h" +#include "src/litert/kernel/cpu/fp32/relative_position_attention_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/matmul_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/relative_position_attention_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/relative_position_attention_fp32.h similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/relative_position_attention_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/relative_position_attention_fp32.h index c72c79a923d..1c73c94b13c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/relative_position_attention_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/relative_position_attention_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_RELATIVE_POSITION_ATTENTION_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/attention_fp32.h" #include "nnacl/matmul_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/resize_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/resize_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/resize_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/resize_fp32.cc index c413ff0fef9..04b5c0cb388 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/resize_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/resize_fp32.cc @@ -16,9 +16,9 @@ #include #include -#include "src/runtime/kernel/cpu/fp32/resize_fp32.h" +#include "src/litert/kernel/cpu/fp32/resize_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/resize_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/resize_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/resize_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/resize_fp32.h index 2b21c511ee5..f7b36b5c4fa 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/resize_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/resize_fp32.h @@ -20,8 +20,8 @@ #include #include "include/errorcode.h" #include "nnacl/fp32/resize_fp32.h" -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/resize_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/resize_base.h" struct ResizeCoordinate { int *x_lefts_; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/reverse_fp32.cc index cf07ddd0d1f..18c4443f0c0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_fp32.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/reverse_fp32.h" +#include "src/litert/kernel/cpu/fp32/reverse_fp32.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/reverse_fp32.h" #include "nnacl/errorcode.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/reverse_fp32.h index 05d85d66350..00c9b4fc310 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_REVERSE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_sequence_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_sequence_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_sequence_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/reverse_sequence_fp32.cc index 0584600ab5c..389800fcc75 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_sequence_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_sequence_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/reverse_sequence_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/reverse_sequence_fp32.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_sequence_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_sequence_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_sequence_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/reverse_sequence_fp32.h index 3fb5e44e2af..a7b28818ba7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/reverse_sequence_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/reverse_sequence_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_REVERSE_SEQUENCE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/reverse_sequence_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/roi_pooling_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/roi_pooling_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/roi_pooling_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/roi_pooling_fp32.cc index 9b5919819e1..a6f718b2599 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/roi_pooling_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/roi_pooling_fp32.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/roi_pooling_fp32.h" +#include "src/litert/kernel/cpu/fp32/roi_pooling_fp32.h" #include "nnacl/fp32/roi_pooling_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/roi_pooling_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/roi_pooling_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/roi_pooling_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/roi_pooling_fp32.h index e5eca48d14e..f0a029052bf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/roi_pooling_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/roi_pooling_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_ROI_POOLING_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/roi_pooling_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/scale_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/scale_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/scale_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/scale_fp32.cc index dd84ded7f70..5a79ddc7113 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/scale_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/scale_fp32.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/scale_fp32.h" +#include "src/litert/kernel/cpu/fp32/scale_fp32.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/scale_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/scale_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/scale_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/scale_fp32.h index 09e7a41a765..0736dbef513 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/scale_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/scale_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SCALE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/scale_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/scatter_nd_update_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/scatter_nd_update_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/scatter_nd_update_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/scatter_nd_update_fp32.cc index 7a080732010..dcdc5582823 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/scatter_nd_update_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/scatter_nd_update_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/scatter_nd_update_fp32.h" +#include "src/litert/kernel/cpu/fp32/scatter_nd_update_fp32.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/scatter_nd_update_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/scatter_nd_update_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/scatter_nd_update_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/scatter_nd_update_fp32.h index d5c37a13337..83fdb0f1199 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/scatter_nd_update_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/scatter_nd_update_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SCATTER_ND_UPDATE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/base/scatter_nd_base.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/shape_fp32.cc index f6acb9ecfac..17332940d20 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/shape_fp32.h" +#include "src/litert/kernel/cpu/fp32/shape_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/shape_fp32.h index 8cf82275409..14be8949331 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SHAPE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ShapeCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fusion_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fusion_fp32.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fusion_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/shape_fusion_fp32.cc index 367d827cc8b..f0c16a57edf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fusion_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fusion_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/shape_fusion_fp32.h" +#include "src/litert/kernel/cpu/fp32/shape_fusion_fp32.h" #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fusion_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fusion_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fusion_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/shape_fusion_fp32.h index 9f36a096ac9..be8dcfdcda8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fusion_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/shape_fusion_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SHAPE_FUSION_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ShapeFusionCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/size_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/size_fp32.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/size_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/size_fp32.cc index bb04c392e13..9e9c738f25d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/size_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/size_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/size_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/size_fp32.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/size_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/size_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/size_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/size_fp32.h index 80ab0e86714..662f6250a82 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/size_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/size_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SIZE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/invert_permutation_fp32.h" #include "include/errorcode.h" #include "include/context.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/softmax_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/softmax_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/softmax_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/softmax_fp32.cc index b1bac23f6cc..6cd0aff7d5b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/softmax_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/softmax_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/softmax_fp32.h" +#include "src/litert/kernel/cpu/fp32/softmax_fp32.h" #include #include #include "nnacl/fp32/softmax_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/softmax_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/softmax_fp32.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/softmax_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/softmax_fp32.h index 74390c4013d..731f813c498 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/softmax_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/softmax_fp32.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SOFTMAX_FP32_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/softmax_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/softmax_base.h" namespace mindspore::kernel { class SoftmaxCPUKernel : public SoftmaxBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_batch_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_batch_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_batch_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/space_to_batch_fp32.cc index deb4b5a740a..dc2cd964125 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_batch_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_batch_fp32.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/space_to_batch_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/space_to_batch_fp32.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_batch_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_batch_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_batch_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/space_to_batch_fp32.h index 956ac3f0489..1ea041d2473 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_batch_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_batch_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SPACE_TO_BATCH_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/space_to_batch_fp32.h" #include "nnacl/common_func.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_depth_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_depth_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_depth_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/space_to_depth_fp32.cc index 633d360b126..166e1394fd8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_depth_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_depth_fp32.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/space_to_depth_fp32.h" +#include "src/litert/kernel/cpu/fp32/space_to_depth_fp32.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/base/space_to_depth_base.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_depth_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_depth_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_depth_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/space_to_depth_fp32.h index f3fab36daba..6f92f7b920c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/space_to_depth_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/space_to_depth_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SPACE_TO_DEPTH_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/space_to_depth_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/sparse_to_dense_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/sparse_to_dense_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/sparse_to_dense_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/sparse_to_dense_fp32.cc index 9ee9d81eacb..c69ada45c0f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/sparse_to_dense_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/sparse_to_dense_fp32.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/sparse_to_dense_fp32.h" +#include "src/litert/kernel/cpu/fp32/sparse_to_dense_fp32.h" #include #include #include "include/errorcode.h" @@ -23,7 +23,7 @@ #endif #include "schema/model_generated.h" #include "schema/ops_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/sparse_to_dense_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/sparse_to_dense_fp32.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/sparse_to_dense_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/sparse_to_dense_fp32.h index bcd9e7657c7..66ed2f02e55 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/sparse_to_dense_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/sparse_to_dense_fp32.h @@ -17,11 +17,11 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SPARSE_TO_DENSE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp32/sparse_to_dense_fp32.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/splice_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/splice_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/splice_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/splice_fp32.cc index 47a41681302..88b87f5b18d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/splice_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/splice_fp32.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/splice_fp32.h" +#include "src/litert/kernel/cpu/fp32/splice_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" #include "nnacl/fp32/splice_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/splice_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/splice_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/splice_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/splice_fp32.h index 90ba18ef1e8..058196dfee4 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/splice_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/splice_fp32.h @@ -17,7 +17,7 @@ #ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SPLICE_FP32_H_ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_SPLICE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/splice_parameter.h" namespace mindspore::kernel { class SpliceCPUKernel final : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/topk_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/topk_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/topk_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/topk_fp32.cc index 94554ce217b..f4c884a5a5a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/topk_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/topk_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/topk_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/topk_fp32.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/topk_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/topk_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/topk_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/topk_fp32.h index 1a8271dff0f..02c553221f4 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/topk_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/topk_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_TOPK_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/topk_fp32.h" #ifdef ENABLE_FP16 #include "nnacl/fp16/topk_fp16.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_fp32.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/transpose_fp32.cc index 94f08fde142..eb45d157291 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_fp32.cc @@ -15,8 +15,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/transpose_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/transpose_fp32.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/transpose_fp32.h" #include "nnacl/fp32/pack_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/transpose_fp32.h index 2e74a731bab..6f3b8128779 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_fp32.h @@ -18,7 +18,7 @@ #ifndef BFC_MEMORY #include -#include "src/runtime/kernel/cpu/base/transpose_base.h" +#include "src/litert/kernel/cpu/base/transpose_base.h" namespace mindspore::kernel { class TransposeCPUKernel : public TransposeBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_server_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_server_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_server_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/transpose_server_fp32.cc index c41d8c5ddb8..238d85437f8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_server_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_server_fp32.cc @@ -14,8 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/transpose_server_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/transpose_server_fp32.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/pack_fp32.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_server_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_server_fp32.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_server_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/transpose_server_fp32.h index 1891071f809..ae711373f15 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/transpose_server_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/transpose_server_fp32.h @@ -18,7 +18,7 @@ #ifdef BFC_MEMORY #include -#include "src/runtime/kernel/cpu/base/transpose_base.h" +#include "src/litert/kernel/cpu/base/transpose_base.h" #include "nnacl/fp32/transpose_server_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/uniform_real_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/uniform_real_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/uniform_real_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/uniform_real_fp32.cc index 495dec7607a..2318a821a98 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/uniform_real_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/uniform_real_fp32.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/uniform_real_fp32.h" +#include "src/litert/kernel/cpu/fp32/uniform_real_fp32.h" #include #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/uniform_real_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/uniform_real_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/uniform_real_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/uniform_real_fp32.h index e7acd62bb34..f6cada1d44d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/uniform_real_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/uniform_real_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_UNIFORM_REAL_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/random_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/unique_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/unique_fp32.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/unique_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/unique_fp32.cc index 852315b70d7..c34830ba74d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/unique_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/unique_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/unique_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/unique_fp32.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/unique_fp32.h" #ifdef ENABLE_FP16 diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/unique_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/unique_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/unique_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/unique_fp32.h index 5699eff70e8..bf1e09692ac 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/unique_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/unique_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_UNIQUE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class UniqueCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/unstack_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/unstack_fp32.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/unstack_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/unstack_fp32.cc index e4b472a575c..3360ac18260 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/unstack_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/unstack_fp32.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/unstack_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/unstack_fp32.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/unstack_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/unstack_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/unstack_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/unstack_fp32.h index c8d05b6938b..21212a74767 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/unstack_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/unstack_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_UNSTACK_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/base/unstack_base.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/where_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/where_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/where_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/where_fp32.cc index e017dbb9166..af5ee64ec3f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/where_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/where_fp32.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/where_fp32.h" +#include "src/litert/kernel/cpu/fp32/where_fp32.h" #include #include "schema/model_generated.h" #include "nnacl/fp32/where_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/common_func.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/where_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/where_fp32.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/where_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/where_fp32.h index 17435f8aca7..1747f1337a2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/where_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/where_fp32.h @@ -17,10 +17,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_WHERE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/fp32/where_fp32.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/zeroslike_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32/zeroslike_fp32.cc similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/zeroslike_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32/zeroslike_fp32.cc index 19886d79091..664cc4de9fc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/zeroslike_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/zeroslike_fp32.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32/zeroslike_fp32.h" +#include "src/litert/kernel/cpu/fp32/zeroslike_fp32.h" #include "schema/model_generated.h" #include "nnacl/base/zeroslike_base.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32/zeroslike_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32/zeroslike_fp32.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32/zeroslike_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32/zeroslike_fp32.h index 8d68b5d27d9..ffbe23cbe61 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32/zeroslike_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32/zeroslike_fp32.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_ZEROSLIKE_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ZerosLikeCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/activation_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/activation_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/activation_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/activation_grad.cc index c52247198c3..1304df72478 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/activation_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/activation_grad.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/activation_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/activation_grad.h" #include "nnacl/fp32_grad/activation_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/activation_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/activation_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/activation_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/activation_grad.h index f9d93e6f7ce..a5be9df8700 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/activation_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/activation_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_ACTIVATION_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/activation_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/adam.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/adam.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/adam.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/adam.cc index 9f0f2130672..c0585d54e6b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/adam.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/adam.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/adam.h" +#include "src/litert/kernel/cpu/fp32_grad/adam.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/adam_fp32.h" #include "plugin/device/cpu/kernel/nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/adam.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/adam.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/adam.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/adam.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/apply_momentum.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/apply_momentum.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/apply_momentum.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/apply_momentum.cc index 9d928d3463f..fcb98f702ce 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/apply_momentum.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/apply_momentum.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/apply_momentum.h" +#include "src/litert/kernel/cpu/fp32_grad/apply_momentum.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/apply_momentum.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/apply_momentum.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/apply_momentum.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/apply_momentum.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_grad.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_grad.cc index 6ee8fad8c8f..6916c7b9968 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/arithmetic_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32_grad/reduce_grad.h" #include "nnacl/fp32_grad/arithmetic_grad.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_grad.h similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_grad.h index 66ed290041e..d690915968a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_ARITHMETIC_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/arithmetic_fp32.h" #include "schema/model_generated.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_self_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_self_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_self_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_self_grad.cc index 253ac5e435c..6d86a7d1664 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_self_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_self_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/arithmetic_self_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/arithmetic_self_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/arithmetic_fp32.h" #include "nnacl/fp32_grad/arithmetic_grad.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_self_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_self_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_self_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_self_grad.h index c2c8e9921c7..5184f72db62 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/arithmetic_self_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/arithmetic_self_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_ARITHMETIC_SELF_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "schema/model_generated.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/assign.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/assign.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/assign.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/assign.cc index 6c57fa14192..73c9c39a497 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/assign.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/assign.cc @@ -15,9 +15,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/assign.h" +#include "src/litert/kernel/cpu/fp32_grad/assign.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/assign.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/assign.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/assign.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/assign.h index 1db1bef27f9..6d42ac377cc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/assign.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/assign.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_ASSIGN_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32_grad/optimizer.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bias_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bias_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bias_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/bias_grad.cc index 99c2b43b3ff..b3d590f12af 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bias_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bias_grad.cc @@ -15,9 +15,9 @@ */ #include -#include "src/runtime/kernel/cpu/fp32_grad/bias_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/bias_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bias_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bias_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bias_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/bias_grad.h index c7db4a4f04a..056c88f69ee 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bias_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bias_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_BIAS_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/arithmetic_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bn_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bn_grad.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bn_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/bn_grad.cc index 879df2616e1..172a4b7b825 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bn_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bn_grad.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/bn_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/bn_grad.h" #include #include #include @@ -22,7 +22,7 @@ #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32_grad/batch_norm.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bn_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bn_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bn_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/bn_grad.h index 3eb76f0fd47..5abd8d9e5cd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/bn_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/bn_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_BN_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution.cc index be8b28b6836..cb4061769a8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/convolution.h" +#include "src/litert/kernel/cpu/fp32_grad/convolution.h" #include "nnacl/fp32_grad/pack_ext.h" #include "nnacl/fp32_grad/gemm.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution.h index 418d578836c..e13e69cb298 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_CONVOLUTION_H_ #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore::kernel { class ConvolutionTrainCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.cc index 046ad37527f..d3f78fff725 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.h" +#include "src/litert/kernel_registry.h" #include "nnacl/pack.h" #include "nnacl/fp32_grad/convolution_grad_filter.h" #include "nnacl/fp32_grad/pack_ext.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.h index 5d6b3ae8dde..516c61bcbb2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_CONVOLUTION_GRAD_FILTER_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ConvolutionGradFilterCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_input.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_input.cc index 46c1aa00bb8..ba6e2d4c1a5 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_input.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/convolution_grad_input.h" +#include "src/litert/kernel_registry.h" #include "nnacl/pack.h" #include "nnacl/fp32_grad/pack_ext.h" #include "nnacl/fp32_grad/gemm.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_input.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_input.h index 4138f7a06d4..5ab29a8e1cd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_input.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_CONVOLUTION_GRAD_INPUT_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ConvolutionGradInputCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.cc index 7d6cdca5a1c..3f7b5749fee 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.h" +#include "src/litert/kernel_registry.h" #include "nnacl/pack.h" #include "nnacl/fp32_grad/pack_ext.h" #include "nnacl/fp32_grad/gemm.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.h index f549dcb9de2..3216fc8f3d0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_DECONVOLUTION_GRAD_FILTER_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class DeConvolutionGradFilterCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout.cc index 405aca319b9..a96f21baf69 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout.cc @@ -15,9 +15,9 @@ */ #include -#include "src/runtime/kernel/cpu/fp32_grad/dropout.h" +#include "src/litert/kernel/cpu/fp32_grad/dropout.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32_grad/dropout_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout.h index 55fef223e7b..9fc3d63d2cf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class DropoutCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout_grad.cc index bbc85c859ca..e782e9eb13e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout_grad.cc @@ -15,10 +15,10 @@ */ #include -#include "src/runtime/kernel/cpu/fp32_grad/dropout_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/dropout_grad.h" #include "nnacl/fp32_grad/dropout_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32_grad/dropout_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout_grad.h index f51e2a9afb5..8b5f22a0289 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/dropout_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/dropout_grad.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_DROPOUT_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class DropoutGradCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/layernorm_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/layernorm_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/layernorm_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/layernorm_grad.cc index 1ec2fa826a3..9870fc00dc2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/layernorm_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/layernorm_grad.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/layernorm_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/layernorm_grad.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32_grad/layernorm_grad.h" #include "nnacl/fp32_grad/layernormgrad_parameter.h" #include "nnacl/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/layernorm_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/layernorm_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/layernorm_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/layernorm_grad.h index a1cfa2212ac..4aba8435c5a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/layernorm_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/layernorm_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_LAYERNORM_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_data_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_data_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_data_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_data_fp32.cc index b6da9d0b935..afbc0902d90 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_data_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_data_fp32.cc @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h" +#include "src/litert/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h" #include #include #include #include "utils/ms_utils.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/lstm_fp32.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h index a9169ec4b7f..31311d54c31 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_data_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_LSTM_GRAD_DATA_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32_grad/lstm_grad_fp32.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_fp32.cc index f57c150be65..7aeae88abb2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_fp32.cc @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/lstm_grad_fp32.h" +#include "src/litert/kernel/cpu/fp32_grad/lstm_grad_fp32.h" #include #include #include #include "utils/ms_utils.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/lstm_fp32.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_fp32.h index 61d64d75004..f88238ff728 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_LSTM_GRAD_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32_grad/lstm_grad_fp32.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.cc index 9ff9750e99e..cc6101c882b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.cc @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h" +#include "src/litert/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h" #include #include #include "utils/ms_utils.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/lstm_fp32.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h index e1681c9475e..4ed784d4149 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/lstm_grad_weight_fp32.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_LSTM_GRAD_WEIGHT_FP32_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32_grad/lstm_grad_fp32.h" namespace mindspore { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/make_tuple.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/make_tuple.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/make_tuple.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/make_tuple.h index b0c7c789cbe..190907e14e3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/make_tuple.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/make_tuple.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_MAKE_TUPLE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" -#include "src/runtime/kernel/cpu/nnacl/fp32/arithmetic.h" +#include "src/litert/kernel/cpu/nnacl/fp32/arithmetic.h" namespace mindspore::kernel { class MakeTupleCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/neg_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/neg_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/neg_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/neg_grad.cc index 8f99334937d..7947a288b43 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/neg_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/neg_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/neg_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/neg_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/arithmetic_self_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/neg_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/neg_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/neg_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/neg_grad.h index 77667e37563..55c171e23af 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/neg_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/neg_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_NEG_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "schema/model_generated.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/nllloss_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/nllloss_grad.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/nllloss_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/nllloss_grad.cc index cdda35066bd..93ba99ff71f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/nllloss_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/nllloss_grad.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/nllloss_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/nllloss_grad.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32_grad/nllloss_grad_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/nllloss_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/nllloss_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/nllloss_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/nllloss_grad.h index 459ee1d5c2b..17a1b0922d8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/nllloss_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/nllloss_grad.h @@ -19,7 +19,7 @@ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/nllloss_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/pooling_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/pooling_grad.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/pooling_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/pooling_grad.cc index 139c7fd6049..da951efdba1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/pooling_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/pooling_grad.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/pooling_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/pooling_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/pooling_fp32.h" #include "nnacl/fp32_grad/pooling_grad.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/pooling_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/pooling_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/pooling_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/pooling_grad.h index 07dce5f2c0b..22620bfdffa 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/pooling_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/pooling_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_POOLING_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { using mindspore::schema::PadMode; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/power_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/power_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/power_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/power_grad.cc index 1ff4452e8c1..124381776ae 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/power_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/power_grad.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/power_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/power_grad.h" #include "plugin/device/cpu/kernel/nnacl/op_base.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/arithmetic_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/power_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/power_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/power_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/power_grad.h index d6007bb85b7..191f2db9eda 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/power_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/power_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_POWER_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/power_parameter.h" #include "nnacl/fp32/power_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/resize_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/resize_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/resize_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/resize_grad.cc index 86f7edf5173..89d8b4b0e9e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/resize_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/resize_grad.cc @@ -15,11 +15,11 @@ */ #include -#include "src/runtime/kernel/cpu/fp32_grad/resize_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/resize_grad.h" #include "nnacl/fp32_grad/resize_grad.h" #include "nnacl/errorcode.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/resize_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/resize_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/resize_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/resize_grad.h index e951c825753..802d8c9fa60 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/resize_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/resize_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_RESIZE_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ResizeGradCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sgd.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sgd.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sgd.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sgd.cc index 21416ad0cb8..761e186d96e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sgd.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sgd.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/sgd.h" +#include "src/litert/kernel/cpu/fp32_grad/sgd.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sgd.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sgd.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sgd.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sgd.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.cc index 11d2bb9604a..27d4a964032 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h index 8801ec06dab..04a29b576a3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_SIGMOID_CROSS_ENTROPY_WITH_LOGITS_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class SigmoidCrossEntropyWithLogitsCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.cc index ec2e42c4c07..1cb845992ef 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h index dbd9512037b..368457ebaf1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sigmoid_cross_entropy_with_logits_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_SIGMOID_CROSS_ENTROPY_WITH_LOGITS_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class SigmoidCrossEntropyWithLogitsGradCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss.cc index 4e683a40c0d..95f858d37cb 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/smooth_l1_loss.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss.h index 5b22d7ad038..f4560c53996 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_SMOOTH_L1_LOSS_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32_grad/smooth_l1_loss.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss_grad.cc index ea3b2a8a2a4..363f77deb16 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss_grad.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h index a43a30a0921..d33b758a97b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/smooth_l1_loss_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_SMOOTH_L1_LOSS_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32_grad/smooth_l1_loss.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.cc index 7a364759eb2..7987a200029 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.cc @@ -15,11 +15,11 @@ */ #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/softmax_parameter.h" #include "nnacl/fp32/softmax_fp32.h" #include "nnacl/fp32_grad/softmax_cross_entropy_with_logits.h" -#include "src/runtime/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.h" +#include "src/litert/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_cross_entropy_with_logits.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_grad.cc index c57580968f8..70942c36e3e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_grad.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/softmax_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/softmax_grad.h" #include #include #include "nnacl/fp32_grad/softmax_grad.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_grad.h index d305b74a7ab..be44c194d29 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_grad.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_SOFTMAX_GRAD_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/softmax_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.cc index 83adbd1acde..5c79a13d16a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.cc @@ -15,11 +15,11 @@ */ #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/softmax_parameter.h" #include "nnacl/fp32/softmax_fp32.h" #include "nnacl/fp32_grad/softmax.h" -#include "src/runtime/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h" +#include "src/litert/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/strided_slice_grad.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/strided_slice_grad.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/strided_slice_grad.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/strided_slice_grad.cc index 8102ce4d2d9..910946582dc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/strided_slice_grad.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/strided_slice_grad.cc @@ -15,11 +15,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/strided_slice_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/strided_slice_grad.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32_grad/strided_slice_grad.h" #include "src/common/ops/populate/strided_slice_populate.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/strided_slice_grad.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/strided_slice_grad.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/strided_slice_grad.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/strided_slice_grad.h index ec6a19a074d..25d6f8551d9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/strided_slice_grad.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/strided_slice_grad.h @@ -19,7 +19,7 @@ #include #include "nnacl/fp32_grad/strided_slice_grad.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class StridedSliceGradCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/unsorted_segment_sum.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/unsorted_segment_sum.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/unsorted_segment_sum.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/unsorted_segment_sum.cc index f3d1f2f4af8..0bc80593517 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/unsorted_segment_sum.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/unsorted_segment_sum.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_grad/unsorted_segment_sum.h" +#include "src/litert/kernel/cpu/fp32_grad/unsorted_segment_sum.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/base/unsorted_segment_sum_base.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/unsorted_segment_sum.h b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/unsorted_segment_sum.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_grad/unsorted_segment_sum.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_grad/unsorted_segment_sum.h index e1e7e68658a..7bac2af1f6e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_grad/unsorted_segment_sum.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_grad/unsorted_segment_sum.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_FP32_GRAD_UNSORTED_SEGMENT_SUM_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class UnsortedSegmentSumCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.cc b/mindspore/lite/src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.cc rename to mindspore/lite/src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.cc index 2cbafea1c6f..ab6c2b55ee0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.cc +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h" +#include "src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h" #include #include #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #ifdef ENABLE_ARM64 #include #endif diff --git a/mindspore/lite/src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h b/mindspore/lite/src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h rename to mindspore/lite/src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h index faf22c480da..9475cad99ee 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h +++ b/mindspore/lite/src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h @@ -19,7 +19,7 @@ #include #include "nnacl/matmul_parameter.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/transpose_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/activation_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/activation_int8.cc similarity index 90% rename from mindspore/lite/src/runtime/kernel/cpu/int8/activation_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/activation_int8.cc index c6ed510f396..7c2b69152a1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/activation_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/activation_int8.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/relux_int8.h" -#include "src/runtime/kernel/cpu/int8/hswish_int8.h" -#include "src/runtime/kernel/cpu/int8/sigmoid_int8.h" -#include "src/runtime/kernel/cpu/int8/tanh_int8.h" -#include "src/runtime/kernel/cpu/int8/leaky_relu_int8.h" +#include "src/litert/kernel/cpu/int8/relux_int8.h" +#include "src/litert/kernel/cpu/int8/hswish_int8.h" +#include "src/litert/kernel/cpu/int8/sigmoid_int8.h" +#include "src/litert/kernel/cpu/int8/tanh_int8.h" +#include "src/litert/kernel/cpu/int8/leaky_relu_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/add_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/add_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/add_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/add_int8.cc index 5b2af5ec30a..b077f2aa682 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/add_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/add_int8.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/add_int8.h" +#include "src/litert/kernel/cpu/int8/add_int8.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "src/common/file_utils.h" #include "src/common/log_util.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/add_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/add_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/add_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/add_int8.h index 70075aea174..b4f62e99ea1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/add_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/add_int8.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/add_int8.h" #include "nnacl/arithmetic.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/argminmax_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/argminmax_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/argminmax_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/argminmax_int8.cc index 5198d8fa000..b43dc57ea39 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/argminmax_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/argminmax_int8.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/argminmax_int8.h" +#include "src/litert/kernel/cpu/int8/argminmax_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/argminmax_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/argminmax_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/argminmax_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/argminmax_int8.h index 24367b5f50d..5050a141bea 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/argminmax_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/argminmax_int8.h @@ -21,7 +21,7 @@ #include "nnacl/int8/arg_min_max_int8.h" #include "nnacl/common_func.h" #include "include/errorcode.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class ArgMinMaxInt8CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_int8.cc index a90b8e3ca0b..f9be35c00bb 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_int8.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/arithmetic_int8.h" -#include "src/runtime/kernel/cpu/int8/add_int8.h" -#include "src/runtime/kernel/cpu/int8/mul_int8.h" +#include "src/litert/kernel/cpu/int8/arithmetic_int8.h" +#include "src/litert/kernel/cpu/int8/add_int8.h" +#include "src/litert/kernel/cpu/int8/mul_int8.h" #include "nnacl/arithmetic.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_int8.h index 1d005c3af68..f25a928ebaf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_ARITHMETIC_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "schema/model_generated.h" #include "nnacl/int8/arithmetic_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_self_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_self_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_self_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_self_int8.cc index 5e94b47704f..5e32e5c08f8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_self_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_self_int8.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/arithmetic_self_int8.h" +#include "src/litert/kernel/cpu/int8/arithmetic_self_int8.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_self_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_self_int8.h similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_self_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_self_int8.h index 160aae5d26b..4b81f592912 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/arithmetic_self_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/arithmetic_self_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_ARITHMETIC_SELF_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/arithmetic_self_parameter.h" #include "nnacl/int8/arithmetic_self_int8.h" #include "schema/model_generated.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/batch_to_space_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/batch_to_space_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/batch_to_space_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/batch_to_space_int8.cc index 9778ec2c32c..c3579bda505 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/batch_to_space_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/batch_to_space_int8.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/batch_to_space_int8.h" +#include "src/litert/kernel/cpu/int8/batch_to_space_int8.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/batch_to_space_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/batch_to_space_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/batch_to_space_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/batch_to_space_int8.h index ae140583090..2eb5856a4b1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/batch_to_space_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/batch_to_space_int8.h @@ -21,7 +21,7 @@ #include "nnacl/batch_to_space.h" #include "nnacl/base/batch_to_space_base.h" #include "nnacl/int8/batch_to_space_int8.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class BatchToSpaceInt8CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/batchnorm_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/batchnorm_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/batchnorm_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/batchnorm_int8.cc index 9e4d8a518bc..c30e7bd22dc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/batchnorm_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/batchnorm_int8.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/batchnorm_int8.h" +#include "src/litert/kernel/cpu/int8/batchnorm_int8.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/batchnorm_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/batchnorm_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/batchnorm_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/batchnorm_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/batchnorm_int8.h index cbf6f8746e4..e65f728a760 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/batchnorm_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/batchnorm_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_BATCHNORM_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/int8/batchnorm_int8.h" #include "nnacl/batchnorm_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/concat_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/concat_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/concat_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/concat_int8.cc index ce155bac87a..0fb7ce333f1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/concat_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/concat_int8.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/concat_int8.h" +#include "src/litert/kernel/cpu/int8/concat_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/concat_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/concat_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/concat_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/concat_int8.h index 73d45f1fd18..690af401625 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/concat_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/concat_int8.h @@ -21,7 +21,7 @@ #include #include "nnacl/int8/concat_int8.h" #include "include/errorcode.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_1x1_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_1x1_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_1x1_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_1x1_int8.cc index 0839d101419..92c88570c84 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_1x1_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_1x1_int8.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/convolution_1x1_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_1x1_int8.h" #include "src/common/file_utils.h" -#include "src/runtime/kernel/cpu/int8/opt_op_handler.h" +#include "src/litert/kernel/cpu/int8/opt_op_handler.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_MEMORY_FAILED; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_1x1_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_1x1_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_1x1_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_1x1_int8.h index c522452e836..0d402dc1f89 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_1x1_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_1x1_int8.h @@ -18,10 +18,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_CONVOLUTION_1X1_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/errorcode.h" #include "schema/model_generated.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/int8/conv1x1_int8.h" #include "nnacl/base/conv1x1_base.h" #include "nnacl/int8/matmul_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_3x3_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_3x3_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_3x3_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_3x3_int8.cc index 1c1733dfd92..4219fda359c 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_3x3_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_3x3_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/convolution_3x3_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_3x3_int8.h" #include "nnacl/int8/conv3x3_int8.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_3x3_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_3x3_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_3x3_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_3x3_int8.h index d463cd0242e..29ee39e4f15 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_3x3_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_3x3_int8.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_CONVOLUTION_3X3_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/winograd_transform.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class Convolution3x3Int8CPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.cc index d92d1f2af32..76d5ef3d841 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.h" #include "include/errorcode.h" #include "nnacl/int8/conv_depthwise_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.h index 3535df866e9..87969621d17 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_CONVOLUTION_DEPTHWISE_3X3_INT8_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_int8.cc index da805cff11c..383436348c9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_int8.h" #include "include/errorcode.h" #include "nnacl/int8/conv_depthwise_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_int8.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_int8.h index c8341952bf4..b069a4b95bf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_int8.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_CONVOLUTION_DEPTHWISE_INT8_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.cc index c66d0cfa2c6..9bf7842f5fa 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h" #include "include/errorcode.h" #include "nnacl/int8/conv_depthwise_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h index 860f77eadd7..21445a36001 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_CONVOLUTION_DEPTHWISE_SLIDEWINDOW_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/common/log_util.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8.cc index 4026ec28ab9..50357647363 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/convolution_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_int8.h" #include "include/errorcode.h" #include "nnacl/int8/conv_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #ifdef ENABLE_ARM64 -#include "src/runtime/kernel/cpu/int8/opt_op_handler.h" +#include "src/litert/kernel/cpu/int8/opt_op_handler.h" #endif using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8.h index c4074ad32dc..f567a7059d9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_CONVOLUTION_INT8_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "src/common/utils.h" #include "nnacl/int8/conv_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8_creator.cc b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8_creator.cc similarity index 90% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8_creator.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8_creator.cc index ef03171a6b2..902314383be 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8_creator.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8_creator.cc @@ -14,17 +14,17 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/convolution_int8_creator.h" -#include "src/runtime/kernel/cpu/int8/convolution_int8.h" -#include "src/runtime/kernel/cpu/int8/convolution_1x1_int8.h" -#include "src/runtime/kernel/cpu/int8/convolution_3x3_int8.h" -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_int8.h" -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_3x3_int8.h" -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h" -#include "src/runtime/kernel/cpu/int8/group_convolution_int8.h" -#include "src/runtime/kernel/cpu/base/group_convolution_creator.h" +#include "src/litert/kernel/cpu/int8/convolution_int8_creator.h" +#include "src/litert/kernel/cpu/int8/convolution_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_1x1_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_3x3_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_3x3_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_slidewindow_int8.h" +#include "src/litert/kernel/cpu/int8/group_convolution_int8.h" +#include "src/litert/kernel/cpu/base/group_convolution_creator.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8_creator.h b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8_creator.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8_creator.h rename to mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8_creator.h index 378224bb4f4..c116ca1f177 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/convolution_int8_creator.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/convolution_int8_creator.h @@ -19,7 +19,7 @@ #include #include "nnacl/op_base.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { LiteKernel *CpuConvInt8KernelSelect(const std::vector &inputs, diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/crop_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/crop_int8.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/crop_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/crop_int8.cc index 251c6f60088..13308e8343d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/crop_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/crop_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/crop_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/crop_int8.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/crop_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/crop_int8.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/int8/crop_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/crop_int8.h index d48a0a21eae..1dc849ceb13 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/crop_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/crop_int8.h @@ -22,8 +22,8 @@ #include "include/errorcode.h" #include "include/context.h" #include "nnacl/int8/crop_int8.h" -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/crop_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/crop_base.h" namespace mindspore::kernel { class CropInt8CPUKernel : public CropBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.cc index a8a026922ed..65dc14ac2fe 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.h" +#include "src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.h" #include "include/errorcode.h" #include "nnacl/int8/conv_depthwise_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.h index 6cb4c24cdef..2add61b4f7f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_DECONVOLUTION_DEPTHWISE_INT8_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "nnacl/fp32/conv_depthwise_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_int8.cc index d3601037c50..d12bd07be5f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_int8.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/deconvolution_int8.h" -#include "src/runtime/kernel/cpu/int8/deconvolution_depthwise_int8.h" +#include "src/litert/kernel/cpu/int8/deconvolution_int8.h" +#include "src/litert/kernel/cpu/int8/deconvolution_depthwise_int8.h" #include "src/common/utils.h" -#include "src/runtime/kernel/cpu/int8/opt_op_handler.h" +#include "src/litert/kernel/cpu/int8/opt_op_handler.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_int8.h similarity index 92% rename from mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_int8.h index e27094d1ba5..26dbb4a6240 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_int8.h @@ -17,16 +17,16 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_DECONVOLUTION_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/matmul_parameter.h" #include "nnacl/int8/deconv_int8.h" #include "nnacl/int8/common_func_int8.h" #include "nnacl/int8/matmul_int8.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" namespace mindspore::kernel { class DeConvInt8CPUKernel : public ConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/depth_to_space_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/depth_to_space_int8.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/depth_to_space_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/depth_to_space_int8.cc index a2810e4320c..41e7ac5c624 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/depth_to_space_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/depth_to_space_int8.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/depth_to_space_int8.h" +#include "src/litert/kernel/cpu/int8/depth_to_space_int8.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/depth_to_space_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/depth_to_space_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/depth_to_space_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/depth_to_space_int8.h index f3721961a7d..a025f5e387d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/depth_to_space_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/depth_to_space_int8.h @@ -21,7 +21,7 @@ #include "nnacl/base/depth_to_space_base.h" #include "nnacl/int8/depth_to_space_int8.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/kernel/cpu/fp32/depth_to_space_fp32.h" +#include "src/litert/kernel/cpu/fp32/depth_to_space_fp32.h" namespace mindspore::kernel { class DepthToSpaceInt8CPUKernel : public DepthToSpaceCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/detection_post_process_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/detection_post_process_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/detection_post_process_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/detection_post_process_int8.cc index f321730ac4d..2dd204fc5a6 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/detection_post_process_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/detection_post_process_int8.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/detection_post_process_int8.h" +#include "src/litert/kernel/cpu/int8/detection_post_process_int8.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/int8/quant_dtype_cast_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/detection_post_process_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/detection_post_process_int8.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/int8/detection_post_process_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/detection_post_process_int8.h index 41f927141e2..03268794bcf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/detection_post_process_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/detection_post_process_int8.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_DETECTION_POST_PROCESS_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" -#include "src/runtime/kernel/cpu/base/detection_post_process_base.h" +#include "src/litert/kernel/cpu/base/detection_post_process_base.h" #include "nnacl/fp32/detection_post_process_fp32.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/div_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/div_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/div_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/div_int8.cc index 30301077fe9..c29a8290686 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/div_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/div_int8.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/div_int8.h" +#include "src/litert/kernel/cpu/int8/div_int8.h" #include #include #include "nnacl/int8/arithmetic_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/div_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/div_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/div_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/div_int8.h index 0d8a46327d9..151278158ff 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/div_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/div_int8.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_DIV_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/div_int8.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_gather_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_gather_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_gather_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/dynamic_gather_int8.cc index af860a5be07..c80839a9f20 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_gather_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_gather_int8.cc @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/dynamic_gather_int8.h" +#include "src/litert/kernel/cpu/int8/dynamic_gather_int8.h" #include #include "nnacl/gather_parameter.h" #include "nnacl/int8/dynamic_gather_int8.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_gather_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_gather_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_gather_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/dynamic_gather_int8.h index 7b985d4eacc..9db6c2db9a8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_gather_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_gather_int8.h @@ -20,7 +20,7 @@ #include #include "nnacl/gather_parameter.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class DynamicGatherInt8CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_quant.cc b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_quant.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_quant.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/dynamic_quant.cc index 41b8b58b5a9..b6dae7cc477 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_quant.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_quant.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/dynamic_quant.h" +#include "src/litert/kernel/cpu/int8/dynamic_quant.h" #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" #include "include/errorcode.h" #include "nnacl/dynamic_quant_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_quant.h b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_quant.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_quant.h rename to mindspore/lite/src/litert/kernel/cpu/int8/dynamic_quant.h index 6acb0d8d47c..f8afd721c9e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/dynamic_quant.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/dynamic_quant.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class DynamicQuantCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/fullconnection_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/fullconnection_int8.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/fullconnection_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/fullconnection_int8.cc index 53c4e864034..98971a1eecc 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/fullconnection_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/fullconnection_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/fullconnection_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/fullconnection_int8.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/fullconnection_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/fullconnection_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/fullconnection_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/fullconnection_int8.h index 52d21e87844..d3c54e40871 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/fullconnection_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/fullconnection_int8.h @@ -19,7 +19,7 @@ #include #include "include/errorcode.h" -#include "src/runtime/kernel/cpu/int8/matmul_base_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_base_int8.h" namespace mindspore::kernel { class FullconnectionInt8CPUKernel : public MatmulBaseInt8CPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/gatherNd_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/gatherNd_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/gatherNd_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/gatherNd_int8.cc index fce7a4f1fa5..e7d39c81f9e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/gatherNd_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/gatherNd_int8.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/gatherNd_int8.h" +#include "src/litert/kernel/cpu/int8/gatherNd_int8.h" #include #include #include #include "schema/model_generated.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/int8/gatherNd_int8.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/gatherNd_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/gatherNd_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/gatherNd_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/gatherNd_int8.h index d6c6229144b..d9f7f74e61a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/gatherNd_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/gatherNd_int8.h @@ -19,7 +19,7 @@ #include #include "nnacl/int8/quantize.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class GatherNdInt8CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/gather_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/gather_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/gather_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/gather_int8.cc index 889b1593349..3b416afa619 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/gather_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/gather_int8.cc @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/gather_int8.h" +#include "src/litert/kernel/cpu/int8/gather_int8.h" #include -#include "src/runtime/kernel/cpu/int8/dynamic_gather_int8.h" +#include "src/litert/kernel/cpu/int8/dynamic_gather_int8.h" #include "nnacl/gather_parameter.h" #include "nnacl/int8/gather_int8.h" #include "nnacl/int8/quantize.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/gather_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/gather_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/gather_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/gather_int8.h index 6eef9bf044d..9b50d763eca 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/gather_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/gather_int8.h @@ -20,7 +20,7 @@ #include #include "nnacl/gather_parameter.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class GatherInt8CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/group_convolution_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/group_convolution_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/group_convolution_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/group_convolution_int8.cc index 41bc4aa215a..9aec9db6fcf 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/group_convolution_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/group_convolution_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/group_convolution_int8.h" -#include "src/runtime/kernel/cpu/int8/convolution_int8_creator.h" +#include "src/litert/kernel/cpu/int8/group_convolution_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_int8_creator.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/group_convolution_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/group_convolution_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/group_convolution_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/group_convolution_int8.h index d80221321df..9b81489c018 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/group_convolution_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/group_convolution_int8.h @@ -19,9 +19,9 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/op_base.h" -#include "src/runtime/kernel/cpu/base/group_convolution_base.h" +#include "src/litert/kernel/cpu/base/group_convolution_base.h" namespace mindspore::kernel { class GroupConvolutionInt8CPUKernel : public GroupConvolutionBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/hswish_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/hswish_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/hswish_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/hswish_int8.cc index f856398a089..30e991fe927 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/hswish_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/hswish_int8.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/hswish_int8.h" +#include "src/litert/kernel/cpu/int8/hswish_int8.h" #include #include "nnacl/int8/hswish_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/hswish_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/hswish_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/hswish_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/hswish_int8.h index 0f545c05565..b43cd24a5c7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/hswish_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/hswish_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_HSWISH_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/hswish_int8.h" #include "nnacl/int8/quantize.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/l2_norm_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/l2_norm_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/l2_norm_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/l2_norm_int8.cc index 2615ed1ddbf..e6ffddf463f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/l2_norm_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/l2_norm_int8.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/l2_norm_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/l2_norm_int8.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/l2_norm_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/l2_norm_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/l2_norm_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/l2_norm_int8.h index 4ba42d10b0b..74c7e6e8f58 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/l2_norm_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/l2_norm_int8.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_L2_NORM_INT8_H_ #include -#include "src/runtime/kernel/cpu/fp32/l2_norm_fp32.h" +#include "src/litert/kernel/cpu/fp32/l2_norm_fp32.h" #include "nnacl/int8/l2_norm_int8.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/layer_norm_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/layer_norm_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/layer_norm_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/layer_norm_int8.cc index d26afdbba8b..1d123458437 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/layer_norm_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/layer_norm_int8.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/layer_norm_int8.h" +#include "src/litert/kernel/cpu/int8/layer_norm_int8.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/layer_norm_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/layer_norm_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/layer_norm_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/layer_norm_int8.h index 27f3d189504..e25802c4eb3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/layer_norm_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/layer_norm_int8.h @@ -19,7 +19,7 @@ #include #include #include "nnacl/int8/layer_norm_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/leaky_relu_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/leaky_relu_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/leaky_relu_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/leaky_relu_int8.cc index 8830269d7b6..713078a4bd1 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/leaky_relu_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/leaky_relu_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/leaky_relu_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/leaky_relu_int8.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/leaky_relu_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/leaky_relu_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/leaky_relu_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/leaky_relu_int8.h index 03375d5daee..994c9f57885 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/leaky_relu_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/leaky_relu_int8.h @@ -23,7 +23,7 @@ #include "include/context.h" #include "nnacl/fp32/activation_fp32.h" #include "nnacl/int8/leaky_relu_int8.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class LeakyReluInt8CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_base_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_base_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_base_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_base_int8.cc index 74bed48c10f..e52723181db 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_base_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_base_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/matmul_base_int8.h" -#include "src/runtime/kernel/cpu/int8/opt_op_handler.h" +#include "src/litert/kernel/cpu/int8/matmul_base_int8.h" +#include "src/litert/kernel/cpu/int8/opt_op_handler.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_MEMORY_FAILED; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_base_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_base_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_base_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_base_int8.h index a9383eac76f..6a4d1925e0f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_base_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_base_int8.h @@ -20,7 +20,7 @@ #include #include "include/errorcode.h" #include "include/context.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/matmul_parameter.h" #include "nnacl/common_func.h" #include "nnacl/int8/quantize.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.cc index 166510ec047..67df09d7a79 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.h" #include "nnacl/int8/dynamic_matmul_int8.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.h index 68b664af073..a985ede054a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.h @@ -20,7 +20,7 @@ #include #include "include/errorcode.h" #include "include/context.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/matmul_parameter.h" #include "nnacl/common_func.h" #include "nnacl/int8/quantize.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_int8.cc index 766b7bb29b4..3950f6bb58e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/matmul_dynamic_int8.h" -#include "src/runtime/kernel/cpu/int8/opt_op_handler.h" +#include "src/litert/kernel/cpu/int8/matmul_dynamic_int8.h" +#include "src/litert/kernel/cpu/int8/opt_op_handler.h" #include "nnacl/int8/matmul_int8.h" #include "nnacl/int8/dynamic_matmul_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_int8.h index 7186927508a..375d794a8ac 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_MATMUL_DYNAMIC_INT8_H_ #include -#include "src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.h" namespace mindspore::kernel { class MatmulDynamicInt8CPUKernel : public MatmulDynamicBaseInt8CPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.cc index 132fa5d7950..000fba6acec 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.h" #include #include "nnacl/int8/dynamic_matmul_int8.h" #include "nnacl/int8/matmul_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.h index fc6832bcf99..eea1d0c7b44 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_MATMUL_DYNAMIC_SDOT_INT8_H_ #include -#include "src/runtime/kernel/cpu/int8/matmul_dynamic_base_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_dynamic_base_int8.h" namespace mindspore::kernel { class MatMulDynamicSdotInt8Kernel : public MatmulDynamicBaseInt8CPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_int8.cc similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_int8.cc index b539224f7a9..215f04500c9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_int8.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/matmul_int8.h" -#include "src/runtime/kernel/cpu/int8/matmul_dynamic_int8.h" -#include "src/runtime/kernel/cpu/int8/matmul_dynamic_sdot_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_dynamic_int8.h" +#include "src/litert/kernel/cpu/int8/matmul_dynamic_sdot_int8.h" #include "nnacl/int8/matmul_int8.h" #include "nnacl/common_func.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_int8.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/cpu/int8/matmul_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/matmul_int8.h index 4e9e4e42eb5..4662fae7f41 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/matmul_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/matmul_int8.h @@ -21,8 +21,8 @@ #include "include/context.h" #include "nnacl/matmul_parameter.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/int8/matmul_base_int8.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/int8/matmul_base_int8.h" namespace mindspore::kernel { class MatmulInt8CPUKernel : public MatmulBaseInt8CPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/mul_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/mul_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/mul_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/mul_int8.cc index 00e50581bb8..ccd0bfd7067 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/mul_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/mul_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/mul_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/mul_int8.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/mul_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/mul_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/mul_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/mul_int8.h index 2c269a81f45..6464ea7cc08 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/mul_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/mul_int8.h @@ -19,7 +19,7 @@ #include #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/mul_parameter.h" #include "nnacl/int8/mul_int8.h" #include "nnacl/int8/arithmetic_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/opt_op_handler.cc b/mindspore/lite/src/litert/kernel/cpu/int8/opt_op_handler.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/opt_op_handler.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/opt_op_handler.cc index 2908a6bd252..7c412d5d8b0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/opt_op_handler.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/opt_op_handler.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/opt_op_handler.h" +#include "src/litert/kernel/cpu/int8/opt_op_handler.h" #include #include "nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/opt_op_handler.h b/mindspore/lite/src/litert/kernel/cpu/int8/opt_op_handler.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/cpu/int8/opt_op_handler.h rename to mindspore/lite/src/litert/kernel/cpu/int8/opt_op_handler.h diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/pad_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/pad_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/pad_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/pad_int8.cc index af327c8fc94..a52b0702d3f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/pad_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/pad_int8.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/pad_int8.h" +#include "src/litert/kernel/cpu/int8/pad_int8.h" #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/op_base.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/pad_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/pad_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/pad_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/pad_int8.h index e6091c7512d..8e8e546b77a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/pad_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/pad_int8.h @@ -19,7 +19,7 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/errorcode.h" #include "nnacl/pad_parameter.h" #include "nnacl/int8/pad_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/pooling_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/pooling_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/pooling_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/pooling_int8.cc index 9cca58349cb..9a340325a4a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/pooling_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/pooling_int8.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/pooling_int8.h" +#include "src/litert/kernel/cpu/int8/pooling_int8.h" #include "nnacl/int8/pooling_int8.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/pooling_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/pooling_int8.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/int8/pooling_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/pooling_int8.h index 832ed68302e..a7376c36973 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/pooling_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/pooling_int8.h @@ -18,10 +18,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_POOLING_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" -#include "src/runtime/kernel/cpu/base/pooling_base.h" +#include "src/litert/kernel/cpu/base/pooling_base.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/power_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/power_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/power_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/power_int8.cc index d0be2cad2b3..63bde675a94 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/power_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/power_int8.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/power_int8.h" +#include "src/litert/kernel/cpu/int8/power_int8.h" #include #include "nnacl/int8/power_int8.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/power_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/power_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/power_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/power_int8.h index 49ab474c0ba..d614454e554 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/power_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/power_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_POWER_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/quantize.h" #include "nnacl/power_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/reduce_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/reduce_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/reduce_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/reduce_int8.cc index 4af3e46d442..1c5b5d24281 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/reduce_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/reduce_int8.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/reduce_int8.h" +#include "src/litert/kernel/cpu/int8/reduce_int8.h" #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/int8/quantize.h" #include "nnacl/pack.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/reduce_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/reduce_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/reduce_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/reduce_int8.h index 2796cb1d20f..92a4c4e1c24 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/reduce_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/reduce_int8.h @@ -18,12 +18,12 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_REDUCE_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/reduce_parameter.h" #include "nnacl/int8/reduce_int8.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/kernel/cpu/base/reduce_base.h" +#include "src/litert/kernel/cpu/base/reduce_base.h" using mindspore::schema::ReduceMode; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/relux_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/relux_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/relux_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/relux_int8.cc index b4ec5d74a95..f9796593edb 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/relux_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/relux_int8.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/relux_int8.h" +#include "src/litert/kernel/cpu/int8/relux_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/relux_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/relux_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/relux_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/relux_int8.h index 1548843f7be..43f91e2cb22 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/relux_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/relux_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_RELUX_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/fp32/activation_fp32.h" #include "nnacl/int8/relux_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/reshape_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/reshape_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/reshape_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/reshape_int8.cc index 6fb16457817..f2343a12d74 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/reshape_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/reshape_int8.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/reshape_int8.h" +#include "src/litert/kernel/cpu/int8/reshape_int8.h" #include #include "nnacl/int8/reshape_int8.h" #include "schema/model_generated.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/reshape_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/reshape_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/reshape_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/reshape_int8.h index 89d25f25625..0ed1c100741 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/reshape_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/reshape_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_RESHAPE_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/reshape_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/resize_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/resize_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/resize_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/resize_int8.cc index b2f92a8422f..9af4f0510ef 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/resize_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/resize_int8.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/resize_int8.h" +#include "src/litert/kernel/cpu/int8/resize_int8.h" #include #include #include "include/errorcode.h" #include "nnacl/int8/resize_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/resize_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/resize_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/resize_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/resize_int8.h index 5565bda1d73..69d76b809bd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/resize_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/resize_int8.h @@ -17,8 +17,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_RESIZE_INT8_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/cpu/base/resize_base.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/cpu/base/resize_base.h" #include "nnacl/int8/quantize.h" using mindspore::schema::PrimitiveType_Resize; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/scale_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/cpu/int8/scale_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc index 9685e549d0e..69a35f9d94d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/scale_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/scale_int8.h" +#include "src/litert/kernel/cpu/int8/scale_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/scale_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/scale_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.h index 75ea8956c83..847d5d10320 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/scale_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/scale.h" #include "nnacl/int8/quantize.h" #include "nnacl/int8/arithmetic_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/sigmoid_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/sigmoid_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/sigmoid_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/sigmoid_int8.cc index 88a5cec8983..4be61da5e0a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/sigmoid_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/sigmoid_int8.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/sigmoid_int8.h" +#include "src/litert/kernel/cpu/int8/sigmoid_int8.h" #include #include #include "nnacl/int8/sigmoid_int8.h" #include "nnacl/int8/quantize.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/sigmoid_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/sigmoid_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/sigmoid_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/sigmoid_int8.h index d2abe804487..1f383ae6f39 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/sigmoid_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/sigmoid_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_SIGMOID_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/sigmoid_int8.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/slice_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/slice_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/slice_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/slice_int8.cc index df07de33985..7d911e777b7 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/slice_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/slice_int8.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/slice_int8.h" +#include "src/litert/kernel/cpu/int8/slice_int8.h" #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/int8/slice_int8.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/slice_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/slice_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/slice_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/slice_int8.h index e5246e7665e..ec3190f7fd2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/slice_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/slice_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_SLICE_INT8_H_ #include -#include "src/runtime/kernel/cpu/base/slice_base.h" +#include "src/litert/kernel/cpu/base/slice_base.h" #include "nnacl/int8/quantize.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/softmax_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/softmax_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/softmax_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/softmax_int8.cc index bb8c9d92ccd..8d3db97602b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/softmax_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/softmax_int8.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/softmax_int8.h" +#include "src/litert/kernel/cpu/int8/softmax_int8.h" #include #include "nnacl/int8/softmax_int8.h" #include "schema/model_generated.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/softmax_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/softmax_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/softmax_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/softmax_int8.h index 8140fa1b924..1385ce092b9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/softmax_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/softmax_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_SOFTMAX_INT8_H_ #include -#include "src/runtime/kernel/cpu/base/softmax_base.h" +#include "src/litert/kernel/cpu/base/softmax_base.h" #include "nnacl/int8/quantize.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/space_to_batch_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/space_to_batch_int8.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/space_to_batch_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/space_to_batch_int8.cc index f229263764b..a478edc6b57 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/space_to_batch_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/space_to_batch_int8.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/space_to_batch_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/space_to_batch_int8.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/space_to_batch_fp32.h" #include "nnacl/int8/space_to_batch_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/space_to_batch_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/space_to_batch_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/space_to_batch_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/space_to_batch_int8.h index 601f0732fc8..6bba6e75c6a 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/space_to_batch_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/space_to_batch_int8.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_SPACE_TO_BATCH_INT8_H_ #include -#include "src/runtime/kernel/cpu/fp32/space_to_batch_fp32.h" +#include "src/litert/kernel/cpu/fp32/space_to_batch_fp32.h" namespace mindspore::kernel { class SpaceToBatchInt8CPUKernel : public SpaceToBatchCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/split_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/split_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/split_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/split_int8.cc index 71f3212b33a..1416e3334e3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/split_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/split_int8.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/split_int8.h" +#include "src/litert/kernel/cpu/int8/split_int8.h" #include #include "nnacl/split_parameter.h" #include "nnacl/int8/split_int8.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/split_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/split_int8.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/cpu/int8/split_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/split_int8.h index c6d39e78bb3..797345acf02 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/split_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/split_int8.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_SPLIT_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" -#include "src/runtime/kernel/cpu/base/split_base.h" +#include "src/litert/kernel/cpu/base/split_base.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/squeeze_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/squeeze_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/squeeze_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/squeeze_int8.cc index 76c3f6d76d9..6b37d1da035 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/squeeze_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/squeeze_int8.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/squeeze_int8.h" +#include "src/litert/kernel/cpu/int8/squeeze_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/squeeze_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/squeeze_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/squeeze_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/squeeze_int8.h index fe24dd4a4c4..549923d60ab 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/squeeze_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/squeeze_int8.h @@ -20,7 +20,7 @@ #include #include "include/context.h" #include "include/errorcode.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/squeeze_int8.h" #include "nnacl/squeeze_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/sub_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/sub_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/sub_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/sub_int8.cc index 6e60519e39e..844dbb5f4fd 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/sub_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/sub_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/sub_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/sub_int8.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/sub_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/sub_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/sub_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/sub_int8.h index 5b28e0fad2a..af3ab66f742 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/sub_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/sub_int8.h @@ -21,7 +21,7 @@ #include #include "nnacl/int8/arithmetic_int8.h" #include "nnacl/int8/quantize.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/sub_int8.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/tanh_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/tanh_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/int8/tanh_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/tanh_int8.cc index bbbbf7e889e..9b1dbb71de9 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/tanh_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/tanh_int8.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/tanh_int8.h" +#include "src/litert/kernel/cpu/int8/tanh_int8.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/tanh_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/tanh_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/tanh_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/tanh_int8.h index ee0b897ecf9..d202a6af67e 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/tanh_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/tanh_int8.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/tanh_int8.h" #include "nnacl/int8/quantize.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/topk_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/topk_int8.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/topk_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/topk_int8.cc index 139c1c24c62..281a85a4712 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/topk_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/topk_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/topk_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/topk_int8.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/topk_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/topk_int8.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/topk_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/topk_int8.h index 2e0f55afc59..3f319f9bd8f 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/topk_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/topk_int8.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_TOPK_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/int8/topk_int8.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/transpose_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/transpose_int8.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/transpose_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/transpose_int8.cc index aa2521af5eb..40d52b5e028 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/transpose_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/transpose_int8.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/int8/transpose_int8.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/int8/transpose_int8.h" +#include "src/litert/kernel_registry.h" #include "nnacl/int8/transpose_int8.h" #include "nnacl/int8/pack_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/transpose_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/transpose_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/cpu/int8/transpose_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/transpose_int8.h index c94037b3759..3e8967b16e2 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/transpose_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/transpose_int8.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_TRANSPOSE_INT8_H_ #include -#include "src/runtime/kernel/cpu/base/transpose_base.h" +#include "src/litert/kernel/cpu/base/transpose_base.h" namespace mindspore::kernel { class TransposeInt8CPUKernel : public TransposeBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/unsqueeze_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/unsqueeze_int8.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/int8/unsqueeze_int8.cc rename to mindspore/lite/src/litert/kernel/cpu/int8/unsqueeze_int8.cc index 2fbad4a19e1..0d73afc1866 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/unsqueeze_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/unsqueeze_int8.cc @@ -15,9 +15,9 @@ */ #include "nnacl/int8/unsqueeze_int8.h" -#include "src/runtime/kernel/cpu/int8/unsqueeze_int8.h" +#include "src/litert/kernel/cpu/int8/unsqueeze_int8.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" using mindspore::kernel::KERNEL_ARCH; diff --git a/mindspore/lite/src/runtime/kernel/cpu/int8/unsqueeze_int8.h b/mindspore/lite/src/litert/kernel/cpu/int8/unsqueeze_int8.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/cpu/int8/unsqueeze_int8.h rename to mindspore/lite/src/litert/kernel/cpu/int8/unsqueeze_int8.h index cdc289cf75f..5290b2cf4d0 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/int8/unsqueeze_int8.h +++ b/mindspore/lite/src/litert/kernel/cpu/int8/unsqueeze_int8.h @@ -17,10 +17,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_INT8_UNSQUEEZE_INT8_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/int8/unsqueeze_int8.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/extract_feature.cc b/mindspore/lite/src/litert/kernel/cpu/string/extract_feature.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/extract_feature.cc rename to mindspore/lite/src/litert/kernel/cpu/string/extract_feature.cc index 9ffbbed9ed4..ba61351ad2d 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/extract_feature.cc +++ b/mindspore/lite/src/litert/kernel/cpu/string/extract_feature.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/string/extract_feature.h" +#include "src/litert/kernel/cpu/string/extract_feature.h" #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/extract_feature.h b/mindspore/lite/src/litert/kernel/cpu/string/extract_feature.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/extract_feature.h rename to mindspore/lite/src/litert/kernel/cpu/string/extract_feature.h index c028323425f..7ddfa92df9b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/extract_feature.h +++ b/mindspore/lite/src/litert/kernel/cpu/string/extract_feature.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_STRING_EXTRACT_FEATURE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "src/common/string_utils.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/hashtable_lookup.cc b/mindspore/lite/src/litert/kernel/cpu/string/hashtable_lookup.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/hashtable_lookup.cc rename to mindspore/lite/src/litert/kernel/cpu/string/hashtable_lookup.cc index c47e55c0194..9c743529573 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/hashtable_lookup.cc +++ b/mindspore/lite/src/litert/kernel/cpu/string/hashtable_lookup.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/string/hashtable_lookup.h" +#include "src/litert/kernel/cpu/string/hashtable_lookup.h" #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "src/common/string_utils.h" using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/hashtable_lookup.h b/mindspore/lite/src/litert/kernel/cpu/string/hashtable_lookup.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/hashtable_lookup.h rename to mindspore/lite/src/litert/kernel/cpu/string/hashtable_lookup.h index f5d0ad107e9..36582fa09b3 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/hashtable_lookup.h +++ b/mindspore/lite/src/litert/kernel/cpu/string/hashtable_lookup.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_STRING_HASHTABLE_LOOKUP_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/lsh_projection.cc b/mindspore/lite/src/litert/kernel/cpu/string/lsh_projection.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/string/lsh_projection.cc rename to mindspore/lite/src/litert/kernel/cpu/string/lsh_projection.cc index fb69625b056..4607e74df30 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/lsh_projection.cc +++ b/mindspore/lite/src/litert/kernel/cpu/string/lsh_projection.cc @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/string/lsh_projection.h" +#include "src/litert/kernel/cpu/string/lsh_projection.h" #include "include/errorcode.h" #include "src/common/string_utils.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::kernel::KERNEL_ARCH; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/lsh_projection.h b/mindspore/lite/src/litert/kernel/cpu/string/lsh_projection.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/string/lsh_projection.h rename to mindspore/lite/src/litert/kernel/cpu/string/lsh_projection.h index 9ee5bc63b29..30d190d5786 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/lsh_projection.h +++ b/mindspore/lite/src/litert/kernel/cpu/string/lsh_projection.h @@ -20,7 +20,7 @@ #include #include "nnacl/lsh_projection_parameter.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" namespace mindspore::kernel { class LshProjectionCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/normalize.cc b/mindspore/lite/src/litert/kernel/cpu/string/normalize.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/string/normalize.cc rename to mindspore/lite/src/litert/kernel/cpu/string/normalize.cc index 39ad89a5fd2..c88864fcdb8 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/normalize.cc +++ b/mindspore/lite/src/litert/kernel/cpu/string/normalize.cc @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/string/normalize.h" +#include "src/litert/kernel/cpu/string/normalize.h" #include #include #include #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/normalize.h b/mindspore/lite/src/litert/kernel/cpu/string/normalize.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/normalize.h rename to mindspore/lite/src/litert/kernel/cpu/string/normalize.h index 01bf05edaaa..d224be70227 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/normalize.h +++ b/mindspore/lite/src/litert/kernel/cpu/string/normalize.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "src/common/string_utils.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/predict.cc b/mindspore/lite/src/litert/kernel/cpu/string/predict.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/cpu/string/predict.cc rename to mindspore/lite/src/litert/kernel/cpu/string/predict.cc index 811d2cc25a2..99d6d2bef05 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/predict.cc +++ b/mindspore/lite/src/litert/kernel/cpu/string/predict.cc @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/cpu/string/predict.h" +#include "src/litert/kernel/cpu/string/predict.h" #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/predict.h b/mindspore/lite/src/litert/kernel/cpu/string/predict.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/predict.h rename to mindspore/lite/src/litert/kernel/cpu/string/predict.h index ba5514d9273..d52e9c9f314 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/predict.h +++ b/mindspore/lite/src/litert/kernel/cpu/string/predict.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_STRING_PREDICT_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "include/context.h" #include "nnacl/predict_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/skip_gram.cc b/mindspore/lite/src/litert/kernel/cpu/string/skip_gram.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/skip_gram.cc rename to mindspore/lite/src/litert/kernel/cpu/string/skip_gram.cc index 899b69c5561..a5c79aacd1b 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/skip_gram.cc +++ b/mindspore/lite/src/litert/kernel/cpu/string/skip_gram.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/cpu/string/skip_gram.h" +#include "src/litert/kernel/cpu/string/skip_gram.h" #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" using mindspore::lite::KernelRegistrar; using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/cpu/string/skip_gram.h b/mindspore/lite/src/litert/kernel/cpu/string/skip_gram.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/cpu/string/skip_gram.h rename to mindspore/lite/src/litert/kernel/cpu/string/skip_gram.h index 769b9312b9c..f5e7a29b251 100644 --- a/mindspore/lite/src/runtime/kernel/cpu/string/skip_gram.h +++ b/mindspore/lite/src/litert/kernel/cpu/string/skip_gram.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_CPU_STRING_SKIP_GRAM_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/skip_gram_parameter.h" #include "src/common/string_utils.h" diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_allocator.cc b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_allocator.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_allocator.cc rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_allocator.cc index 10611d95494..6859243b2c2 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_allocator.cc +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_allocator.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/kernel/gpu/opencl/opencl_allocator.h" +#include "src/litert/kernel/gpu/opencl/opencl_allocator.h" #include -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/kernel/opencl/utils.h" #include "src/common/log_adapter.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_allocator.h b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_allocator.h similarity index 99% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_allocator.h rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_allocator.h index 94440a7d23d..5cbe6fcab21 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_allocator.h +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_allocator.h @@ -24,7 +24,7 @@ #include #include #include -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "CL/cl2.hpp" namespace mindspore::lite::opencl { diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_executor.cc b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_executor.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_executor.cc rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_executor.cc index ccc503d90a3..2066ae51bad 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_executor.cc +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_executor.cc @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "src/runtime/kernel/gpu/opencl/opencl_executor.h" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel/gpu/opencl/opencl_executor.h" +#include "src/litert/kernel/opencl/utils.h" #include "nnacl/pack.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_executor.h b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_executor.h similarity index 91% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_executor.h rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_executor.h index b8a5d6e34f8..5415d036813 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_executor.h +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_executor.h @@ -18,10 +18,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_GPU_OPENCL_OPENCL_EXECUTOR_H_ #include -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" -#include "src/runtime/inner_allocator.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" -#include "src/runtime/executor.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/inner_allocator.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" +#include "src/litert/executor.h" namespace mindspore::lite::opencl { class OpenCLExecutor : public Executor { diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime.cc b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime.cc rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime.cc index e88dbae6be6..ca633d6eee9 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime.cc +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" #include #include #include #include #include "include/errorcode.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/gpu/opencl/opencl_allocator.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/gpu/opencl/opencl_allocator.h" #include "src/common/file_utils.h" using mindspore::kernel::CLErrorCode; diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime.h b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime.h rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime.h index 2f1abedc1ab..ad7bccf9b1d 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime.h +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime.h @@ -25,8 +25,8 @@ #include #include "dtype/type_id.h" #include "src/common/log_adapter.h" -#include "src/runtime/kernel/gpu/opencl/opencl_wrapper.h" -#include "src/runtime/kernel/gpu/opencl/opencl_allocator.h" +#include "src/litert/kernel/gpu/opencl/opencl_wrapper.h" +#include "src/litert/kernel/gpu/opencl/opencl_allocator.h" #include "schema/gpu_cache_generated.h" #define EXT_ARM_IMPORT_MEMORY_HOST "cl_arm_import_memory_host" diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime_wrapper.cc b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime_wrapper.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime_wrapper.cc rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime_wrapper.cc index e189395011a..6f24bf5db04 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_runtime_wrapper.cc +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_runtime_wrapper.cc @@ -20,10 +20,10 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/gpu/opencl/opencl_allocator.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/gpu/opencl/opencl_allocator.h" #include "src/common/file_utils.h" -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" using mindspore::kernel::CLErrorCode; diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_wrapper.cc b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_wrapper.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_wrapper.cc rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_wrapper.cc index d7b12294ca8..e21515d1f11 100644 --- a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_wrapper.cc +++ b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_wrapper.cc @@ -16,7 +16,7 @@ #ifdef USE_OPENCL_WRAPPER -#include "src/runtime/kernel/gpu/opencl/opencl_wrapper.h" +#include "src/litert/kernel/gpu/opencl/opencl_wrapper.h" #include #include #include diff --git a/mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_wrapper.h b/mindspore/lite/src/litert/kernel/gpu/opencl/opencl_wrapper.h similarity index 100% rename from mindspore/lite/src/runtime/kernel/gpu/opencl/opencl_wrapper.h rename to mindspore/lite/src/litert/kernel/gpu/opencl/opencl_wrapper.h diff --git a/mindspore/lite/src/runtime/kernel/opencl/CMakeLists.txt b/mindspore/lite/src/litert/kernel/opencl/CMakeLists.txt similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/CMakeLists.txt rename to mindspore/lite/src/litert/kernel/opencl/CMakeLists.txt diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/activation.cl b/mindspore/lite/src/litert/kernel/opencl/cl/activation.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/activation.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/activation.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/argminmax.cl b/mindspore/lite/src/litert/kernel/opencl/cl/argminmax.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/argminmax.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/argminmax.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/arithmetic.cl b/mindspore/lite/src/litert/kernel/opencl/cl/arithmetic.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/arithmetic.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/arithmetic.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/arithmeticself.cl b/mindspore/lite/src/litert/kernel/opencl/cl/arithmeticself.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/arithmeticself.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/arithmeticself.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/batch_to_space_nd.cl b/mindspore/lite/src/litert/kernel/opencl/cl/batch_to_space_nd.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/batch_to_space_nd.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/batch_to_space_nd.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/batchnorm.cl b/mindspore/lite/src/litert/kernel/opencl/cl/batchnorm.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/batchnorm.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/batchnorm.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/cast.cl b/mindspore/lite/src/litert/kernel/opencl/cl/cast.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/cast.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/cast.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/concat.cl b/mindspore/lite/src/litert/kernel/opencl/cl/concat.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/concat.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/concat.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/conv2d.cl b/mindspore/lite/src/litert/kernel/opencl/cl/conv2d.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/conv2d.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/conv2d.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/conv2d_transpose.cl b/mindspore/lite/src/litert/kernel/opencl/cl/conv2d_transpose.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/conv2d_transpose.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/conv2d_transpose.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/depthwise_conv2d.cl b/mindspore/lite/src/litert/kernel/opencl/cl/depthwise_conv2d.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/depthwise_conv2d.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/depthwise_conv2d.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/fullconnection.cl b/mindspore/lite/src/litert/kernel/opencl/cl/fullconnection.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/fullconnection.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/fullconnection.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/gather.cl b/mindspore/lite/src/litert/kernel/opencl/cl/gather.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/gather.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/gather.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/gl_to_cl.cl b/mindspore/lite/src/litert/kernel/opencl/cl/gl_to_cl.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/gl_to_cl.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/gl_to_cl.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/int8/arithmetic.cl b/mindspore/lite/src/litert/kernel/opencl/cl/int8/arithmetic.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/int8/arithmetic.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/int8/arithmetic.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/layer_norm.cl b/mindspore/lite/src/litert/kernel/opencl/cl/layer_norm.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/layer_norm.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/layer_norm.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/matmul.cl b/mindspore/lite/src/litert/kernel/opencl/cl/matmul.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/matmul.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/matmul.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/one_hot.cl b/mindspore/lite/src/litert/kernel/opencl/cl/one_hot.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/one_hot.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/one_hot.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/pad.cl b/mindspore/lite/src/litert/kernel/opencl/cl/pad.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/pad.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/pad.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/pooling2d.cl b/mindspore/lite/src/litert/kernel/opencl/cl/pooling2d.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/pooling2d.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/pooling2d.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/power.cl b/mindspore/lite/src/litert/kernel/opencl/cl/power.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/power.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/power.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/prelu.cl b/mindspore/lite/src/litert/kernel/opencl/cl/prelu.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/prelu.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/prelu.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/reduce.cl b/mindspore/lite/src/litert/kernel/opencl/cl/reduce.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/reduce.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/reduce.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/reshape.cl b/mindspore/lite/src/litert/kernel/opencl/cl/reshape.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/reshape.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/reshape.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/resize.cl b/mindspore/lite/src/litert/kernel/opencl/cl/resize.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/resize.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/resize.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/scale.cl b/mindspore/lite/src/litert/kernel/opencl/cl/scale.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/scale.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/scale.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/softmax.cl b/mindspore/lite/src/litert/kernel/opencl/cl/softmax.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/softmax.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/softmax.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/space_to_batch_nd.cl b/mindspore/lite/src/litert/kernel/opencl/cl/space_to_batch_nd.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/space_to_batch_nd.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/space_to_batch_nd.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/space_to_depth.cl b/mindspore/lite/src/litert/kernel/opencl/cl/space_to_depth.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/space_to_depth.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/space_to_depth.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/sparse_to_dense.cl b/mindspore/lite/src/litert/kernel/opencl/cl/sparse_to_dense.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/sparse_to_dense.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/sparse_to_dense.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/split.cl b/mindspore/lite/src/litert/kernel/opencl/cl/split.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/split.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/split.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/stack.cl b/mindspore/lite/src/litert/kernel/opencl/cl/stack.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/stack.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/stack.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/strassen.cl b/mindspore/lite/src/litert/kernel/opencl/cl/strassen.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/strassen.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/strassen.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/strided_slice.cl b/mindspore/lite/src/litert/kernel/opencl/cl/strided_slice.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/strided_slice.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/strided_slice.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/to_format.cl b/mindspore/lite/src/litert/kernel/opencl/cl/to_format.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/to_format.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/to_format.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/transpose.cl b/mindspore/lite/src/litert/kernel/opencl/cl/transpose.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/transpose.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/transpose.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/cl/winograd.cl b/mindspore/lite/src/litert/kernel/opencl/cl/winograd.cl similarity index 100% rename from mindspore/lite/src/runtime/kernel/opencl/cl/winograd.cl rename to mindspore/lite/src/litert/kernel/opencl/cl/winograd.cl diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/activation.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/activation.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/activation.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/activation.cc index b8af1a7d818..1ad3e7afe33 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/activation.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/activation.cc @@ -17,11 +17,11 @@ #include #include #include -#include "src/runtime/kernel/opencl/kernel/activation.h" +#include "src/litert/kernel/opencl/kernel/activation.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" -#include "src/runtime/kernel/opencl/cl/activation.cl.inc" +#include "src/litert/kernel/opencl/cl/activation.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/activation.h b/mindspore/lite/src/litert/kernel/opencl/kernel/activation.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/activation.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/activation.h index 5f2519fcf0a..11bcbb7894c 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/activation.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/activation.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/fp32/activation_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/argminmax.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/argminmax.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/argminmax.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/argminmax.cc index d4d89a6b12c..6fb4c993656 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/argminmax.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/argminmax.cc @@ -17,10 +17,10 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/kernel/argminmax.h" -#include "src/runtime/kernel/opencl/cl/argminmax.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/kernel/argminmax.h" +#include "src/litert/kernel/opencl/cl/argminmax.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/argminmax.h b/mindspore/lite/src/litert/kernel/opencl/kernel/argminmax.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/argminmax.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/argminmax.h index 0ee3f3cdcce..00b5f0fed25 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/argminmax.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/argminmax.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_ARGMINMAX_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/arg_min_max_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic.cc index d60b5e8649e..77e6e77b06d 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/arithmetic.h" +#include "src/litert/kernel/opencl/kernel/arithmetic.h" #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/arithmetic.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/arithmetic.cl.inc" #include "nnacl/arithmetic.h" using mindspore::kernel::KERNEL_ARCH::kGPU; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.h b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic.h index 5ae09cf2a30..cccd9ebdfc5 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic.h @@ -22,7 +22,7 @@ #include #include #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { extern std::set SupportedOpenCLArithmetics; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic_self.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic_self.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic_self.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic_self.cc index 6978cf2d625..d47449abbd0 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic_self.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic_self.cc @@ -16,10 +16,10 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/arithmetic_self.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/arithmeticself.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/arithmetic_self.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/arithmeticself.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic_self.h b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic_self.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic_self.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic_self.h index 19b786aaa8d..d819fb29e32 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic_self.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/arithmetic_self.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/arithmetic_self_parameter.h" using mindspore::schema::PrimitiveType_Abs; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/batch_to_space_nd.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/batch_to_space_nd.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/batch_to_space_nd.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/batch_to_space_nd.cc index 115ecfde23e..88a86ef87d4 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/batch_to_space_nd.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/batch_to_space_nd.cc @@ -16,9 +16,9 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/batch_to_space_nd.h" -#include "src/runtime/kernel/opencl/cl/batch_to_space_nd.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/batch_to_space_nd.h" +#include "src/litert/kernel/opencl/cl/batch_to_space_nd.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/batch_to_space_nd.h b/mindspore/lite/src/litert/kernel/opencl/kernel/batch_to_space_nd.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/batch_to_space_nd.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/batch_to_space_nd.h index 62660798f52..a127e63337c 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/batch_to_space_nd.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/batch_to_space_nd.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_BATCH_TO_SPACE_ND_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/batch_to_space.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/batchnorm.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/batchnorm.cc index b8588a67219..73beea322b3 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/batchnorm.cc @@ -17,10 +17,10 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/batchnorm.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/batchnorm.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/batchnorm.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/batchnorm.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h b/mindspore/lite/src/litert/kernel/opencl/kernel/batchnorm.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/batchnorm.h index bc2054f5acf..44563b8d8d5 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/batchnorm.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_BATCHNORM_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/fp32/batchnorm_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/cast.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/cast.cc similarity index 95% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/cast.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/cast.cc index f30b5311119..77ddafd4fa5 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/cast.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/cast.cc @@ -17,10 +17,10 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/cast.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/cast.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/cast.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/cast.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/cast.h b/mindspore/lite/src/litert/kernel/opencl/kernel/cast.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/cast.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/cast.h index 9fde2efcb05..094f067c82b 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/cast.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/cast.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class CastOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/concat.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/concat.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/concat.cc index bb0c636e436..6d72640288c 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/concat.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/concat.h" +#include "src/litert/kernel/opencl/kernel/concat.h" #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/concat.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/concat.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h b/mindspore/lite/src/litert/kernel/opencl/kernel/concat.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/concat.h index a2f4e1d2598..15510be1aa6 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/concat.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_CONCAT_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/concat_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/conv2d.cc index 7e26b4c246f..d8510f2b41d 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d.cc @@ -14,19 +14,19 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/conv2d.h" +#include "src/litert/kernel/opencl/kernel/conv2d.h" #include #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "schema/ops_generated.h" #include "src/common/utils.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/kernel/depthwise_conv2d.h" -#include "src/runtime/kernel/opencl/kernel/fullconnection.h" -#include "src/runtime/kernel/opencl/kernel/winograd.h" -#include "src/runtime/kernel/opencl/cl/conv2d.cl.inc" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/kernel/depthwise_conv2d.h" +#include "src/litert/kernel/opencl/kernel/fullconnection.h" +#include "src/litert/kernel/opencl/kernel/winograd.h" +#include "src/litert/kernel/opencl/cl/conv2d.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d.h b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/conv2d.h index 4efdbedc99f..bceec7173d8 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d.h @@ -20,7 +20,7 @@ #include #include #include "src/tensor.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "schema/model_generated.h" #include "nnacl/conv_parameter.h" #include "schema/ops_generated.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d_transpose.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/conv2d_transpose.cc index 8f934215dd6..50f05a94621 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d_transpose.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/conv2d_transpose.h" +#include "src/litert/kernel/opencl/kernel/conv2d_transpose.h" #include #include #include "nnacl/fp32/common_func_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/cl/conv2d_transpose.cl.inc" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/cl/conv2d_transpose.cl.inc" +#include "src/litert/kernel/opencl/utils.h" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.h b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d_transpose.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/conv2d_transpose.h index 3195115734c..3a0b6491677 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/conv2d_transpose.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_CONV2D_TRANSPOSE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/conv_parameter.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class Conv2dTransposeOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/depthwise_conv2d.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/depthwise_conv2d.cc index 26ce22caad8..f2ef7dc238d 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/depthwise_conv2d.cc @@ -14,18 +14,18 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/depthwise_conv2d.h" +#include "src/litert/kernel/opencl/kernel/depthwise_conv2d.h" #include #include #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" #include "nnacl/fp32/common_func_fp32.h" #include "nnacl/op_base.h" #include "include/errorcode.h" -#include "src/runtime/kernel/opencl/cl/depthwise_conv2d.cl.inc" +#include "src/litert/kernel/opencl/cl/depthwise_conv2d.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.h b/mindspore/lite/src/litert/kernel/opencl/kernel/depthwise_conv2d.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/depthwise_conv2d.h index 1508a770205..26172d7aadc 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/depthwise_conv2d.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_DEPTHWISE_CONV2D_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/conv_parameter.h" using mindspore::lite::opencl::MemType; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/fill.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/fill.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/fill.cc index 19a72f6927b..112c1e9ed65 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/fill.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/fill.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/kernel/fill.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h b/mindspore/lite/src/litert/kernel/opencl/kernel/fill.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/fill.h index 17041b7378f..7b788413154 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/fill.h @@ -19,7 +19,7 @@ #include #include "nnacl/base/fill_base.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class FillOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/fullconnection.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/fullconnection.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/fullconnection.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/fullconnection.cc index 3f57afa7d10..5b32de61ae8 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/fullconnection.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/fullconnection.cc @@ -18,10 +18,10 @@ #include #include #include "nnacl/fp32/common_func_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/fullconnection.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/fullconnection.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/fullconnection.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/fullconnection.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/fullconnection.h b/mindspore/lite/src/litert/kernel/opencl/kernel/fullconnection.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/fullconnection.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/fullconnection.h index 29b7d7cdbc3..c895a9db7e7 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/fullconnection.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/fullconnection.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_FULLCONNECTION_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/matmul_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/fusion_eltwise.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/fusion_eltwise.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/fusion_eltwise.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/fusion_eltwise.cc index 276f9aaae8c..3080769d63b 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/fusion_eltwise.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/fusion_eltwise.cc @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/fusion_eltwise.h" +#include "src/litert/kernel/opencl/kernel/fusion_eltwise.h" #include -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/utils.h" #include "include/errorcode.h" #include "nnacl/arithmetic.h" #include "nnacl/fp32/activation_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/fusion_eltwise.h b/mindspore/lite/src/litert/kernel/opencl/kernel/fusion_eltwise.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/fusion_eltwise.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/fusion_eltwise.h index 6390dda161f..13e83702094 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/fusion_eltwise.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/fusion_eltwise.h @@ -23,10 +23,10 @@ #include #include #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" -#include "src/runtime/kernel/opencl/kernel/arithmetic.h" -#include "src/runtime/kernel/opencl/kernel/arithmetic_self.h" -#include "src/runtime/kernel/opencl/kernel/to_format.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/kernel/arithmetic.h" +#include "src/litert/kernel/opencl/kernel/arithmetic_self.h" +#include "src/litert/kernel/opencl/kernel/to_format.h" #include "schema/ops_generated.h" using mindspore::schema::ActivationType; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/gather.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/gather.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/gather.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/gather.cc index 94e69135ab4..384f7dd6bc6 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/gather.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/gather.cc @@ -18,10 +18,10 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/gather.h" -#include "src/runtime/kernel/opencl/cl/gather.cl.inc" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/gather.h" +#include "src/litert/kernel/opencl/cl/gather.cl.inc" +#include "src/litert/kernel/opencl/utils.h" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/gather.h b/mindspore/lite/src/litert/kernel/opencl/kernel/gather.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/gather.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/gather.h index 782826ec9b7..782600eca93 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/gather.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/gather.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_GATHER_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/gather_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/gl_to_cl.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/gl_to_cl.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/gl_to_cl.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/gl_to_cl.cc index 9e1a14ca140..fc260f404fd 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/gl_to_cl.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/gl_to_cl.cc @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/gl_to_cl.h" +#include "src/litert/kernel/opencl/kernel/gl_to_cl.h" #include #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/cl/gl_to_cl.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/cl/gl_to_cl.cl.inc" namespace mindspore::kernel { const cl_GLenum kGlTexture2D = 0x0DE1; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/gl_to_cl.h b/mindspore/lite/src/litert/kernel/opencl/kernel/gl_to_cl.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/gl_to_cl.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/gl_to_cl.h index 5809f2865e1..27fe4a4272a 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/gl_to_cl.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/gl_to_cl.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_GL_TO_CL_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class GLToCLOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/int8/arithmetic_int8.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/int8/arithmetic_int8.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/int8/arithmetic_int8.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/int8/arithmetic_int8.cc index d7e77101a07..8d0d0d6611d 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/int8/arithmetic_int8.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/int8/arithmetic_int8.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/int8/arithmetic_int8.h" +#include "src/litert/kernel/opencl/kernel/int8/arithmetic_int8.h" #include #include "nnacl/fp32/common_func_fp32.h" #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/int8/arithmetic.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/int8/arithmetic.cl.inc" #include "nnacl/arithmetic.h" using mindspore::kernel::KERNEL_ARCH::kGPU; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/int8/arithmetic_int8.h b/mindspore/lite/src/litert/kernel/opencl/kernel/int8/arithmetic_int8.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/int8/arithmetic_int8.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/int8/arithmetic_int8.h index 92564efc0d4..488be367f18 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/int8/arithmetic_int8.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/int8/arithmetic_int8.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class ArithmeticInt8OpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/layer_norm.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/layer_norm.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/layer_norm.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/layer_norm.cc index 57b1f17afa2..4b739c5b443 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/layer_norm.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/layer_norm.cc @@ -17,11 +17,11 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/layer_norm.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/layer_norm.h" #include "nnacl/layer_norm_parameter.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/layer_norm.cl.inc" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/layer_norm.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/layer_norm.h b/mindspore/lite/src/litert/kernel/opencl/kernel/layer_norm.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/layer_norm.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/layer_norm.h index 1b0fd1d4428..98839e563df 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/layer_norm.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/layer_norm.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_LAYER_NORM_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class LayerNormOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/matmul.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/matmul.cc index 2a252d733b4..ef3465c039a 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/matmul.cc @@ -17,10 +17,10 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/matmul.h" -#include "src/runtime/kernel/opencl/kernel/strassen.h" -#include "src/runtime/kernel/opencl/cl/matmul.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/matmul.h" +#include "src/litert/kernel/opencl/kernel/strassen.h" +#include "src/litert/kernel/opencl/cl/matmul.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h b/mindspore/lite/src/litert/kernel/opencl/kernel/matmul.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/matmul.h index e20047aa8a6..07f971aa45e 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/matmul.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_MATMUL_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "src/common/utils.h" #include "nnacl/matmul_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/one_hot.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/one_hot.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/one_hot.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/one_hot.cc index 5a798982863..e9554ce9393 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/one_hot.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/one_hot.cc @@ -16,9 +16,9 @@ #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/one_hot.h" -#include "src/runtime/kernel/opencl/cl/one_hot.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/one_hot.h" +#include "src/litert/kernel/opencl/cl/one_hot.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/one_hot.h b/mindspore/lite/src/litert/kernel/opencl/kernel/one_hot.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/one_hot.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/one_hot.h index 22929581207..86f9701e414 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/one_hot.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/one_hot.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/fp32/one_hot_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/pad.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/pad.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/pad.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/pad.cc index 0db209832cd..35478115f7a 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/pad.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/pad.cc @@ -17,11 +17,11 @@ #include #include #include "src/common/utils.h" -#include "src/runtime/kernel/opencl/kernel/pad.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/pad.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" -#include "src/runtime/kernel/opencl/cl/pad.cl.inc" +#include "src/litert/kernel/opencl/cl/pad.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/pad.h b/mindspore/lite/src/litert/kernel/opencl/kernel/pad.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/pad.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/pad.h index 3752982727d..195ec7c1136 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/pad.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/pad.h @@ -20,7 +20,7 @@ #include #include #include "src/tensor.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "schema/model_generated.h" #include "nnacl/pad_parameter.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/pooling2d.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/pooling2d.cc index b91ff2d2d89..e56858b487b 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/pooling2d.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/pooling2d.h" +#include "src/litert/kernel/opencl/kernel/pooling2d.h" #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/pooling2d.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/pooling2d.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h b/mindspore/lite/src/litert/kernel/opencl/kernel/pooling2d.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/pooling2d.h index 8d575108bc7..f65e93faaa3 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/pooling2d.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_POOLING2D_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/fp32/pooling_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/power.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/power.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/power.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/power.cc index 4e5743fb3c1..0e219825d72 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/power.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/power.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/power.h" +#include "src/litert/kernel/opencl/kernel/power.h" #include #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/power.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/power.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/power.h b/mindspore/lite/src/litert/kernel/opencl/kernel/power.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/power.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/power.h index 78de8b72e64..d2c3eae2e79 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/power.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/power.h @@ -19,7 +19,7 @@ #include #include "nnacl/fp32/power_fp32.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class PowerOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/prelu.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/prelu.cc index 8adbc0bf131..2269ede4c52 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/prelu.cc @@ -16,12 +16,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/prelu.h" +#include "src/litert/kernel/opencl/kernel/prelu.h" #include #include #include -#include "src/runtime/kernel/opencl/cl/prelu.cl.inc" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/opencl/cl/prelu.cl.inc" +#include "src/litert/kernel_registry.h" #include "include/errorcode.h" #include "nnacl/fp32/common_func_fp32.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.h b/mindspore/lite/src/litert/kernel/opencl/kernel/prelu.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/prelu.h index a3ac7b5c4cd..420fde9c8f8 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/prelu.h @@ -20,7 +20,7 @@ #include #include #include "src/tensor.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "schema/model_generated.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/reduce.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/reduce.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/reduce.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/reduce.cc index e8404e17981..9943a64e2a1 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/reduce.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/reduce.cc @@ -19,10 +19,10 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/reduce.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/reduce.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/reduce.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/reduce.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/reduce.h b/mindspore/lite/src/litert/kernel/opencl/kernel/reduce.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/reduce.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/reduce.h index 5e8cdc1ebba..1b093caa830 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/reduce.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/reduce.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/reduce_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/reshape.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/reshape.cc index f02fa2d5f36..bf91e608331 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/reshape.cc @@ -17,9 +17,9 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/reshape.h" -#include "src/runtime/kernel/opencl/cl/reshape.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/reshape.h" +#include "src/litert/kernel/opencl/cl/reshape.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h b/mindspore/lite/src/litert/kernel/opencl/kernel/reshape.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/reshape.h index 34366176757..7690af40aeb 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/reshape.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_RESHAPE_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class ReshapeOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/resize.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/resize.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/resize.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/resize.cc index b8c870fc331..9315729b712 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/resize.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/resize.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/resize.h" +#include "src/litert/kernel/opencl/kernel/resize.h" #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/cl/resize.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/cl/resize.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/resize.h b/mindspore/lite/src/litert/kernel/opencl/kernel/resize.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/resize.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/resize.h index 4421ed4f07c..74d1098a5c7 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/resize.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/resize.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_RESIZE_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/resize_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/scale.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/scale.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/scale.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/scale.cc index d7dfc69223f..54ee6503115 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/scale.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/scale.cc @@ -14,15 +14,15 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/scale.h" +#include "src/litert/kernel/opencl/kernel/scale.h" #include #include #include #include "schema/model_generated.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/fp32/common_func_fp32.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/scale.cl.inc" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/scale.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/scale.h b/mindspore/lite/src/litert/kernel/opencl/kernel/scale.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/scale.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/scale.h index f1abc693ff7..d3cd36047ab 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/scale.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/scale.h @@ -19,7 +19,7 @@ #include #include "nnacl/scale.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class ScaleOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/softmax.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/softmax.cc index 43fe681df75..5c5c4138bf9 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/softmax.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/softmax.h" +#include "src/litert/kernel/opencl/kernel/softmax.h" #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" #include "nnacl/softmax_parameter.h" -#include "src/runtime/kernel/opencl/cl/softmax.cl.inc" +#include "src/litert/kernel/opencl/cl/softmax.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h b/mindspore/lite/src/litert/kernel/opencl/kernel/softmax.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/softmax.h index 5cb4363e34b..84f223969d1 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/softmax.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SOFTMAX_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/fp32/softmax_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_batch_nd.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_batch_nd.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_batch_nd.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/space_to_batch_nd.cc index f422f7561de..73874e77c47 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_batch_nd.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_batch_nd.cc @@ -15,9 +15,9 @@ */ #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/space_to_batch_nd.h" -#include "src/runtime/kernel/opencl/cl/space_to_batch_nd.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/space_to_batch_nd.h" +#include "src/litert/kernel/opencl/cl/space_to_batch_nd.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_batch_nd.h b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_batch_nd.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_batch_nd.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/space_to_batch_nd.h index 157f0a51852..6dcd0ae6112 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_batch_nd.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_batch_nd.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SPACE_TO_BATCH_ND_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/fp32/space_to_batch_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_depth.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_depth.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_depth.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/space_to_depth.cc index 0c01af84f5b..ebfc9742c85 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_depth.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_depth.cc @@ -16,9 +16,9 @@ #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/space_to_depth.h" -#include "src/runtime/kernel/opencl/cl/space_to_depth.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/space_to_depth.h" +#include "src/litert/kernel/opencl/cl/space_to_depth.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_depth.h b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_depth.h similarity index 93% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_depth.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/space_to_depth.h index 019488e228f..75ecf703ace 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/space_to_depth.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/space_to_depth.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/space_to_depth_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/sparse_to_dense.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/sparse_to_dense.cc index c071a1fcc25..9e7908664e4 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/sparse_to_dense.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/sparse_to_dense.h" +#include "src/litert/kernel/opencl/kernel/sparse_to_dense.h" #include #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/sparse_to_dense.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/sparse_to_dense.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.h b/mindspore/lite/src/litert/kernel/opencl/kernel/sparse_to_dense.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/sparse_to_dense.h index 031db3eccc8..63181ed7e52 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/sparse_to_dense.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SPARSE_TO_DENSE_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/fp32/sparse_to_dense_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/split.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/split.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/split.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/split.cc index af40f6a0f69..c92c48690cd 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/split.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/split.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/split.h" +#include "src/litert/kernel/opencl/kernel/split.h" #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/cl/split.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/cl/split.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/split.h b/mindspore/lite/src/litert/kernel/opencl/kernel/split.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/split.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/split.h index 805793823b6..9f094f45d0e 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/split.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/split.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SPLIT_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/split_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/stack.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/stack.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/stack.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/stack.cc index 2293ad4c5ba..f4bab5302ea 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/stack.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/stack.cc @@ -14,13 +14,13 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/stack.h" +#include "src/litert/kernel/opencl/kernel/stack.h" #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/stack.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/stack.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/stack.h b/mindspore/lite/src/litert/kernel/opencl/kernel/stack.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/stack.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/stack.h index a8c3fd84c54..4e7bef91f45 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/stack.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/stack.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_STACK_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/stack_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/strassen.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/strassen.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/strassen.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/strassen.cc index 330af8ca9cb..aca2cbb5b5f 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/strassen.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/strassen.cc @@ -17,10 +17,10 @@ #include #include #include -#include "src/runtime/kernel/opencl/kernel/matmul.h" -#include "src/runtime/kernel/opencl/kernel/strassen.h" +#include "src/litert/kernel/opencl/kernel/matmul.h" +#include "src/litert/kernel/opencl/kernel/strassen.h" #include "src/common/utils.h" -#include "src/runtime/kernel/opencl/cl/strassen.cl.inc" +#include "src/litert/kernel/opencl/cl/strassen.cl.inc" using mindspore::lite::RET_OK; using mindspore::lite::opencl::ImageSize; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/strassen.h b/mindspore/lite/src/litert/kernel/opencl/kernel/strassen.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/strassen.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/strassen.h index 1f57dd787fb..e0282af8279 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/strassen.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/strassen.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/kernel/opencl/kernel/matmul.h" +#include "src/litert/kernel/opencl/kernel/matmul.h" #define MAXDEPTH 5 diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/strided_slice.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/strided_slice.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/strided_slice.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/strided_slice.cc index b4a1ec07eae..a80faf13d00 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/strided_slice.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/strided_slice.cc @@ -17,10 +17,10 @@ #include #include #include -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/strided_slice.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/cl/strided_slice.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/strided_slice.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/cl/strided_slice.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/strided_slice.h b/mindspore/lite/src/litert/kernel/opencl/kernel/strided_slice.h similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/strided_slice.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/strided_slice.h index 74b529dfc2f..dbc78f752ed 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/strided_slice.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/strided_slice.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_STRIDED_SLICE_H_ #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" #include "nnacl/base/slice_base.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/to_format.cc similarity index 96% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/to_format.cc index 8d18bd0a4c7..54748128714 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/to_format.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/to_format.h" +#include "src/litert/kernel/opencl/kernel/to_format.h" #include #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/cl/to_format.cl.inc" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/cl/to_format.cl.inc" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h b/mindspore/lite/src/litert/kernel/opencl/kernel/to_format.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/to_format.h index 5f5c19e74a4..e1020ede966 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/to_format.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_TO_FORMAT_H_ #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { class ToFormatOpenCLKernel : public OpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/transpose.cc similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/transpose.cc index 665da113d7c..634cae92f64 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/transpose.cc @@ -16,10 +16,10 @@ #include #include "include/errorcode.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/kernel/transpose.h" -#include "src/runtime/kernel/opencl/cl/transpose.cl.inc" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/kernel/transpose.h" +#include "src/litert/kernel/opencl/cl/transpose.cl.inc" +#include "src/litert/kernel/opencl/utils.h" using mindspore::kernel::KERNEL_ARCH::kGPU; using mindspore::lite::KernelRegistrar; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h b/mindspore/lite/src/litert/kernel/opencl/kernel/transpose.h similarity index 94% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/transpose.h index 5ca89cc74e0..9b66e166869 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/transpose.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_TRANSPOSE_H_ #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/transpose.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { enum class TransposeType { AXIS0312, AXIS0231, GENERAL }; diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/winograd.cc b/mindspore/lite/src/litert/kernel/opencl/kernel/winograd.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/winograd.cc rename to mindspore/lite/src/litert/kernel/opencl/kernel/winograd.cc index 96443de82e3..24690570523 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/winograd.cc +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/winograd.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/kernel/winograd.h" +#include "src/litert/kernel/opencl/kernel/winograd.h" #include -#include "src/runtime/kernel/opencl/cl/winograd.cl.inc" +#include "src/litert/kernel/opencl/cl/winograd.cl.inc" #include "nnacl/base/minimal_filtering_generator.h" #include "nnacl/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/winograd.h b/mindspore/lite/src/litert/kernel/opencl/kernel/winograd.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/kernel/winograd.h rename to mindspore/lite/src/litert/kernel/opencl/kernel/winograd.h index 3dbf8882647..bcceb63ffb1 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/winograd.h +++ b/mindspore/lite/src/litert/kernel/opencl/kernel/winograd.h @@ -19,7 +19,7 @@ #include #include -#include "src/runtime/kernel/opencl/kernel/conv2d.h" +#include "src/litert/kernel/opencl/kernel/conv2d.h" namespace mindspore::kernel { class WinogradOpenCLKernel : public Conv2DOpenCLKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/opencl_fusion.cc b/mindspore/lite/src/litert/kernel/opencl/opencl_fusion.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/opencl_fusion.cc rename to mindspore/lite/src/litert/kernel/opencl/opencl_fusion.cc index 7be7c6446ba..8fea7592181 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/opencl_fusion.cc +++ b/mindspore/lite/src/litert/kernel/opencl/opencl_fusion.cc @@ -17,13 +17,13 @@ #include #include #include -#include "src/runtime/kernel/opencl/opencl_subgraph.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" -#include "src/runtime/kernel/opencl/kernel/arithmetic.h" -#include "src/runtime/kernel/opencl/kernel/conv2d.h" -#include "src/runtime/kernel/opencl/kernel/fusion_eltwise.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/gpu/opencl/opencl_executor.h" +#include "src/litert/kernel/opencl/opencl_subgraph.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/kernel/arithmetic.h" +#include "src/litert/kernel/opencl/kernel/conv2d.h" +#include "src/litert/kernel/opencl/kernel/fusion_eltwise.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/gpu/opencl/opencl_executor.h" #include "include/errorcode.h" #include "schema/ops_generated.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/opencl_kernel.cc b/mindspore/lite/src/litert/kernel/opencl/opencl_kernel.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/opencl_kernel.cc rename to mindspore/lite/src/litert/kernel/opencl/opencl_kernel.cc index 65d7b3b90fe..f0b3107f832 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/opencl_kernel.cc +++ b/mindspore/lite/src/litert/kernel/opencl/opencl_kernel.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/infer_manager.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" -#include "src/runtime/weight_decoder.h" +#include "src/litert/infer_manager.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" +#include "src/litert/weight_decoder.h" #include "src/common/file_utils.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/opencl/opencl_kernel.h b/mindspore/lite/src/litert/kernel/opencl/opencl_kernel.h similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/opencl_kernel.h rename to mindspore/lite/src/litert/kernel/opencl/opencl_kernel.h index d177ab4a936..bc4db5c51ec 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/opencl_kernel.h +++ b/mindspore/lite/src/litert/kernel/opencl/opencl_kernel.h @@ -23,12 +23,12 @@ #include #include #include -#include "src/runtime/lite_kernel.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/lite_kernel.h" +#include "src/litert/kernel_exec.h" #include "include/errorcode.h" -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" -#include "mindspore/lite/src/runtime/tensor_category.h" -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" +#include "mindspore/lite/src/litert/tensor_category.h" +#include "src/litert/kernel/opencl/utils.h" #include "nnacl/resize_parameter.h" using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.cc b/mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.cc rename to mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.cc index 9eb80dc7f8e..3b7db9e83e6 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.cc +++ b/mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.cc @@ -14,16 +14,16 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/opencl_subgraph.h" +#include "src/litert/kernel/opencl/opencl_subgraph.h" #include #include #include #include #include -#include "src/runtime/kernel/gpu/opencl/opencl_executor.h" -#include "src/runtime/kernel/opencl/utils.h" -#include "src/runtime/kernel/opencl/kernel/to_format.h" -#include "src/runtime/kernel/opencl/kernel/gl_to_cl.h" +#include "src/litert/kernel/gpu/opencl/opencl_executor.h" +#include "src/litert/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/kernel/to_format.h" +#include "src/litert/kernel/opencl/kernel/gl_to_cl.h" #include "include/errorcode.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.h b/mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.h similarity index 95% rename from mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.h rename to mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.h index d3870d663fe..045321f3694 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.h +++ b/mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.h @@ -20,10 +20,10 @@ #include #include #include -#include "src/runtime/kernel/opencl/opencl_kernel.h" -#include "src/runtime/kernel/gpu/opencl/opencl_allocator.h" -#include "src/runtime/kernel/gpu/opencl/opencl_executor.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/gpu/opencl/opencl_allocator.h" +#include "src/litert/kernel/gpu/opencl/opencl_executor.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::kernel { class OpenCLSubGraph : public SubGraphKernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/utils.cc b/mindspore/lite/src/litert/kernel/opencl/utils.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel/opencl/utils.cc rename to mindspore/lite/src/litert/kernel/opencl/utils.cc index 9757a64e413..cd495bff412 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/utils.cc +++ b/mindspore/lite/src/litert/kernel/opencl/utils.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/kernel/opencl/utils.h" +#include "src/litert/kernel/opencl/utils.h" #include #include #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "src/common/file_utils.h" using mindspore::schema::ActivationType_LEAKY_RELU; diff --git a/mindspore/lite/src/runtime/kernel/opencl/utils.h b/mindspore/lite/src/litert/kernel/opencl/utils.h similarity index 97% rename from mindspore/lite/src/runtime/kernel/opencl/utils.h rename to mindspore/lite/src/litert/kernel/opencl/utils.h index f1bfcb14145..1b70960909c 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/utils.h +++ b/mindspore/lite/src/litert/kernel/opencl/utils.h @@ -23,9 +23,9 @@ #include "CL/cl2.hpp" #include "src/common/log_adapter.h" #include "nnacl/op_base.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "src/common/utils.h" -#include "src/runtime/kernel/opencl/opencl_kernel.h" +#include "src/litert/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { struct GpuTensorInfo; diff --git a/mindspore/lite/src/runtime/kernel_exec.cc b/mindspore/lite/src/litert/kernel_exec.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel_exec.cc rename to mindspore/lite/src/litert/kernel_exec.cc index 8f5951b78c3..101ac795e9c 100644 --- a/mindspore/lite/src/runtime/kernel_exec.cc +++ b/mindspore/lite/src/litert/kernel_exec.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include #include "src/tensor.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/runtime/kernel_exec.h b/mindspore/lite/src/litert/kernel_exec.h similarity index 99% rename from mindspore/lite/src/runtime/kernel_exec.h rename to mindspore/lite/src/litert/kernel_exec.h index 0480bb2b8f3..94c2afbb738 100644 --- a/mindspore/lite/src/runtime/kernel_exec.h +++ b/mindspore/lite/src/litert/kernel_exec.h @@ -27,14 +27,14 @@ #include #endif #include "nnacl/op_base.h" -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" #include "src/tensor.h" #include "include/errorcode.h" #include "schema/model_generated.h" #include "include/context.h" #include "include/api/kernel.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" -#include "src/runtime/lite_kernel.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" +#include "src/litert/lite_kernel.h" #include "include/api/delegate.h" #include "extendrt/mindir_loader/abstract_kernel.h" #include "include/lite_types.h" diff --git a/mindspore/lite/src/runtime/kernel_exec_util.cc b/mindspore/lite/src/litert/kernel_exec_util.cc similarity index 98% rename from mindspore/lite/src/runtime/kernel_exec_util.cc rename to mindspore/lite/src/litert/kernel_exec_util.cc index 474fcc25885..967dec20507 100644 --- a/mindspore/lite/src/runtime/kernel_exec_util.cc +++ b/mindspore/lite/src/litert/kernel_exec_util.cc @@ -14,19 +14,19 @@ * limitations under the License. */ -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" #include #include #include #include -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/sub_graph_kernel.h" #include "nnacl/call_parameter.h" #if GPU_OPENCL -#include "src/runtime/kernel/opencl/opencl_subgraph.h" -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/kernel/opencl/opencl_subgraph.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" #endif #include "src/control_flow/control_subgraph_creator.h" -#include "src/runtime/kernel/cpu/base/partial_fusion.h" +#include "src/litert/kernel/cpu/base/partial_fusion.h" namespace mindspore::kernel { using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/kernel_exec_util.h b/mindspore/lite/src/litert/kernel_exec_util.h similarity index 96% rename from mindspore/lite/src/runtime/kernel_exec_util.h rename to mindspore/lite/src/litert/kernel_exec_util.h index e45c185b341..02fb4189cd2 100644 --- a/mindspore/lite/src/runtime/kernel_exec_util.h +++ b/mindspore/lite/src/litert/kernel_exec_util.h @@ -18,9 +18,9 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_EXEC_UTIL_H_ #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/sub_graph_kernel.h" -#include "src/runtime/inner_context.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/sub_graph_kernel.h" +#include "src/litert/inner_context.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel_registry.cc b/mindspore/lite/src/litert/kernel_registry.cc similarity index 99% rename from mindspore/lite/src/runtime/kernel_registry.cc rename to mindspore/lite/src/litert/kernel_registry.cc index e309ae767ab..eba0ca2454d 100644 --- a/mindspore/lite/src/runtime/kernel_registry.cc +++ b/mindspore/lite/src/litert/kernel_registry.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include #include #include "include/errorcode.h" @@ -32,7 +32,7 @@ #include "src/common/utils.h" #endif #include "src/common/tensor_util.h" -#include "src/runtime/kernel/cpu/cpu_kernel.h" +#include "src/litert/kernel/cpu/cpu_kernel.h" #include "nnacl/kernel.h" using mindspore::kernel::kBuiltin; diff --git a/mindspore/lite/src/runtime/kernel_registry.h b/mindspore/lite/src/litert/kernel_registry.h similarity index 99% rename from mindspore/lite/src/runtime/kernel_registry.h rename to mindspore/lite/src/litert/kernel_registry.h index 853d863a831..fe00e56de88 100644 --- a/mindspore/lite/src/runtime/kernel_registry.h +++ b/mindspore/lite/src/litert/kernel_registry.h @@ -22,7 +22,7 @@ #include #include #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "schema/model_generated.h" using mindspore::kernel::kKernelArch_MAX; diff --git a/mindspore/lite/src/runtime/lite_kernel.cc b/mindspore/lite/src/litert/lite_kernel.cc similarity index 97% rename from mindspore/lite/src/runtime/lite_kernel.cc rename to mindspore/lite/src/litert/lite_kernel.cc index 916e6ddd001..b696d1c7cd7 100644 --- a/mindspore/lite/src/runtime/lite_kernel.cc +++ b/mindspore/lite/src/litert/lite_kernel.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include #include "src/tensor.h" #include "src/common/utils.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" namespace mindspore::kernel { using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/lite_kernel.h b/mindspore/lite/src/litert/lite_kernel.h similarity index 98% rename from mindspore/lite/src/runtime/lite_kernel.h rename to mindspore/lite/src/litert/lite_kernel.h index ce829320283..3c5387095e7 100644 --- a/mindspore/lite/src/runtime/lite_kernel.h +++ b/mindspore/lite/src/litert/lite_kernel.h @@ -24,14 +24,14 @@ #include "src/common/utils.h" #include "src/common/log_util.h" #include "nnacl/op_base.h" -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" #include "src/tensor.h" #include "include/errorcode.h" #include "schema/model_generated.h" -#include "src/runtime/cxx_api/tensor/tensor_impl.h" +#include "src/litert/cxx_api/tensor/tensor_impl.h" #include "include/api/context.h" #include "include/api/kernel.h" -#include "src/runtime/thread_cost_model.h" +#include "src/litert/thread_cost_model.h" #include "extendrt/mindir_loader/abstract_kernel.h" using mindspore::infer::Abstractkernel; diff --git a/mindspore/lite/src/runtime/lite_mindrt.cc b/mindspore/lite/src/litert/lite_mindrt.cc similarity index 98% rename from mindspore/lite/src/runtime/lite_mindrt.cc rename to mindspore/lite/src/litert/lite_mindrt.cc index 71981f65327..8c7857307c2 100644 --- a/mindspore/lite/src/runtime/lite_mindrt.cc +++ b/mindspore/lite/src/litert/lite_mindrt.cc @@ -16,13 +16,13 @@ #include #include -#include "src/runtime/lite_mindrt.h" +#include "src/litert/lite_mindrt.h" #include "mindrt/include/mindrt.hpp" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" #include "src/common/tensor_util.h" #include "src/common/common.h" -#include "src/runtime/inner_allocator.h" -#include "src/runtime/kernel/cpu/base/partial_fusion.h" +#include "src/litert/inner_allocator.h" +#include "src/litert/kernel/cpu/base/partial_fusion.h" #include "src/control_flow/control_actor_creator.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/lite_mindrt.h b/mindspore/lite/src/litert/lite_mindrt.h similarity index 97% rename from mindspore/lite/src/runtime/lite_mindrt.h rename to mindspore/lite/src/litert/lite_mindrt.h index 75ef3fa59e0..b09902df30b 100644 --- a/mindspore/lite/src/runtime/lite_mindrt.h +++ b/mindspore/lite/src/litert/lite_mindrt.h @@ -23,12 +23,12 @@ #include #include #include "actor/op_actor.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "actor/actor.h" #include "async/uuid_base.h" #include "async/future.h" -#include "src/runtime/sub_graph_kernel.h" -#include "src/runtime/cpu_info.h" +#include "src/litert/sub_graph_kernel.h" +#include "src/litert/cpu_info.h" #include "src/tensorlist.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/lite_model.cc b/mindspore/lite/src/litert/lite_model.cc similarity index 99% rename from mindspore/lite/src/runtime/lite_model.cc rename to mindspore/lite/src/litert/lite_model.cc index 124b4728e1b..656045f2128 100644 --- a/mindspore/lite/src/runtime/lite_model.cc +++ b/mindspore/lite/src/litert/lite_model.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" #include #include #include diff --git a/mindspore/lite/src/runtime/lite_model.h b/mindspore/lite/src/litert/lite_model.h similarity index 99% rename from mindspore/lite/src/runtime/lite_model.h rename to mindspore/lite/src/litert/lite_model.h index f6c7ebc457f..1bb4cf475fc 100644 --- a/mindspore/lite/src/runtime/lite_model.h +++ b/mindspore/lite/src/litert/lite_model.h @@ -26,7 +26,7 @@ #include "src/common/common.h" #include "src/common/log_adapter.h" #include "src/common/version_manager.h" -#include "src/runtime/schema_tensor_wrapper.h" +#include "src/litert/schema_tensor_wrapper.h" #include "nnacl/op_base.h" #include "src/common/prim_util.h" #ifdef ENABLE_MODEL_OBF diff --git a/mindspore/lite/src/runtime/lite_session.cc b/mindspore/lite/src/litert/lite_session.cc similarity index 98% rename from mindspore/lite/src/runtime/lite_session.cc rename to mindspore/lite/src/litert/lite_session.cc index 1432930ee75..f0419d06ba0 100644 --- a/mindspore/lite/src/runtime/lite_session.cc +++ b/mindspore/lite/src/litert/lite_session.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include -#include "src/runtime/pack_weight_manager.h" -#include "src/runtime/runtime_pass.h" +#include "src/litert/pack_weight_manager.h" +#include "src/litert/runtime_pass.h" #if defined(LINUX_RUNTIME) #include #endif @@ -25,34 +25,34 @@ #include #include "include/errorcode.h" #include "src/common/log_adapter.h" -#include "src/runtime/scheduler.h" -#include "src/runtime/inner_allocator.h" -#include "src/runtime/executor.h" +#include "src/litert/scheduler.h" +#include "src/litert/inner_allocator.h" +#include "src/litert/executor.h" #include "src/common/context_util.h" #include "src/common/utils.h" #include "src/common/graph_util.h" #include "src/common/tensor_util.h" #include "src/common/file_utils.h" -#include "src/runtime/lite_model.h" -#include "src/runtime/weight_decoder.h" -#include "src/runtime/runtime_allocator.h" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/lite_model.h" +#include "src/litert/weight_decoder.h" +#include "src/litert/runtime_allocator.h" +#include "src/litert/kernel_exec_util.h" #ifndef CUSTOM_KERNEL_REGISTRY_CLIP #include "src/registry/register_kernel_impl.h" #endif #ifdef ENABLE_MINDRT -#include "src/runtime/mindrt_executor.h" +#include "src/litert/mindrt_executor.h" #endif #if SUPPORT_NPU -#include "src/runtime/delegate/npu/npu_delegate.h" +#include "src/litert/delegate/npu/npu_delegate.h" #endif #if GPU_OPENCL -#include "src/runtime/kernel/opencl/opencl_subgraph.h" +#include "src/litert/kernel/opencl/opencl_subgraph.h" #endif #if GPU_TENSORRT #include "src/extendrt/delegate/tensorrt/tensorrt_delegate.h" #endif -#include "src/runtime/runtime_convert.h" +#include "src/litert/runtime_convert.h" #include "extendrt/mindir_loader/model_loader.h" using AbstractBaseModel = mindspore::infer::AbstractBaseModel; diff --git a/mindspore/lite/src/runtime/lite_session.h b/mindspore/lite/src/litert/lite_session.h similarity index 97% rename from mindspore/lite/src/runtime/lite_session.h rename to mindspore/lite/src/litert/lite_session.h index 9a28e75a4e0..a73353600af 100644 --- a/mindspore/lite/src/runtime/lite_session.h +++ b/mindspore/lite/src/litert/lite_session.h @@ -23,19 +23,19 @@ #include #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/lite_model.h" -#include "src/runtime/inner_context.h" -#include "src/runtime/runtime_allocator.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/lite_model.h" +#include "src/litert/inner_context.h" +#include "src/litert/runtime_allocator.h" #include "schema/model_generated.h" -#include "src/runtime/executor.h" +#include "src/litert/executor.h" #include "src/tensor.h" #include "src/tensorlist.h" #include "include/api/delegate.h" #if GPU_OPENCL -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" #endif -#include "src/runtime/scheduler_cb.h" +#include "src/litert/scheduler_cb.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/runtime/mindrt_executor.cc b/mindspore/lite/src/litert/mindrt_executor.cc similarity index 98% rename from mindspore/lite/src/runtime/mindrt_executor.cc rename to mindspore/lite/src/litert/mindrt_executor.cc index 606ee40176a..3560960aab4 100644 --- a/mindspore/lite/src/runtime/mindrt_executor.cc +++ b/mindspore/lite/src/litert/mindrt_executor.cc @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/mindrt_executor.h" +#include "src/litert/mindrt_executor.h" #include #include #include #include -#include "src/runtime/lite_mindrt.h" +#include "src/litert/lite_mindrt.h" #include "include/errorcode.h" #include "src/common/common.h" #include "src/common/tensor_util.h" #ifdef ENABLE_FP16 #include "nnacl/base/cast_base.h" #endif -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" namespace mindspore::lite { namespace { diff --git a/mindspore/lite/src/runtime/mindrt_executor.h b/mindspore/lite/src/litert/mindrt_executor.h similarity index 94% rename from mindspore/lite/src/runtime/mindrt_executor.h rename to mindspore/lite/src/litert/mindrt_executor.h index bc5e1538653..2a4ff8e3114 100644 --- a/mindspore/lite/src/runtime/mindrt_executor.h +++ b/mindspore/lite/src/litert/mindrt_executor.h @@ -22,10 +22,10 @@ #include #include #include -#include "src/runtime/inner_allocator.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/lite_mindrt.h" -#include "src/runtime/executor.h" +#include "src/litert/inner_allocator.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/lite_mindrt.h" +#include "src/litert/executor.h" #include "mindrt/src/actor/actormgr.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/numa_adapter.cc b/mindspore/lite/src/litert/numa_adapter.cc similarity index 99% rename from mindspore/lite/src/runtime/numa_adapter.cc rename to mindspore/lite/src/litert/numa_adapter.cc index 8dfdcbf4ffd..92df78ab55b 100644 --- a/mindspore/lite/src/runtime/numa_adapter.cc +++ b/mindspore/lite/src/litert/numa_adapter.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/numa_adapter.h" +#include "src/litert/numa_adapter.h" #include #include #include diff --git a/mindspore/lite/src/runtime/numa_adapter.h b/mindspore/lite/src/litert/numa_adapter.h similarity index 100% rename from mindspore/lite/src/runtime/numa_adapter.h rename to mindspore/lite/src/litert/numa_adapter.h diff --git a/mindspore/lite/src/runtime/pack_weight.cc b/mindspore/lite/src/litert/pack_weight.cc similarity index 99% rename from mindspore/lite/src/runtime/pack_weight.cc rename to mindspore/lite/src/litert/pack_weight.cc index ae2345187bf..79a095bc352 100644 --- a/mindspore/lite/src/runtime/pack_weight.cc +++ b/mindspore/lite/src/litert/pack_weight.cc @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/pack_weight.h" -#include "src/runtime/dynamic_mem_allocator.h" +#include "src/litert/pack_weight.h" +#include "src/litert/dynamic_mem_allocator.h" namespace mindspore::lite { STATUS PackWeight::InitWeightManagerByBuf(const char *model_buf, size_t model_size, int numa_id, bool copy_buf) { MS_CHECK_TRUE_MSG(model_buf != nullptr, RET_ERROR, "model buf is nullptr in pack weight manager."); diff --git a/mindspore/lite/src/runtime/pack_weight.h b/mindspore/lite/src/litert/pack_weight.h similarity index 98% rename from mindspore/lite/src/runtime/pack_weight.h rename to mindspore/lite/src/litert/pack_weight.h index 0469b3522a7..d830240ad65 100644 --- a/mindspore/lite/src/runtime/pack_weight.h +++ b/mindspore/lite/src/litert/pack_weight.h @@ -26,7 +26,7 @@ #include #include #include "src/tensor.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" namespace mindspore::lite { struct ModelConstWeight { // origin tensor data <-> packed tensor data diff --git a/mindspore/lite/src/runtime/pack_weight_manager.cc b/mindspore/lite/src/litert/pack_weight_manager.cc similarity index 99% rename from mindspore/lite/src/runtime/pack_weight_manager.cc rename to mindspore/lite/src/litert/pack_weight_manager.cc index aa5c08f7e3f..225caf348bd 100644 --- a/mindspore/lite/src/runtime/pack_weight_manager.cc +++ b/mindspore/lite/src/litert/pack_weight_manager.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/pack_weight_manager.h" #include #include "src/common/graph_util.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/pack_weight_manager.h b/mindspore/lite/src/litert/pack_weight_manager.h similarity index 98% rename from mindspore/lite/src/runtime/pack_weight_manager.h rename to mindspore/lite/src/litert/pack_weight_manager.h index 55fb63960e7..46243d54996 100644 --- a/mindspore/lite/src/runtime/pack_weight_manager.h +++ b/mindspore/lite/src/litert/pack_weight_manager.h @@ -22,7 +22,7 @@ #include "include/errorcode.h" #include "src/tensor.h" #ifdef SHARING_MODEL_WEIGHT -#include "src/runtime/pack_weight.h" +#include "src/litert/pack_weight.h" #endif namespace mindspore::lite { class PackWeightManager { diff --git a/mindspore/lite/src/runtime/parallel_config.h b/mindspore/lite/src/litert/parallel_config.h similarity index 100% rename from mindspore/lite/src/runtime/parallel_config.h rename to mindspore/lite/src/litert/parallel_config.h diff --git a/mindspore/lite/src/runtime/pass/decrease_transpose_algo.cc b/mindspore/lite/src/litert/pass/decrease_transpose_algo.cc similarity index 99% rename from mindspore/lite/src/runtime/pass/decrease_transpose_algo.cc rename to mindspore/lite/src/litert/pass/decrease_transpose_algo.cc index 0e7dcd82eca..1f1b15b4415 100644 --- a/mindspore/lite/src/runtime/pass/decrease_transpose_algo.cc +++ b/mindspore/lite/src/litert/pass/decrease_transpose_algo.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/pass/decrease_transpose_algo.h" -#include "src/runtime/kernel_exec_util.h" -#include "src/runtime/pass/pass_utils.h" +#include "src/litert/pass/decrease_transpose_algo.h" +#include "src/litert/kernel_exec_util.h" +#include "src/litert/pass/pass_utils.h" #include "nnacl/base/format_transpose.h" namespace mindspore::lite::pass { diff --git a/mindspore/lite/src/runtime/pass/decrease_transpose_algo.h b/mindspore/lite/src/litert/pass/decrease_transpose_algo.h similarity index 89% rename from mindspore/lite/src/runtime/pass/decrease_transpose_algo.h rename to mindspore/lite/src/litert/pass/decrease_transpose_algo.h index 627734fc824..f0ab0533993 100644 --- a/mindspore/lite/src/runtime/pass/decrease_transpose_algo.h +++ b/mindspore/lite/src/litert/pass/decrease_transpose_algo.h @@ -18,10 +18,10 @@ #define MINDSPORE_LITE_SRC_RUNTIME_PASS_DECREASE_TRANSPOSE_ALGO_H_ #include -#include "src/runtime/pass/runtime_optimizer.h" -#include "src/runtime/pass/pass_utils.h" -#include "src/runtime/pass/delete_isolated_kernel.h" -#include "src/runtime/pass/transpose_strategy.h" +#include "src/litert/pass/runtime_optimizer.h" +#include "src/litert/pass/pass_utils.h" +#include "src/litert/pass/delete_isolated_kernel.h" +#include "src/litert/pass/transpose_strategy.h" namespace mindspore::lite::pass { class DecreaseTransposeAlgo : public RuntimePass { diff --git a/mindspore/lite/src/runtime/pass/delete_isolated_kernel.cc b/mindspore/lite/src/litert/pass/delete_isolated_kernel.cc similarity index 94% rename from mindspore/lite/src/runtime/pass/delete_isolated_kernel.cc rename to mindspore/lite/src/litert/pass/delete_isolated_kernel.cc index c3a36119b0e..ecc7b131f36 100644 --- a/mindspore/lite/src/runtime/pass/delete_isolated_kernel.cc +++ b/mindspore/lite/src/litert/pass/delete_isolated_kernel.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/pass/delete_isolated_kernel.h" +#include "src/litert/pass/delete_isolated_kernel.h" #include #include -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" namespace mindspore::lite::pass { int DeleteIsolatedKernel::Run(kernel::SubGraphKernel *subgraph, std::vector *tensors) { diff --git a/mindspore/lite/src/runtime/pass/delete_isolated_kernel.h b/mindspore/lite/src/litert/pass/delete_isolated_kernel.h similarity index 95% rename from mindspore/lite/src/runtime/pass/delete_isolated_kernel.h rename to mindspore/lite/src/litert/pass/delete_isolated_kernel.h index 2691062271d..3fadad4fe25 100644 --- a/mindspore/lite/src/runtime/pass/delete_isolated_kernel.h +++ b/mindspore/lite/src/litert/pass/delete_isolated_kernel.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_PASS_DELETE_ISOLATED_KERNEL_H_ #include -#include "src/runtime/pass/runtime_optimizer.h" +#include "src/litert/pass/runtime_optimizer.h" namespace mindspore::lite::pass { class DeleteIsolatedKernel : public RuntimePass { diff --git a/mindspore/lite/src/runtime/pass/infershape_pass.cc b/mindspore/lite/src/litert/pass/infershape_pass.cc similarity index 92% rename from mindspore/lite/src/runtime/pass/infershape_pass.cc rename to mindspore/lite/src/litert/pass/infershape_pass.cc index 5ecd60bb610..9e3724233de 100644 --- a/mindspore/lite/src/runtime/pass/infershape_pass.cc +++ b/mindspore/lite/src/litert/pass/infershape_pass.cc @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "src/runtime/pass/infershape_pass.h" -#include "src/runtime/infer_manager.h" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/pass/infershape_pass.h" +#include "src/litert/infer_manager.h" +#include "src/litert/kernel_exec_util.h" namespace mindspore::lite::pass { int Infershape::Run(kernel::SubGraphKernel *subgraph, std::vector *tensors) { diff --git a/mindspore/lite/src/runtime/pass/infershape_pass.h b/mindspore/lite/src/litert/pass/infershape_pass.h similarity index 95% rename from mindspore/lite/src/runtime/pass/infershape_pass.h rename to mindspore/lite/src/litert/pass/infershape_pass.h index 889d41be639..2138316866b 100644 --- a/mindspore/lite/src/runtime/pass/infershape_pass.h +++ b/mindspore/lite/src/litert/pass/infershape_pass.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_PASS_INFERSHAPE_PASS_H_ #include -#include "src/runtime/pass/runtime_optimizer.h" +#include "src/litert/pass/runtime_optimizer.h" namespace mindspore::lite::pass { class Infershape : public RuntimePass { diff --git a/mindspore/lite/src/runtime/pass/pass_utils.cc b/mindspore/lite/src/litert/pass/pass_utils.cc similarity index 98% rename from mindspore/lite/src/runtime/pass/pass_utils.cc rename to mindspore/lite/src/litert/pass/pass_utils.cc index d142c8c998f..735abf21055 100644 --- a/mindspore/lite/src/runtime/pass/pass_utils.cc +++ b/mindspore/lite/src/litert/pass/pass_utils.cc @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "src/runtime/pass/pass_utils.h" +#include "src/litert/pass/pass_utils.h" #include #include #include #include -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/format_transpose_parameter.h" namespace mindspore::lite::pass { diff --git a/mindspore/lite/src/runtime/pass/pass_utils.h b/mindspore/lite/src/litert/pass/pass_utils.h similarity index 96% rename from mindspore/lite/src/runtime/pass/pass_utils.h rename to mindspore/lite/src/litert/pass/pass_utils.h index 3a4692a785e..ad97a9c1625 100644 --- a/mindspore/lite/src/runtime/pass/pass_utils.h +++ b/mindspore/lite/src/litert/pass/pass_utils.h @@ -18,8 +18,8 @@ #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::lite::pass { static const std::vector nh2nc_perm = {0, 3, 1, 2}; diff --git a/mindspore/lite/src/runtime/pass/runtime_ncx_pass.cc b/mindspore/lite/src/litert/pass/runtime_ncx_pass.cc similarity index 90% rename from mindspore/lite/src/runtime/pass/runtime_ncx_pass.cc rename to mindspore/lite/src/litert/pass/runtime_ncx_pass.cc index 26ad0096080..69deb4b95f6 100644 --- a/mindspore/lite/src/runtime/pass/runtime_ncx_pass.cc +++ b/mindspore/lite/src/litert/pass/runtime_ncx_pass.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include "src/runtime/pass/runtime_ncx_pass.h" +#include "src/litert/pass/runtime_ncx_pass.h" #include #include #ifdef ENABLE_RUNTIME_NCX_PASS -#include "src/runtime/pass/runtime_optimizer.h" -#include "src/runtime/pass/to_nchw_format.h" -#include "src/runtime/pass/decrease_transpose_algo.h" -#include "src/runtime/pass/infershape_pass.h" +#include "src/litert/pass/runtime_optimizer.h" +#include "src/litert/pass/to_nchw_format.h" +#include "src/litert/pass/decrease_transpose_algo.h" +#include "src/litert/pass/infershape_pass.h" #endif namespace mindspore::lite::pass { diff --git a/mindspore/lite/src/runtime/pass/runtime_ncx_pass.h b/mindspore/lite/src/litert/pass/runtime_ncx_pass.h similarity index 92% rename from mindspore/lite/src/runtime/pass/runtime_ncx_pass.h rename to mindspore/lite/src/litert/pass/runtime_ncx_pass.h index e276a7267ad..ae86e321a45 100644 --- a/mindspore/lite/src/runtime/pass/runtime_ncx_pass.h +++ b/mindspore/lite/src/litert/pass/runtime_ncx_pass.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_PASS_RUNTIME_NCX_PASS_H_ #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::lite::pass { // To support NC4HW4(fp32) or NC8HW8(fp16) runtime kernel. diff --git a/mindspore/lite/src/runtime/pass/runtime_optimizer.cc b/mindspore/lite/src/litert/pass/runtime_optimizer.cc similarity index 96% rename from mindspore/lite/src/runtime/pass/runtime_optimizer.cc rename to mindspore/lite/src/litert/pass/runtime_optimizer.cc index 95de0d030eb..d1f73a900f0 100644 --- a/mindspore/lite/src/runtime/pass/runtime_optimizer.cc +++ b/mindspore/lite/src/litert/pass/runtime_optimizer.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/pass/runtime_optimizer.h" +#include "src/litert/pass/runtime_optimizer.h" namespace mindspore::lite::pass { RuntimeOptimizer::~RuntimeOptimizer() { passes_.clear(); } diff --git a/mindspore/lite/src/runtime/pass/runtime_optimizer.h b/mindspore/lite/src/litert/pass/runtime_optimizer.h similarity index 97% rename from mindspore/lite/src/runtime/pass/runtime_optimizer.h rename to mindspore/lite/src/litert/pass/runtime_optimizer.h index 4f11029f781..4b7b086909a 100644 --- a/mindspore/lite/src/runtime/pass/runtime_optimizer.h +++ b/mindspore/lite/src/litert/pass/runtime_optimizer.h @@ -18,7 +18,7 @@ #include #include -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/sub_graph_kernel.h" namespace mindspore::lite::pass { class RuntimePass { diff --git a/mindspore/lite/src/runtime/pass/to_nchw_format.cc b/mindspore/lite/src/litert/pass/to_nchw_format.cc similarity index 97% rename from mindspore/lite/src/runtime/pass/to_nchw_format.cc rename to mindspore/lite/src/litert/pass/to_nchw_format.cc index f771466baa6..9bafbba9783 100644 --- a/mindspore/lite/src/runtime/pass/to_nchw_format.cc +++ b/mindspore/lite/src/litert/pass/to_nchw_format.cc @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "src/runtime/pass/to_nchw_format.h" +#include "src/litert/pass/to_nchw_format.h" #include -#include "src/runtime/kernel_exec_util.h" -#include "src/runtime/pass/pass_utils.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_exec_util.h" +#include "src/litert/pass/pass_utils.h" +#include "src/litert/kernel_registry.h" namespace mindspore::lite::pass { // Holds the index of the input tensor index that needs to be inserted a transpose kernel. diff --git a/mindspore/lite/src/runtime/pass/to_nchw_format.h b/mindspore/lite/src/litert/pass/to_nchw_format.h similarity index 96% rename from mindspore/lite/src/runtime/pass/to_nchw_format.h rename to mindspore/lite/src/litert/pass/to_nchw_format.h index 5f0d7043ec6..651ba75ae1e 100644 --- a/mindspore/lite/src/runtime/pass/to_nchw_format.h +++ b/mindspore/lite/src/litert/pass/to_nchw_format.h @@ -19,8 +19,8 @@ #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/pass/runtime_optimizer.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/pass/runtime_optimizer.h" #include "schema/ops_generated.h" namespace mindspore::lite::pass { diff --git a/mindspore/lite/src/runtime/pass/transpose_strategy.cc b/mindspore/lite/src/litert/pass/transpose_strategy.cc similarity index 99% rename from mindspore/lite/src/runtime/pass/transpose_strategy.cc rename to mindspore/lite/src/litert/pass/transpose_strategy.cc index c70d5210ceb..61818192969 100644 --- a/mindspore/lite/src/runtime/pass/transpose_strategy.cc +++ b/mindspore/lite/src/litert/pass/transpose_strategy.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/pass/transpose_strategy.h" +#include "src/litert/pass/transpose_strategy.h" #include #include #include "nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/pass/transpose_strategy.h b/mindspore/lite/src/litert/pass/transpose_strategy.h similarity index 98% rename from mindspore/lite/src/runtime/pass/transpose_strategy.h rename to mindspore/lite/src/litert/pass/transpose_strategy.h index 2e487ee05a4..4b98ca06cab 100644 --- a/mindspore/lite/src/runtime/pass/transpose_strategy.h +++ b/mindspore/lite/src/litert/pass/transpose_strategy.h @@ -19,8 +19,8 @@ #include #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/pass/pass_utils.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/pass/pass_utils.h" namespace mindspore::lite::pass { // bool value determines whether the kernel has axis attribute or not. diff --git a/mindspore/lite/src/runtime/runtime_allocator.cc b/mindspore/lite/src/litert/runtime_allocator.cc similarity index 98% rename from mindspore/lite/src/runtime/runtime_allocator.cc rename to mindspore/lite/src/litert/runtime_allocator.cc index ba76ef193ef..06c85c69001 100644 --- a/mindspore/lite/src/runtime/runtime_allocator.cc +++ b/mindspore/lite/src/litert/runtime_allocator.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/runtime_allocator.h" +#include "src/litert/runtime_allocator.h" namespace mindspore { RuntimeAllocator::RuntimeAllocator(size_t aligned_size) { diff --git a/mindspore/lite/src/runtime/runtime_allocator.h b/mindspore/lite/src/litert/runtime_allocator.h similarity index 100% rename from mindspore/lite/src/runtime/runtime_allocator.h rename to mindspore/lite/src/litert/runtime_allocator.h diff --git a/mindspore/lite/src/runtime/runtime_convert.cc b/mindspore/lite/src/litert/runtime_convert.cc similarity index 99% rename from mindspore/lite/src/runtime/runtime_convert.cc rename to mindspore/lite/src/litert/runtime_convert.cc index 84f3b32aa0e..1441a28e772 100644 --- a/mindspore/lite/src/runtime/runtime_convert.cc +++ b/mindspore/lite/src/litert/runtime_convert.cc @@ -15,7 +15,7 @@ */ #ifdef RUNTIME_CONVERT #include -#include "src/runtime/runtime_convert.h" +#include "src/litert/runtime_convert.h" #include "tools/common/string_util.h" #include "tools/converter/converter.h" #include "tools/converter/cxx_api/converter_para.h" diff --git a/mindspore/lite/src/runtime/runtime_convert.h b/mindspore/lite/src/litert/runtime_convert.h similarity index 100% rename from mindspore/lite/src/runtime/runtime_convert.h rename to mindspore/lite/src/litert/runtime_convert.h diff --git a/mindspore/lite/src/runtime/runtime_pass.cc b/mindspore/lite/src/litert/runtime_pass.cc similarity index 99% rename from mindspore/lite/src/runtime/runtime_pass.cc rename to mindspore/lite/src/litert/runtime_pass.cc index 3bed9690ba9..ba65a20c041 100644 --- a/mindspore/lite/src/runtime/runtime_pass.cc +++ b/mindspore/lite/src/litert/runtime_pass.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/runtime_pass.h" +#include "src/litert/runtime_pass.h" #include "nnacl/conv_parameter.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/runtime_pass.h b/mindspore/lite/src/litert/runtime_pass.h similarity index 96% rename from mindspore/lite/src/runtime/runtime_pass.h rename to mindspore/lite/src/litert/runtime_pass.h index 246d47de155..902c7233a8d 100644 --- a/mindspore/lite/src/runtime/runtime_pass.h +++ b/mindspore/lite/src/litert/runtime_pass.h @@ -18,8 +18,8 @@ #define MINDSPORE_LITE_SRC_RUNTIME_RUNTIME_PASS_H_ #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/sub_graph_kernel.h" #include "schema/ops_generated.h" #include "schema/model_generated.h" diff --git a/mindspore/lite/src/runtime/runtime_shape_fusion_pass.cc b/mindspore/lite/src/litert/runtime_shape_fusion_pass.cc similarity index 99% rename from mindspore/lite/src/runtime/runtime_shape_fusion_pass.cc rename to mindspore/lite/src/litert/runtime_shape_fusion_pass.cc index 3050a7e04ee..dc8a2174a17 100644 --- a/mindspore/lite/src/runtime/runtime_shape_fusion_pass.cc +++ b/mindspore/lite/src/litert/runtime_shape_fusion_pass.cc @@ -15,7 +15,7 @@ */ #ifndef RUNTIME_PASS_CLIP -#include "src/runtime/runtime_shape_fusion_pass.h" +#include "src/litert/runtime_shape_fusion_pass.h" #include #include #include diff --git a/mindspore/lite/src/runtime/runtime_shape_fusion_pass.h b/mindspore/lite/src/litert/runtime_shape_fusion_pass.h similarity index 98% rename from mindspore/lite/src/runtime/runtime_shape_fusion_pass.h rename to mindspore/lite/src/litert/runtime_shape_fusion_pass.h index 341f5003082..2cc4d9fbaeb 100644 --- a/mindspore/lite/src/runtime/runtime_shape_fusion_pass.h +++ b/mindspore/lite/src/litert/runtime_shape_fusion_pass.h @@ -20,8 +20,8 @@ #include #include #include -#include "src/runtime/lite_model.h" -#include "src/runtime/inner_context.h" +#include "src/litert/lite_model.h" +#include "src/litert/inner_context.h" #include "src/common/tensor_util.h" #include "schema/ops_generated.h" #include "schema/model_generated.h" diff --git a/mindspore/lite/src/runtime/scheduler.cc b/mindspore/lite/src/litert/scheduler.cc similarity index 99% rename from mindspore/lite/src/runtime/scheduler.cc rename to mindspore/lite/src/litert/scheduler.cc index 73849734267..fc1907a1016 100644 --- a/mindspore/lite/src/runtime/scheduler.cc +++ b/mindspore/lite/src/litert/scheduler.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/scheduler.h" +#include "src/litert/scheduler.h" #include #include #include @@ -25,34 +25,34 @@ #include "include/errorcode.h" #include "src/common/graph_util.h" #include "src/common/utils.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #ifndef CUSTOM_KERNEL_REGISTRY_CLIP #include "include/registry/register_kernel.h" #endif -#include "src/runtime/kernel_exec_util.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/kernel_exec_util.h" +#include "src/litert/sub_graph_kernel.h" #include "src/common/ops/populate/populate_register.h" #include "src/common/version_manager.h" #include "src/common/prim_util.h" -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" #include "src/common/tensor_util.h" #include "src/common/context_util.h" -#include "src/runtime/infer_manager.h" -#include "src/runtime/runtime_pass.h" -#include "src/runtime/pass/runtime_ncx_pass.h" +#include "src/litert/infer_manager.h" +#include "src/litert/runtime_pass.h" +#include "src/litert/pass/runtime_ncx_pass.h" #ifndef AUTO_PARALLEL_CLIP -#include "src/runtime/sub_graph_split.h" +#include "src/litert/sub_graph_split.h" #endif -#include "src/runtime/weight_decoder.h" -#include "src/runtime/kernel/cpu/fp16/fp16_op_handler.h" +#include "src/litert/weight_decoder.h" +#include "src/litert/kernel/cpu/fp16/fp16_op_handler.h" #include "nnacl/nnacl_common.h" #if GPU_OPENCL -#include "src/runtime/kernel/opencl/opencl_subgraph.h" -#include "src/runtime/kernel/gpu/opencl/opencl_runtime.h" +#include "src/litert/kernel/opencl/opencl_subgraph.h" +#include "src/litert/kernel/gpu/opencl/opencl_runtime.h" #endif #include "include/registry/register_kernel_interface.h" #include "extendrt/mindir_loader/abstract_base_model.h" -#include "src/runtime/pack_weight_manager.h" +#include "src/litert/pack_weight_manager.h" using AbstractBaseModel = mindspore::infer::AbstractBaseModel; diff --git a/mindspore/lite/src/runtime/scheduler.h b/mindspore/lite/src/litert/scheduler.h similarity index 98% rename from mindspore/lite/src/runtime/scheduler.h rename to mindspore/lite/src/litert/scheduler.h index c2090a98b11..7912f8bb363 100644 --- a/mindspore/lite/src/runtime/scheduler.h +++ b/mindspore/lite/src/litert/scheduler.h @@ -25,13 +25,13 @@ #include #include #include -#include "src/runtime/sub_graph_kernel.h" -#include "src/runtime/inner_context.h" +#include "src/litert/sub_graph_kernel.h" +#include "src/litert/inner_context.h" #include "include/model.h" -#include "src/runtime/scheduler_cb.h" +#include "src/litert/scheduler_cb.h" #include "include/api/delegate.h" #include "src/control_flow/control_flow_scheduler.h" -#include "src/runtime/runtime_shape_fusion_pass.h" +#include "src/litert/runtime_shape_fusion_pass.h" namespace mindspore::lite { constexpr int kDefaultDeviceType = -1; diff --git a/mindspore/lite/src/runtime/scheduler_cb.h b/mindspore/lite/src/litert/scheduler_cb.h similarity index 100% rename from mindspore/lite/src/runtime/scheduler_cb.h rename to mindspore/lite/src/litert/scheduler_cb.h diff --git a/mindspore/lite/src/runtime/schema_tensor_wrapper.cc b/mindspore/lite/src/litert/schema_tensor_wrapper.cc similarity index 97% rename from mindspore/lite/src/runtime/schema_tensor_wrapper.cc rename to mindspore/lite/src/litert/schema_tensor_wrapper.cc index 4989caa340d..e21e98b733e 100644 --- a/mindspore/lite/src/runtime/schema_tensor_wrapper.cc +++ b/mindspore/lite/src/litert/schema_tensor_wrapper.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/schema_tensor_wrapper.h" +#include "src/litert/schema_tensor_wrapper.h" #include "src/common/log_adapter.h" #include "src/common/file_utils.h" #include "nnacl/op_base.h" diff --git a/mindspore/lite/src/runtime/schema_tensor_wrapper.h b/mindspore/lite/src/litert/schema_tensor_wrapper.h similarity index 100% rename from mindspore/lite/src/runtime/schema_tensor_wrapper.h rename to mindspore/lite/src/litert/schema_tensor_wrapper.h diff --git a/mindspore/lite/src/runtime/sub_graph_kernel.cc b/mindspore/lite/src/litert/sub_graph_kernel.cc similarity index 98% rename from mindspore/lite/src/runtime/sub_graph_kernel.cc rename to mindspore/lite/src/litert/sub_graph_kernel.cc index cc0d08d1fee..718104a835c 100644 --- a/mindspore/lite/src/runtime/sub_graph_kernel.cc +++ b/mindspore/lite/src/litert/sub_graph_kernel.cc @@ -14,20 +14,20 @@ * limitations under the License. */ -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/sub_graph_kernel.h" #include #include #include "src/tensor.h" #include "src/tensorlist.h" #ifdef ENABLE_FP16 -#include "src/runtime/kernel/cpu/fp16/fp16_op_handler.h" +#include "src/litert/kernel/cpu/fp16/fp16_op_handler.h" #endif #include "src/common/version_manager.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" #include "src/common/tensor_util.h" #include "src/common/utils.h" #include "src/common/prim_inner.h" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/kernel_exec_util.h" namespace mindspore::kernel { using mindspore::lite::RET_ERROR; diff --git a/mindspore/lite/src/runtime/sub_graph_kernel.h b/mindspore/lite/src/litert/sub_graph_kernel.h similarity index 98% rename from mindspore/lite/src/runtime/sub_graph_kernel.h rename to mindspore/lite/src/litert/sub_graph_kernel.h index bccf667de7c..d2eaf80d449 100644 --- a/mindspore/lite/src/runtime/sub_graph_kernel.h +++ b/mindspore/lite/src/litert/sub_graph_kernel.h @@ -23,11 +23,11 @@ #include #include #include -#include "src/runtime/kernel_exec.h" -#include "src/runtime/executor.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/executor.h" #include "src/common/log_adapter.h" #include "src/common/version_manager.h" -#include "src/runtime/cpu_info.h" +#include "src/litert/cpu_info.h" #if defined(ENABLE_ARM) && defined(ENABLE_FP16) #include "nnacl/constant_of_shape_parameter.h" #endif diff --git a/mindspore/lite/src/runtime/sub_graph_split.cc b/mindspore/lite/src/litert/sub_graph_split.cc similarity index 99% rename from mindspore/lite/src/runtime/sub_graph_split.cc rename to mindspore/lite/src/litert/sub_graph_split.cc index 3878027aeb3..a92bd88ab44 100644 --- a/mindspore/lite/src/runtime/sub_graph_split.cc +++ b/mindspore/lite/src/litert/sub_graph_split.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "src/runtime/sub_graph_split.h" +#include "src/litert/sub_graph_split.h" #include #include #include @@ -25,8 +25,8 @@ #include "schema/ops_generated.h" #include "schema/model_generated.h" #include "src/common/ops/populate/populate_register.h" -#include "src/runtime/scheduler.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/scheduler.h" +#include "src/litert/tensor_category.h" #include "nnacl/pooling_parameter.h" #include "include/model.h" #include "nnacl/base/conv_common_base.h" diff --git a/mindspore/lite/src/runtime/sub_graph_split.h b/mindspore/lite/src/litert/sub_graph_split.h similarity index 98% rename from mindspore/lite/src/runtime/sub_graph_split.h rename to mindspore/lite/src/litert/sub_graph_split.h index 2a3b7ff4341..67f06443a29 100644 --- a/mindspore/lite/src/runtime/sub_graph_split.h +++ b/mindspore/lite/src/litert/sub_graph_split.h @@ -23,9 +23,9 @@ #include #include #include "include/model.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/lite_model.h" -#include "src/runtime/inner_context.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/lite_model.h" +#include "src/litert/inner_context.h" #include "src/common/prim_util.h" #include "nnacl/conv_parameter.h" diff --git a/mindspore/lite/src/runtime/tensor_category.cc b/mindspore/lite/src/litert/tensor_category.cc similarity index 97% rename from mindspore/lite/src/runtime/tensor_category.cc rename to mindspore/lite/src/litert/tensor_category.cc index 07d14de0dce..70d13865fa4 100644 --- a/mindspore/lite/src/runtime/tensor_category.cc +++ b/mindspore/lite/src/litert/tensor_category.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "src/common/utils.h" #include "schema/model_generated.h" diff --git a/mindspore/lite/src/runtime/tensor_category.h b/mindspore/lite/src/litert/tensor_category.h similarity index 100% rename from mindspore/lite/src/runtime/tensor_category.h rename to mindspore/lite/src/litert/tensor_category.h diff --git a/mindspore/lite/src/runtime/thread_cost_model.cc b/mindspore/lite/src/litert/thread_cost_model.cc similarity index 98% rename from mindspore/lite/src/runtime/thread_cost_model.cc rename to mindspore/lite/src/litert/thread_cost_model.cc index 0e7ba316c92..339f82c311e 100644 --- a/mindspore/lite/src/runtime/thread_cost_model.cc +++ b/mindspore/lite/src/litert/thread_cost_model.cc @@ -14,10 +14,10 @@ * limitations under the License. */ -#include "src/runtime/thread_cost_model.h" +#include "src/litert/thread_cost_model.h" #include #include "src/common/log_util.h" -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" #include "thread/threadpool.h" namespace mindspore::lite { diff --git a/mindspore/lite/src/runtime/thread_cost_model.h b/mindspore/lite/src/litert/thread_cost_model.h similarity index 100% rename from mindspore/lite/src/runtime/thread_cost_model.h rename to mindspore/lite/src/litert/thread_cost_model.h diff --git a/mindspore/lite/src/runtime/weight_decoder.cc b/mindspore/lite/src/litert/weight_decoder.cc similarity index 99% rename from mindspore/lite/src/runtime/weight_decoder.cc rename to mindspore/lite/src/litert/weight_decoder.cc index f235dc69b8f..50b7c943cd6 100644 --- a/mindspore/lite/src/runtime/weight_decoder.cc +++ b/mindspore/lite/src/litert/weight_decoder.cc @@ -15,8 +15,8 @@ */ #include #include -#include "src/runtime/weight_decoder.h" -#include "src/runtime/huffman_decode.h" +#include "src/litert/weight_decoder.h" +#include "src/litert/huffman_decode.h" #include "tools/converter/quantizer/fse_decoder.h" #include "nnacl/conv_parameter.h" diff --git a/mindspore/lite/src/runtime/weight_decoder.h b/mindspore/lite/src/litert/weight_decoder.h similarity index 99% rename from mindspore/lite/src/runtime/weight_decoder.h rename to mindspore/lite/src/litert/weight_decoder.h index f4e6a04dcd9..c9827058485 100644 --- a/mindspore/lite/src/runtime/weight_decoder.h +++ b/mindspore/lite/src/litert/weight_decoder.h @@ -26,10 +26,10 @@ #include #include "nnacl/matmul_parameter.h" #include "nnacl/gather_parameter.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "src/common/utils.h" #include "src/tensor.h" -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" static constexpr int kPerTensor = 1; static constexpr int kBitNumMix = 0; diff --git a/mindspore/lite/src/tensor.h b/mindspore/lite/src/tensor.h index f30fe0905dd..7a15b10af87 100644 --- a/mindspore/lite/src/tensor.h +++ b/mindspore/lite/src/tensor.h @@ -26,10 +26,10 @@ #include #include "include/api/format.h" #include "include/lite_types.h" -#include "src/runtime/inner_allocator.h" +#include "src/litert/inner_allocator.h" #include "src/common/log_adapter.h" #include "src/common/utils.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/train/loss_kernel.h b/mindspore/lite/src/train/loss_kernel.h index 9bcc6f34ec6..6de15922d5c 100644 --- a/mindspore/lite/src/train/loss_kernel.h +++ b/mindspore/lite/src/train/loss_kernel.h @@ -16,7 +16,7 @@ #ifndef MINDSPORE_LITE_SRC_TRAIN_LOSS_KERNEL_H_ #define MINDSPORE_LITE_SRC_TRAIN_LOSS_KERNEL_H_ #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore::kernel { class LossKernel : public LiteKernel { diff --git a/mindspore/lite/src/train/loss_monitor.cc b/mindspore/lite/src/train/loss_monitor.cc index b926a6fca52..c50aa379d7b 100644 --- a/mindspore/lite/src/train/loss_monitor.cc +++ b/mindspore/lite/src/train/loss_monitor.cc @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "src/common/utils.h" #include "src/tensor.h" diff --git a/mindspore/lite/src/train/lr_scheduler.cc b/mindspore/lite/src/train/lr_scheduler.cc index b3b6eb07d57..b51d5139189 100644 --- a/mindspore/lite/src/train/lr_scheduler.cc +++ b/mindspore/lite/src/train/lr_scheduler.cc @@ -23,7 +23,7 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "src/common/utils.h" #include "src/tensor.h" diff --git a/mindspore/lite/src/train/optimizer_kernel.h b/mindspore/lite/src/train/optimizer_kernel.h index b50d0ee27ab..d0746717c42 100644 --- a/mindspore/lite/src/train/optimizer_kernel.h +++ b/mindspore/lite/src/train/optimizer_kernel.h @@ -22,7 +22,7 @@ #include #include #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "include/errorcode.h" using mindspore::lite::RET_ERROR; using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/train/train_export.cc b/mindspore/lite/src/train/train_export.cc index 33a6eacb926..fb1a52caadd 100644 --- a/mindspore/lite/src/train/train_export.cc +++ b/mindspore/lite/src/train/train_export.cc @@ -29,7 +29,7 @@ #include "src/common/storage.h" #include "src/train/graph_fusion.h" #include "src/train/graph_dropout.h" -#include "src/runtime/weight_decoder.h" +#include "src/litert/weight_decoder.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/src/train/train_export.h b/mindspore/lite/src/train/train_export.h index 7727109b1a3..9356b9df448 100644 --- a/mindspore/lite/src/train/train_export.h +++ b/mindspore/lite/src/train/train_export.h @@ -23,8 +23,8 @@ #include #include #include "schema/inner/model_generated.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/lite_model.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/lite_model.h" #include "include/train/train_cfg.h" namespace mindspore { diff --git a/mindspore/lite/src/train/train_session.cc b/mindspore/lite/src/train/train_session.cc index cd1af1b6ffe..43a7f1a40c2 100644 --- a/mindspore/lite/src/train/train_session.cc +++ b/mindspore/lite/src/train/train_session.cc @@ -26,10 +26,10 @@ #include #include #include "include/errorcode.h" -#include "src/runtime/lite_model.h" -#include "src/runtime/kernel_exec_util.h" +#include "src/litert/lite_model.h" +#include "src/litert/kernel_exec_util.h" #include "src/tensor.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "src/common/prim_util.h" #include "src/common/tensor_util.h" #include "src/common/utils.h" diff --git a/mindspore/lite/src/train/train_session.h b/mindspore/lite/src/train/train_session.h index 0a0ce640576..1e084cc5ee0 100644 --- a/mindspore/lite/src/train/train_session.h +++ b/mindspore/lite/src/train/train_session.h @@ -22,7 +22,7 @@ #include #include #include "include/train/train_cfg.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" /* Inheritance Diagram diff --git a/mindspore/lite/src/train/train_utils.cc b/mindspore/lite/src/train/train_utils.cc index d4248c24e9b..938161b359e 100644 --- a/mindspore/lite/src/train/train_utils.cc +++ b/mindspore/lite/src/train/train_utils.cc @@ -18,9 +18,9 @@ #include #include "include/errorcode.h" #include "src/common/utils.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #ifdef ENABLE_FP16 -#include "src/runtime/kernel/cpu/fp16/fp16_op_handler.h" +#include "src/litert/kernel/cpu/fp16/fp16_op_handler.h" #endif namespace mindspore { diff --git a/mindspore/lite/src/train/train_utils.h b/mindspore/lite/src/train/train_utils.h index 92e5d67093a..d2cfae9b818 100644 --- a/mindspore/lite/src/train/train_utils.h +++ b/mindspore/lite/src/train/train_utils.h @@ -19,7 +19,7 @@ #include #include #include "src/tensor.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" namespace mindspore { namespace kernel { diff --git a/mindspore/lite/src/train/transfer_session.cc b/mindspore/lite/src/train/transfer_session.cc index b54f348ef8f..7714bafaa0f 100644 --- a/mindspore/lite/src/train/transfer_session.cc +++ b/mindspore/lite/src/train/transfer_session.cc @@ -29,7 +29,7 @@ #include "src/train/loss_kernel.h" #include "src/train/optimizer_kernel.h" #include "src/train/train_populate_parameter.h" -#include "src/runtime/executor.h" +#include "src/litert/executor.h" #include "src/train/train_export.h" #include "src/train/train_utils.h" diff --git a/mindspore/lite/src/train/transfer_session.h b/mindspore/lite/src/train/transfer_session.h index 48a38b8b42a..1527bc23fdd 100644 --- a/mindspore/lite/src/train/transfer_session.h +++ b/mindspore/lite/src/train/transfer_session.h @@ -20,7 +20,7 @@ #include #include #include -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "src/train/train_session.h" /* diff --git a/mindspore/lite/test/common/common_test.h b/mindspore/lite/test/common/common_test.h index 54eba2dde59..939740cd9d2 100644 --- a/mindspore/lite/test/common/common_test.h +++ b/mindspore/lite/test/common/common_test.h @@ -24,7 +24,7 @@ #include #include "gtest/gtest.h" #include "include/api/format.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/test/st/graph_test.cc b/mindspore/lite/test/st/graph_test.cc index 1d701c2064c..c25229d0a59 100644 --- a/mindspore/lite/test/st/graph_test.cc +++ b/mindspore/lite/test/st/graph_test.cc @@ -18,8 +18,8 @@ #include "gtest/gtest.h" #include "common/common_test.h" #include "include/errorcode.h" -#include "src/runtime/lite_session.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/lite_session.h" +#include "src/litert/kernel_exec.h" #include "src/common/file_utils.h" #include "include/api/types.h" #include "include/api/graph.h" diff --git a/mindspore/lite/test/st/mindrt_parallel_runtime_test.cc b/mindspore/lite/test/st/mindrt_parallel_runtime_test.cc index ff734dc9eae..f3b87ec9dcb 100644 --- a/mindspore/lite/test/st/mindrt_parallel_runtime_test.cc +++ b/mindspore/lite/test/st/mindrt_parallel_runtime_test.cc @@ -16,9 +16,9 @@ #include "ut/src/runtime/kernel/opencl/common.h" #include "include/errorcode.h" -#include "src/runtime/mindrt_executor.h" -#include "src/runtime/lite_session.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/mindrt_executor.h" +#include "src/litert/lite_session.h" +#include "src/litert/kernel_exec.h" class MindrtRuntimeTest : public mindspore::CommonTest { public: diff --git a/mindspore/lite/test/st/mindrt_parallel_test.cc b/mindspore/lite/test/st/mindrt_parallel_test.cc index 5f71f7f5492..b7bc1fdcb2d 100644 --- a/mindspore/lite/test/st/mindrt_parallel_test.cc +++ b/mindspore/lite/test/st/mindrt_parallel_test.cc @@ -20,9 +20,9 @@ #include "include/errorcode.h" #include "tools/converter/converter.h" #include "tools/benchmark/run_benchmark.h" -#include "src/runtime/mindrt_executor.h" -#include "src/runtime/lite_session.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/mindrt_executor.h" +#include "src/litert/lite_session.h" +#include "src/litert/kernel_exec.h" #include "src/common/file_utils.h" #include "include/converter.h" diff --git a/mindspore/lite/test/st/mix_data_type_test.cc b/mindspore/lite/test/st/mix_data_type_test.cc index 22a8a30ea2b..c9b04612ab3 100644 --- a/mindspore/lite/test/st/mix_data_type_test.cc +++ b/mindspore/lite/test/st/mix_data_type_test.cc @@ -19,10 +19,10 @@ #include "include/errorcode.h" #include "src/common/config_file.h" #include "schema/inner/model_generated.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/lite_session.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/lite_session.h" #include "include/api/model.h" -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/model/model_impl.h" namespace mindspore { class MixDataTypeTest : public mindspore::CommonTest { diff --git a/mindspore/lite/test/st/multiple_device_test.cc b/mindspore/lite/test/st/multiple_device_test.cc index 7d31f32e33d..10555dac027 100644 --- a/mindspore/lite/test/st/multiple_device_test.cc +++ b/mindspore/lite/test/st/multiple_device_test.cc @@ -16,12 +16,12 @@ #include "common/common_test.h" #include "schema/inner/model_generated.h" -#include "src/runtime/lite_session.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/lite_session.h" +#include "src/litert/sub_graph_kernel.h" #include "ir/dtype/type_id.h" #include "include/api/model.h" -#include "src/runtime/cxx_api/converters.h" -#include "src/runtime/cxx_api/model/model_impl.h" +#include "src/litert/cxx_api/converters.h" +#include "src/litert/cxx_api/model/model_impl.h" using mindspore::kernel::KernelExec; using mindspore::kernel::KernelKey; diff --git a/mindspore/lite/test/st/optimize_allocator_test.cc b/mindspore/lite/test/st/optimize_allocator_test.cc index 2b625ea8426..7e6819c1b44 100644 --- a/mindspore/lite/test/st/optimize_allocator_test.cc +++ b/mindspore/lite/test/st/optimize_allocator_test.cc @@ -17,10 +17,10 @@ #include "common/common_test.h" #include "gmock/gmock.h" #include "schema/inner/model_generated.h" -#include "src/runtime/sub_graph_kernel.h" +#include "src/litert/sub_graph_kernel.h" #include "ir/dtype/type_id.h" #include "include/model.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" namespace mindspore { namespace lite { diff --git a/mindspore/lite/test/st/sub_graph_test.cc b/mindspore/lite/test/st/sub_graph_test.cc index 96f872d1322..88ba90f60c1 100644 --- a/mindspore/lite/test/st/sub_graph_test.cc +++ b/mindspore/lite/test/st/sub_graph_test.cc @@ -22,7 +22,7 @@ #include "include/errorcode.h" #include "src/common/log_adapter.h" #include "src/common/file_utils.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "tools/common/meta_graph_serializer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/infer_manager_test.cc b/mindspore/lite/test/ut/nnacl/infer/infer_manager_test.cc index 6d6de83134b..b2b9749b2d8 100644 --- a/mindspore/lite/test/ut/nnacl/infer/infer_manager_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/infer_manager_test.cc @@ -15,7 +15,7 @@ */ #include "common/common_test.h" #include "src/tensorlist.h" -#include "mindspore/lite/src/runtime/infer_manager.h" +#include "mindspore/lite/src/litert/infer_manager.h" namespace mindspore::lite { diff --git a/mindspore/lite/test/ut/src/graph_test.cc b/mindspore/lite/test/ut/src/graph_test.cc index 8873f0847cd..b520ae803a4 100644 --- a/mindspore/lite/test/ut/src/graph_test.cc +++ b/mindspore/lite/test/ut/src/graph_test.cc @@ -23,7 +23,7 @@ #include #include "common/common_test.h" #include "src/common/log_adapter.h" -#include "mindspore/lite/src/runtime/executor.h" +#include "mindspore/lite/src/litert/executor.h" #include "mindspore/lite/schema/inner/anf_ir_generated.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/infer_test.cc b/mindspore/lite/test/ut/src/infer_test.cc index 5db2c671ae7..36642f1e595 100644 --- a/mindspore/lite/test/ut/src/infer_test.cc +++ b/mindspore/lite/test/ut/src/infer_test.cc @@ -21,7 +21,7 @@ #include "include/context.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "src/common/file_utils.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/lite_mindrt_test.cc b/mindspore/lite/test/ut/src/lite_mindrt_test.cc index 9f4dcfea103..97fb202444e 100644 --- a/mindspore/lite/test/ut/src/lite_mindrt_test.cc +++ b/mindspore/lite/test/ut/src/lite_mindrt_test.cc @@ -18,7 +18,7 @@ #include "actor/op_actor.h" #include "async/uuid_base.h" #include "async/future.h" -#include "src/runtime/lite_mindrt.h" +#include "src/litert/lite_mindrt.h" #include "thread/hqueue.h" #include "thread/actor_threadpool.h" #include "common/common_test.h" diff --git a/mindspore/lite/test/ut/src/registry/registry_custom_op_test.cc b/mindspore/lite/test/ut/src/registry/registry_custom_op_test.cc index 2fd02ce76bb..019b1c2bed2 100644 --- a/mindspore/lite/test/ut/src/registry/registry_custom_op_test.cc +++ b/mindspore/lite/test/ut/src/registry/registry_custom_op_test.cc @@ -22,7 +22,7 @@ #include "include/api/model.h" #include "include/context.h" #include "src/common/log_adapter.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "include/registry/register_kernel_interface.h" #include "include/registry/register_kernel.h" diff --git a/mindspore/lite/test/ut/src/registry/registry_gpu_custom_op_test.cc b/mindspore/lite/test/ut/src/registry/registry_gpu_custom_op_test.cc index a818baf188c..2ab09b10687 100644 --- a/mindspore/lite/test/ut/src/registry/registry_gpu_custom_op_test.cc +++ b/mindspore/lite/test/ut/src/registry/registry_gpu_custom_op_test.cc @@ -23,7 +23,7 @@ #include "include/context.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "include/registry/register_kernel_interface.h" #include "include/registry/register_kernel.h" #include "include/registry/opencl_runtime_wrapper.h" diff --git a/mindspore/lite/test/ut/src/registry/registry_test.cc b/mindspore/lite/test/ut/src/registry/registry_test.cc index 37d78d031f3..d2d1eba9dae 100644 --- a/mindspore/lite/test/ut/src/registry/registry_test.cc +++ b/mindspore/lite/test/ut/src/registry/registry_test.cc @@ -21,7 +21,7 @@ #include "include/api/model.h" #include "include/context.h" #include "src/common/log_adapter.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "include/registry/register_kernel_interface.h" #include "include/registry/register_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/dynamic_mem_manager_test.cc b/mindspore/lite/test/ut/src/runtime/dynamic_mem_manager_test.cc index a3b44f1371d..05b416f5acc 100644 --- a/mindspore/lite/test/ut/src/runtime/dynamic_mem_manager_test.cc +++ b/mindspore/lite/test/ut/src/runtime/dynamic_mem_manager_test.cc @@ -17,8 +17,8 @@ #include "common/common_test.h" #include "src/common/utils.h" #define private public -#include "src/runtime/dynamic_mem_manager.h" -#include "src/runtime/numa_adapter.h" +#include "src/litert/dynamic_mem_manager.h" +#include "src/litert/numa_adapter.h" #undef private namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/common/strided_slice_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/common/strided_slice_tests.cc index a09cab0d483..ce24546ed96 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/common/strided_slice_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/common/strided_slice_tests.cc @@ -17,7 +17,7 @@ #include #include "common/common_test.h" #include "nnacl/fp32/strided_slice_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "nnacl/strided_slice_parameter.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp16/reduce_fp16_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp16/reduce_fp16_tests.cc index 7f8421ef2b0..acf21b39e2b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp16/reduce_fp16_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp16/reduce_fp16_tests.cc @@ -16,8 +16,8 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp16/reduce_fp16.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/cpu/fp16/reduce_fp16.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32-sparsity/matmul_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32-sparsity/matmul_fp32_tests.cc index 29cb5d117cb..8e7f153d04b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32-sparsity/matmul_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32-sparsity/matmul_fp32_tests.cc @@ -22,10 +22,10 @@ #include "nnacl/matmul_parameter.h" #include "src/tensor.h" #include "securec/include/securec.h" -#include "src/runtime/infer_manager.h" -#include "src/runtime/inner_context.h" -#include "src/runtime/kernel/cpu/fp32/matmul_fp32.h" -#include "src/runtime/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h" +#include "src/litert/infer_manager.h" +#include "src/litert/inner_context.h" +#include "src/litert/kernel/cpu/fp32/matmul_fp32.h" +#include "src/litert/kernel/cpu/fp32_sparse/matmul_sparse_fp32.h" namespace mindspore { using mindspore::lite::Tensor; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc index dc326298413..f0aa47c007c 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc @@ -17,8 +17,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/fp32/activation_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc index e448db0839b..1a492452bef 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc @@ -17,8 +17,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/fp32/batchnorm_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { class TestBatchnormFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/constant_of_shape_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/constant_of_shape_fp32_test.cc index 848d507ca57..8e37b48c10d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/constant_of_shape_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/constant_of_shape_fp32_test.cc @@ -15,9 +15,9 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/base/constant_of_shape.h" -#include "src/runtime/tensor_category.h" -#include "src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel/cpu/base/constant_of_shape.h" +#include "src/litert/tensor_category.h" +#include "src/litert/kernel_exec.h" namespace mindspore { class TestConstantOfShapeFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/conv1x1_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/conv1x1_fp32_tests.cc index 3d01e706ded..019d5ffa52a 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/conv1x1_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/conv1x1_fp32_tests.cc @@ -16,7 +16,7 @@ #include #include "common/common_test.h" #include "nnacl/matmul_parameter.h" -#include "src/runtime/kernel/cpu/fp32/convolution_1x1_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_1x1_fp32.h" namespace mindspore { using mindspore::lite::Tensor; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/convolution_depthwise_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/convolution_depthwise_fp32_tests.cc index 47107267d62..3bcf47f1b56 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/convolution_depthwise_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/convolution_depthwise_fp32_tests.cc @@ -18,8 +18,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel/cpu/base/convolution_base.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel/cpu/base/convolution_base.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestConvolutionDwFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc index 690f27b57ca..6ad8becb15e 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc @@ -15,8 +15,8 @@ */ #include "common/common_test.h" #include "nnacl/fp32/crop_fp32.h" -#include "src/runtime/tensor_category.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/crop_fp32.h" +#include "src/litert/tensor_category.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/crop_fp32.h" namespace mindspore { class CropTestFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/cumsum_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/cumsum_tests.cc index 3de21c6df49..218fe49daab 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/cumsum_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/cumsum_tests.cc @@ -17,7 +17,7 @@ #include #include "common/common_test.h" #include "nnacl/cumsum_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestCumsum : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc index 5dc28d8e2eb..0a2eee92207 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc @@ -18,10 +18,10 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/deconvolution_fp32.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/deconvolution_fp32.h" #include "nnacl/fp32/deconv_fp32.h" #include "nnacl/op_base.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" namespace mindspore { class TestDeConvolutionFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/detection_post_process_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/detection_post_process_test.cc index 643fc8b8104..9d724486e18 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/detection_post_process_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/detection_post_process_test.cc @@ -16,9 +16,9 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/detection_post_process_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/detection_post_process_fp32.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" #include "src/common/file_utils.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/embedding_lookup_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/embedding_lookup_fp32_test.cc index d9000212e10..f665feb94fd 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/embedding_lookup_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/embedding_lookup_fp32_test.cc @@ -15,12 +15,12 @@ */ #include -#include "src/runtime/kernel/cpu/fp32/embedding_lookup_fp32.h" +#include "src/litert/kernel/cpu/fp32/embedding_lookup_fp32.h" #include "nnacl/fp32/embedding_lookup_fp32.h" #include "src/common/file_utils.h" #include "common/common_test.h" #include "src/common/log_adapter.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" namespace mindspore { using mindspore::lite::Tensor; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/fullconnection_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/fullconnection_fp32_tests.cc index 0dc754583c0..7dc198e8a3d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/fullconnection_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/fullconnection_fp32_tests.cc @@ -19,11 +19,11 @@ #include "common/common_test.h" #include "nnacl/fp32/matmul_fp32.h" #include "src/common/file_utils.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "src/common/log_adapter.h" -#include "src/runtime/kernel/cpu/fp32/fullconnection_fp32.h" -#include "src/runtime/infer_manager.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32/fullconnection_fp32.h" +#include "src/litert/infer_manager.h" +#include "src/litert/kernel_registry.h" namespace mindspore { using mindspore::lite::Tensor; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/l2norm_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/l2norm_fp32_test.cc index 148a0fb36b7..10876e49053 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/l2norm_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/l2norm_fp32_test.cc @@ -15,9 +15,9 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" namespace mindspore { class TestL2NormFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/logicalor_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/logicalor_fp32_test.cc index 862c2d6335f..9269bd8a7bb 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/logicalor_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/logicalor_fp32_test.cc @@ -17,8 +17,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/fp32/arithmetic_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc index d11ce64bd50..f36a22cbe3b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/lsh_projection_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc index 4561ad3d3d6..a7780993ac6 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc @@ -18,7 +18,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/fp32/lstm_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class LstmFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc index a5a03cc4139..484cfa6f10f 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc @@ -16,12 +16,12 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/matmul_fp32.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/matmul_fp32.h" #include "nnacl/fp32/pack_fp32.h" #include "nnacl/fp32/matmul_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/tensor_category.h" namespace mindspore { class TestMatMulFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/nllloss_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/nllloss_fp32_test.cc index 48fadc1369e..c56d337d6e4 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/nllloss_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/nllloss_fp32_test.cc @@ -16,10 +16,10 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/nllloss_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/tensor_category.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/nllloss_fp32.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/tensor_category.h" namespace mindspore { class TestNLLLossFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/non_max_suppression_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/non_max_suppression_fp32_tests.cc index 552ba8a9e49..6e1ffe7b37b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/non_max_suppression_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/non_max_suppression_fp32_tests.cc @@ -15,10 +15,10 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/l2_norm_fp32.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/non_max_suppression_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/l2_norm_fp32.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/non_max_suppression_fp32.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" namespace mindspore { class TestNMSFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/one_hot_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/one_hot_fp32_test.cc index 77515841432..3234b45227d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/one_hot_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/one_hot_fp32_test.cc @@ -14,11 +14,11 @@ * limitations under the License. */ #include -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" #include "common/common_test.h" #include "nnacl/fp32/one_hot_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "schema/ops_generated.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/pad_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/pad_fp32_test.cc index ff9da8f1ad2..7cbef4b28e0 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/pad_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/pad_fp32_test.cc @@ -14,11 +14,11 @@ * limitations under the License. */ #include -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" #include "common/common_test.h" #include "nnacl/pad_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "schema/ops_generated.h" using mindspore::schema::PaddingMode; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/power_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/power_fp32_tests.cc index e7231aa85c4..bfc5818feb6 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/power_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/power_fp32_tests.cc @@ -15,10 +15,10 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/power_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/tensor_category.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/power_fp32.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/tensor_category.h" namespace mindspore { class TestPowerFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/ragged_range_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/ragged_range_fp32_tests.cc index 9473d71b841..d26930b0608 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/ragged_range_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/ragged_range_fp32_tests.cc @@ -18,8 +18,8 @@ #include "common/common_test.h" #include "nnacl/fp32/ragged_range_fp32.h" #include "src/tensor.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/kernel_registry.h" namespace mindspore { class TestRaggedRangeFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc index 0bff61704b7..23ba2ed1383 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc @@ -19,8 +19,8 @@ #include "nnacl/fp32/reduce_fp32.h" #include "schema/inner/model_generated.h" #include "src/tensor.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/inner_allocator.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/inner_allocator.h" using mindspore::lite::Tensor; using mindspore::schema::ReduceMode; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_bilinear_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_bilinear_fp32_tests.cc index 78ed347714e..96e2e0505b1 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_bilinear_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_bilinear_fp32_tests.cc @@ -15,8 +15,8 @@ */ #include #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" #include "nnacl/resize_parameter.h" #include "schema/ops_generated.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_nearest_neighbor_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_nearest_neighbor_fp32_tests.cc index f6126d4fa2b..01acf479c24 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_nearest_neighbor_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/resize_nearest_neighbor_fp32_tests.cc @@ -16,7 +16,7 @@ #include #include "common/common_test.h" #include "nnacl/resize_parameter.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc index 2ad66867a9f..1541fe98104 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc @@ -18,7 +18,7 @@ #include #include "common/common_test.h" #include "nnacl/fp32/reverse_sequence_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestReverseSequenceFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/roi_pooling_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/roi_pooling_fp32_tests.cc index c3dc6376941..0855a5b89bb 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/roi_pooling_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/roi_pooling_fp32_tests.cc @@ -15,9 +15,9 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/roi_pooling_fp32.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/roi_pooling_fp32.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" namespace mindspore { class TestROIPoolingFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scale_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scale_fp32_tests.cc index c7d7e659a1f..a2fc840184f 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scale_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scale_fp32_tests.cc @@ -14,11 +14,11 @@ * limitations under the License. */ #include -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" #include "common/common_test.h" #include "nnacl/pad_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "schema/ops_generated.h" #include "nnacl/fp32/scale_fp32.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scatter_nd_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scatter_nd_fp32_tests.cc index 0ed60764e76..dd8210bcdee 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scatter_nd_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/scatter_nd_fp32_tests.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/base/scatter_nd_base.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc index 0cd19669c84..0f079ef5f8f 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc @@ -15,10 +15,10 @@ */ #include -#include "src/runtime/kernel/cpu/string/skip_gram.h" +#include "src/litert/kernel/cpu/string/skip_gram.h" #include "nnacl/skip_gram_parameter.h" #include "src/common/file_utils.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "common/common_test.h" #include "src/common/log_adapter.h" #include "src/common/string_utils.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/softmax_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/softmax_tests.cc index 23555c678c7..829af2214c4 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/softmax_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/softmax_tests.cc @@ -17,7 +17,7 @@ #include #include "common/common_test.h" #include "nnacl/softmax_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestSoftmaxFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc index 4784121a82a..ffc359824aa 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc @@ -18,8 +18,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/fp32/space_to_batch_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc index 8166a218824..26b649283cc 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc @@ -20,8 +20,8 @@ #include "common/common_test.h" #include "nnacl/space_to_depth_parameter.h" #include "nnacl/base/space_to_depth_base.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc index 490fddffa46..a599c49982e 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/fp32/sparse_to_dense_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc index d795bcc8837..0cbae56c8e7 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc @@ -20,8 +20,8 @@ #include "common/common_test.h" #include "mindspore/lite/src/common/utils.h" #include "nnacl/fp32/strided_slice_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { class TestStridedSliceFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc index 6ad813e37cb..3c938598240 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc @@ -17,7 +17,7 @@ #include #include "common/common_test.h" #include "nnacl/base/tile_base.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestTileFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc index 8b264c88266..b22c04edbc4 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc @@ -18,7 +18,7 @@ #include #include "common/common_test.h" #include "nnacl/fp32/topk_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestTopKFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc index 6f6e1bf436b..bcdb53911fd 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc @@ -20,8 +20,8 @@ #include "common/common_test.h" #include "nnacl/fp32/transpose_fp32.h" #include "nnacl/transpose.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc index ff406ef0853..033b6ae7c1b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc @@ -17,7 +17,7 @@ #include #include "common/common_test.h" #include "nnacl/random_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestUniformRealFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc index 423c07db987..671050f88e5 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc @@ -18,7 +18,7 @@ #include #include "common/common_test.h" #include "nnacl/fp32/unique_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestUniqueFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc index e45fc2963da..2c1d010cf87 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc @@ -18,7 +18,7 @@ #include #include "common/common_test.h" #include "nnacl/base/unstack_base.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestUnstackFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/activation_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/activation_grad_fp32_tests.cc index d549e39487a..eb18356d4b3 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/activation_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/activation_grad_fp32_tests.cc @@ -21,10 +21,10 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/src/tensor.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32_grad/activation_grad.h" +#include "mindspore/lite/src/litert/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32_grad/activation_grad.h" #include "nnacl/fp32_grad/activation_grad.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/arithmetic_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/arithmetic_grad_fp32_tests.cc index 13412d20b33..144dd5c1d9b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/arithmetic_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/arithmetic_grad_fp32_tests.cc @@ -22,8 +22,8 @@ #include "common/common_test.h" #include "src/common/file_utils.h" #include "nnacl/fp32/reduce_fp32.h" -#include "src/runtime/kernel/cpu/fp32_grad/arithmetic_grad.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/arithmetic_grad.h" +#include "src/litert/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bias_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bias_grad_fp32_tests.cc index cff79ab059d..f4b3ff7e5b2 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bias_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bias_grad_fp32_tests.cc @@ -18,8 +18,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "src/runtime/kernel/cpu/fp32_grad/bias_grad.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/bias_grad.h" +#include "src/litert/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bn_grad_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bn_grad_fp32_test.cc index 381576e9635..3d9ee95f939 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bn_grad_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/bn_grad_fp32_test.cc @@ -18,10 +18,10 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "src/runtime/kernel/cpu/fp32_grad/bn_grad.h" +#include "src/litert/kernel/cpu/fp32_grad/bn_grad.h" #include "nnacl/fp32_grad/batch_norm.h" #include "nnacl/fp32/batchnorm_fp32.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc index 8127b339ca1..63fae3a0305 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc @@ -20,11 +20,11 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_filter.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32_grad/convolution_grad_input.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_filter.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32_grad/convolution_grad_input.h" #include "nnacl/conv_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestConvolutionGradFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc index 25c01c242b9..770b87f49ff 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc @@ -19,9 +19,9 @@ #include #include "common/common_test.h" #include "src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32_grad/deconvolution_grad_filter.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32_grad/deconvolution_grad_filter.h" #include "nnacl/conv_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestDeConvolutionGradFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/network_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/network_test.cc index 14d049c2c11..34731a64e88 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/network_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/network_test.cc @@ -30,8 +30,8 @@ #include "src/train/train_session.h" #include "src/common/log_adapter.h" #include "src/common/file_utils.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/cpu/fp32_grad/convolution.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/convolution.h" using mindspore::lite::RET_OK; namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/nllloss_grad_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/nllloss_grad_fp32_test.cc index 214b6db4e84..04b3bb3f36d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/nllloss_grad_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/nllloss_grad_fp32_test.cc @@ -16,10 +16,10 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32_grad/nllloss_grad.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/tensor_category.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32_grad/nllloss_grad.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/tensor_category.h" namespace mindspore { class TestNLLLossGradFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/pooling_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/pooling_grad_fp32_tests.cc index 71be15826bc..ba6290ccd9c 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/pooling_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/pooling_grad_fp32_tests.cc @@ -22,8 +22,8 @@ #include "src/common/utils.h" #include "src/common/file_utils.h" #include "nnacl/fp32_grad/pooling_grad.h" -#include "src/runtime/kernel/cpu/fp32_grad/pooling_grad.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/pooling_grad.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestPoolingGradFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_crossentropy_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_crossentropy_fp32_tests.cc index 87086421331..13b32ff8586 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_crossentropy_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_crossentropy_fp32_tests.cc @@ -18,8 +18,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "src/runtime/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/fp32_grad/sparse_softmax_cross_entropy_with_logits.h" +#include "src/litert/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc index a51253e2d0d..e218c499f93 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc @@ -22,9 +22,9 @@ #include "common/common_test.h" #include "src/common/utils.h" #include "src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32_grad/softmax_grad.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32_grad/softmax_grad.h" #include "nnacl/fp32_grad/softmax_grad.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestSoftmaxGradFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/add_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/add_int8_tests.cc index 79def370f78..0cc9171691c 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/add_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/add_int8_tests.cc @@ -18,7 +18,7 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/include/context.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc index 17b35a59396..13624ba2da4 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc @@ -18,8 +18,8 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "nnacl/arithmetic_self_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc index a4e103be197..1baf75e3027 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc @@ -19,8 +19,8 @@ #include "common/common_test.h" #include "nnacl/batchnorm_parameter.h" #include "nnacl/int8/batchnorm_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { class TestBatchnormInt8 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc index 9bf5114b693..2ac811dbe3b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/concat_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc index 22db6e64d74..33e996e3d67 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc @@ -15,12 +15,12 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "src/common/file_utils.h" #include "nnacl/int8/quantize.h" #include "nnacl/common_func.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/convolution_1x1_int8.h" -#include "src/runtime/tensor_category.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/convolution_1x1_int8.h" +#include "src/litert/tensor_category.h" namespace mindspore { using lite::Tensor; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc index 16b7553852b..8b29cdd3844 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/crop_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc index 6c1b0201ca4..3ae83d9dc58 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc @@ -19,11 +19,11 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "nnacl/pack.h" #include "nnacl/fp32/matmul_fp32.h" #include "nnacl/int8/deconv_int8.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/deconvolution_int8.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/deconvolution_int8.h" using mindspore::lite::DeviceType; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc index 896667d04c7..249c029a3ac 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc @@ -16,11 +16,11 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/fullconnection_int8.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/fullconnection_int8.h" #include "nnacl/common_func.h" #include "nnacl/int8/quantize.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { using lite::Tensor; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc index c5292d6589c..ca7370a788d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc @@ -18,8 +18,8 @@ #include "common/common_test.h" #include "nnacl/fp32/gatherNd_fp32.h" #include "nnacl/int8/gatherNd_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { class TestGatherNdInt8 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc index 2df6c4f7404..547f77534f4 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc @@ -18,8 +18,8 @@ #include "common/common_test.h" #include "nnacl/gather_parameter.h" #include "nnacl/int8/gather_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { class TestGatherInt8 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc index 1b648266fc3..3266f177499 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc @@ -18,10 +18,10 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/fp32/activation_fp32.h" +#include "mindspore/lite/src/litert/kernel/cpu/fp32/activation_fp32.h" #include "nnacl/fp32/activation_fp32.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/hswish_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/hswish_int8.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/include/context.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/l2_norm_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/l2_norm_int8_tests.cc index 1ddcecc00f6..01d9e3d9db6 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/l2_norm_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/l2_norm_int8_tests.cc @@ -17,7 +17,7 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/include/context.h" #include "nnacl/l2_norm_parameter.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc index f7bbfa715ab..64d65e3fb5e 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc @@ -17,12 +17,12 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/matmul_int8.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/matmul_int8.h" #include "nnacl/int8/quantize.h" #include "nnacl/common_func.h" #include "nnacl/int8/matmul_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { class TestMatmulInt8 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc index 010bb8b6c9b..25599ff1a57 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/mul_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/pad_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/pad_int8_tests.cc index d566e3cdfec..96349050a67 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/pad_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/pad_int8_tests.cc @@ -18,11 +18,11 @@ #include "schema/inner/model_generated.h" #include "include/context.h" #include "src/tensor.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "common/common_test.h" #include "src/common/file_utils.h" #include "nnacl/pad_parameter.h" -#include "src/runtime/kernel/cpu/int8/pad_int8.h" +#include "src/litert/kernel/cpu/int8/pad_int8.h" namespace mindspore { using mindspore::lite::LiteQuantParam; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc index ccefb0e8a84..a50328f2fb9 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc @@ -18,9 +18,9 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/power_int8.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/power_int8.h" #include "nnacl/power_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc index f44b1a77de2..c2a9abb35d2 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/int8/quantize.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc index 7106c2ca861..31bd36d7b14 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc @@ -18,10 +18,10 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/base/quant_dtype_cast.h" +#include "mindspore/lite/src/litert/kernel/cpu/base/quant_dtype_cast.h" #include "nnacl/int8/quant_dtype_cast_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reduce_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reduce_int8_tests.cc index a5ce9905b97..d906711a3ac 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reduce_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reduce_int8_tests.cc @@ -18,7 +18,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/tensor.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "nnacl/fp32/reduce_fp32.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/relux_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/relux_int8_tests.cc index cd00f2120fb..0e4223ec7dd 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/relux_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/relux_int8_tests.cc @@ -18,8 +18,8 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/relux_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/relux_int8.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/include/context.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc index df339b323ac..93242303ce1 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/reshape_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_bilinear_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_bilinear_int8_tests.cc index 7953dd81748..f698ea203a1 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_bilinear_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_bilinear_int8_tests.cc @@ -19,7 +19,7 @@ #include "include/context.h" #include "src/tensor.h" #include "common/common_test.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/int8/resize_int8.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_nearest_neighbor_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_nearest_neighbor_int8_tests.cc index 052e677b076..2b40cb9c634 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_nearest_neighbor_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/resize_nearest_neighbor_int8_tests.cc @@ -19,7 +19,7 @@ #include "include/context.h" #include "src/tensor.h" #include "common/common_test.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "nnacl/int8/resize_int8.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/scale_int8.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/scale_int8.cc index d3efdaad89b..f9e41ac3ce9 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/scale_int8.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/scale_int8.cc @@ -18,7 +18,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "src/tensor.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "nnacl/int8/scale_int8.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc index 2a26213834c..e7209a240aa 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "nnacl/fp32/activation_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/include/context.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/slice_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/slice_int8_tests.cc index 5b69eac638a..4f0b0e1574e 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/slice_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/slice_int8_tests.cc @@ -18,8 +18,8 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/slice_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/slice_int8.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/include/context.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc index d2ef3a70f75..daa02771a15 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc @@ -18,9 +18,9 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/softmax_int8.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/softmax_int8.h" #include "nnacl/softmax_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/space_to_batch_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/space_to_batch_int8_tests.cc index 78b7abb8b50..e746db62cce 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/space_to_batch_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/space_to_batch_int8_tests.cc @@ -16,7 +16,7 @@ #include #include "common/common_test.h" #include "nnacl/fp32/space_to_batch_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class SpaceToBatchTestInt8 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc index afae7e49a92..401e8d818cc 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/split_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc index b9bfbb0de14..9ee7a15f25d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc @@ -19,8 +19,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "nnacl/squeeze_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sub_int_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sub_int_tests.cc index 2629bbcff02..f689a0649d9 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sub_int_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sub_int_tests.cc @@ -18,8 +18,8 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/cpu/int8/sub_int8.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel/cpu/int8/sub_int8.h" +#include "mindspore/lite/src/litert/kernel_registry.h" #include "mindspore/lite/include/context.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc index fc9d6e95ea9..c17b9366acf 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc @@ -19,7 +19,7 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "nnacl/fp32/topk_fp32.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_registry.h" namespace mindspore { class TestTopKInt8 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc index 51bb50a502d..52f6317c3dc 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc @@ -18,8 +18,8 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "nnacl/unsqueeze_parameter.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_registry.h" +#include "mindspore/lite/src/litert/kernel_exec.h" #include "mindspore/lite/src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc index 54d5b2a0de5..c37d6dd2af7 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc @@ -15,9 +15,9 @@ */ #include -#include "src/runtime/kernel/cpu/string/skip_gram.h" -#include "src/runtime/kernel/cpu/string/normalize.h" -#include "mindspore/lite/src/runtime/kernel_registry.h" +#include "src/litert/kernel/cpu/string/skip_gram.h" +#include "src/litert/kernel/cpu/string/normalize.h" +#include "src/litert/kernel_registry.h" #include "nnacl/skip_gram_parameter.h" #include "src/common/file_utils.h" #include "common/common_test.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/cast_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/opencl/cast_tests.cc index 42feb85342a..71d5b02958d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/cast_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/cast_tests.cc @@ -18,8 +18,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/common/file_utils.h" -#include "mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.h" -#include "mindspore/lite/src/runtime/kernel/opencl/kernel/cast.h" +#include "mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.h" +#include "mindspore/lite/src/litert/kernel/opencl/kernel/cast.h" // PrimitiveType_Cast: src/ops/populate/cast_populate.cc diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.cc b/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.cc index 56e565acea8..d7ca496a6c9 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.cc @@ -16,8 +16,8 @@ #include #include #include "ut/src/runtime/kernel/opencl/common.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/kernel/opencl/opencl_subgraph.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/kernel/opencl/opencl_subgraph.h" #include "nnacl/conv_parameter.h" using mindspore::kernel::KernelExec; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.h b/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.h index 74e19161e45..a0b5be1e09d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.h +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/common.h @@ -26,7 +26,7 @@ #include "nnacl/op_base.h" #include "ir/dtype/type_id.h" #include "src/tensor.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "src/common/file_utils.h" #include "common/common_test.h" #include "schema/ops_generated.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/fill_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/opencl/fill_tests.cc index 1d4ef54f4ed..b01149f94a5 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/fill_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/fill_tests.cc @@ -17,8 +17,8 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/src/runtime/kernel/opencl/opencl_subgraph.h" -#include "mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h" +#include "mindspore/lite/src/litert/kernel/opencl/opencl_subgraph.h" +#include "mindspore/lite/src/litert/kernel/opencl/kernel/fill.h" using mindspore::lite::Tensor; using mindspore::schema::PrimitiveType_Fill; using mindspore::schema::PrimitiveType_Shape; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/power_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/opencl/power_tests.cc index b20e2c9c936..886e1d49ace 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/power_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/power_tests.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "ut/src/runtime/kernel/opencl/common.h" -#include "mindspore/lite/src/runtime/kernel/opencl/kernel/power.h" +#include "mindspore/lite/src/litert/kernel/opencl/kernel/power.h" // PrimitiveType_PowFusion: src/ops/populate/power_populate.cc diff --git a/mindspore/lite/test/ut/src/runtime/runtime_pass_tests.cc b/mindspore/lite/test/ut/src/runtime/runtime_pass_tests.cc index c910f099bf3..7edf3ef0bf4 100644 --- a/mindspore/lite/test/ut/src/runtime/runtime_pass_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/runtime_pass_tests.cc @@ -14,9 +14,9 @@ * limitations under the License. */ #include "common/common_test.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/runtime_pass.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/runtime_pass.h" #include "nnacl/conv_parameter.h" #include "nnacl/instance_norm_parameter.h" #include "nnacl/fp32/activation_fp32.h" diff --git a/mindspore/lite/test/ut/src/scheduler_test.cc b/mindspore/lite/test/ut/src/scheduler_test.cc index ce5f8f4d2c8..23ac1c90eb9 100644 --- a/mindspore/lite/test/ut/src/scheduler_test.cc +++ b/mindspore/lite/test/ut/src/scheduler_test.cc @@ -16,7 +16,7 @@ #include "common/common_test.h" #include "schema/inner/model_generated.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "ir/dtype/type_id.h" using mindspore::kernel::KernelExec; diff --git a/mindspore/lite/test/ut/src/utils_test.cc b/mindspore/lite/test/ut/src/utils_test.cc index f7e28ccee53..c751241d9c4 100644 --- a/mindspore/lite/test/ut/src/utils_test.cc +++ b/mindspore/lite/test/ut/src/utils_test.cc @@ -21,8 +21,8 @@ #include "include/context.h" #include "include/errorcode.h" #include "src/common/log_adapter.h" -#include "mindspore/lite/src/runtime/kernel_exec.h" -#include "mindspore/lite/src/runtime/kernel_exec_util.h" +#include "mindspore/lite/src/litert/kernel_exec.h" +#include "mindspore/lite/src/litert/kernel_exec_util.h" namespace mindspore { class UtilsTest : public mindspore::CommonTest { diff --git a/mindspore/lite/tools/common/node_util.cc b/mindspore/lite/tools/common/node_util.cc index 1d099d4eb10..6dce4f566e1 100644 --- a/mindspore/lite/tools/common/node_util.cc +++ b/mindspore/lite/tools/common/node_util.cc @@ -23,7 +23,7 @@ #include "src/common/log_adapter.h" #include "tools/common/graph_util.h" #include "tools/common/tensor_util.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" #include "mindspore/core/ops/switch.h" #include "mindspore/core/ops/call.h" #include "mindspore/core/ops/fusion/partial_fusion.h" diff --git a/mindspore/lite/tools/converter/CMakeLists.txt b/mindspore/lite/tools/converter/CMakeLists.txt index cbb0998488a..12d2b79fcc3 100644 --- a/mindspore/lite/tools/converter/CMakeLists.txt +++ b/mindspore/lite/tools/converter/CMakeLists.txt @@ -105,13 +105,13 @@ if(MSLITE_ENABLE_ACL) endif() file(GLOB CXX_API_SRCS - ${SRC_DIR}/runtime/cxx_api/*.cc - ${SRC_DIR}/runtime/cxx_api/model/*.cc - ${SRC_DIR}/runtime/cxx_api/graph/*.cc - ${SRC_DIR}/runtime/cxx_api/tensor/*.cc) + ${SRC_DIR}/litert/cxx_api/*.cc + ${SRC_DIR}/litert/cxx_api/model/*.cc + ${SRC_DIR}/litert/cxx_api/graph/*.cc + ${SRC_DIR}/litert/cxx_api/tensor/*.cc) file(GLOB RUNTIME_PASS_SRCS - ${SRC_DIR}/runtime/pass/*.cc) + ${SRC_DIR}/litert/pass/*.cc) set(LITE_SRC ${API_SRC} ${CXX_API_SRCS} @@ -128,32 +128,32 @@ set(LITE_SRC ${API_SRC} ${SRC_DIR}/common/prim_util.cc ${SRC_DIR}/common/tensor_util.cc ${SRC_DIR}/common/decrypt.cc - ${SRC_DIR}/runtime/allocator.cc - ${SRC_DIR}/runtime/inner_allocator.cc - ${SRC_DIR}/runtime/runtime_allocator.cc - ${SRC_DIR}/runtime/infer_manager.cc - ${SRC_DIR}/runtime/runtime_shape_fusion_pass.cc - ${SRC_DIR}/runtime/runtime_pass.cc - ${SRC_DIR}/runtime/inner_context.cc + ${SRC_DIR}/litert/allocator.cc + ${SRC_DIR}/litert/inner_allocator.cc + ${SRC_DIR}/litert/runtime_allocator.cc + ${SRC_DIR}/litert/infer_manager.cc + ${SRC_DIR}/litert/runtime_shape_fusion_pass.cc + ${SRC_DIR}/litert/runtime_pass.cc + ${SRC_DIR}/litert/inner_context.cc ${SRC_DIR}/tensor.cc - ${SRC_DIR}/runtime/tensor_category.cc - ${SRC_DIR}/runtime/schema_tensor_wrapper.cc + ${SRC_DIR}/litert/tensor_category.cc + ${SRC_DIR}/litert/schema_tensor_wrapper.cc ${SRC_DIR}/tensorlist.cc - ${SRC_DIR}/runtime/kernel_registry.cc + ${SRC_DIR}/litert/kernel_registry.cc ${SRC_DIR}/registry/register_kernel_impl.cc - ${SRC_DIR}/runtime/lite_kernel.cc - ${SRC_DIR}/runtime/kernel_exec.cc - ${SRC_DIR}/runtime/kernel_exec_util.cc - ${SRC_DIR}/runtime/scheduler.cc - ${SRC_DIR}/runtime/sub_graph_kernel.cc - ${SRC_DIR}/runtime/sub_graph_split.cc - ${SRC_DIR}/runtime/lite_session.cc - ${SRC_DIR}/runtime/executor.cc - ${SRC_DIR}/runtime/lite_model.cc + ${SRC_DIR}/litert/lite_kernel.cc + ${SRC_DIR}/litert/kernel_exec.cc + ${SRC_DIR}/litert/kernel_exec_util.cc + ${SRC_DIR}/litert/scheduler.cc + ${SRC_DIR}/litert/sub_graph_kernel.cc + ${SRC_DIR}/litert/sub_graph_split.cc + ${SRC_DIR}/litert/lite_session.cc + ${SRC_DIR}/litert/executor.cc + ${SRC_DIR}/litert/lite_model.cc ${SRC_DIR}/errorcode.cc - ${SRC_DIR}/runtime/weight_decoder.cc - ${SRC_DIR}/runtime/pack_weight_manager.cc - ${SRC_DIR}/runtime/huffman_decode.cc + ${SRC_DIR}/litert/weight_decoder.cc + ${SRC_DIR}/litert/pack_weight_manager.cc + ${SRC_DIR}/litert/huffman_decode.cc ${SRC_DIR}/extendrt/delegate/tensorrt/distribution/distribution_base.cc ${LITE_DIR}/src/extendrt/mock/lite_runtime/populate/base_operator_populate_register.cc ${SRC_DIR}/control_flow/control_flow_scheduler.cc @@ -196,9 +196,9 @@ set(LITE_SRC if(MSLITE_ENABLE_BFC_MEMORY) set(LITE_SRC ${LITE_SRC} - ${SRC_DIR}/runtime/dynamic_mem_allocator.cc - ${SRC_DIR}/runtime/dynamic_mem_manager.cc - ${SRC_DIR}/runtime/numa_adapter.cc + ${SRC_DIR}/litert/dynamic_mem_allocator.cc + ${SRC_DIR}/litert/dynamic_mem_manager.cc + ${SRC_DIR}/litert/numa_adapter.cc ) endif() @@ -211,14 +211,14 @@ endif() if(MSLITE_ENABLE_SHARING_MODEL_WEIGHT) set(LITE_SRC ${LITE_SRC} - ${SRC_DIR}/runtime/pack_weight.cc + ${SRC_DIR}/litert/pack_weight.cc ) endif() if(MSLITE_ENABLE_DYNAMIC_THREAD_DISTRIBUTE) set(LITE_SRC ${LITE_SRC} - ${SRC_DIR}/runtime/thread_cost_model.cc + ${SRC_DIR}/litert/thread_cost_model.cc ) endif() @@ -250,8 +250,8 @@ if(MSLITE_ENABLE_MINDRT) set(LITE_SRC ${LITE_SRC} ${MINDRT_SRC} - ${SRC_DIR}/runtime/lite_mindrt.cc - ${SRC_DIR}/runtime/mindrt_executor.cc + ${SRC_DIR}/litert/lite_mindrt.cc + ${SRC_DIR}/litert/mindrt_executor.cc ${SRC_DIR}/control_flow/control_actor_creator.cc ) @@ -265,7 +265,7 @@ endif() if(MSLITE_GPU_BACKEND STREQUAL opencl) file(GLOB_RECURSE OPENCL_RUNTIME_SRC - ${SRC_DIR}/runtime/kernel/gpu/opencl/*.cc + ${SRC_DIR}/litert/kernel/gpu/opencl/*.cc ) set(LITE_SRC ${LITE_SRC} @@ -326,7 +326,7 @@ if((NOT WIN32) AND MSLITE_ENABLE_DPICO_ATC_ADAPTER) endif() if(MSLITE_GPU_BACKEND STREQUAL opencl) - include_directories(${SRC_DIR}/runtime/kernel/opencl) + include_directories(${SRC_DIR}/litert/kernel/opencl) target_link_libraries(mindspore_converter opencl_kernel_mid) endif() diff --git a/mindspore/lite/tools/converter/legacy_optimizer/graph/infershape_pass.cc b/mindspore/lite/tools/converter/legacy_optimizer/graph/infershape_pass.cc index 3b7f26a0d84..317b1b334cd 100644 --- a/mindspore/lite/tools/converter/legacy_optimizer/graph/infershape_pass.cc +++ b/mindspore/lite/tools/converter/legacy_optimizer/graph/infershape_pass.cc @@ -25,7 +25,7 @@ #include "src/tensorlist.h" #include "src/common/prim_util.h" #include "src/common/ops/populate/populate_register.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" #include "src/common/primitive_t_utils.h" #include "tools/common/node_util.h" #include "src/common/string_utils.h" diff --git a/mindspore/lite/tools/converter/micro/coder/graph.cc b/mindspore/lite/tools/converter/micro/coder/graph.cc index b9fa5f2fc45..317e1eaab5a 100644 --- a/mindspore/lite/tools/converter/micro/coder/graph.cc +++ b/mindspore/lite/tools/converter/micro/coder/graph.cc @@ -27,7 +27,7 @@ #include "schema/inner/model_generated.h" #include "securec/include/securec.h" #include "src/common/prim_util.h" -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" namespace mindspore::lite::micro { CoderGraph::~CoderGraph() { diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.cc b/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.cc index 0a769aff221..46b3fe6d8f3 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.cc +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.cc @@ -20,7 +20,7 @@ #include "nnacl/fp32/winograd_utils.h" #include "nnacl/int8/quantize.h" #include "coder/log.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "src/common/quant_utils.h" namespace mindspore::lite::micro { namespace { diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.h b/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.h index 2d1e978bd48..6a6cb93beb4 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.h +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/base/conv2d_base_coder.h @@ -22,7 +22,7 @@ #include #include #include "coder/opcoders/op_coder.h" -#include "src/runtime/kernel/cpu/base/layout_transform.h" +#include "src/litert/kernel/cpu/base/layout_transform.h" #include "nnacl/conv_parameter.h" namespace mindspore::lite::micro { class Conv2DBaseCoder : public OperatorCoder { diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/cmsis-nn/int8/dwconv_int8_coder.h b/mindspore/lite/tools/converter/micro/coder/opcoders/cmsis-nn/int8/dwconv_int8_coder.h index 85c7c0636c5..dc5ffdb58e1 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/cmsis-nn/int8/dwconv_int8_coder.h +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/cmsis-nn/int8/dwconv_int8_coder.h @@ -19,7 +19,7 @@ #include #include "coder/opcoders/cmsis-nn/int8/conv2d_base_coder.h" -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_int8.h" namespace mindspore::lite::micro::cmsis { class DWConvInt8Coder final : public Conv2DBaseCoder { diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/affine_fp32_coder.cc b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/affine_fp32_coder.cc index 7a023aa3d51..123854dc7f9 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/affine_fp32_coder.cc +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/affine_fp32_coder.cc @@ -22,7 +22,7 @@ #include "coder/opcoders/file_collector.h" #include "coder/opcoders/nnacl/fp32/matmul_fp32_coder.h" #include "tools/converter/micro/coder/wrapper/base/affine_wrapper.h" -#include "src/runtime/kernel/cpu/fp32/affine_fp32.h" +#include "src/litert/kernel/cpu/fp32/affine_fp32.h" #include "tools/converter/micro/coder/opcoders/op_coder_builder.h" #include "coder/utils/common.h" diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/convolution_depthwise_fp32_coder.h b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/convolution_depthwise_fp32_coder.h index a5827f4f395..2f0f6c226e9 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/convolution_depthwise_fp32_coder.h +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/convolution_depthwise_fp32_coder.h @@ -19,7 +19,7 @@ #include #include "coder/opcoders/base/conv2d_base_coder.h" -#include "src/runtime/kernel/cpu/fp32/convolution_depthwise_fp32.h" +#include "src/litert/kernel/cpu/fp32/convolution_depthwise_fp32.h" namespace mindspore::lite::micro::nnacl { class ConvolutionDepthwiseFP32Coder final : public Conv2DBaseCoder { diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/resize_fp32_coder.h b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/resize_fp32_coder.h index 54594c6284f..745924714aa 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/resize_fp32_coder.h +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/fp32/resize_fp32_coder.h @@ -23,8 +23,8 @@ #include #include "include/errorcode.h" #include "nnacl/fp32/resize_fp32.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/kernel/cpu/fp32/resize_fp32.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/kernel/cpu/fp32/resize_fp32.h" namespace mindspore::lite::micro::nnacl { class ResizeFP32Coder final : public ResizeBaseCoder { diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/affine_int8_coder.cc b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/affine_int8_coder.cc index 8b57f0e3c34..b58bf96797d 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/affine_int8_coder.cc +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/affine_int8_coder.cc @@ -23,7 +23,7 @@ #include "coder/opcoders/nnacl/int8/matmul_int8_coder.h" #include "tools/converter/micro/coder/wrapper/base/affine_wrapper.h" #include "tools/converter/micro/coder/opcoders/op_coder_builder.h" -#include "src/runtime/kernel/cpu/fp32/affine_fp32.h" +#include "src/litert/kernel/cpu/fp32/affine_fp32.h" #include "coder/opcoders/nnacl/fp32/affine_fp32_coder.h" using mindspore::schema::PrimitiveType_Affine; diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_1x1_int8_coder.cc b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_1x1_int8_coder.cc index 59b1436e1b0..182b4ec8eb7 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_1x1_int8_coder.cc +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_1x1_int8_coder.cc @@ -18,7 +18,7 @@ #include #include #include "securec/include/securec.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "coder/opcoders/file_collector.h" #include "coder/log.h" #include "coder/opcoders/parallel.h" diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_int8_coder.cc b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_int8_coder.cc index 28b501eb8e7..a97705493f6 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_int8_coder.cc +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/conv2d_int8_coder.cc @@ -23,7 +23,7 @@ #include "coder/opcoders/nnacl/int8/conv2d_3x3_int8_coder.h" #include "coder/opcoders/nnacl/int8/convolution_depthwise_int8_coder.h" #include "coder/opcoders/serializers/nnacl_serializer/nnacl_int8_serializer.h" -#include "src/runtime/kernel/cpu/base/convolution_base.h" +#include "src/litert/kernel/cpu/base/convolution_base.h" #include "src/common/ops/populate/populate_register.h" #include "src/common/version_manager.h" #include "coder/log.h" diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/convolution_depthwise_int8_coder.h b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/convolution_depthwise_int8_coder.h index 8401d09ab7b..fc3b5a90457 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/convolution_depthwise_int8_coder.h +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/nnacl/int8/convolution_depthwise_int8_coder.h @@ -19,7 +19,7 @@ #include #include "coder/opcoders/base/conv2d_base_coder.h" -#include "src/runtime/kernel/cpu/int8/convolution_depthwise_int8.h" +#include "src/litert/kernel/cpu/int8/convolution_depthwise_int8.h" namespace mindspore::lite::micro { class ConvolutionDepthwiseINT8Coder : public Conv2DBaseCoder { diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder.h b/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder.h index 2fb35ccc5bf..7cf0786c7ee 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder.h +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder.h @@ -24,7 +24,7 @@ #include "tools/converter/micro/coder/graph.h" #include "tools/converter/micro/coder/allocator/allocator.h" #include "include/errorcode.h" -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "src/common/version_manager.h" #include "securec/include/securec.h" #include "tools/converter/micro/coder/opcoders/op_coder_register.h" diff --git a/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder_register.h b/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder_register.h index 9a1aed638c1..d2fdf8eb834 100644 --- a/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder_register.h +++ b/mindspore/lite/tools/converter/micro/coder/opcoders/op_coder_register.h @@ -21,7 +21,7 @@ #include #include #include -#include "src/runtime/kernel_exec.h" +#include "src/litert/kernel_exec.h" #include "include/model.h" #include "tools/converter/micro/coder/config.h" namespace mindspore::lite::micro { diff --git a/mindspore/lite/tools/converter/micro/coder/session.cc b/mindspore/lite/tools/converter/micro/coder/session.cc index 8c4fadb5443..ad5bc2c68a7 100644 --- a/mindspore/lite/tools/converter/micro/coder/session.cc +++ b/mindspore/lite/tools/converter/micro/coder/session.cc @@ -30,9 +30,9 @@ #include "coder/log.h" #include "src/common/ops/populate/populate_register.h" #include "src/common/version_manager.h" -#include "src/runtime/infer_manager.h" -#include "src/runtime/scheduler.h" -#include "src/runtime/lite_model.h" +#include "src/litert/infer_manager.h" +#include "src/litert/scheduler.h" +#include "src/litert/lite_model.h" #include "include/errorcode.h" #include "include/model.h" #include "src/common/file_utils.h" diff --git a/mindspore/lite/tools/converter/quantizer/debug_info_manager.cc b/mindspore/lite/tools/converter/quantizer/debug_info_manager.cc index 1c6b0d9d23e..1c93f922afd 100644 --- a/mindspore/lite/tools/converter/quantizer/debug_info_manager.cc +++ b/mindspore/lite/tools/converter/quantizer/debug_info_manager.cc @@ -19,14 +19,14 @@ #include #include #include "tools/converter/quantizer/debug_info_manager.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "src/common/log_adapter.h" #include "include/errorcode.h" #include "tools/converter/preprocess/image_preprocess.h" #include "tools/common/tensor_util.h" #include "tools/converter/quantizer/quantize_util.h" #include "src/common/file_utils.h" -#include "src/runtime/weight_decoder.h" +#include "src/litert/weight_decoder.h" #include "tools/common/string_util.h" namespace mindspore::lite { diff --git a/mindspore/lite/tools/converter/quantizer/fse_decoder.h b/mindspore/lite/tools/converter/quantizer/fse_decoder.h index ee743fffa0e..8df544743fe 100644 --- a/mindspore/lite/tools/converter/quantizer/fse_decoder.h +++ b/mindspore/lite/tools/converter/quantizer/fse_decoder.h @@ -20,7 +20,7 @@ #include #include "tools/converter/quantizer/fse_bit_stream.h" #include "src/tensor.h" -#include "src/runtime/lite_model.h" +#include "src/litert/lite_model.h" namespace mindspore::lite::quant { class FSEDecoder { diff --git a/mindspore/lite/tools/converter/quantizer/huffman_encode.cc b/mindspore/lite/tools/converter/quantizer/huffman_encode.cc index b958f66382d..cf02c70988d 100644 --- a/mindspore/lite/tools/converter/quantizer/huffman_encode.cc +++ b/mindspore/lite/tools/converter/quantizer/huffman_encode.cc @@ -16,7 +16,7 @@ #define USE_DEPRECATED_API #include "tools/converter/quantizer/huffman_encode.h" -#include "src/runtime/tensor_category.h" +#include "src/litert/tensor_category.h" #include "tools/converter/quantizer/quantize_util.h" namespace mindspore { diff --git a/mindspore/lite/tools/converter/quantizer/quant_helper/quant_node_helper.cc b/mindspore/lite/tools/converter/quantizer/quant_helper/quant_node_helper.cc index ef04d99ee68..cf06b4ac556 100644 --- a/mindspore/lite/tools/converter/quantizer/quant_helper/quant_node_helper.cc +++ b/mindspore/lite/tools/converter/quantizer/quant_helper/quant_node_helper.cc @@ -27,8 +27,8 @@ #include "tools/converter/quantizer/quant_helper/only_need_inputs_quant_type_determiner.h" #include "tools/converter/quantizer/quant_helper/quant_dtype_cast_quant_param_propogator.h" #include "tools/converter/quantizer/quant_helper/matmul_quant_type_determiner.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/kernel_registry.h" namespace mindspore::lite { void QuantNodeBase::UpdateQuantParamsNum(const schema::MetaGraphT &graph, const schema::CNodeT &node) { diff --git a/mindspore/lite/tools/converter/quantizer/quant_helper/quant_type_determiner.cc b/mindspore/lite/tools/converter/quantizer/quant_helper/quant_type_determiner.cc index 2d647178a67..48d2f1e01c0 100644 --- a/mindspore/lite/tools/converter/quantizer/quant_helper/quant_type_determiner.cc +++ b/mindspore/lite/tools/converter/quantizer/quant_helper/quant_type_determiner.cc @@ -18,8 +18,8 @@ #include #include "tools/optimizer/common/gllo_utils.h" #include "tools/converter/quantizer/quantize_util.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/kernel_registry.h" #include "src/common/ops/anf_utils.h" namespace mindspore::lite::quant { diff --git a/mindspore/lite/tools/converter/quantizer/quantize_util.h b/mindspore/lite/tools/converter/quantizer/quantize_util.h index 81ee728bffa..65f702626ba 100644 --- a/mindspore/lite/tools/converter/quantizer/quantize_util.h +++ b/mindspore/lite/tools/converter/quantizer/quantize_util.h @@ -47,7 +47,7 @@ #include "tools/converter/quantizer/huffman_encode.h" #include "tools/converter/quantizer/quant_params.h" #include "tools/converter/quantizer/mixed_bit_weight_quantizer.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "src/common/file_utils.h" #include "src/common/quant_utils.h" #include "include/api/model.h" diff --git a/mindspore/lite/tools/converter/quantizer/weight_quantizer.h b/mindspore/lite/tools/converter/quantizer/weight_quantizer.h index d053367534e..8834f5dfe3a 100644 --- a/mindspore/lite/tools/converter/quantizer/weight_quantizer.h +++ b/mindspore/lite/tools/converter/quantizer/weight_quantizer.h @@ -35,7 +35,7 @@ #include "include/model.h" #include "base/base.h" #include "abstract/dshape.h" -#include "src/runtime/lite_session.h" +#include "src/litert/lite_session.h" #include "src/common/quant_utils.h" namespace mindspore::lite::quant { diff --git a/mindspore/lite/tools/converter/registry/CMakeLists.txt b/mindspore/lite/tools/converter/registry/CMakeLists.txt index 8204eb891aa..12296e857c0 100644 --- a/mindspore/lite/tools/converter/registry/CMakeLists.txt +++ b/mindspore/lite/tools/converter/registry/CMakeLists.txt @@ -4,12 +4,12 @@ file(GLOB CONVERT_REG_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*.cc) file(GLOB KERNEL_REG_SRC ${KERNEL_REG_DIR}/*.cc) set(REG_SRC ${CONVERT_REG_SRC} ${KERNEL_REG_SRC} - ${KERNEL_REG_DIR}/../runtime/cxx_api/context.cc - ${KERNEL_REG_DIR}/../runtime/cxx_api/types.cc - ${KERNEL_REG_DIR}/../runtime/cxx_api/tensor/tensor_impl.cc - ${KERNEL_REG_DIR}/../runtime/cxx_api/tensor_utils.cc + ${KERNEL_REG_DIR}/../litert/cxx_api/context.cc + ${KERNEL_REG_DIR}/../litert/cxx_api/types.cc + ${KERNEL_REG_DIR}/../litert/cxx_api/tensor/tensor_impl.cc + ${KERNEL_REG_DIR}/../litert/cxx_api/tensor_utils.cc ${KERNEL_REG_DIR}/../tensor.cc - ${KERNEL_REG_DIR}/../runtime/inner_allocator.cc + ${KERNEL_REG_DIR}/../litert/inner_allocator.cc ${KERNEL_REG_DIR}/../common/string_util.cc ${KERNEL_REG_DIR}/../common/utils.cc ${KERNEL_REG_DIR}/../extendrt/delegate/tensorrt/distribution/distribution_base.cc diff --git a/mindspore/lite/tools/cropper/build_cropper_config.sh b/mindspore/lite/tools/cropper/build_cropper_config.sh index 20b693809eb..a8c5eb9c633 100644 --- a/mindspore/lite/tools/cropper/build_cropper_config.sh +++ b/mindspore/lite/tools/cropper/build_cropper_config.sh @@ -41,7 +41,7 @@ HEADER_LOCATION="-I${MINDSPORE_HOME} -I${MINDSPORE_HOME}/mindspore/ccsrc -I${MINDSPORE_HOME}/mindspore/lite -I${MINDSPORE_HOME}/mindspore/lite/src --I${MINDSPORE_HOME}/mindspore/lite/src/runtime/kernel/cpu +-I${MINDSPORE_HOME}/mindspore/lite/src/litert/kernel/cpu -I${MINDSPORE_HOME}/third_party -I${MINDSPORE_HOME}/mindspore/lite/build -I${MINDSPORE_HOME}/cmake/../third_party/securec/include @@ -153,12 +153,12 @@ getCommonFile() { common_files_h=() while IFS='' read -r line; do common_files_h+=("$line"); done < <(ls mindspore/lite/src/common/*.h) runtime_files_h=() - while IFS='' read -r line; do runtime_files_h+=("$line"); done < <(ls mindspore/lite/src/runtime/*.h) + while IFS='' read -r line; do runtime_files_h+=("$line"); done < <(ls mindspore/lite/src/litert/*.h) mindrt_files_h=() while IFS='' read -r line; do mindrt_files_h+=("$line"); done < <(ls mindspore/core/mindrt/src/actor/*.h) while IFS='' read -r line; do mindrt_files_h+=("$line"); done < <(ls mindspore/core/mindrt/src/thread/*.h) others_files_h=( - mindspore/lite/src/runtime/infer_manager.h + mindspore/lite/src/litert/infer_manager.h mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/infer/infer_register.h mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/nnacl_utils.h mindspore/lite/src/common/ops/populate/populate_register.h @@ -179,7 +179,7 @@ getCommonFile() { mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/ms_core.h mindspore/core/utils/log_adapter.h mindspore/core/ir/api_tensor_impl.h - mindspore/lite/src/runtime/cxx_api/tensor/tensor_impl.h + mindspore/lite/src/litert/cxx_api/tensor/tensor_impl.h ) all_files_h=("${include_h[@]}" "${regist_include_h[@]}" "${src_files_h[@]}" "${common_files_h[@]}" "${runtime_files_h[@]}" "${others_files_h[@]}" "${mindrt_files_h[@]}" @@ -193,11 +193,11 @@ getCommonFile() { done cxx_api_files=() - while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/runtime/cxx_api/graph/*.cc) - while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/runtime/cxx_api/model/*.cc) - while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/runtime/cxx_api/tensor/*.cc) - while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/runtime/cxx_api/*.cc) - while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/runtime/c_api/*.cc) + while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/litert/cxx_api/graph/*.cc) + while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/litert/cxx_api/model/*.cc) + while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/litert/cxx_api/tensor/*.cc) + while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/litert/cxx_api/*.cc) + while IFS='' read -r line; do cxx_api_files+=("$line"); done < <(ls mindspore/lite/src/litert/c_api/*.cc) mindrt_files=() while IFS='' read -r line; do mindrt_files+=("$line"); done < <(ls mindspore/core/mindrt/src/*.cc) while IFS='' read -r line; do mindrt_files+=("$line"); done < <(ls mindspore/core/mindrt/src/async/*.cc) @@ -210,18 +210,18 @@ getCommonFile() { common_files=() while IFS='' read -r line; do common_files+=("$line"); done < <(ls mindspore/lite/src/common/*.cc) runtime_files_cc=() - while IFS='' read -r line; do runtime_files_cc+=("$line"); done < <(ls mindspore/lite/src/runtime/*.cc) + while IFS='' read -r line; do runtime_files_cc+=("$line"); done < <(ls mindspore/lite/src/litert/*.cc) # sava all assembly files assembly_files=() while IFS='' read -r line; do assembly_files+=("$line"); done < <(ls mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/assembly/*/*.S) others_files_c=( mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/nnacl_utils.c - mindspore/lite/src/runtime/infer_manager.cc + mindspore/lite/src/litert/infer_manager.cc mindspore/lite/src/common/ops/populate/populate_register.cc mindspore/lite/src/common/ops/populate/custom_populate.cc mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/infer/infer_register.c mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/infer/shape_fusion_infer.c - mindspore/lite/src/runtime/kernel/cpu/fp32/shape_fusion_fp32.cc + mindspore/lite/src/litert/kernel/cpu/fp32/shape_fusion_fp32.cc mindspore/core/utils/status.cc mindspore/core/utils/log_adapter.cc mindspore/lite/experimental/src/exec_env_utils.cc @@ -255,9 +255,9 @@ getTrainCommonFile() { # save train files train_files=() while IFS='' read -r line; do train_files+=("$line"); done < <(ls mindspore/lite/src/train/*.cc) - while IFS='' read -r line; do train_files+=("$line"); done < <(ls mindspore/lite/src/runtime/cxx_api/callback/*.cc) - while IFS='' read -r line; do train_files+=("$line"); done < <(ls mindspore/lite/src/runtime/cxx_api/metrics/*.cc) - while IFS='' read -r line; do train_files+=("$line"); done < <(ls mindspore/lite/src/runtime/cxx_api/train/*.cc) + while IFS='' read -r line; do train_files+=("$line"); done < <(ls mindspore/lite/src/litert/cxx_api/callback/*.cc) + while IFS='' read -r line; do train_files+=("$line"); done < <(ls mindspore/lite/src/litert/cxx_api/metrics/*.cc) + while IFS='' read -r line; do train_files+=("$line"); done < <(ls mindspore/lite/src/litert/cxx_api/train/*.cc) others_train_files=( mindspore/lite/tools/common/storage.cc ) @@ -330,11 +330,11 @@ getTrainCommonFile getOpsFile "REG_POPULATE\(PrimitiveType_" "mindspore/lite/src/common/ops/populate" "prototype" & getOpsFile "REG_INFER\(.*?, PrimType_" "mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/infer" "prototype" & # support for cpu -getOpsFile "REG_KERNEL\(.*?, kNumberTypeFloat32, PrimitiveType_" "mindspore/lite/src/runtime/kernel/cpu" "kNumberTypeFloat32" & -getOpsFile "REG_KERNEL\(.*?, kNumberTypeFloat16, PrimitiveType_" "mindspore/lite/src/runtime/kernel/cpu" "kNumberTypeFloat16" & -getOpsFile "REG_KERNEL\(.*?, kNumberTypeInt8, PrimitiveType_" "mindspore/lite/src/runtime/kernel/cpu" "kNumberTypeInt8" & -getOpsFile "REG_KERNEL\(.*?, kNumberTypeInt32, PrimitiveType_" "mindspore/lite/src/runtime/kernel/cpu" "kNumberTypeInt32" & -getOpsFile "REG_KERNEL\(.*?, kNumberTypeBool, PrimitiveType_" "mindspore/lite/src/runtime/kernel/cpu" "kNumberTypeInt32" & +getOpsFile "REG_KERNEL\(.*?, kNumberTypeFloat32, PrimitiveType_" "mindspore/lite/src/litert/kernel/cpu" "kNumberTypeFloat32" & +getOpsFile "REG_KERNEL\(.*?, kNumberTypeFloat16, PrimitiveType_" "mindspore/lite/src/litert/kernel/cpu" "kNumberTypeFloat16" & +getOpsFile "REG_KERNEL\(.*?, kNumberTypeInt8, PrimitiveType_" "mindspore/lite/src/litert/kernel/cpu" "kNumberTypeInt8" & +getOpsFile "REG_KERNEL\(.*?, kNumberTypeInt32, PrimitiveType_" "mindspore/lite/src/litert/kernel/cpu" "kNumberTypeInt32" & +getOpsFile "REG_KERNEL\(.*?, kNumberTypeBool, PrimitiveType_" "mindspore/lite/src/litert/kernel/cpu" "kNumberTypeInt32" & wait sleep 0.5 # remove duplicate files @@ -346,12 +346,12 @@ chmod 444 ${CPU_TRAIN_MAPPING_OUTPUT_FILE} # support for gpu opencl_files=() -while IFS='' read -r line; do opencl_files+=("$line"); done < <(ls mindspore/lite/src/runtime/kernel/opencl/*.cc) -while IFS='' read -r line; do opencl_files+=("$line"); done < <(ls mindspore/lite/src/runtime/kernel/gpu/opencl/*.cc) +while IFS='' read -r line; do opencl_files+=("$line"); done < <(ls mindspore/lite/src/litert/kernel/opencl/*.cc) +while IFS='' read -r line; do opencl_files+=("$line"); done < <(ls mindspore/lite/src/litert/kernel/gpu/opencl/*.cc) opencl_others_files=( - "mindspore/lite/src/runtime/kernel/opencl/kernel/fusion_eltwise.cc" - "mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.cc" - "mindspore/lite/src/runtime/kernel/opencl/kernel/gl_to_cl.cc" + "mindspore/lite/src/litert/kernel/opencl/kernel/fusion_eltwise.cc" + "mindspore/lite/src/litert/kernel/opencl/kernel/to_format.cc" + "mindspore/lite/src/litert/kernel/opencl/kernel/gl_to_cl.cc" ) opencl_files=("${opencl_files[@]}" "${opencl_others_files[@]}") # shellcheck disable=SC2068 @@ -360,11 +360,11 @@ for file in ${opencl_files[@]}; do echo "CommonFile,common,${file}.o" >>${MAPPING_OUTPUT_FILE_NAME_TMP} done -getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeFloat32, PrimitiveType_" "mindspore/lite/src/runtime/kernel/opencl/kernel" "kNumberTypeFloat32" & -getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeFloat16, PrimitiveType_" "mindspore/lite/src/runtime/kernel/opencl/kernel" "kNumberTypeFloat16" & -getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeInt8, PrimitiveType_" "mindspore/lite/src/runtime/kernel/opencl/kernel" "kNumberTypeInt8" & -getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeInt32, PrimitiveType_" "mindspore/lite/src/runtime/kernel/opencl/kernel" "kNumberTypeInt32" & -getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeBool, PrimitiveType_" "mindspore/lite/src/runtime/kernel/opencl/kernel" "kNumberTypeInt32" & +getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeFloat32, PrimitiveType_" "mindspore/lite/src/litert/kernel/opencl/kernel" "kNumberTypeFloat32" & +getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeFloat16, PrimitiveType_" "mindspore/lite/src/litert/kernel/opencl/kernel" "kNumberTypeFloat16" & +getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeInt8, PrimitiveType_" "mindspore/lite/src/litert/kernel/opencl/kernel" "kNumberTypeInt8" & +getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeInt32, PrimitiveType_" "mindspore/lite/src/litert/kernel/opencl/kernel" "kNumberTypeInt32" & +getOpsFileWithNoDeepSearch "REG_KERNEL\(.*?, kNumberTypeBool, PrimitiveType_" "mindspore/lite/src/litert/kernel/opencl/kernel" "kNumberTypeInt32" & sleep 0.5 wait sort ${MAPPING_OUTPUT_FILE_NAME_TMP} | uniq >${GPU_MAPPING_OUTPUT_FILE} @@ -372,10 +372,10 @@ chmod 444 ${GPU_MAPPING_OUTPUT_FILE} # support for npu npu_files=() -while IFS='' read -r line; do npu_files+=("$line"); done < <(ls mindspore/lite/src/runtime/delegate/npu/*.cc) -while IFS='' read -r line; do npu_files+=("$line"); done < <(ls mindspore/lite/src/runtime/delegate/npu/op/*.cc) -while IFS='' read -r line; do npu_files+=("$line"); done < <(ls mindspore/lite/src/runtime/delegate/npu/pass/*.cc) -npu_others_files=("mindspore/lite/src/runtime/delegate/delegate_utils.cc") +while IFS='' read -r line; do npu_files+=("$line"); done < <(ls mindspore/lite/src/litert/delegate/npu/*.cc) +while IFS='' read -r line; do npu_files+=("$line"); done < <(ls mindspore/lite/src/litert/delegate/npu/op/*.cc) +while IFS='' read -r line; do npu_files+=("$line"); done < <(ls mindspore/lite/src/litert/delegate/npu/pass/*.cc) +npu_others_files=("mindspore/lite/src/litert/delegate/delegate_utils.cc") npu_files=("${npu_files[@]}" "${npu_others_files[@]}") # shellcheck disable=SC2068 for file in ${npu_files[@]}; do diff --git a/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.cc b/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.cc index da2ee9ae710..acfa466556f 100644 --- a/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.cc +++ b/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.cc @@ -22,7 +22,7 @@ #include #include "src/tensor.h" #include "src/common/utils.h" -#include "src/runtime/kernel_registry.h" +#include "src/litert/kernel_registry.h" #include "schema/model_generated.h" namespace mindspore::kernel { diff --git a/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.h b/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.h index cc7c3593cbb..a8e099d2330 100644 --- a/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.h +++ b/mindspore/lite/tools/graph_kernel/runtime/akg_kernel.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_TOOLS_GRAPH_KERNEL_RUNTIME_AKG_KERNEL_H_ #include #include -#include "src/runtime/lite_kernel.h" +#include "src/litert/lite_kernel.h" #include "nnacl/custom_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/tools/lite_exporter/anf_exporter.cc b/mindspore/lite/tools/lite_exporter/anf_exporter.cc index d0116b17fcc..5ff1d8d04ef 100644 --- a/mindspore/lite/tools/lite_exporter/anf_exporter.cc +++ b/mindspore/lite/tools/lite_exporter/anf_exporter.cc @@ -40,8 +40,8 @@ #include "tools/common/graph_util.h" #include "tools/common/meta_graph_utils.h" #include "src/common/ops/anf_utils.h" -#include "src/runtime/tensor_category.h" -#include "src/runtime/weight_decoder.h" +#include "src/litert/tensor_category.h" +#include "src/litert/weight_decoder.h" #include "tools/common/node_util.h" #include "src/common/log_util.h" #include "tools/converter/converter_context.h" diff --git a/mindspore/lite/tools/optimizer/const_fold/fold_utils.cc b/mindspore/lite/tools/optimizer/const_fold/fold_utils.cc index 478a27a50e0..1c87c21c20c 100644 --- a/mindspore/lite/tools/optimizer/const_fold/fold_utils.cc +++ b/mindspore/lite/tools/optimizer/const_fold/fold_utils.cc @@ -27,12 +27,12 @@ #include "tools/common/tensor_util.h" #include "src/common/context_util.h" #include "src/common/ops/populate/populate_register.h" -#include "src/runtime/kernel_exec.h" -#include "src/runtime/kernel_registry.h" -#include "src/runtime/inner_context.h" +#include "src/litert/kernel_exec.h" +#include "src/litert/kernel_registry.h" +#include "src/litert/inner_context.h" #include "src/tensor.h" #include "src/common/ops/anf_utils.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" #include "tools/optimizer/graph/lite_tensor_extractor.h" using mindspore::lite::KernelRegistry; diff --git a/mindspore/lite/tools/optimizer/const_fold/fold_utils.h b/mindspore/lite/tools/optimizer/const_fold/fold_utils.h index 19b34284695..1dad0f03348 100644 --- a/mindspore/lite/tools/optimizer/const_fold/fold_utils.h +++ b/mindspore/lite/tools/optimizer/const_fold/fold_utils.h @@ -21,7 +21,7 @@ #include "ir/anf.h" #include "include/api/context.h" #include "include/registry/converter_context.h" -#include "src/runtime/inner_context.h" +#include "src/litert/inner_context.h" namespace mindspore { namespace opt { diff --git a/mindspore/lite/tools/optimizer/graph/node_infershape.cc b/mindspore/lite/tools/optimizer/graph/node_infershape.cc index f7d6243a361..7e7c9f30cb5 100644 --- a/mindspore/lite/tools/optimizer/graph/node_infershape.cc +++ b/mindspore/lite/tools/optimizer/graph/node_infershape.cc @@ -25,7 +25,7 @@ #include "src/common/utils.h" #include "src/common/ops/populate/populate_register.h" #include "src/common/ops/anf_utils.h" -#include "src/runtime/infer_manager.h" +#include "src/litert/infer_manager.h" #include "src/tensorlist.h" #include "src/registry/kernel_interface_registry.h" #include "tools/optimizer/graph/lite_tensor_extractor.h"