Where are the test cases of pytorch source code present?

Where can I find test cases for pytorch implementation of various routines like say maxpooling?

Check under https://github.com/pytorch/pytorch/tree/master/test