I stumbled upon this when calculating accuracy of a classifier:
    correct = (indexes == targets)
    print(correct.sum().data[0])
    print(correct.data.sum())
    >>> 155  # this one is wrong
    >>> 1179  # this one is correct

why can this be happening?