Question about AdaptiveMaxPooling implementation

Is it OK to accept nan value as max value?
I do not think this natural, so could anyone tell me why?

As this is not a libtorch-specific question, would you like to post it in https://github.com/pytorch/pytorch/issues to reach a wider audience / get more help on the question?