在 PyTorch 中使用 CNN 进行数值回归的代码大致如下: 导入所需的库:import torch import torch.nn as nn import torch.optim as optim