Method
_get_patch
(self, inputs: Any, location: tuple[int, ...], patch_size: tuple[int, ...])
Source from the content-addressed store, hash-verified
| 376 | raise ValueError(f"Unsupported reader type: {reader}.") |
| 377 | |
| 378 | def _get_patch(self, inputs: Any, location: tuple[int, ...], patch_size: tuple[int, ...]) -> Any: |
| 379 | patch, _ = self.reader.get_data(wsi=inputs, location=location, size=patch_size) # type: ignore |
| 380 | return patch[None] |
| 381 | |
| 382 | def get_input_shape(self, inputs: Any) -> tuple: |
| 383 | """ |
Tested by
no test coverage detected