Also, I have another problem.
I am passing a batch of size 32. So x has dimension (32, y)
The probability p also has dimension of (32, 1) (p is an array of 32 values)
Now for each x, I want the corresponding indexed probability. Can you please in achieving that?