Meta chief AI scientist Yann LeCun is leaving the company, marking an end of an era of pioneering computer science research at the Facebook parent.