brendanhasz / probflow

A Python package for building Bayesian models with TensorFlow or PyTorch
http://probflow.readthedocs.io
MIT License
170 stars 17 forks source link

Fix example for PyTorch FC NN #65

Closed brendanhasz closed 3 years ago

brendanhasz commented 3 years ago

The double-casting to tensor seemed to be making it not converge (maybe cutting off grad propagation?). Just doing it once at the top level worked fine. Should investigate and if that's a consistent thing maybe add to the docs so folks know to look out for that.