def fast_inplace_check(inputs):
    fgraph = inputs[0].fgraph
    Supervisor = theano.compile.function_module.Supervisor
    protected_inputs = [f.protected for f in fgraph._features
                        if isinstance(f, Supervisor)]
    protected_inputs = sum(protected_inputs, [])  # flatten the list
    protected_inputs.extend(fgraph.outputs)

    inputs = [i for i in inputs if
              not isinstance(i, graph.Constant) and
              not fgraph.destroyers(i) and
              i not in protected_inputs]
    return inputs
Change self._A and _extent to render an image whose
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/destroyhandler.py/fast_inplace_check--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/external/modest_image.py/ModestImage._scale_to_res