Skip to content

Commit 55babfc

Browse files
author
Qianqian Zhu
committed
add logger info and address jerin's comment
1 parent 7121dd4 commit 55babfc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/data/shortlist.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ BinaryShortlistGenerator::BinaryShortlistGenerator(const void *ptr_void,
251251
trgVocab_(trgVocab),
252252
srcIdx_(srcIdx),
253253
shared_(shared) {
254+
255+
LOG(info, "[data] Loading binary shortlist from buffer with check={}", check);
254256
load(ptr_void, blobSize, check);
255257
}
256258

src/data/shortlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class BinaryShortlistGenerator : public ShortlistGenerator {
217217
Ptr<const Vocab> trgVocab,
218218
size_t srcIdx = 0,
219219
size_t /*trgIdx*/ = 1,
220-
bool shared = false,
220+
bool shared = false, // Kept there for backward compatibility
221221
bool check = true);
222222

223223
~BinaryShortlistGenerator(){

0 commit comments

Comments
 (0)