Thank you for your reply. According to your idea, I change batch_size = 1 to calculate a single output.  I got two different outputs in these two OS. Linux is this

image814×47 3.44 KB

and Windows is this

image774×77 9.77 KB

Strangely, when I change the particular parameter in the code I post to 3e+37, both Linux and Windows have the same result.