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

Method __init__

samples/python/downloader.py:32–38  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

30 """Holder of a data file."""
31
32 def __init__(self, attr):
33 self.attr = attr
34 self.path = attr["path"]
35 self.url = attr["url"]
36 if "checksum" not in attr:
37 logger.warning("Checksum of %s not provided!", self.path)
38 self.checksum = attr.get("checksum", None)
39
40 def __str__(self):
41 return str(self.attr)

Callers

nothing calls this directly

Calls 2

warningMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected