Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
fixes default type for product of empty shape. (ray-project#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
elibol authored and pcmoritz committed Dec 19, 2017
1 parent 47b1f02 commit 24b93b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ray/experimental/tfutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def unflatten(vector, shapes):
i = 0
arrays = []
for shape in shapes:
size = np.prod(shape)
size = np.prod(shape, dtype=np.int)
array = vector[i:(i + size)].reshape(shape)
arrays.append(array)
i += size
Expand Down

0 comments on commit 24b93b1

Please sign in to comment.