torch.cuda.initial_seed

torch.cuda.initial_seed()[源代码]

返回当前GPU的随机种子。

警告

此函数会立即初始化 CUDA。

返回类型

int

本页目录