Per-callback sampling (#21394)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21394
ghimport-source-id: 2607c7b456031a1ddb19fabc3b6fe2585c276d76
Differential Revision: D15639723
Pulled By: ilia-cher
fbshipit-source-id: 938d02c1daf5bec5afa5d3cd021d2dae7e7160ce