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
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 to torch.nn.module.eval, as i print the strings as flag strings >>>>>>>>>torch.nn.module.eval , as the following picture
About 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 bar
Is 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):
OS Platform, Distribution, and Version: centos 7 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
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.
Try running the same scenerio in python without jep, including looping 1000 times and doing the same operation. If the problem is specific to pyorch and completely unrelated to jep this would fail and clearly indicate jep is not the source of problem.
Try creating only one shared interpreter and looping 1000 times within a single interpreter and doing the same task. If this is successful it would indicate there may be a problem related to the way jep cleans up the state when an interpreter closes or creates new state when a new interpreter is open.
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
![image](https://user-images.githubusercontent.com/19249459/167843422-4a69381c-b9f5-44c2-bbe9-7078f8033299.png)
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
torch , tensorflow , numpy ,pandas
The text was updated successfully, but these errors were encountered: