I have a frozen chart of a trained model, it has one tf.placeholderthat I always feed.
I was wondering if this is replaceable instead tf.constant. If it is anyway - any examples will be appreciated!
EDIT: this is how it looks with code to help visualize the question
I use a pre-prepared (by other people) model to complete the output. The model is stored locally as a frozen file with the extension .pb.
The code is as follows:
graph = load_graph('frozen.pb')
session = tf.Session(graph=graph)
images_placeholder = graph.get_tensor_by_name("input:0")
output = graph.get_tensor_by_name("output:0")
phase_train_placeholder = graph.get_tensor_by_name("phase_train:0")
feed_dict = {images_placeholder: images, phase_train_placeholder: False}
result = session.run(output, feed_dict=feed_dict)
The problem is that I always write phase_train_placeholder: Falsefor my purposes, so I was wondering if this placeholder can be removed and replaced with something liketf.constant(False, dtype=bool, shape=[])