Esempio n. 1
0
 def __call__(self, shape, dtype=dtypes.float32, partition_info=None):
     """Generate a tensor used to initialize a variable."""
     return random_ops._random_walk(shape,
                                    self._nonlinearity,
                                    dtype,
                                    seed=self._seed)
Esempio n. 2
0
 def __call__(self, shape, dtype=dtypes.float32, partition_info=None):
   """Generate a tensor used to initialize a variable."""
   return random_ops._random_walk(shape, self._nonlinearity, dtype,
                                  seed=self._seed)