Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestmainTF运行报错 #3

Open
yaowang1112 opened this issue Aug 1, 2020 · 1 comment
Open

TestmainTF运行报错 #3

yaowang1112 opened this issue Aug 1, 2020 · 1 comment

Comments

@yaowang1112
Copy link

我运行TestmainTF,程序报错如下:
File "E:\pycharm程序集\TrE\TestModelTF.py", line 78, in launch_evaluation
'out_queue': rank_result_queue}).start()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\multiprocessing\context.py", line 212, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\multiprocessing\context.py", line 313, in _Popen
return Popen(process_obj)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\multiprocessing\popen_spawn_win32.py", line 66, in init
reduction.dump(process_obj, to_child)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\multiprocessing\reduction.py", line 59, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle PyCapsule objects
不知道怎么解决

@haidfs
Copy link
Owner

haidfs commented Aug 4, 2020

Windows本身的多进程和Linux的多进程的实现方式不一样,需要用pycharm专业版的远程解释器或者直接把它放到Linux环境运行,windows我也不知道怎么解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants