Fork me on GitHub
摘要: # 导入必要的库 import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader, Dataset # 定义超参数 epochs = 10 # 训练轮数 lr 阅读全文
posted @ 2023-04-13 15:56 stardsd 阅读(573) 评论(0) 推荐(0) 编辑