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

Method __init__

tools/api.py:1021–1028  ·  view source on GitHub ↗
(self, name: str, ctype: str, cpptype: str, **kwargs)

Source from the content-addressed store, hash-verified

1019
1020class Handle:
1021 def __init__(self, name: str, ctype: str, cpptype: str, **kwargs) -> None:
1022 self.name = name
1023 self.ctype = ctype
1024 self.cpptype = cpptype
1025 self.opaque_type = self.ctype + '_t'
1026 self.cpp_class = CPPClass(name, ctype)
1027 add_handle(name, ctype, cpptype, **kwargs)
1028 cpp_type_map[cpptype] = name
1029
1030 def cname(self, name: str) -> str:
1031 return self.ctype + '_' + name

Callers

nothing calls this directly

Calls 2

CPPClassClass · 0.85
add_handleFunction · 0.85

Tested by

no test coverage detected