Skip to content

Commit

Permalink
Update run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnweiwei authored Feb 1, 2024
1 parent d3c1609 commit a6afe33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ def do_epoch_encode(model: Model, data, corpus, ids, tokenizer, batch_size, save
shuffle=False, num_workers=16)

collection, doc_code = our_encode(data_loader, model, 'doc')
doc_code = [0] * len(corpus)
# doc_code = [0] * len(corpus)

print(collection.shape)
index = build_index(collection, gpu=False)
Expand Down

0 comments on commit a6afe33

Please sign in to comment.