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

Method __init__

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

DataFileClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected