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

Function check_decoded

tools/Polygraphy/polygraphy/json/serde.py:333–338  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

331 # JSON methods
332
333 def check_decoded(obj):
334 if not isinstance(obj, cls):
335 G_LOGGER.critical(
336 f"Provided JSON cannot be decoded into a {cls.__name__}.\nNote: JSON was decoded into a {type(obj)}:\n{obj}"
337 )
338 return obj
339
340 def _to_json_method(self):
341 """

Callers 2

_from_json_methodFunction · 0.85
_load_methodFunction · 0.85

Calls 2

typeFunction · 0.85
criticalMethod · 0.45

Tested by

no test coverage detected