class_docstr: Convert a PIL Image to a tensor of the same type - this does not scale values.
  
  This transform does not support torchscript.
  
  Converts a PIL Image (H x W x C) to a Tensor of shape (C x H x W).
class_docstr_tok: ["Convert","a","PIL","Image","to","a","tensor","of","the","same","type","-","this","does","not","scale","values",".","This","transform","does","not","support","torchscript",".","Converts","a","PIL","Image","(","H","x","W","x","C",")","to","a","Tensor","of","shape","(","C","x","H","x","W",")","."]
code: def _transform(
      self, inpt: PIL.Image.Image, params: Dict[str, Any]
  ) -> torch.Tensor:
      return F.pil_to_tensor(inpt)
  
file_path: vision/torchvision/transforms/v2/_type_conversion.py
imports: from typing import Any, Dict, Optional, Union
  import numpy
  import PIL.Image
  import torch
  from torchvision import tv_tensors
  from torchvision.transforms.v2 import functional, Transform
  from torchvision.transforms.v2._utils import is_pure_tensor
label_desc: Use image node_id 1 for calling the PILToTensor obj's underlying member method code with example usage: obj._transform(inpt, params) and returns: F