x= torch.randn(2,2)
print x
x[x<0] = 0
print x

Hi, I’m confused to how to assign for bool index tensor. where is source code of the bool index tensor assignment?
x[x<0] seems to be no dimension, Does x and x[x<0] share memory？