Deep learning in metasurfaces: from automated design to adaptive metadevices | Synapse