torch.cuda.initial_seed¶ torch.cuda.initial_seed()[源代码]¶ 返回当前GPU的当前随机种子。 警告 此函数会立即初始化CUDA。 Return type int