提交 71715007 编写于 作者: M MRXLT

change systemexit to valueerror

上级 474a3e51
...@@ -203,7 +203,7 @@ class Client(object): ...@@ -203,7 +203,7 @@ class Client(object):
return return
if isinstance(feed[key], if isinstance(feed[key],
list) and len(feed[key]) != self.feed_tensor_len[key]: list) and len(feed[key]) != self.feed_tensor_len[key]:
raise SystemExit("The shape of feed tensor {} not match.".format( raise ValueError("The shape of feed tensor {} not match.".format(
key)) key))
if type(feed[key]).__module__ == np.__name__ and np.size(feed[ if type(feed[key]).__module__ == np.__name__ and np.size(feed[
key]) != self.feed_tensor_len[key]: key]) != self.feed_tensor_len[key]:
...@@ -304,7 +304,7 @@ class Client(object): ...@@ -304,7 +304,7 @@ class Client(object):
int_feed_names, int_shape, fetch_names, result_batch_handle, int_feed_names, int_shape, fetch_names, result_batch_handle,
self.pid) self.pid)
else: else:
raise SystemExit( raise ValueError(
"Please make sure the inputs are all in list type or all in numpy.array type" "Please make sure the inputs are all in list type or all in numpy.array type"
) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册