Home | History | Annotate | Download | only in tools

Lines Matching defs:append

90   def append(s):
91 result_list.append(s)
94 append('// This file was autogenerated by %s' % script_name)
95 append('#ifndef OPS_TO_REGISTER')
96 append('#define OPS_TO_REGISTER')
99 append('#define SHOULD_REGISTER_OP(op) true')
100 append('#define SHOULD_REGISTER_OP_KERNEL(clz) true')
101 append('#define SHOULD_REGISTER_OP_GRADIENT true')
134 append(line)
135 append('#define SHOULD_REGISTER_OP_KERNEL(clz) '
139 append('')
141 append('constexpr inline bool ShouldRegisterOp(const char op[]) {')
142 append(' return false')
144 append(' || isequal(op, "%s")' % op)
145 append(' ;')
146 append('}')
147 append('#define SHOULD_REGISTER_OP(op) ShouldRegisterOp(op)')
148 append('')
150 append('#define SHOULD_REGISTER_OP_GRADIENT ' + (
153 append('#endif')