
pytorch
suyongcai1234
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【画热力图heatmap】
## 可视化 import seaborn as sns import matplotlib.pyplot as plt sns.set() ax = sns.heatmap(out_shot, center=2000) plt.title('title') plt.savefig('heatmap.png') plt.show()原创 2020-04-08 17:06:28 · 1142 阅读 · 1 评论 -
可视化 [matplotlib]
import matplotlib.pyplot as plt 画直方图 plt.hist() matplotlib.pyplot.hist( x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom=None, histtype=u'bar', align=u...原创 2020-04-06 17:53:00 · 158 阅读 · 0 评论 -
pytorch 笔记
两张量相乘 点乘 (矩阵相乘)tensor1.mm(tensor2) m x n 矩阵 乘以 n x d 得到 m x d 矩阵 data = [[1,2], [3,4], [5, 6]] tensor = torch.FloatTensor(data) tensor Out[31]: tensor([[ 1., 2.], [ 3., 4.], [ 5., ...原创 2020-04-06 17:39:56 · 169 阅读 · 0 评论