parameters: (self,
                   probs=None,
                   seed=None,
                   dtype=mstype.int32,
                   name="Geometric")
docstring: Constructor of Geometric distribution.
docstring_summary: Constructor of Geometric distribution.
docstring_tokens: Constructor of Geometric distribution .
function: def __init__(self,
                   probs=None,
                   seed=None,
                   dtype=mstype.int32,
                   name="Geometric"):
          """
          Constructor of Geometric distribution.
          """
          param = dict(locals())
          param['param_dict'] = {'probs': probs}
          valid_dtype = mstype.int_type + mstype.uint_type + mstype.float_type
          Validator.check_type_name(
              "dtype", dtype, valid_dtype, type(self).__name__)
          super(Geometric, self).__init__(seed, dtype, name, param)
  
          self._probs = self._add_parameter(probs, 'probs')
          if self._probs is not None:
              check_prob(self.probs)
  
          self.minval = np.finfo(np.float).tiny
  
          # ops needed for the class
          self.exp = exp_generic
          self.log = log_generic
          self.squeeze = P.Squeeze(0)
          self.cast = P.Cast()
          self.const = P.ScalarToArray()
          self.dtypeop = P.DType()
          self.fill = P.Fill()
          self.floor = P.Floor()
          self.issubclass = P.IsSubClass()
          self.less = P.Less()
          self.pow = P.Pow()
          self.select = P.Select()
          self.shape = P.Shape()
          self.sq = P.Square()
          self.uniform = C.uniform
function_tokens: def __init__ ( self , probs = None , seed = None , dtype = mstype . int32 , name = "Geometric" ) : param = dict ( locals ( ) ) param [ 'param_dict' ] = { 'probs' : probs } valid_dtype = mstype . int_type + mstype . uint_type + mstype . float_type Validator . check_type_name ( "dtype" , dtype , valid_dtype , type ( self ) . __name__ ) super ( Geometric , self ) . __init__ ( seed , dtype , name , param ) self . _probs = self . _add_parameter ( probs , 'probs' ) if self . _probs is not None : check_prob ( self . probs ) self . minval = np . finfo ( np . float ) . tiny # ops needed for the class self . exp = exp_generic self . log = log_generic self . squeeze = P . Squeeze ( 0 ) self . cast = P . Cast ( ) self . const = P . ScalarToArray ( ) self . dtypeop = P . DType ( ) self . fill = P . Fill ( ) self . floor = P . Floor ( ) self . issubclass = P . IsSubClass ( ) self . less = P . Less ( ) self . pow = P . Pow ( ) self . select = P . Select ( ) self . shape = P . Shape ( ) self . sq = P . Square ( ) self . uniform = C . uniform