Skip to content

Commit 5f644c3

Browse files
committed
fix bugs about numpy version
1 parent 974ba4b commit 5f644c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorlayer/files/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ def load_npz(path='', name='model.npz'):
19581958
- `Saving dictionary using numpy <http://stackoverflow.com/questions/22315595/saving-dictionary-of-header-information-using-numpy-savez>`__
19591959
19601960
"""
1961-
d = np.load(os.path.join(path, name))
1961+
d = np.load(os.path.join(path, name), allow_pickle=True)
19621962
return d['params']
19631963

19641964

0 commit comments

Comments
 (0)