

def get_targets_placeholder_by_name(name):
    vars = tf.get_collection(tf.GraphKeys.TARGETS)
    tflearn_name = (name + '/Y:0')
    if (len(vars) == 0):
        raise Exception('The collection `tf.GraphKeys.INPUTS` is empty! Cannot retrieve placeholder. In case placeholder was defined outside TFLearn `input_data` layer, please add it to that collection.')
    for e in vars:
        if (e.name == tflearn_name):
            return e
    for e in vars:
        if (vars.name == name):
            return e
    return None

dataset/ETHPy150Open tflearn/tflearn/tflearn/variables.py get_targets_placeholder_by_name/VarMisuse@82/169 `e`->`vars`