Uncertainty Reasoning with Photonic Bayesian Machines