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

Method input_map

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

Source from the content-addressed store, hash-verified

459
460 # TODO: Shoule we remove Optional?
461 def input_map(self) -> Dict[str, Optional[str]]:
462 m: Dict[str, Optional[str]] = {}
463 for p in self.params:
464 m[p.name] = p.input()
465 m['return'] = self.return_name
466 m['@'] = self.inputs()
467 m['__fname__'] = self.fname
468 return m
469
470 def get_invoke(self) -> str:
471 return Template(self.invoke).safe_substitute(self.input_map())

Callers 1

get_invokeMethod · 0.95

Calls 2

inputsMethod · 0.95
inputMethod · 0.45

Tested by

no test coverage detected