Saving JIT to flatbuffer should respect options. (#77456)
Summary: title
Test Plan: manual test with T120364740
Differential Revision: D36388746
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77456
Approved by: https://github.com/pavithranrao