MCPcopy Create free account
hub / github.com/NVIDIA/DALI / ArgDesc

Class ArgDesc

dali/test/python/sequences_test_utils.py:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42@dataclass
43class ArgDesc:
44 name: Union[str, int]
45 expandable_prefix: str
46 dest_device: str
47 layout: Optional[str] = None
48
49 def __post_init__(self):
50 assert (
51 self.is_positional_arg or self.dest_device != "gpu"
52 ), "Named arguments on GPU are not supported"
53 assert not self.layout or self.layout.startswith(self.expandable_prefix)
54
55 @property
56 def is_positional_arg(self):
57 return isinstance(self.name, int)
58
59
60class ArgCb:

Callers 10

test_sequencesFunction · 0.90
test_sequencesFunction · 0.90
expand_paramsMethod · 0.90
test_videoFunction · 0.90
test_3d_sequenceFunction · 0.90
__init__Method · 0.85
unfold_inputMethod · 0.85
expand_paramsMethod · 0.85
sequence_suite_helperFunction · 0.85
input_data_descFunction · 0.85

Calls

no outgoing calls

Tested by 10

test_sequencesFunction · 0.72
test_sequencesFunction · 0.72
expand_paramsMethod · 0.72
test_videoFunction · 0.72
test_3d_sequenceFunction · 0.72
__init__Method · 0.68
unfold_inputMethod · 0.68
expand_paramsMethod · 0.68
sequence_suite_helperFunction · 0.68
input_data_descFunction · 0.68