Partial shape memory effect of polymers