Suppose i have a 3D tensor A of size num_class * batch_size * Dim, and a mask B of size num_class * batch_size. Then , i want to mask A using the B tensor.  However, I really dont know how to do it,  can anyone help me ?
Thanks.