Generate placeholder variables to represent the input tensors. Returns: images_placeholder: Images placeholder. labels_placeholder: Labels placeholder.
()
| 50 | |
| 51 | |
| 52 | def placeholder_inputs(): |
| 53 | """Generate placeholder variables to represent the input tensors. |
| 54 | |
| 55 | Returns: |
| 56 | images_placeholder: Images placeholder. |
| 57 | labels_placeholder: Labels placeholder. |
| 58 | """ |
| 59 | images_placeholder = tf.placeholder(tf.float32, shape=(None, |
| 60 | mnist.IMAGE_PIXELS)) |
| 61 | labels_placeholder = tf.placeholder(tf.int32, shape=(None)) |
| 62 | return images_placeholder, labels_placeholder |
| 63 | |
| 64 | |
| 65 | def fill_feed_dict(data_set, images_pl, labels_pl, batch_size): |
no test coverage detected