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

Method __init__

dali/test/python/sequences_test_utils.py:80–88  ·  view source on GitHub ↗
(
        self,
        name: Union[str, int],
        cb: Callable[[SampleDesc], np.ndarray],
        is_per_frame: bool,
        dest_device: str = "cpu",
    )

Source from the content-addressed store, hash-verified

78 """
79
80 def __init__(
81 self,
82 name: Union[str, int],
83 cb: Callable[[SampleDesc], np.ndarray],
84 is_per_frame: bool,
85 dest_device: str = "cpu",
86 ):
87 self.desc = ArgDesc(name, "F" if is_per_frame else "", dest_device)
88 self.cb = cb
89
90 def __repr__(self):
91 return "ArgCb{}".format((self.cb, self.desc))

Callers 1

__init__Method · 0.45

Calls 1

ArgDescClass · 0.85

Tested by

no test coverage detected