flow_to_image torchvision.utils.flow_to_image(flow: Tensor) → Tensor[source] Converts a flow to an RGB image. Parameters: flow (Tensor) – Flow of shape (N, 2, H, W) or (2, H, W) and dtype torch.float. Returns: