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

Class DeprecatedModule

tools/Polygraphy/polygraphy/mod/exporter.py:256–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 if inspect.ismodule(obj):
255
256 class DeprecatedModule:
257 def __getattr__(self, attr_name):
258 warn_deprecated(name, use_instead, remove_in, module_name)
259 self = obj
260 return getattr(self, attr_name)
261
262 def __setattr__(self, attr_name, value):
263 warn_deprecated(name, use_instead, remove_in, module_name)
264 self = obj
265 return setattr(self, attr_name, value)
266
267 DeprecatedModule.__doc__ = f"Deprecated: Use {use_instead} instead"
268 return DeprecatedModule()

Callers 1

deprecate_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected