President Donald Trump ruled out a joint venture with China to develop artificial intelligence, stating that doing so would give away secrets that China wants.