Tech giants like Google, Samsung, race for edge in artificial intelligence