get propagate_shape logic out of module.h (#19137)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19137
ghimport-source-id: 2394765f2d401e68ffdfa4c985bfab4cca2517f8
Reviewed By: jamesr66a
Differential Revision: D14885946
Pulled By: zdevito
fbshipit-source-id: daa2894ed9761107e9d273bb172840dc23ace072