def _layerIncludedInState(layer, state):
    # If no include rules are specified, the layer is included by default and
    # only excluded if it meets one of the exclude rules.
    layer_included = len(layer.include) == 0

    for exclude_rule in layer.exclude:
        if _stateMeetsRule(state, exclude_rule):
            layer_included = False
            break

    for include_rule in layer.include:
        if _stateMeetsRule(state, include_rule):
            layer_included = True
            break

    return layer_included
Returns True if this layer will be included in the given state
dataset/ETHPy150Open NVIDIA/DIGITS/digits/model/tasks/caffe_train.py/_layerIncludedInState