class_docstr: Converts a ``PIL Image`` to a ``torch.LongTensor``.
  Code adapted from: http://pytorch.org/docs/master/torchvision/transforms.html?highlight=totensor
class_docstr_tok: ["Converts","a","``","PIL","Image","``","to","a","``","torch.LongTensor","``",".","Code","adapted","from",":","http",":","\/\/pytorch.org\/docs\/master\/torchvision\/transforms.html","?","highlight=totensor"]
code: def __init__(self, classes=None):
      self.clss = classes
  
file_path: baal/baal/utils/transforms.py
imports: import numpy
  import torch
  from PIL import Image
label_desc: Use image node_id 1 to create a new PILToLongTensor object from inherited base classes: object with example: obj = PILToLongTensor(classes)