MCPcopy
hub / github.com/OpenPPL/ppq / load_calibration_dataset

Function load_calibration_dataset

ppq/samples/enable_cuda_kernel.py:20–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected