This wrapper casts the input gradient tensor of a given DDP communication hook to half-precision floating point format (``torch.float16``), and casts the resulting tensor of the given hook back to the input data type, such as ``float32``. Therefore, ``fp16_compress_hook`` is equiva
(
hook: Callable[[Any, dist.GradBucket], torch.futures.Future[torch.Tensor]]
)
source not stored for this graph (policy: none)
nothing calls this directly
no outgoing calls
no test coverage detected