Put the LR back to its value if necessary.
325566
def on_step_end(self, **kwargs):
        ""
        if not self.learn.gan_trainer.gen_mode: self.learn.opt.lr /= self.mult_lr
1229076
def resume(self):
        ""

        if '_saved' not in vars(self):
            return

        type, exc = map(pickle.loads, self._saved)
        six.reraise(type, exc, self._tb)
135121
def minValue(self, value):
        """"""
        if isinstance(value, [int, float, long]):
            self._rangeMin = value
572832
public void reset()
    {
        m_currentValue = null;
        useCurrentValue(false);
        setDerived(false);
        m_notKnown = false;
        setUnknown(m_lastUnknown);
    }
13647
void set1(int newPrice, int optCur, int back) {
        price = newPrice;
        optPrev = optCur;
        backPrev = back;
        prev1IsLiteral = false;
    }
151245
def forceValue(self, newVal, noteEdited=False):
        """"""
        if newVal is None:
            newVal = ""
        self.choice.set(newVal)
        if noteEdited:
            self.widgetEdited(val=newVal, skipDups=False)
1259066
def restore(self, key, ttl, value):
        """"""
        return self.execute(b'RESTORE', key, ttl, value)
557098
def rollback(self, date):
        """"""
        if self.onOffset(date):
            return date
        else:
            return date - QuarterEnd(month=self.month)
395002
def backward(self, loss):
        """"""
        with mx.autograd.record():
            if isinstance(loss, (tuple, list)):
                ls = [l * self._scaler.loss_scale for l in loss]
            else:
                ls = loss * self._scaler.loss_scale
        mx.autograd.backward(ls)
11979
def cancel(self):
        """"""
        self._cancelled.set()
        if not self._dead:
            self._ready_sem.acquire()
            self._ready_sem.release()
491823
def _setCurrentRev(self, rev, branch='default'):
        """"""
        self.lastRev[branch] = str(rev)
        return self.setState('lastRev', self.lastRev)
1230482
def Reset(self):
    """"""
    # The first state
    self.state = "INITIAL"
    self.state_stack = []

    # The buffer we are parsing now
    self.buffer = ""
    self.error = 0
    self.verbose = 0

    # The index into the buffer where we are currently pointing
    self.processed = 0
    self.processed_buffer = ""
1128561
def back_off_until(self):
        """"""
        if self._back_off_until is None:
            return None
        with self._back_off_lock:
            if self._back_off_until is None:
                return None
            if self._back_off_until < datetime.datetime.now():
                self._back_off_until = None  # The backoff value has expired. Reset
                return None
            return self._back_off_until
357534
private void reInflateTabLayout() {
        View rootView = getRootView();

        if (rootView != null) {
            View headerContentContainer = rootView.findViewById(R.id.header_content_container);
            View contentContainer = rootView.findViewById(R.id.content_container);

            if (headerContentContainer != null && contentContainer != null) {
                inflateTabLayout(headerContentContainer, contentContainer);
            }
        }
    }
1152489
def set_remove(parent, idx, value):
  """"""
  lst = get_child(parent, idx)
  if value in lst:
    lst.remove(value)
913408
def set(self, name, value):
        """"""
        old_val = self.values.get(name)
        if old_val != value:
            self.values[name] = value
            return True
        else:
            return False
803266
def save(self, reload=False):
        """"""
        self.wrapper.raw.save()
        if reload:
            self.reload()