You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NotImplementedError: Cannot convert a symbolic Tensor (strided_slice_3:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported
Thanks for reporting this issue. I am so happy that you reach out to us after you go back from our workshop.
I have tried to reproduce your issue in my own environment. However, the training runs correctly on my side.
From the information given in the issue, I do not have a clear idea on the reason of your issue. However, I suspect that the issue is because you are using an inappropriate environment. Specifically, it might be due to that the tensorflow version is improper. I suggest that you might create a new conda environment and install the newest release of deepmd-kit from the deepmodeling conda channel: https://anaconda.org/deepmodeling/deepmd-kit.
It's nice to hear back from you. I hope things are going well!
I did install the latest version and it seems to be working now. I had a followup question about selecting the system charge and the model charge map. I have a system with C, O, H, so the system charge would just be [4, 6, 1] and the model charge map should be [-8, -8], right? The first is the just the number of valence electrons and the second is -2*the number of MLWC for each element type. Is this assumption correct?
Activity
Yi-FanLi commentedon Sep 21, 2023
Hi Siddarth,
Thanks for reporting this issue. I am so happy that you reach out to us after you go back from our workshop.
I have tried to reproduce your issue in my own environment. However, the training runs correctly on my side.
From the information given in the issue, I do not have a clear idea on the reason of your issue. However, I suspect that the issue is because you are using an inappropriate environment. Specifically, it might be due to that the tensorflow version is improper. I suggest that you might create a new conda environment and install the newest release of deepmd-kit from the deepmodeling conda channel: https://anaconda.org/deepmodeling/deepmd-kit.
Best,
Yifan
siddarthachar commentedon Oct 8, 2023
Hi Yifan
It's nice to hear back from you. I hope things are going well!
I did install the latest version and it seems to be working now. I had a followup question about selecting the system charge and the model charge map. I have a system with C, O, H, so the system charge would just be [4, 6, 1] and the model charge map should be [-8, -8], right? The first is the just the number of valence electrons and the second is -2*the number of MLWC for each element type. Is this assumption correct?
Best,
Siddarth
njzjz commentedon Oct 18, 2023
I'll close this issue since there is nothing wrong with the software.
@Yi-FanLi will answer the question.