Hi,
I could slice my tensor like this: label[ignore[:,0],:,ignore[:,1],ignore[:,2]] = 0, this code works only when the ignore tensor has shape of (N, 3). When  ignore has shape of (N, 4), it will be sliced like this: label[ignore[:,0],:,ignore[:,1],ignore[:,2], ignore[3,:]] = 0.
How could I broadcast this operation to various shape such as (N, M) ?