Sorry! Maybe I was not clear in explaining, I wanted dropout but not in the last dimension (dropping some values from the 30) i.e feature dimension but rather dropping out the all 30 values or keeping all the 30 value. Sorry, I didn’t know how to name it so I called it drop out in observation dimension. where I want drop out in the dimension where my value is 2, so the case will be like { (0, 0), (1, 0), (0, 1), (1, 1) } where 0 corresponds to dropping out all 30 features and 1 corresponds to keeping it.
I also tried dropout2D but I am unsure of its behaviour and the output had only two possibilities { (0,0), (1, 1) } and not the { (0, 1), (1, 0) } cases.