Skip to content

Commit 92e92ce

Browse files
committed
Add type check
1 parent 4bbfa9e commit 92e92ce

File tree

4 files changed

+3
-0
lines changed

4 files changed

+3
-0
lines changed

paddle/scripts/docker/build.sh

100755100644
File mode changed.

paddle/scripts/travis/build_doc.sh

100755100644
File mode changed.

python/paddle/fluid/parallel_executor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def run(self, fetch_list, feed_dict={}):
7676
or numpy array.
7777
:return: fetched value list.
7878
"""
79+
if not isinstance(feed_dict, dict):
80+
raise TypeError("feed_dict should be a dict")
81+
7982
feed_tensor_dict = {}
8083
for i, feed_name in enumerate(feed_dict):
8184
feed_tensor = feed_dict[feed_name]

tools/codestyle/cpplint_pre_commit.hook

100755100644
File mode changed.

0 commit comments

Comments
 (0)