![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PyTorch入门教程
文章平均质量分 59
小鸽的杂货铺
这个作者很懒,什么都没留下…
展开
-
线性代数之范数
学习笔记,本文内容非原创,来源于《动手学深度学习》torch.norm()L1 范数,它表示为向量元素的绝对值之和:∥x∥1=∑i=1n∣xi∣\|\mathbf{x}\|_{1}=\sum_{i=1}^{n}\left|x_{i}\right|∥x∥1=i=1∑n∣xi∣事实上,欧几里得距离是一个范数:具体而言,它是 L2 范数:∥x∥2=∑i=1nxi2\|\mathbf{x}\|_{2}=\sqrt{\sum_{i=1}^{n} x_{i}^{2}}∥x∥2=i=1∑nxi2原创 2021-09-18 11:56:27 · 743 阅读 · 0 评论 -
PyTorch入门教程-00-相关资料
https://github.com/ShusenTang/Dive-into-DL-PyTorch/blob/master/code/chapter06_RNN/6.5_rnn-pytorch.ipynbhttps://zh.d2l.ai/chapter_recurrent-neural-networks/rnn-gluon.htmlhttps://github.com/MorvanZhou/PyTorch-Tutorial/blob/master/tutorial-contents/402_RNN_原创 2020-11-14 09:21:53 · 107 阅读 · 0 评论 -
PyTorch入门教程-02-神经网络
nn模块中包含大量的神经网络模型和函数。参考:https://pytorch.org/docs/stable/nn.html原创 2020-11-13 23:04:45 · 161 阅读 · 0 评论 -
PyTorch入门教程-01-张量tensor和autograd
本篇教程旨在探讨PyTorch的各个模块及功能,形成大概的知识结构和用法框架。教程的第一部分,将介绍关于PyTorch张量的基础知识。1. Tensor张量PyTorch中的张量类似于numpy的ndarrays多维数组。# Numbert1 = torch.tensor(4.)t1 = torch.FloatTensor([4])t1.dtype# Vectort2 = torch.tensor([1., 2, 3, 4])# Matrixt3 = torch.tensor([[5.,原创 2020-11-13 22:06:55 · 183 阅读 · 0 评论