Removes 'model' scoping if it is present in order to properly restore weights.

def name_in_checkpoint(var):
        """ Removes 'model' scoping if it is present in order to properly restore weights. """
        if var.op.name.startswith('model/'):
            return var.op.name[len('model/'):]