How to take A.I. from the cloud to the edge