Compress a model: zero-size array to reduction operation minimum which has no identity #869
Unanswered
superstar54
asked this question in
Q&A
Replies: 3 comments 5 replies
-
Duplicate of #795. This should be a bug and waits to be fixed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
can you share your input data? I am trying to reproduce the error. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Fixed in #882. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I am using Deepmd-2.0.0-beta-v3. I got the following error when compressing a model:
Traceback (most recent call last):
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/bin/dp", line 10, in
sys.exit(main())
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/deepmd/entrypoints/main.py", line 429, in main
compress(**dict_args)
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/deepmd/entrypoints/compress.py", line 97, in compress
train(
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/deepmd/entrypoints/train.py", line 212, in train
_do_work(jdata, run_opt)
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/deepmd/entrypoints/train.py", line 262, in _do_work
model.build(train_data, stop_batch)
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/deepmd/train/trainer.py", line 306, in build
= self.neighbor_stat.get_stat(data)
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/deepmd/utils/neighbor_stat.py", line 85, in get_stat
dt = np.min(dt)
File "<array_function internals>", line 5, in amin
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 2858, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "/storage/homefs/xw20n572/softwares/Anaconda3/deepmd-kit-2.0.0-gpu/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 87, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
Could anyone help me with how to avoid this?
Best,
Xing
Beta Was this translation helpful? Give feedback.
All reactions