Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidk committed Aug 28, 2017
1 parent 8799d04 commit d377c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ prediction = tf.square(data) + 1

actual_data = np.random.normal(size=[100])

tf.Session().run(prediction, feed_dic={data: actual_data})
tf.Session().run(prediction, feed_dict={data: actual_data})
```
Placeholder operator returns a tensor whose value is fetched through the feed_dict argument in Session.run function. Note that running Session.run without feeding the value of data in this case will result in an error.

Expand All @@ -389,7 +389,7 @@ def py_input_fn():
actual_data = np.random.normal(size=[100])
return actual_data

data = tf.py_func(py_input_fn, [], (tf.float32))/
data = tf.py_func(py_input_fn, [], (tf.float32))
```
Python ops allow you to convert a regular Python function to a TensorFlow operation.

Expand Down

0 comments on commit d377c4f

Please sign in to comment.