From ab4143d1f11a348b115cffcd5ffd01fc7095923c Mon Sep 17 00:00:00 2001 From: felix Date: Wed, 25 Sep 2019 19:28:36 +0800 Subject: [PATCH] fix mis-matched raw_data type --- gnes/proto/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnes/proto/__init__.py b/gnes/proto/__init__.py index d0ef6a72..2972a924 100644 --- a/gnes/proto/__init__.py +++ b/gnes/proto/__init__.py @@ -223,7 +223,7 @@ def fill_raw_bytes_to_msg(msg: 'gnes_pb2.Message', msg_data: List[bytes]): docs = msg.request.train.docs or msg.request.index.docs or [msg.request.search.query] for d in docs: if doc_bytes and doc_bytes[d_idx]: - if doc_byte_type == 'raw': + if doc_byte_type == 'raw_bytes': d.raw_bytes = doc_bytes[d_idx] d_idx += 1 elif doc_byte_type == 'raw_image':