diff --git a/mindspore/python/mindspore/profiler/profiling.py b/mindspore/python/mindspore/profiler/profiling.py index 6d89f52bbb2..a7d8a537223 100644 --- a/mindspore/python/mindspore/profiler/profiling.py +++ b/mindspore/python/mindspore/profiler/profiling.py @@ -1441,7 +1441,8 @@ class Profiler: key = name if name.startswith("hcom_") else (name, ts) launch_op = kernel_map.get(key) if not launch_op: - logger.warning(f"Failed to get launch operator for {name}!") + if context.get_context("mode") == context.GRAPH_MODE or not name.startswith("aclnn"): + logger.warning(f"Failed to get launch operator for {name}!") continue launch_ops[index] = launch_op.name return launch_ops