On the relationship between variational inference and auto-associative memory