- 博客(1)
- 收藏
- 关注
原创 torch.expand()
x_linspace = torch.linspace(0.5, width - 0.5, width).view(1, width).expand(height, width) y_linspace = torch.linspace(0.5, height - 0.5, height).view(height, 1).expand(height, width) ``print(x_linspace) tensor([[0.5000, 1.5000, 2.5000, 3.5000, 4.5000],
2021-06-11 09:59:45
374
1
空空如也
map2dfusion
2023-06-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人