jefflai108 / Contrastive-Predictive-Coding-PyTorch

Contrastive Predictive Coding for Automatic Speaker Verification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About negative sample?

aceprojectx opened this issue · comments

correct1 = torch.sum(torch.eq(torch.argmax(self.softmax(total), dim=0), torch.arange(0, batch))) # correct is a tensor

@jefflai108 Is negative sample from other batch at the same t (time-step) ?