torch.initial_seed torch.initial_seed()[源代码] 返回用于生成随机数的初始种子,类型为 Python 的 long。 注意 返回的种子仅适用于默认生成器在CPU上使用。 返回类型 int