class_docstr: Convert image and mask to `torch.Tensor`. The numpy `HWC` image is converted to pytorch `CHW` tensor.
  If the image is in `HW` format (grayscale image), it will be converted to pytorch `HW` tensor.
  This is a simplified and improved version of the old `ToTensor`
  transform (`ToTensor` was deprecated, and now it is not present in Albumentations. You should use `ToTensorV2`
  instead).
  
  Args:
      transpose_mask (bool): If True and an input mask has three dimensions, this transform will transpose dimensions
          so the shape `[height, width, num_channels]` becomes `[num_channels, height, width]`. The latter format is a
          standard format for PyTorch Tensors. Default: False.
      always_apply (bool): Indicates whether this transformation should be always applied. Default: True.
      p (float): Probability of applying the transform. Default: 1.0.
class_docstr_tok: ["Convert","image","and","mask","to","`","torch.Tensor","`",".","The","numpy","`","HWC","`","image","is","converted","to","pytorch","`","CHW","`","tensor",".","If","the","image","is","in","`","HW","`","format","(","grayscale","image",")",",","it","will","be","converted","to","pytorch","`","HW","`","tensor",".","This","is","a","simplified","and","improved","version","of","the","old","`","ToTensor","`","transform","(","`","ToTensor","`","was","deprecated",",","and","now","it","is","not","present","in","Albumentations",".","You","should","use","`","ToTensorV2","`","instead",")",".","Args",":","transpose_mask","(","bool",")",":","If","True","and","an","input","mask","has","three","dimensions",",","this","transform","will","transpose","dimensions","so","the","shape","`","[","height",",","width",",","num_channels","]","`","becomes","`","[","num_channels",",","height",",","width","]","`",".","The","latter","format","is","a","standard","format","for","PyTorch","Tensors",".","Default",":","False",".","always_apply","(","bool",")",":","Indicates","whether","this","transformation","should","be","always","applied",".","Default",":","True",".","p","(","float",")",":","Probability","of","applying","the","transform",".","Default",":","1.0","."]
code: def apply_to_masks(self, masks, **params):
      return [self.apply_to_mask(mask, **params) for mask in masks]
  
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 5 for calling the ToTensorV2 obj's underlying member method code with example usage: obj.apply_to_masks(masks) and returns: unknown