class_docstr: Applies 2d instance normalization to the input tensor.
  
  Arguments
  ---------
  input_shape : tuple
      The expected shape of the input. Alternatively, use ``input_size``.
  input_size : int
      The expected size of the input. Alternatively, use ``input_shape``.
  eps : float
      This value is added to std deviation estimation to improve the numerical
      stability.
  momentum : float
      It is a value used for the running_mean and running_var computation.
  track_running_stats : bool
      When set to True, this module tracks the running mean and variance,
      and when set to False, this module does not track such statistics.
  affine : bool
      A boolean value that when set to True, this module has learnable
      affine parameters, initialized the same way as done for
      batch normalization. Default: False.
  
  Example
  -------
  >>> input = torch.randn(100, 10, 20, 2)
  >>> norm = InstanceNorm2d(input_shape=input.shape)
  >>> output = norm(input)
  >>> output.shape
  torch.Size([100, 10, 20, 2])
class_docstr_tok: ["Applies","2d","instance","normalization","to","the","input","tensor",".","Arguments","--","--","--","--","-","input_shape",":","tuple","The","expected","shape","of","the","input",".","Alternatively",",","use","``","input_size","``",".","input_size",":","int","The","expected","size","of","the","input",".","Alternatively",",","use","``","input_shape","``",".","eps",":","float","This","value","is","added","to","std","deviation","estimation","to","improve","the","numerical","stability",".","momentum",":","float","It","is","a","value","used","for","the","running_mean","and","running_var","computation",".","track_running_stats",":","bool","When","set","to","True",",","this","module","tracks","the","running","mean","and","variance",",","and","when","set","to","False",",","this","module","does","not","track","such","statistics",".","affine",":","bool","A","boolean","value","that","when","set","to","True",",","this","module","has","learnable","affine","parameters",",","initialized","the","same","way","as","done","for","batch","normalization",".","Default",":","False",".","Example","--","--","--","-",">",">",">","input","=","torch.randn","(","100",",","10",",","20",",","2",")",">",">",">","norm","=","InstanceNorm2d","(","input_shape=input.shape",")",">",">",">","output","=","norm","(","input",")",">",">",">","output.shape","torch.Size","(","[","100",",","10",",","20",",","2","]",")"]
code: def __init__(
      self,
      input_shape=None,
      input_size=None,
      eps=1e-05,
      momentum=0.1,
      track_running_stats=True,
      affine=False,
  ):
      super().__init__()
  
      if input_shape is None and input_size is None:
          raise ValueError(
              "Expected input_shape or input_size as input"
          )
  
      if input_size is None:
          input_size = input_shape[-1]
  
      self.norm = nn.InstanceNorm2d(
          input_size,
          eps=eps,
          momentum=momentum,
          track_running_stats=track_running_stats,
          affine=affine,
      )
  
imports: import torch
  import torch.nn
label_desc: Use image node_id 1 to create a new InstanceNorm2d object from inherited base classes: nn with example: obj = InstanceNorm2d(input_shape, input_size, eps, momentum, track_running_stats, affine)