Tech stocks led gains on Wednesday as investors moved toward risky assets.