小知识 torch.manual_seed(42) 固定了 PyTorch 的随机数生成器 (Random Number Generator, RNG) 的起点,使每次创建模型的初始权重 w 和 b 保持不变,保证了实验的可复现性。