Method
__init__
(
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)) |
Tested by
no test coverage detected