Skip to content

Commit 7044f5f

Browse files
committed
Fixed typo.
1 parent 7143e94 commit 7044f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ This is just tip of the iceberg for what TensorFlow can do. Many problems such a
121121

122122
## Take advantage of the overloaded operators
123123
<a name="overloaded_ops"></a>
124-
Just like NumPy, TensorFlow overloads a number of python operators to make building graphs easier and more readable.
124+
Just like NumPy, TensorFlow overloads a number of python operators to make building graphs easier and the code more readable.
125125

126-
One of the commonly used ops is the slicing operator that can make indexing tensors very easy:
126+
The slicing op is one of the overloaded operators that can make indexing tensors very easy:
127127
```python
128128
z = x[begin:end] # z = tf.slice(x, [begin], [end-begin])
129129
```
130-
Be very careful when using this op though. The slicing op is very inefficient and often better avoided. To understand how inefficient this op can be let's look at an example. We want manually perform reduction across the rows of a matrix:
130+
Be very careful when using this op though. The slicing op is very inefficient and often better avoided, especially when the number of slices is high. To understand how inefficient this op can be let's look at an example. We want manually perform reduction across the rows of a matrix:
131131
```python
132132
import tensorflow as tf
133133
import time

0 commit comments

Comments
 (0)