Skip to content

Commit

Permalink
test: add unit test for quantization
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed May 1, 2020
1 parent ed6e54c commit eaa43df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def random_docs():
d = jina_pb2.Document()
for k in range(chunks_per_doc):
c = d.chunks.add()
c.embedding.CopyFrom(array2pb(np.random.random([embed_dim])))
# force sending at non-quantization
c.embedding.CopyFrom(array2pb(np.random.random([embed_dim]), quantize=None))
c.chunk_id = c_id
c.doc_id = j
c_id += 1
Expand Down

0 comments on commit eaa43df

Please sign in to comment.