Skip to content

Commit cdceb2d

Browse files
committed
tf.reshape() only need the same number of elements
1 parent de17922 commit cdceb2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ You can reshape a given tensor dynamically using tf.reshape function:
137137
```python
138138
a = tf.reshape(a, [32, 128])
139139
```
140-
Note that attempts to feed 'a' with values that don't match its shape, will raise InvalidArgumentError exception.
140+
Note that attempts to feed 'a' with tensors with a different total number of elements, will raise an InvalidArgumentError exception.
141141

142142
It can be convenient to have a function that returns the static shape when available and dynamic shape when it's not. The following utility function does just that:
143143
```python

0 commit comments

Comments
 (0)