{% if result|length > 0 %}

Affinity API Issues

{% if rank is not none %} Analysis of rank {{ rank|safe }}. {% endif %} The analysis results of following affinity APIs are based on runtime env cann-{{ cann_version }} and {{profiling_type}}-{{ profiling_type }}
{% if empty_stacks %} Suggestion: These APIs have no code stack. If parameter 'with_stack=False' was set while profiling, please refer to Ascend Profiler to set 'with_stack=True'. Otherwise, ignore following affinity APIs due to backward broadcast lack of stack. {% endif %} {% for api_name, stacks in result.items() %} {% if empty_stacks %}
{{api_name|safe}}
{% else %}
{{api_name|safe}}
Suggestion: Detailed information of affinity apis please refer to API instructions
{% for stack in stacks %}
No.{{loop.index|safe}} code stack, called {{stack[1]|safe}} times
{% endfor %}
{% endif %} {% endfor %}
{% endif %}