Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(request_generator): send index request in index mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Aug 13, 2019
1 parent 64163cb commit fd76aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/client/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, args):
resp = list(stub.StreamCall(RequestGenerator.train(all_bytes, args.batch_size)))[-1]
print(resp)
elif args.mode == 'index':
resp = list(stub.StreamCall(RequestGenerator.train(all_bytes, args.batch_size)))[-1]
resp = list(stub.StreamCall(RequestGenerator.index(all_bytes, args.batch_size)))[-1]
print(resp)
elif args.mode == 'query':
for idx, q in enumerate(all_bytes):
Expand Down

0 comments on commit fd76aa7

Please sign in to comment.