在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
th> a=torch.zeros(1,5) [0.0001s] th> a 0 0 0 0 0 [torch.DoubleTensor of size 1x5] [0.0001s] th> a[{1,floor}]=1 [0.0001s] th> a 1 1 1 1 1 [torch.DoubleTensor of size 1x5] [0.0001s] th> a[{1,ceil}]=0.5 [0.0001s] th> a 0.5000 0.5000 0.5000 0.5000 0.5000 [torch.DoubleTensor of size 1x5]
|
请发表评论