parameters: (seed: int)
docstring: r"""Sets the seed for generating random numbers for the current GPU.
      It's safe to call this function if CUDA is not available; in that
      case, it is silently ignored.
  
      Args:
          seed (int): The desired seed.
  
      .. warning::
          If you are working with a multi-GPU model, this function is insufficient
          to get determinism.  To seed all GPUs, use :func:`manual_seed_all`.
docstring_summary: r"""Sets the seed for generating random numbers for the current GPU.
      It's safe to call this function if CUDA is not available; in that
      case, it is silently ignored.
docstring_tokens: r Sets the seed for generating random numbers for the current GPU . It s safe to call this function if CUDA is not available ; in that case it is silently ignored .
function: def manual_seed(seed: int) -> None:
      r"""Sets the seed for generating random numbers for the current GPU.
      It's safe to call this function if CUDA is not available; in that
      case, it is silently ignored.
  
      Args:
          seed (int): The desired seed.
  
      .. warning::
          If you are working with a multi-GPU model, this function is insufficient
          to get determinism.  To seed all GPUs, use :func:`manual_seed_all`.
      """
      seed = int(seed)
  
      def cb():
          idx = current_device()
          default_generator = torch.cuda.default_generators[idx]
          default_generator.manual_seed(seed)
  
      _lazy_call(cb, seed=True)
function_tokens: def manual_seed ( seed : int ) -> None : seed = int ( seed ) def cb ( ) : idx = current_device ( ) default_generator = torch . cuda . default_generators [ idx ] default_generator . manual_seed ( seed ) _lazy_call ( cb , seed = True )