{% from "operator_utils.c.j2" import name_map, register_name_map, register_base_kernel_name %}
// this file is generated by paddle/phi/api/yaml/generator/generate_op.py, do not edit.
#include "paddle/phi/core/compat/op_utils.h"
#include "paddle/utils/small_vector.h"

namespace phi {

{% for api in apis %}
  {% if api is base_api %}
{{name_map(api)}}
  {% endif %}
{% endfor %}
{% for api in backward_apis %}
  {% if api is base_api %}
{{name_map(api)}}
  {% endif %}
{% endfor %}
}  // namespace phi

{% for api in apis + backward_apis %}
  {% if api["name"] != api["op_name"] %}
{{register_base_kernel_name(api)}}
  {% endif %}
  {% if api is base_api %}
{{register_name_map(api)}}
  {% endif %}
{% endfor %}
