Can it be because I’m using nn.MaxPool1d that might be mentioned under https://pytorch.org/docs/stable/notes/randomness.html

…  and many forms of pooling, padding, and sampling. There currently is no simple way of avoiding non-determinism in these functions. ?