I have a rather large code base, and upon upgrading to pytorch 1.2 I started receiving thousands of warnings:

/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.

Now, I was using torch.uint8 in one place, I replaced that with torch.bool. I was also using np.uint8 in one array which I later used to create PyTorch tensor. I changed that to np.bool_ now.
The problem is that I still have thousands of the same messages and as I am not explicitly using uint8 anywhere now, I wonder where it might come from? Does PyTorch still convert some numpy data to torch.uint8? I am converting a lot of numpy data to pytorch tensors. The problem is that there is no extra info or trace of this warning. Also, my code base is huge, so not possible to include it here.
Does anyone have any clue what might cause the error as I do not explicitly use torch.uint8 or numpy.uint8 anywhere?