I work in python 2.7 , I noticed when summing a logical values as a byte tensor sometimes Torch.sum() gives wrong values which resolves when the logical is type casted to int etc . Can Somebody give me a reason for this . Thank You