(
self,
dtype: torch.dtype | None = None,
device: torch.device | str | None = None,
wrap_sequence: bool = True,
track_meta: bool | None = None,
)
| 400 | backend = [TransformBackends.TORCH] |
| 401 | |
| 402 | def __init__( |
| 403 | self, |
| 404 | dtype: torch.dtype | None = None, |
| 405 | device: torch.device | str | None = None, |
| 406 | wrap_sequence: bool = True, |
| 407 | track_meta: bool | None = None, |
| 408 | ) -> None: |
| 409 | super().__init__() |
| 410 | self.dtype = dtype |
| 411 | self.device = device |
| 412 | self.wrap_sequence = wrap_sequence |
| 413 | self.track_meta = get_track_meta() if track_meta is None else bool(track_meta) |
| 414 | |
| 415 | def __call__(self, img: NdarrayOrTensor): |
| 416 | """ |
nothing calls this directly
no test coverage detected