Closed pyNpy closed 2 years ago
Unfortunately your problem does not point to any specific issue we are aware of. I have no solution but I ahe a few suggestions for things to try to narrow down the problem.
yes,i will try the idea which you hava told ,and try more test , thanks
Describe the problem
hello sir, in my project , i use jep to call deep-mechine-learning python3 code ,to classify the input text of content , i run the following code with 1000 times .
in normal case , the console will print string strings ,like
"Evaluating: 100%|████████████████████████████| 1/1 [00:00<00:00, 1.41it/s]"
But after loop serval times (we can not make sure the exact number , may 4 or 5 and others number ), the program meet some problems , the console print strings like this :
"Evaluating: 0%| | 0/1 [00:00<?, ?it/s] "
I follow the python script and step into
torch.nn.module.eval
, and i make sure that the python code step in totorch.nn.module.eval
, as i print the strings as flag strings>>>>>>>>>torch.nn.module.eval
, as the following pictureAbout the code
the loop 1000 times : java call python
other java code :
Questions
Having you ever seen such problems like it ?
I think maybe some problems happens in pytorch , but hava no more idea to following the code , because the python code
torch.nn.module.eval
is the final called in python . Maybe i need seen the code near progress barIs there any possibility of problems happen in jep ? for somewhere , i see the description as python gloable static variable data can be influenced by multi threads ? but the java code which be calling python code run one single process and one thread , i have no idea about it ?
Last words i can think about the questions as above , but i have not seen the errors as before , can you give me some idea ?thanks a lot .
Environment (please complete the following information):
Linux localhost.localdomain 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux