提交 1de9edee 编写于 作者: J JiayiFeng

Follow comments

上级 93276fd1
......@@ -16,6 +16,7 @@ import core
import multiprocessing
import framework
import executor
import warnings
__all__ = ['ParallelExecutor']
......@@ -130,6 +131,10 @@ class ParallelExecutor(object):
or numpy array.
:return: fetched value list.
"""
if not feed_dict == {}:
warnings.warn(
"The 'feed_dict' of ParallelExecutor.run() is deprecated. Please use 'feed' instead."
)
if feed == {}:
feed = feed_dict
if not isinstance(feed, dict):
......
......@@ -223,7 +223,6 @@ class TestParallelExecutorBase(unittest.TestCase):
with fluid.program_guard(main, startup):
if seed is not None:
startup.random_seed = seed
main.random_seed = seed
loss = method(use_feed=len(feed_dict) > 0)
adam = fluid.optimizer.Adam()
adam.minimize(loss)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册