摘要: 常见的Tensor创建方法 1,基础Tensor函数:torch.Tensor(2,2)32位浮点型 2,指定类型: torch.DoubleTensor(2,2)64位浮点型 3,使用python的列表序列:torch.Tensor([[1,2],[3,4]]) 4,默认值为0 :torch.ze 阅读全文
posted @ 2021-01-18 15:12 _八级大狂风 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: (pytorch_gpu) D:\pytorch-text>pythonPython 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32Type "help", " 阅读全文
posted @ 2021-01-18 14:42 _八级大狂风 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1,首先需要安装Visual C++ 2015构建工具,地址https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425- 68a90f98b238/visualcppbuildtools_full.exe,全程默认安装。 阅读全文
posted @ 2020-12-06 17:20 _八级大狂风 阅读(213) 评论(0) 推荐(0) 编辑