optimize code compile performance

Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
zhoufeng 2020-08-14 16:24:49 +08:00
parent 5f3e7aa6b1
commit 663278112f
254 changed files with 4617 additions and 4606 deletions

View File

@ -15,13 +15,11 @@
*/
#include "backend/kernel_compiler/aicpu/aicpu_kernel_build.h"
#include <google/protobuf/text_format.h>
#include <fstream>
#include <utility>
#include <string>
#include <vector>
#include <memory>
#include <algorithm>
#include <map>
#include "runtime/device/kernel_runtime.h"
#include "backend/kernel_compiler/aicpu/aicpu_kernel_mod.h"
#include "backend/kernel_compiler/akg/akg_kernel_build.h"
@ -30,7 +28,6 @@
#include "proto/attr.pb.h"
#include "proto/node_def.pb.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/aicpu/aicpu_util.h"
#include "backend/session/kernel_graph.h"
#include "backend/kernel_compiler/common_utils.h"

View File

@ -23,7 +23,6 @@
#include "runtime/mem.h"
#include "runtime/rt.h"
#include "backend/kernel_compiler/aicpu/aicpu_kernel_build.h"
#include "utils/convert_utils.h"
#include "backend/kernel_compiler/aicpu/aicpu_util.h"
#include "utils/ms_context.h"

View File

