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

Function with_interface

tools/api.py:1257–1267  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

1255def interface(ctype: str, cpptype: str,
1256 name: Optional[str] = None) -> Callable:
1257 def with_interface(f):
1258 n = name or f.__name__
1259 h = Interface(n, ctype, cpptype)
1260 f(h)
1261 h.generate()
1262
1263 @wraps(f)
1264 def decorated(*args, **kwargs):
1265 return f(*args, **kwargs)
1266
1267 return decorated
1268
1269 return with_interface
1270

Callers

nothing calls this directly

Calls 2

generateMethod · 0.95
InterfaceClass · 0.85

Tested by

no test coverage detected