Nvidia chief executive Jensen Huang has resigned after reports exposed two extramarital affairs. One affair involved an alleged Chinese intelligence operative at a customer firm, and the other involved a direct-report Nvidia executive.