摘要:import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as optim # 定义网络 class Net(nn
阅读全文
摘要:import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F #反向传播 x = torch.ones(2, 2, requires_grad=True)
阅读全文
摘要:参考博主:https://blog.csdn.net/weixin_41457494/article/details/86238443 import torch from torch.autograd import Variable import torch.nn as nn import torc
阅读全文