golbin / TensorFlow-Tutorials

텐서플로우를 기초부터 응용까지 단계별로 연습할 수 있는 소스 코드를 제공합니다
2.13k stars 1k forks source link

the dropout probability should be different between train and inference #51

Closed zhengjxu closed 1 year ago

zhengjxu commented 5 years ago

During the training, the keep_prob = 0.5, during inference, the keep_prob should be 1. I update the code by adding the keep_prob as tf.placeholder.