Assuming clusters are your predictions:
clusters = torch.empty(100, dtype=torch.long).random_(2)
targets = torch.empty(100, dtype=torch.long).random_(2)

accuracy = targets.eq(clusters).float().sum() / clusters.size(0)