class_docstr: Convert image and mask to `torch.Tensor` and divide by 255 if image or mask are `uint8` type.
  This transform is now removed from Albumentations. If you need it downgrade the library to version 0.5.2.
  
  Args:
      num_classes (int): only for segmentation
      sigmoid (bool, optional): only for segmentation, transform mask to LongTensor or not.
      normalize (dict, optional): dict with keys [mean, std] to pass it into torchvision.normalize
class_docstr_tok: ["Convert","image","and","mask","to","`","torch.Tensor","`","and","divide","by","255","if","image","or","mask","are","`","uint8","`","type",".","This","transform","is","now","removed","from","Albumentations",".","If","you","need","it","downgrade","the","library","to","version","0.5.2",".","Args",":","num_classes","(","int",")",":","only","for","segmentation","sigmoid","(","bool",",","optional",")",":","only","for","segmentation",",","transform","mask","to","LongTensor","or","not",".","normalize","(","dict",",","optional",")",":","dict","with","keys","[","mean",",","std","]","to","pass","it","into","torchvision.normalize"]
code: def __init__(self, num_classes=1, sigmoid=True, normalize=None):
      raise RuntimeError(
          "`ToTensor` is obsolete and it was removed from Albumentations. Please use `ToTensorV2` instead - "
          "https://albumentations.ai/docs/api_reference/pytorch/transforms/"
          "#albumentations.pytorch.transforms.ToTensorV2. "
          "\n\nIf you need `ToTensor` downgrade Albumentations to version 0.5.2."
      )
  
imports: from __future__ import absolute_import
  import warnings
  import numpy
  import torch
  from torchvision.transforms import functional
  from ..core.transforms_interface import BasicTransform
label_desc: Use image node_id 1 to create a new ToTensor object from inherited base classes: BasicTransform with example: obj = ToTensor(num_classes, sigmoid, normalize)