@ -14,13 +14,9 @@
* limitations under the License.
*/
#include "backend/kernel_compiler/aicpu/aicpu_util.h"
#include <vector>
#include <string>
#include "proto/types.pb.h"
#include "runtime/mem.h"
#include "runtime/rt.h"
#include "utils/convert_utils.h"
#include "backend/session/anf_runtime_algorithm.h"
namespace mindspore {
namespace kernel {

View File

@ -15,22 +15,16 @@
*/
#include "backend/kernel_compiler/akg/akg_kernel_build.h"
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <dirent.h>
#include <cctype>
#include <cstdint>
#include <memory>
#include <map>
#include <utility>
#include <algorithm>
#include <functional>
#include <sstream>
#include <iterator>
#include <numeric>
#include <unordered_set>
#include "utils/ms_utils.h"
#include "utils/convert_utils.h"
#include "utils/any.h"
#include "utils/utils.h"

View File

@ -16,17 +16,12 @@
#include "backend/kernel_compiler/akg/ascend/akg_ascend_kernel_mod.h"
#include <algorithm>
#include <fstream>
#include <map>
#include <memory>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "nlohmann/json.hpp"
#include "runtime/rt.h"
#include "utils/log_adapter.h"
#include "utils/convert_utils.h"
#include "utils/ms_context.h"
namespace mindspore {
namespace kernel {

View File

@ -27,7 +27,6 @@
#include "utils/ms_utils.h"
#include "ir/manager.h"
#include "ir/meta_tensor.h"
#include "ir/func_graph.h"
#include "frontend/operator/ops.h"
#include "ir/graph_utils.h"

View File

@ -17,7 +17,6 @@
#include "backend/kernel_compiler/cpu/cpu_kernel_factory.h"
#include <memory>
#include <iostream>
#include <string>
#include "runtime/device/kernel_info.h"

View File

@ -15,8 +15,6 @@
*/
#include "backend/kernel_compiler/cpu/mkldnn/lstm_grad_cpu_kernel.h"
#include <cstring>
#include <cmath>
#include <numeric>
#include <string>
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/cpu/mkldnn/mkl_kernel_engine.h"

View File

@ -14,7 +14,6 @@
* limitations under the License.
*/
#include "backend/kernel_compiler/cpu/mkldnn/matmul_cpu_kernel.h"
#include <algorithm>
#include <utility>
#include "backend/kernel_compiler/cpu/mkldnn/mkl_kernel_engine.h"
#include "utils/ms_utils.h"

View File

@ -16,7 +16,6 @@
#include "backend/kernel_compiler/cpu/mkldnn/mkl_cpu_kernel.h"
#include <vector>
#include <string>
#include <algorithm>
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/cpu/mkldnn/mkl_kernel_engine.h"

View File

@ -15,7 +15,6 @@
*/
#include "backend/kernel_compiler/cpu/ps/embedding_look_up_ps_kernel.h"
#include <functional>
#include <vector>
#include <memory>
#include "backend/kernel_compiler/common_utils.h"

View File

@ -14,9 +14,6 @@
* limitations under the License.
*/
#include "backend/kernel_compiler/cpu/ps/pserver_kernel.h"
#include "frontend/parallel/ps/util.h"
namespace mindspore {
namespace kernel {
namespace ps {} // namespace ps

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <map>
#include <string>
#include <vector>
#include "backend/kernel_compiler/cpu/reduce_cpu_kernel.h"

View File

@ -18,8 +18,6 @@
#include <string>
#include <memory>
#include <algorithm>
#include "backend/kernel_compiler/hccl/hccl_kernel.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -15,11 +15,7 @@
*/
#include "backend/kernel_compiler/hccl/hcom_all_broadcast.h"
#include <algorithm>
#include <string>
#include <memory>
#include "utils/ms_context.h"
namespace mindspore {

View File

@ -15,11 +15,7 @@
*/
#include "backend/kernel_compiler/hccl/hcom_all_gather.h"
#include <algorithm>
#include <string>
#include <memory>
#include "utils/ms_context.h"
namespace mindspore {

View File

@ -15,11 +15,7 @@
*/
#include "backend/kernel_compiler/hccl/hcom_all_reduce.h"
#include <algorithm>
#include <memory>
#include <string>
#include "utils/ms_context.h"
namespace mindspore {

View File

@ -15,11 +15,7 @@
*/
#include "backend/kernel_compiler/hccl/hcom_all_reduce_scatter.h"
#include <algorithm>
#include <string>
#include <memory>
#include "utils/ms_context.h"
namespace mindspore {

View File

@ -15,9 +15,7 @@
*/
#include "backend/kernel_compiler/hccl/hcom_util.h"
#include <memory>
#include "backend/kernel_compiler/common_utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"

View File

@ -20,8 +20,6 @@
#include <string>
#include <memory>
#include <utility>
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/tbe/tbe_kernel_build.h"
#include "backend/kernel_compiler/tbe/tbe_kernel_parallel_build.h"
#include "backend/kernel_compiler/tbe/tbe_utils.h"

View File

@ -16,7 +16,6 @@
#include "backend/kernel_compiler/oplib/oplib.h"
#include <pybind11/pybind11.h>
#include <unordered_map>
#include <memory>
#include <map>
#include <fstream>

View File

@ -15,11 +15,8 @@
*/
#include "backend/kernel_compiler/rts/assign.h"
#include <memory>
#include "runtime/mem.h"
#include "utils/ms_utils.h"
using ge::model_runner::MemcpyAsyncTaskInfo;
using MemcpyAsyncTaskInfoPtr = std::shared_ptr<MemcpyAsyncTaskInfo>;

View File

@ -15,12 +15,10 @@
*/
#include "backend/kernel_compiler/rts/label_goto.h"
#include <asm-generic/param.h>
#include <memory>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
using ge::model_runner::LabelGotoTaskInfo;
using LabelGotoTaskInfoPtr = std::shared_ptr<LabelGotoTaskInfo>;

View File

@ -15,12 +15,10 @@
*/
#include "backend/kernel_compiler/rts/label_set.h"
#include <asm-generic/param.h>
#include <memory>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
using ge::model_runner::LabelSetTaskInfo;
using LabelSetTaskInfoPtr = std::shared_ptr<LabelSetTaskInfo>;

View File

@ -15,13 +15,11 @@
*/
#include "backend/kernel_compiler/rts/label_switch.h"
#include <asm-generic/param.h>
#include <memory>
#include <string>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
using ge::model_runner::LabelSwitchTaskInfo;
using LabelSwitchTaskInfoPtr = std::shared_ptr<LabelSwitchTaskInfo>;

View File

@ -15,12 +15,9 @@
*/
#include "backend/kernel_compiler/rts/memcpy_async.h"
#include <memory>
#include <string>
#include "runtime/mem.h"
#include "utils/ms_utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "common/trans.h"
#include "utils/ms_context.h"

View File

@ -15,11 +15,9 @@
*/
#include "backend/kernel_compiler/rts/profiling_kernel_mod.h"
#include <vector>
#include <string>
#include <memory>
#include "framework/ge_runtime/task_info.h"
#include "runtime/device/ascend/profiling/profiling_utils.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -18,15 +18,12 @@
#include <memory>
#include "runtime/stream.h"
#include "utils/ms_context.h"
#include "runtime/device/ascend/ascend_stream_assign.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
namespace mindspore {
namespace kernel {
using ge::model_runner::EventWaitTaskInfo;
using mindspore::device::ascend::AscendStreamAssign;
using EventWaitTaskInfoPtr = std::shared_ptr<EventWaitTaskInfo>;
RecvKernel::RecvKernel() { event_id_ = 0; }

View File

@ -15,12 +15,9 @@
*/
#include "backend/kernel_compiler/rts/rt_kernel_build.h"
#include <string>
#include <memory>
#include <utility>
#include <algorithm>
#include "backend/kernel_compiler/rts/rt_kernel.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -19,7 +19,6 @@
#include "runtime/event.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
using ge::model_runner::EventRecordTaskInfo;
using EventRecordTaskInfoPtr = std::shared_ptr<EventRecordTaskInfo>;

View File

@ -15,12 +15,10 @@
*/
#include "backend/kernel_compiler/rts/stream_active.h"
#include <asm-generic/param.h>
#include <memory>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
using ge::model_runner::StreamActiveTaskInfo;
using StreamActiveTaskInfoPtr = std::shared_ptr<StreamActiveTaskInfo>;

View File

@ -15,14 +15,11 @@
*/
#include "backend/kernel_compiler/rts/stream_switch.h"
#include <memory>
#include <vector>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
using ge::model_runner::StreamSwitchTaskInfo;
using StreamSwitchTaskInfoPtr = std::shared_ptr<StreamSwitchTaskInfo>;

View File

@ -17,7 +17,6 @@
#include "backend/kernel_compiler/tbe/tbe_kernel_parallel_build.h"
#include <memory>
#include <map>
#include <set>
#include <algorithm>
#include <vector>

View File

@ -23,7 +23,6 @@
#include "backend/kernel_compiler/oplib/oplib.h"
#include "backend/kernel_compiler/tbe/tbe_kernel_build.h"
#include "nlohmann/json.hpp"
#include "utils/ms_context.h"
#include "backend/optimizer/common/helper.h"
#include "backend/kernel_compiler/tbe/tbe_convert_utils.h"
#include "frontend/parallel/ops_info/ops_utils.h"

View File

@ -16,26 +16,19 @@
#include "backend/kernel_compiler/tbe/tbe_utils.h"
#include <sys/types.h>
#include <dirent.h>
#include <vector>
#include <string>
#include <utility>
#include <map>
#include <functional>
#include <iostream>
#include <fstream>
#include "runtime/kernel.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "runtime/device/kernel_info.h"
#include "ir/dtype/type.h"
#include "backend/kernel_compiler/tbe/tbe_convert_utils.h"
#include "securec/include/securec.h"
#include "frontend/operator/ops.h"
namespace mindspore {
namespace kernel {

View File

@ -81,7 +81,6 @@
#include "backend/optimizer/ascend/buffer_fusion/conv_single_in_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/conv_double_in_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/matmul_eltwise_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/matmul_confusiontranspose_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/depthwiseconv_eltwise_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/bnupdate_eltwise_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/bnupdate_eltwise_eltwise_fusion_pass.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -18,7 +18,6 @@
#include <algorithm>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -15,9 +15,7 @@
*/
#include "backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.h"
#include <vector>
#include <tuple>
#include <utility>
#include <unordered_set>
#include <unordered_map>
#include <deque>
#include <memory>

View File

@ -15,8 +15,6 @@
*/
#include "backend/optimizer/ascend/enhancer/insert_memcpy_async_for_cascade.h"
#include <vector>
#include <set>
#include <string>
#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "frontend/optimizer/opt.h"

View File

@ -16,14 +16,10 @@
#include "backend/optimizer/ascend/enhancer/insert_pad_for_nms_with_mask.h"
#include <vector>
#include <string>
#include <memory>
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "runtime/device/kernel_info.h"
#include "backend/kernel_compiler//oplib/oplib.h"
#include "frontend/operator/ops.h"
namespace mindspore {

View File

@ -22,7 +22,6 @@
#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/common_utils.h"
namespace mindspore {

View File

@ -21,7 +21,6 @@
#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/common_utils.h"
namespace mindspore {

View File

@ -18,7 +18,7 @@
#include <memory>
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/kernel_compiler/kernel_build_info.h"
#include "backend/kernel_compiler/kernel_query.h"
namespace mindspore {
namespace opt {
const BaseRef ConvertUnSupportNodeToAICPU::DefinePattern() const {

View File

@ -19,12 +19,9 @@
#include <string>
#include <vector>
#include <utility>
#include "runtime/device/kernel_info.h"
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/optimizer/common/helper.h"
#include "backend/kernel_compiler/kernel_build_info.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"
#include "utils/utils.h"

View File

@ -20,8 +20,6 @@
#include "utils/utils.h"
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_info.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "utils/ms_context.h"
namespace mindspore {

View File

@ -19,8 +19,6 @@
#include "utils/utils.h"
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_info.h"
#include "backend/kernel_compiler/oplib/oplib.h"
namespace mindspore {
namespace opt {

View File

@ -16,12 +16,10 @@
#include "backend/optimizer/ascend/ir_fission/batch_norm_grad_split.h"
#include <vector>
#include <string>
#include <memory>
#include "utils/utils.h"
#include "utils/ms_context.h"
#include "utils/ms_utils.h"
#include "backend/optimizer/common/helper.h"
#include "runtime/device/kernel_info.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -16,12 +16,10 @@
#include "backend/optimizer/ascend/ir_fission/bn_grad_split.h"
#include <vector>
#include <string>
#include <memory>
#include "utils/utils.h"
#include "utils/ms_context.h"
#include "utils/ms_utils.h"
#include "backend/optimizer/common/helper.h"
#include "runtime/device/kernel_info.h"
#include "backend/session/anf_runtime_algorithm.h"

View File

@ -16,7 +16,6 @@
#include "backend/optimizer/ascend/ir_fission/bn_split.h"
#include <vector>
#include <string>
#include <memory>
#include "utils/utils.h"

View File

@ -17,12 +17,10 @@
#include <memory>
#include <vector>
#include <string>
#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_info.h"
#include "ir/primitive.h"
#include "utils/ms_utils.h"
#include "utils/utils.h"
namespace mindspore {

View File

@ -16,7 +16,6 @@
#include "backend/optimizer/ascend/ir_fission/single_batch_norm_fission.h"
#include <vector>
#include <memory>
#include <algorithm>
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/optimizer/common/helper.h"

View File

@ -15,7 +15,6 @@
*/
#include "backend/optimizer/ascend/ir_fusion/add_input_to_output.h"
#include <vector>
#include <algorithm>
#include "backend/optimizer/ascend/ir_fusion/input_to_output_registry.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/kernel_compiler/oplib/oplib.h"

View File

@ -17,11 +17,9 @@
#include <memory>
#include <vector>
#include <string>
#include "backend/session/anf_runtime_algorithm.h"
#include "ir/primitive.h"
#include "utils/ms_utils.h"
#include "utils/utils.h"
namespace mindspore {

View File

@ -17,10 +17,7 @@
#include "backend/optimizer/ascend/ir_fusion/lamb_next_mv_rule.h"
#include <memory>
#include <utility>
#include <tuple>
#include <algorithm>
#include <unordered_map>
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "backend/optimizer/common/helper.h"
#include "frontend/operator/ops.h"

View File

@ -17,11 +17,9 @@
#include <memory>
#include <vector>
#include <string>
#include "backend/session/anf_runtime_algorithm.h"
#include "ir/primitive.h"
#include "utils/ms_utils.h"
#include "utils/utils.h"
namespace mindspore {

View File

@ -17,7 +17,6 @@
#include "backend/optimizer/ascend/ir_fusion/lamb_update_with_lr_v2.h"
#include <memory>
#include <algorithm>
#include <unordered_map>
#include "utils/utils.h"
#include "frontend/operator/ops.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include "backend/session/anf_runtime_algorithm.h"
#include "frontend/optimizer/opt.h"

View File

@ -16,8 +16,6 @@
#include "backend/optimizer/ascend/ir_fusion/mul_addn_fusion.h"
#include <vector>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include "backend/session/anf_runtime_algorithm.h"
#include "frontend/optimizer/opt.h"

View File

@ -21,8 +21,6 @@
#include "frontend/operator/ops.h"
#include "runtime/device/kernel_info.h"
#include "backend/optimizer/common/helper.h"
#include "backend/optimizer/common/optimizer.h"
#include "backend/optimizer/ascend/ascend_helper.h"
namespace mindspore {
namespace opt {

View File

@ -17,11 +17,8 @@
#include "backend/optimizer/ascend/ir_fusion/refresh_parameter_format.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "frontend/operator/ops.h"
#include "runtime/device/kernel_info.h"
#include "backend/optimizer/common/helper.h"
#include "backend/optimizer/common/optimizer.h"
#include "backend/optimizer/ascend/ascend_helper.h"
namespace mindspore {
namespace opt {

View File

@ -17,8 +17,6 @@
#include <unordered_set>
#include <deque>
#include <algorithm>
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "ir/manager.h"

View File

@ -16,15 +16,11 @@
#include "backend/optimizer/common/pass_manager.h"
#include <sys/time.h>
#include <unordered_set>
#include <deque>
#include <string>
#include <algorithm>
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "ir/manager.h"
#include "utils/utils.h"
#include "utils/ms_context.h"
#include "debug/anf_ir_dump.h"

View File

@ -21,10 +21,7 @@
#include <exception>
#include <iostream>
#include <functional>
#include <iterator>
#include "frontend/optimizer/opt.h"
#include "ir/anf.h"
#include "utils/convert_utils_base.h"
#include "utils/overload.h"

View File

@ -21,8 +21,6 @@
#include <vector>
#include <memory>
#include <algorithm>
#include <utility>
#include "backend/optimizer/common/pattern_engine.h"
#include "utils/any.h"
#include "ir/anf.h"

View File

@ -15,7 +15,7 @@
*/
#include "backend/optimizer/mem_reuse/kernel_refcount.h"
#include <algorithm>
#include "utils/log_adapter.h"
namespace mindspore {
namespace memreuse {
/**

View File

@ -17,10 +17,8 @@
#include "backend/optimizer/pass/add_atomic_clean.h"
#include <memory>
#include <vector>
#include <functional>
#include "frontend/operator/ops.h"
#include "utils/utils.h"
#include "ir/graph_utils.h"
#include "utils/log_adapter.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"

View File

@ -17,7 +17,6 @@
#include <vector>
#include <string>
#include <unordered_map>
#include <memory>
#include "backend/optimizer/pass/const_input_to_attr_registry.h"

View File

@ -24,7 +24,6 @@
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"
#include "backend/kernel_compiler/common_utils.h"
#include "runtime/device/kernel_info.h"
namespace mindspore {
namespace opt {

View File

@ -14,18 +14,12 @@
* limitations under the License.
*/
#include "backend/optimizer/pass/convert_const_scalar_to_tensor.h"
#include <vector>
#include <memory>
#include <utility>
#include "ir/graph_utils.h"
#include "utils/convert_utils.h"
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"
#include "backend/kernel_compiler/common_utils.h"
#include "runtime/device/kernel_info.h"
namespace mindspore {
namespace opt {

View File

@ -18,7 +18,6 @@
#include <memory>
#include <utility>
#include <unordered_map>
#include <unordered_set>
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "backend/optimizer/common/helper.h"

View File

@ -25,12 +25,10 @@
#include <string>
#include "frontend/operator/ops.h"
#include "utils/utils.h"
#include "ir/graph_utils.h"
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "vm/segment_runner.h"
#include "debug/draw.h"
#include "debug/anf_ir_dump.h"
#include "ir/func_graph_cloner.h"

View File

@ -19,7 +19,6 @@
#include <memory>
#include <string>
#include <algorithm>
#include <unordered_set>
#include <map>
#include <set>
#include <queue>
@ -31,7 +30,6 @@
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "vm/segment_runner.h"
#include "debug/draw.h"
#include "debug/anf_ir_dump.h"
#include "ir/func_graph_cloner.h"

View File

@ -27,7 +27,6 @@
#include "backend/optimizer/common/helper.h"
#include "backend/kernel_compiler/kernel.h"
#include "backend/kernel_compiler/kernel_build_info.h"
#include "utils/ms_utils.h"
#include "common/trans.h"
namespace mindspore {

View File

@ -16,7 +16,6 @@
#include <algorithm>
#include "backend/session/ascend_inference_session.h"
#include "frontend/operator/ops.h"
#include "ir/tensor.h"
#include "ir/anf.h"
#include "ir/param_info.h"

View File

@ -28,17 +28,13 @@
#include "runtime/device/ascend/kernel_select_ascend.h"
#include "runtime/device/ascend/kernel_build_ascend.h"
#include "runtime/device/ascend/ascend_kernel_runtime.h"
#include "runtime/device/ascend/ascend_device_address.h"
#include "backend/optimizer/ascend/ascend_backend_optimization.h"
#include "backend/optimizer/common/common_backend_optimization.h"
#include "runtime/device/kernel_adjust.h"
#include "runtime/device/ascend/ascend_stream_assign.h"
#include "runtime/device/ascend/ascend_label_assign.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "ir/scalar.h"
#include "debug/anf_ir_dump.h"
#include "debug/anf_ir_utils.h"
#include "debug/draw.h"
#include "utils/ms_utils.h"
#include "backend/optimizer/common/helper.h"
#include "runtime/device/kernel_runtime_manager.h"

View File

@ -17,9 +17,7 @@
#include "backend/session/cpu_session.h"
#include <algorithm>
#include <sstream>
#include "ir/tensor.h"
#include "ir/anf.h"
#include "backend/kernel_compiler/kernel.h"
#include "utils/ms_utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_runtime.h"

View File

@ -15,8 +15,6 @@
*/
#include "backend/session/kernel_build_client.h"
#include <iostream>
#include <memory>
namespace mindspore {

View File

@ -17,7 +17,6 @@
#include <utility>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include "pipeline/jit/parse/data_converter.h"
#include "ir/manager.h"
#include "ir/param_info.h"
@ -26,9 +25,7 @@
#include "common/trans.h"
#include "utils/config_manager.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "backend/optimizer/common/common_backend_optimization.h"
#include "backend/optimizer/pass/const_input_to_attr_registry.h"
#include "backend/optimizer/common/helper.h"
#include "utils/ms_utils.h"
#include "ir/dtype.h"

View File

@ -15,8 +15,8 @@
*/
#include "backend/session/session_factory.h"
#include <memory>
#include <iostream>
#include <string>
namespace mindspore {
namespace session {
SessionFactory &SessionFactory::Get() {

View File

@ -20,8 +20,6 @@
#include <fstream>
#include <map>
#include <memory>
#include <unordered_map>
#include "ir/primitive.h"
#include "ir/func_graph.h"
#include "runtime/device/kernel_info.h"

View File

@ -20,9 +20,7 @@
#include <map>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include "ir/graph_utils.h"
#include "utils/symbolic.h"
#include "ir/meta_func_graph.h"

View File

@ -21,7 +21,6 @@
#include "utils/system/env.h"
#include "utils/system/file_system.h"
#include "utils/log_adapter.h"
#include "utils/ms_context.h"
namespace mindspore {
std::optional<std::string> Common::GetRealPath(const std::string &input_path) {

View File

@ -15,14 +15,10 @@
*/
#include "debug/draw.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <vector>
#include <string>
#include "ir/meta_func_graph.h"
#include "ir/param_info.h"
#include "ir/primitive.h"

View File

@ -14,11 +14,8 @@
* limitations under the License.
*/
#include <fstream>
#include <map>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <algorithm>

View File

@ -15,12 +15,10 @@
*/
#include "frontend/operator/cc_implementations.h"
#include <cassert>
#include <limits>
#include <algorithm>
#include <cmath>
#include <cfloat>
#include "utils/misc.h"
#include "utils/log_adapter.h"
#include "utils/convert_utils.h"
#include "utils/ms_utils.h"

View File

@ -32,7 +32,6 @@
#include "frontend/optimizer/opt.h"
#include "utils/symbolic.h"
#include "pybind_api/api_register.h"
#include "./common.h"
#include "ir/signature.h"
#include "debug/trace.h"

View File

@ -24,7 +24,6 @@
#include "abstract/param_validator.h"
#include "frontend/operator/cc_implementations.h"
#include "frontend/optimizer/opt.h"
#include "utils/symbolic.h"
#include "./common.h"
#include "pybind_api/api_register.h"

View File

@ -28,7 +28,6 @@
#include "pybind_api/api_register.h"
#include "debug/trace.h"
#include "frontend/operator/ops.h"
#include "./common.h"
namespace mindspore {
// namespace to support composite operators definition

View File

@ -18,20 +18,13 @@
*/
#include "frontend/operator/composite/multitype_funcgraph.h"
#include <algorithm>
#include <utility>
#include <sstream>
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "abstract/abstract_value.h"
#include "abstract/abstract_function.h"
#include "abstract/dshape.h"
#include "abstract/param_validator.h"
#include "frontend/operator/cc_implementations.h"
#include "frontend/optimizer/opt.h"
#include "utils/ms_context.h"
#include "utils/symbolic.h"
#include "pybind_api/api_register.h"
#include "./common.h"
#include "ir/signature.h"

View File

@ -21,11 +21,9 @@
#include "./common.h"
#include "abstract/abstract_value.h"
#include "abstract/dshape.h"
#include "abstract/param_validator.h"
#include "frontend/operator/cc_implementations.h"
#include "ir/anf.h"
#include "frontend/optimizer/opt.h"
#include "utils/symbolic.h"
#include "pybind_api/api_register.h"
namespace mindspore {

View File

@ -15,10 +15,8 @@
*/
#include "frontend/operator/ops.h"
#include <memory>
#include <string>
#include "pipeline/jit/parse/python_adapter.h"
#include "pipeline/jit/parse/data_converter.h"
namespace mindspore {
// namespace to support primitive operators

View File

@ -15,9 +15,6 @@
*/
#include "frontend/operator/prim_to_function.h"
#include <exception>
#include <iostream>
#include <string>
namespace mindspore {
// namespace to support prim related definition

Some files were not shown because too many files have changed in this diff Show More