提交 92e92ceb 编写于 作者: X Xin Pan

Add type check

上级 4bbfa9ec
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -76,6 +76,9 @@ class ParallelExecutor(object): ...@@ -76,6 +76,9 @@ class ParallelExecutor(object):
or numpy array. or numpy array.
:return: fetched value list. :return: fetched value list.
""" """
if not isinstance(feed_dict, dict):
raise TypeError("feed_dict should be a dict")
feed_tensor_dict = {} feed_tensor_dict = {}
for i, feed_name in enumerate(feed_dict): for i, feed_name in enumerate(feed_dict):
feed_tensor = feed_dict[feed_name] feed_tensor = feed_dict[feed_name]
......
文件模式从 100755 更改为 100644
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册