Skip to content

Commit

Permalink
Merge pull request #31 from mahmoudakl/master
Browse files Browse the repository at this point in the history
Replaced tf.prod with tf.reduce_prod
  • Loading branch information
vahidk authored Feb 20, 2019
2 parents ba567d3 + 67b688e commit 1f1c0a2
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 @@ -191,7 +191,7 @@ def reshape(tensor, dims_list):
elif all([isinstance(shape[d], int) for d in dims]):
dims_prod.append(np.prod([shape[d] for d in dims]))
else:
dims_prod.append(tf.prod([shape[d] for d in dims]))
dims_prod.append(tf.reduce_prod([shape[d] for d in dims]))
tensor = tf.reshape(tensor, dims_prod)
return tensor
```
Expand Down

0 comments on commit 1f1c0a2

Please sign in to comment.