()
| 16 | PLATFORM = TargetPlatform.PPL_CUDA_INT8 # identify a target platform for your network. |
| 17 | |
| 18 | def load_calibration_dataset() -> Iterable: |
| 19 | return [torch.rand(size=INPUT_SHAPE) for _ in range(32)] |
| 20 | |
| 21 | def collate_fn(batch: torch.Tensor) -> torch.Tensor: |
| 22 | return batch.to(DEVICE) |