

def on_prune(self, fgraph, app, reason):
    '\n            Remove Apply instance from set which must be computed.\n\n            '
    for (i, input) in enumerate(OrderedSet(app.inputs)):
        del self.clients[input][app]
    if getattr(app.op, 'destroy_map', {
        
    }):
        self.destroyers.remove(app)
    for (o_idx, i_idx_list) in iteritems(getattr(app.op, 'view_map', {
        
    })):
        if (len(i_idx_list) > 1):
            raise NotImplementedError()
        o = app.outputs[o_idx]
        i = app.inputs[i_idx_list[0]]
        del self.view_i[o]
        self.view_o[i].remove(o)
        if (not self.view_o[i]):
            del self.view_o[i]
    self.stale_droot = True

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/destroyhandler.py DestroyHandler.on_prune/original