'Retrieve the model\'s updates.
Will only include updates that are either
inconditional, or conditional on inputs to this model
(e.g. will not include updates that depend on tensors
that aren\'t inputs to this model).
# Returns
A list of update ops.'

@property
def updates(self):

    updates = []
    for layer in self.layers:
        if hasattr(layer, 'updates'):
            for (node_index, node) in enumerate(layer.inbound_nodes):
                node_key = ((layer.name + '_ib-') + str(node_index))
                if (node_key in self.container_nodes):
                    inputs = node.input_tensors
                    updates += layer.get_updates_for(inputs)
            updates += layer.get_updates_for(None)
    return updates
