![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习pytorch
文章平均质量分 94
不会爆冲不改名
这个作者很懒,什么都没留下…
展开
-
pytorch的损失函数总结
最近在学习DL相关的一些论文,想要用pytorch复现一些算法,发现pytorch中内置了许多损失函数。虽说这些东西都可以自己实现,但是本着尽量避免造轮子的原则,还是希望能够在可以调用现有的接口时直接调用他们。 在试图使用时发现,这里面存在一些不大不小的坑。因此,在这里对pytorch中的这些损失函数做个总结,方便自己和他人学习和使用。 (我用的是python 3.6.8, pytorch版本号为1.1.0) 预计会总结以下内容,在工作中需要用到或者业余看论文和coding时遇到相关的东西时慢慢.原创 2021-01-12 12:04:14 · 1701 阅读 · 0 评论 -
transpose的含义及用法(numpy和pytorch)
numpy中的transpose Permute the dimensions of an array. Parameters ---------- a : array_like Input array. axes : list of ints, optional By default, reverse the dimensions, otherwise permute the axes according to the values given. Returns -...原创 2020-08-25 10:51:38 · 2085 阅读 · 0 评论