RuntimeError:在另一个循环正在运行时无法运行事件循环
试图在我的本地设置 tensorflow_federated。所有导入版本都是正确的:
CUDA = 10.1,
蟒蛇= 3.6.9,
张量流 = 2.2.0,
tf_federated = 最新
google Colab 中没有发生此错误。但是,当我尝试进行任何联合计算时,会发生在我的本地机器上。我收到运行时错误:RuntimeError:在另一个循环正在运行时无法运行事件循环
RuntimeError Traceback (most recent call last)
<ipython-input-5-9c097e9baec9> in <module>
----> 1 tff.federated_computation(lambda: 'hi')()
~\AppData\Local\Continuum\anaconda3\envs\tflocal\lib\asyncio\base_events.py in run_forever(self)
426 if events._get_running_loop() is not None:
427 raise RuntimeError(
--> 428 'Cannot run the event loop while another loop is running')
429 self._set_coroutine_wrapper(self._debug)
430 self._thread_id = threading.get_ident()
RuntimeError: Cannot run the event loop while another loop is running