MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / placeholder_inputs

Function placeholder_inputs

tensorflow/contrib/factorization/examples/mnist.py:52–62  ·  view source on GitHub ↗

Generate placeholder variables to represent the input tensors. Returns: images_placeholder: Images placeholder. labels_placeholder: Labels placeholder.

()

Source from the content-addressed store, hash-verified

50
51
52def 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
65def fill_feed_dict(data_set, images_pl, labels_pl, batch_size):

Callers 1

run_trainingFunction · 0.70

Calls 1

placeholderMethod · 0.45

Tested by

no test coverage detected