torch.xpu.initial_seed¶ torch.xpu.initial_seed()[source][source]¶ 返回当前 GPU 的当前随机种子。 警告 此函数会立即初始化 XPU。 返回类型 int