.Tech giants as well as financiers are shoveling money right into artificial intelligence among questions about whether it will pay.