pytorch
s_tatic_
hfnu,shiep
展开
-
动手学pytorch-打卡3
Generative Adversarial NetworksThroughout most of this book, we have talked about how to make predictions. In some form or another, we used deep neural networks learned mappings from data points to l...原创 2020-02-20 15:18:04 · 146 阅读 · 0 评论 -
动手学Pytorch-打卡2
seq2seq中的函数注解载入数据集部分def pad(line, max_len, padding_token): if len(line) > max_len: return line[:max_len] return line + [padding_token] * (max_len - len(line))print(pad(src_vocab[...原创 2020-02-18 13:26:07 · 140 阅读 · 0 评论 -
动手学Pytorch-打卡1
pytorch基本数据类型32位浮点型:torch.FloatTensor。pyorch.Tensor()默认的就是这种类型。64位整型:torch.LongTensor。32位整型:torch.IntTensor。16位整型:torch.ShortTensor。64位浮点型:torch.DoubleTensor。view用法相当于numpy中resize()的功能,但是用法可...原创 2020-02-14 12:26:47 · 130 阅读 · 0 评论