컨텍스트 : 길쌈 Autoencoder는tf.train.shuffle_batch를 사용하여 교육 및 추론을위한 TF 그래프를 어떻게 만들 수 있습니까?
는 내가 전화를 한 후 이러한 노드를 추출하는 tf.add_to_collections() 추론 동안
Input to neural network from shuffle batch: [batch_size, patch_size, patch_size, depth]
During training, this is [512, 32, 32, 3]
Input to neural network for inference: [batch_size, height, width, depth]
During inference, this can be [1, 100, 100, 3], or [3, 150, 150, 3], etc.
, 내가 tf.get_collections()를 호출하여 그래프로 input_tensor 및 output_tensor를 추가 sess.run(). 모양이 [512, 32, 32, 3]에 고정되어 있다고 말하면 어떻게 해결할 수 있습니까?
참조 [이 게시물] (http://stackoverflow.com/questions/35955144/working-with-multiple-graphs-in-tensorflow). Yaroslav는 하나 이상의 그래프를 갖는 것이 거의 유용하지 않다고 언급했습니다. 어떻게해야합니까? 나는 다른 질문 [여기] (http://stackoverflow.com/questions/40352841/how-can-i-build-a-tf-graph-that-has-separate-inference-and-training-parts)을 물었다. – jkschin