MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / try_add_method_doc

Function try_add_method_doc

tools/Polygraphy/polygraphy/mod/exporter.py:194–197  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

192 func.__doc__ = f"Immediately evaluated functional variant of :class:`{loader.__name__}` .\n"
193
194 def try_add_method_doc(method):
195 call_impl = find_method(loader, method)
196 if call_impl.__doc__:
197 func.__doc__ += dedent(call_impl.__doc__)
198
199 try_add_method_doc("__init__")
200 try_add_method_doc("call_impl")

Callers 1

export_implFunction · 0.85

Calls 1

find_methodFunction · 0.85

Tested by

no test coverage detected