Implement Observer pass on simple model and validate stats (#18848)
authorNishant Pandit <npandit@fb.com>
Sun, 7 Apr 2019 16:09:33 +0000 (09:09 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 7 Apr 2019 16:17:14 +0000 (09:17 -0700)
commit08ee4e560763cce04aeca310ac9a0e3ba4be6f79
tree7521da75eb45ff92b719baa6edd4451c760167d2
parent67fdb4abf7be5d15be2b002dc8df1c68733c30e8
Implement Observer pass on simple model and validate stats (#18848)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18848

The Observer Module is based on eager mode compute qparam implementation.
Goal is to validate QParam result for EagerMode and Script Mode for simple
model

Observer stats are collected and qparam computed only for activations only at this point

Reviewed By: zafartahirov

Differential Revision: D14720805

fbshipit-source-id: cb2f321b4b9927b37905fdb8eb55c5610d41b351
test/test_quantizer.py [new file with mode: 0644]