-
Notifications
You must be signed in to change notification settings - Fork 75
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
进程创建后不能启动 #7
Comments
我也遇到了这个问题,请问你解决了吗? |
你好:
我还没有解决,你呢?
p.start() return convert_to_tensor, (self._numpy(),)ValueError: Cannot convert a Tensor of dtype resource to a NumPy array.
…--------------------------------
------------
Best Regards!王瑾M: +86 13805156041 E: sophie_icon@sina.com
----- 原始邮件 -----
发件人:HaodaY <notifications@github.com>
收件人:RobertLexis/CloudSimPy <CloudSimPy@noreply.github.com>
抄送人:silkyrose <sophie_icon@sina.com>, Author <author@noreply.github.com>
主题:Re:_[RobertLexis/CloudSimPy]_进程创建后不能启动_(#7)
日期:2020年02月13日 14点18分
我也遇到了这个问题,请问你解决了吗?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我改成用单进程去运行了 |
我知道是哪里的问题,episode这个对象不能作为process函数的参数传进去。但是我不会改,试图把episode转换为json字符串,在multiprocess函数里面再转回为对象,但是没成功
--------------------------------
…------------
Best Regards!王瑾M: +86 13805156041 E: sophie_icon@sina.com
----- 原始邮件 -----
发件人:HaodaY <notifications@github.com>
收件人:RobertLexis/CloudSimPy <CloudSimPy@noreply.github.com>
抄送人:silkyrose <sophie_icon@sina.com>, Author <author@noreply.github.com>
主题:Re:_[RobertLexis/CloudSimPy]_进程创建后不能启动_(#7)
日期:2020年02月27日 22点30分
我改成用单进程去运行了
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
作者看到了也不出来说几句。。。。。。 |
|
请问是怎样操作的? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
主程序main-makespan.py在windows下执行
已增加:
if name == 'main':
freeze_support()
可以看到Process创建了13个进程,但是第一进程就不能start()
报错说它不能转换为数值
WARNING:tensorflow:From C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\training\checkpointable\util.py:1858: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
Traceback (most recent call last):
File "E:/DPL/CloudSimPy-master/CloudSimPy-master/playground/Non_DAG/launch_scripts/main-makespan.py", line 93, in
pj.start()
File "C:\ProgramData\Anaconda3\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 65, in init
reduction.dump(process_obj, to_child)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 745, in reduce
return (convert_to_tensor, (self.numpy(),))
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 724, in numpy
raise ValueError("Resource handles are not convertible to numpy.")
ValueError: Resource handles are not convertible to numpy.
The text was updated successfully, but these errors were encountered: