torch.cuda.manual_seed(seed)
paddle.seed(seed)
功能一致,返回类型不一致,具体如下:
# torch 写法 torch.cuda.manual_seed(100) # paddle 写法 gen = paddle.seed(100)