def consider_constant(x):
    warnings.warn((
        "consider_constant() is deprecated, use zero_grad() or "
        "disconnected_grad() instead."), stacklevel=3)

    return consider_constant_(x)
Append a function to the list to call when switching to record mode.
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gradient.py/consider_constant--crossover with--dataset/ETHPy150Open chromium/web-page-replay/servermanager.py/ServerManager.AppendRecordCallback