Tensor assignment with cascaded masking

I’ve a tensor T, and two boolean masks b1, and b2.

I’d like to do the assignment T[b1][b2] = c but this doesn’t seem to be working. I mean it doesn’t change the values of T.

Why’s that, and how can I do the assignment properly?