This DDP communication hook implements a simple gradient compression approach that casts ``GradBucket`` tensor to half-precision floating-point format (``torch.float16``) and then divides it by the process group size. It allreduces those ``float16`` gradient tensors. Once compressed
(
process_group: dist.ProcessGroup,
bucket: dist.GradBucket)
source not stored for this graph (policy: none)