throw on custom forward for module containers (#27763)
Summary:
Custom forwards of containers would silently not be compiled previously. Throw an error now instead.
Fix for https://github.com/pytorch/pytorch/issues/26671
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27763
Differential Revision: D17913708
Pulled By: eellison
fbshipit-source-id: 1cc2a8a4b57356ba7f007a95ede0a31e5d61aa82