In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results.
https://github.com/pytorch/pytorch/pull/144395
https://github.com/pytorch/pytorch/issues/141538#issuecomment-2537424658
https://github.com/pytorch/pytorch/issues/141538
https://gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a