Allow ScriptModule(optimize=False) when jit disabled (#16297)
Summary:
Fixes #16285
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16297
Differential Revision: D13797276
Pulled By: driazati
fbshipit-source-id: 3a93500d4233cfbb8f5af7feba43f6ff4c3d22c7