code: def to_half(b:Collection[Tensor])->Collection[Tensor]:
      "Recursively map lists of tensors in `b ` to FP16."
      if is_listy(b): return [to_half(o) for o in b]
      return b.half() if b.dtype not in [torch.int64, torch.int32, torch.int16] else f to_half(b:Collection[Tensor])->Collection[Tensor]:
      "Recursively map lists of tensors in `b ` to FP16."
      if is_listy(b): return [to_half(o) for o in b]
      return b.half() if b.dtype not in [torch.int64, torch.int32, torch.int16] else b
docs: Recursively map lists of tensors in `b ` to FP16.