I have data that comes into my graph through queue runners, after I switched from the handy but speed-inferior placeholders.
After each training epoch, I wish to run a validation pass. Other than the the training pass, the validation pass uses different data, no augmentation and no shuffling.
The question is simple: how do I toggle these things?
A few observations:
- I cannot toggle the
shuffle
option in thestring_input_producer
through atf.placeholder
boolean. - The only examples on-the-line that I have found use the
placeholder
to seperate the training from the validation data. These in turn, do not use the superior queue runners. - I did manage to do the above with a
tf.cond()
here i would test for ais_training
tf.placeholder
boolean that i pass through thefeed_dict
. Is this solution the most optimal? How expensive is thistf.conf()
method?