![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习
文章平均质量分 74
包括Time Series,NLP,CV
尘世猫
一个会画工图的程序猿
展开
-
jupyter notebook可能出现的问题
首页专栏python文章详情1jupyter notebook中选择conda环境及其可能出现的问题解决无道发布于 2020-07-23环境:anaconda,python3.7,jupyter notebook,win10终端上配置有多个conda的Python环境,在使用jupyter notebook时需要使用其中的一个环境,但是其默认还是使用系统python环境,因此需要解决这个问题.解决方案:在终端base环境下安装nb_conda_kernels包: conda install nb_cond原创 2021-02-01 20:29:05 · 672 阅读 · 0 评论 -
pytorch GPU版本安装
2020年8月,最新必看Python+cuda10.2(或10.1)+Python 3.7版,30分钟完成安装(5小时血泪体验)pro测试可用!!防坑!!,202008,pytorchcuda102,101python37,30min,五小时,经验,亲测 <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"转载 2021-01-25 11:56:31 · 44552 阅读 · 31 评论 -
Pytorch学习-训练模型的3种方法
pytorch通常需要用户编写自定义训练循环,训练循环的代码风格因人而异。有3类典型的训练循环代码风格:脚本形式训练循环,函数形式训练循环,类形式训练循环。下面以minist数据集的分类模型的训练为例,演示这3种训练模型的风格。准备数据import torch from torch import nn from torchkeras import summary,Model import torchvision from torchvision import transformstra转载 2021-01-18 11:37:59 · 7194 阅读 · 0 评论 -
Pytorch中torch.gather和torch.scatter函数理解
torch.gather()torch.gather(input, dim, index, *, sparse_grad=False, out=None) → Tensor参数解释:input (Tensor) – the source tensordim (int) – the axis along which to indexindex (LongTensor) – the indices of elements to gathersparse_grad (bool,opt原创 2021-06-13 11:21:29 · 1365 阅读 · 0 评论