pytorch
避暑客
这个作者很懒,什么都没留下…
展开
-
import torch出错:Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load
错误:import torch出错:Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load,如下图所示:解决办法:按提示连接下载安装 vc_redist.x64.exe效果:原创 2022-03-02 11:35:01 · 1803 阅读 · 0 评论 -
torch.from_numpy(ndarray) 功能及举例
功能:torch.from_numpy(ndarray)→ Tensor,即从numpy.ndarray创建一个张量。说明:返回的张量和ndarray共享同一内存。对张量的修改将反映在ndarray中,反之亦然。返回的张量是不能调整大小的。举例:>>> import torch>>> import numpy as np>>> a = np.array([1, 2, 3])>>> t = torch.fr..原创 2020-09-15 17:24:06 · 32795 阅读 · 3 评论 -
pytorch0.4.0下载地址
1. pytorch0.4.0, Linux, cu90http://download.pytorch.org/whl/cu90/torch-0.4.0-cp27-cp27m-linux_x86_64.whl 2. pytorch0.4.0, Linux, cu80/cu90http://download.pytorch.org/whl/cu80/torch-0.4.0-cp35-cp35m-linux_x86_64.whl http://download.pytorch.org/whl/cu9原创 2020-06-11 10:35:08 · 1991 阅读 · 0 评论