Pytorch
Baoxin_UCAS
这个作者很懒,什么都没留下…
展开
-
pytorch tensor.repeat_interleave VS tensor.repeat
a = torch.randn(3, 5)>>> tensor([[ 0.5905, -0.1420, -0.7692, -0.0174, -0.7759], [-1.0320, -0.7636, -0.2155, 0.0854, -0.0052], [ 0.7473, -0.2531, -0.9139, 0.8557, -1.1276]])a.repeat_interleave(3, dim=0)tensor([[ 0....原创 2021-05-18 10:39:36 · 244 阅读 · 0 评论 -
Python环境搭建
Install Python on Your Linux OSInstall condaHow to run pytorch or tensorflow in the docker.procedure1 - install Vim, bunzip, net tools and wget apt install vim apt install bzip2 apt in...原创 2020-03-15 15:08:18 · 224 阅读 · 0 评论