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

Method get_args

tools/api.py:567–575  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

565 return self.function.params
566
567 def get_args(self) -> str:
568 output_args = []
569 if self.function.returns:
570 output_args = self.function.returns.cpp_output_args(self.prefix)
571 if not self.function.cfunction:
572 raise Exception('self.function.update() must be called')
573 return ', '.join(
574 ['&{}'.format(self.function.cfunction.name)] + output_args +
575 [p.cpp_arg(self.prefix) for p in self.get_function_params()])
576
577 def get_params(self) -> str:
578 return ', '.join(

Callers 2

generate_methodMethod · 0.95
generate_constructorMethod · 0.95

Calls 4

get_function_paramsMethod · 0.95
cpp_output_argsMethod · 0.80
cpp_argMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected