Implicit Affinity Networks