Skip to content

Commit

Permalink
tf.reshape() only need the same number of elements
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Aug 15, 2017
1 parent de17922 commit cdceb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ You can reshape a given tensor dynamically using tf.reshape function:
```python
a = tf.reshape(a, [32, 128])
```
Note that attempts to feed 'a' with values that don't match its shape, will raise InvalidArgumentError exception.
Note that attempts to feed 'a' with tensors with a different total number of elements, will raise an InvalidArgumentError exception.

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:
```python
Expand Down

0 comments on commit cdceb2d

Please sign in to comment.