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

Class DataFile

samples/python/downloader.py:29–41  ·  view source on GitHub ↗

Holder of a data file.

Source from the content-addressed store, hash-verified

27
28
29class DataFile:
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)
42
43
44class SampleData:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected