Home
last modified time | relevance | path

Searched defs:CodeTemplate (Results 1 – 4 of 4) sorted by relevance

/aosp_15_r20/external/pytorch/aten/src/ATen/
H A Dcode_template.h101 struct CodeTemplate { struct
102 /* implicit */ CodeTemplate(std::string t) : template_text(std::move(t)) {} in CodeTemplate() function
104 std::string format(const TemplateEnv& env) const { in format()
148 char charAt(size_t p) const { in charAt()
153 size_t parseKey( in parseKey()
180 size_t parseIdent(size_t pos, std::ostream& k) const { in parseIdent()
188 void emitCommaSeparatedList( in emitCommaSeparatedList()
207 void emitIndent(std::ostream& out, size_t indent) const { in emitIndent()
212 void emitStringWithIndents( in emitStringWithIndents()
239 return CodeTemplate(fmt).format(env); in format() argument
/aosp_15_r20/external/pytorch/torchgen/
H A Dcode_template.py17 class CodeTemplate: class
/aosp_15_r20/external/pytorch/tools/autograd/
H A Dgen_view_funcs.py214 def process_function(fn: NativeFunction, template: CodeTemplate) -> str:
H A Dgen_autograd_functions.py542 def process_function(info: DifferentiabilityInfo, template: CodeTemplate) -> str: