Alibaba’s foray into AI is part of a larger strategy for massive investments in AI and cloud computing infrastructure.