th> a=torch.zeros(,)
[.0001s]
th> a [torch.DoubleTensor of size 1x5] [.0001s]
th> a[{,floor}]=
[.0001s]
th> a [torch.DoubleTensor of size 1x5] [.0001s]
th> a[{,ceil}]=0.5
[.0001s]
th> a
0.5000 0.5000 0.5000 0.5000 0.5000
[torch.DoubleTensor of size 1x5]