pytorch
瓦力冫
喜欢看点书,跑跑步,热爱游戏编程
展开
-
pytorch 回归
import torch from torch.autograd import Variable import torch.nn.functional as F import matplotlib.pyplot as plt x = torch.unsqueeze(torch.linspace(-1, 1, 100), dim = 1) y = x.pow(2) + 0.2*torch.r...原创 2018-05-19 15:07:39 · 286 阅读 · 0 评论 -
pytorch 把MNIST数据集转换成图片和txt
1.下载Mnist 数据集import os # third-party library import torch import torch.nn as nn from torch.autograd import Variable import torch.utils.data as Data import torchvision import matplotlib.pyplot as plt ...原创 2018-05-20 09:24:01 · 2662 阅读 · 6 评论 -
pytorch 把MNIST数据集转换成图片和txt
# library # standard library import os # third-party library import torch import torch.nn as nn from torch.autograd import Variable from torch.utils.data import Dataset, DataLoader import torchvision...原创 2018-05-20 13:29:30 · 1666 阅读 · 1 评论 -
pytorch 保存和提取网络状态
# library # standard library import os # third-party library import torch import torch.nn as nn from torch.autograd import Variable from torch.utils.data import Dataset, DataLoader import torchvision...原创 2018-05-20 15:14:22 · 2146 阅读 · 0 评论