Autoregressive model and sampler
Created by: wdphy16
To invoke any method of the model inside samplers, I used model.apply
in concrete samplers, and replaced some get_afun_if_module
to wrap_afun
in the base sampler. There is no change to existing interfaces, and all existing tests are passed.
Next step would be to modify the way to pass the model into MCState
.