The following gets False for the second calculation. Is this expected behavior (pytorch 2.0.1)?
import torch
import numpy
print(numpy.array(1,dtype=numpy.int8) < 32767)
print(torch.tensor(1,dtype=torch.int8) < 32767)
print(torch.tensor(1,dtype=torch.int8) < torch.tensor(32767,dtype=torch.int16))
print(torch.tensor(1,dtype=torch.int8).item() < 32767)
True
tensor(False)
tensor(True)
True