
PyTorch
meteor,across T sky
这个作者很懒,什么都没留下…
展开
-
pandas.DataFrame.iloc 函数使用
读取图像尺寸img = imread("")img.shape读取图像尺寸绿色紫色Variable原创 2020-12-03 15:28:40 · 938 阅读 · 0 评论 -
numpy.squeeze() 函数使用
读取图像尺寸img = imread("")img.shape读取图像尺寸绿色紫色原创 2020-12-03 17:25:05 · 1409 阅读 · 0 评论 -
torch.Tensor.view()
可以从这个函数处理之后的数值要进行什么处理来理解该函数功能 self.fc_unit = nn.Sequential( nn.Linear(in_features=6 * 6 * 248, out_features=1024), nn.Linear(in_features=1024, out_features=2) ) def forward(self, x): x = self.conv_unit(x)原创 2020-11-25 15:03:18 · 1024 阅读 · 0 评论 -
PyTorch 环境下如何打开训练可视化工具 TensorboardX(Windows系统)
在 TensorFlow 中 Tensorboard 工具可以记录程序过程中的数字、图像等内容,方便观察神经网络训练过程。TensorboardX 工具可以在 TensorFlow 之外的其他神经网络框架下使用 TensorFlow 的功能,本篇主要介绍怎么在 Windows 系统下打开该工具。Tensorboard下载 Github网址配置要求WindowsPython2/3PyTorch >= 1.0.0 && torchvision >= 0.2.1 &am原创 2020-11-24 18:04:36 · 2763 阅读 · 0 评论 -
Anaconda下查看 PyTorch 和 torchvision 版本(windows环境)
进入anaconda,输入python,回车(base) C:\Users\Administrator>pythonPython 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32Type "help", "copyright", "credits" or "license" for more information.进入python环境,导入pytorch原创 2020-11-24 10:47:03 · 20126 阅读 · 0 评论 -
torch.randn()函数
torch.randn()torch.randn(*size, *, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False) → Tensor返回一个符合均值为0,方差为1的正态分布(标准正态分布)中填充随机数的张量Parameterssize(int…) --定义输出张量形状的整数序列。可以是数量可变的参数,也可以是列表或元组之类的集合。Keyword Argumentsout(原创 2020-11-23 19:13:00 · 57285 阅读 · 6 评论