Thanks for your reply.
I’m a little confused that there are two for loops to get 2 batch of data. Can you explain more about that?
In my case, both the labeled data and unlabeled data are mixed and shuffled during training, forming a minibatch to do forward propagation.