Yes, that is correct. it is dispatch here: https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/Pooling.cpp#L128 3
We have multiple ways to do dispatch right now in PyTorch, one common place is in native_functions.yaml, you can take a look at: https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/README.md 1