MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / substitute

Method substitute

tools/api.py:172–180  ·  view source on GitHub ↗
(self, form: Template, **kwargs)

Source from the content-addressed store, hash-verified

170 self.add_param('...', '')
171
172 def substitute(self, form: Template, **kwargs) -> str:
173 return form.substitute(error_type=error_type,
174 try_wrap=try_wrap,
175 name=self.name,
176 params=', '.join(self.params),
177 body=";\n ".join(self.body),
178 va_start="\n ".join(self.va_start),
179 va_end="\n ".join(self.va_end),
180 **kwargs)
181
182 def generate_header(self) -> str:
183 return self.substitute(header_function, export_c_macro=export_c_macro)

Callers 3

generate_headerMethod · 0.95
generate_bodyMethod · 0.95

Calls 1

substituteMethod · 0.45

Tested by

no test coverage detected