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

Class SampleData

samples/python/downloader.py:44–54  ·  view source on GitHub ↗

Holder of data files of an sample.

Source from the content-addressed store, hash-verified

42
43
44class SampleData:
45 """Holder of data files of an sample."""
46
47 def __init__(self, attr):
48 self.attr = attr
49 self.sample = attr["sample"]
50 files = attr.get("files", None)
51 self.files = [DataFile(f) for f in files]
52
53 def __str__(self):
54 return str(self.attr)
55
56
57def _loadYAML(yaml_path):

Callers 1

_loadYAMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected