When Does Contrastive Visual Representation Learning Work?