![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
文章平均质量分 89
Pangaroo
软硬件见习设计师
展开
-
简单神经网络搭建,从感知器到GRU
import torchimport torch.nn as nnimport torch.nn.functional as fdef describe(x): print("Type:{}".format(x.type())) print("Shape/size:{}".format(x.shape)) print("Values:\n{}".format(x))pytorch神经网络在深度学习中实现训练一个神经网络,一定会包含的有神经元(perceptron)、损失原创 2021-02-21 16:59:48 · 1123 阅读 · 0 评论 -
pytorch基础学习笔记
import torchimport numpy as npdef describe(x): print("Type:{}".format(x.type())) print("Shape/size:{}".format(x.shape)) print("Values:\n{}".format(x))创建张量tensor# 用torch.Tensor创建一个张量describe(torch.Tensor(2, 3))describe(torch.tensor(2))d原创 2020-09-16 11:26:31 · 339 阅读 · 1 评论