You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,13 +121,13 @@ This is just tip of the iceberg for what TensorFlow can do. Many problems such a
121
121
122
122
## Take advantage of the overloaded operators
123
123
<aname="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.
125
125
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:
127
127
```python
128
128
z = x[begin:end] # z = tf.slice(x, [begin], [end-begin])
129
129
```
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:
0 commit comments