Make it possible for self.forward to return a ScriptMethod (#19217)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19217
ghimport-source-id: 6fdd7f5ac041dae950b47ca316f30682ede0b083
Reviewed By: suo
Differential Revision: D14922120
Pulled By: zdevito
fbshipit-source-id: 5e82e5d7ee72df6f401146d2519c80ea336ff40e