!69034 cannel pynative host op time warning
Merge pull request !69034 from zangqx/master_pynative_host_time
This commit is contained in:
commit
c81e7af041
|
@ -1441,7 +1441,8 @@ class Profiler:
|
||||||
key = name if name.startswith("hcom_") else (name, ts)
|
key = name if name.startswith("hcom_") else (name, ts)
|
||||||
launch_op = kernel_map.get(key)
|
launch_op = kernel_map.get(key)
|
||||||
if not launch_op:
|
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
|
continue
|
||||||
launch_ops[index] = launch_op.name
|
launch_ops[index] = launch_op.name
|
||||||
return launch_ops
|
return launch_ops
|
||||||
|
|
Loading…
Reference in New Issue