ks.c.j2 594 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{% from "operator_utils.c.j2" import name_map, register_name_map %}
// this file is generated by python/paddle/utils/code_gen/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 is base_api %}
{{register_name_map(api)}}
  {% endif %}
{% endfor %}