1. Inf的情况
>>> torch.div(1., torch.tensor(1e-39))
tensor(inf)
>>> torch.div(1., torch.tensor(1e-38))
tensor(1.0000e+38)
>>> 1. / 1e-39
1.0000000000000001e+39
2. Nan的情况
>>> torch.div(0., torch.tensor(1e-46))
tensor(nan)
>>> torch.div(0., torch.tensor(1e-45))
tensor(0.)
>>> 0. / 1e-46
0.0