so, we looked into this further, this isn’t really a bug. masked_select will return a empty FloatTensor to you, but you cant really use that further in any autograd operations can you…
And if you call backward() on the empty tensor directly, it’ll give an appropriate error message.