Tesla AI director resigns