This article shows great examples and goes over the process, which is very simple: pin the item into the desired shape, then use a hair dryer on the high setting, being careful not to burn the yarn.
Beware, this will change the drape of the fabric and the look/feel of your garment.
I’ve also done it with steam from an iron, and the hair dryer seems a bit easier!