Hi @Yupjun
Try:
fake.dtype

if it returns torch.float32, fake.item() will return you a Python float scalar (.
And in Python:
>>> 0.0/0
ZeroDivisionError: float division by zero

so everything is expect here.