Joint inference and input optimization in equilibrium networks Swaminathan Gurumurthy