class_docstr: Delta distribution.
  
  This is used
  
  Args:
      loc (float or Tensor): location of the distribution.
class_docstr_tok: ["Delta","distribution",".","This","is","used","Args",":","loc","(","float","or","Tensor",")",":","location","of","the","distribution","."]
code: def __init__(self, loc, validate_args=None):
      self.loc = loc
      if isinstance(loc, Number):
          batch_shape = torch.Size()
      else:
          batch_shape = self.loc.size()
      super(Delta, self).__init__(
          batch_shape, validate_args=validate_args
      )
  
file_path: pfrl/pfrl/distributions/delta.py
imports: from numbers import Number
  import torch
  from torch.distributions import Distribution, constraints
label_desc: Use image node_id 4 to create a new Delta object from inherited base classes: Distribution with example: obj = Delta(loc, validate_args)