
Pytorch/TensorFlow
文章平均质量分 70
StriveQueen
这个作者很懒,什么都没留下…
展开
-
Pytorch学习笔记
1 Autograd 过程解析2 Fine tuning 模型微调为什么要微调?Transfer Learning (迁移学习)和 Fine-tune的区别3 几个超参数总结4 判断模型达到瓶颈5 Adam优化器的使用6 模型评估1 Autograd 过程解析z 是一个 Tensor 变量,当我们执行z.backward()的时候。这个操作将调用 z 里面的 grad_fn(记录并且编码了完整的计算历史)这个属性,执行求导的操作。这个操作将遍历 grad_fn 的 next_functions ,.原创 2021-01-22 14:17:26 · 419 阅读 · 0 评论 -
Pytorch/numpy/pandas常用语法记录(持续更新)
1 张量相加的四种方法2 .item()用法3 .view()用法例1 普通用法例2 参数使用4 .transpose()用法5 .contiguous()用法6 df.head()用法7 .unique()和.nunique()用法8 .shape用法9 shuffle() 函数10 data[:,j]11 pred.max(-1)12 nn.Linear( )13 np.linspace()14 np.size()1 张量相加的四种方法x = torch.rand(5, 3)y = torch..原创 2021-01-21 17:25:20 · 1110 阅读 · 0 评论 -
TensorFlow实战中的经验与debug记录(持续更新)
1 TensorFlow版本问题2 安装tensorflow-gpu版本1 TensorFlow版本问题# 报错信息early_stopping_hook = tf.contrib.estimator.stop_if_no_decrease_hook(AttributeError: module 'tensorflow.contrib.estimator' has no attribute 'stop_if_no_decrease_hook'查看了本机的 tf版本发现是1.14,程序源码的版本.原创 2021-01-21 15:45:43 · 213 阅读 · 0 评论