Inserting observers for all methods called in forward (#25503)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25503
Previously we only insert observers for forward methods, this PR
extends the support to all observers. It will insert
duplicated observers right now, we'll remove them in next PR.
Test Plan:
python test/test_jit.py -- 'TestJit.insert_observers'
Imported from OSS
Differential Revision: D17208886
fbshipit-source-id: 04084c8f42c56cb66a11968987a15752f532ac04