API symbolscudaCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.cuda.random.manual_seed_all tensorplay.cuda.random.manual_seed_all(seed: int) → None[source] Set the seed for generating random numbers on all GPUs. It’s safe to call this function if CUDA is not available; in that case, it is silently ignored. Parameters: seed (int) – The desired seed. Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.cuda.random.manual_seedSet the seed for generating random numbers for the current GPU.tensorplay.cuda.random.seedSet the seed for generating random numbers to a random number for the current GPU.