Skip to content

Commit

Permalink
Fix compile warnings in tokenizer.cpp (#1428)
Browse files Browse the repository at this point in the history
```
  /Users/runner/work/openvino.genai/openvino.genai/src/cpp/src/tokenizer.cpp:238:40: warning: expression result unused [-Wunused-value]
              encode("non empty string").input_ids;
```
  • Loading branch information
ilya-lavrenov authored Dec 24, 2024
1 parent d592148 commit db28c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/src/tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class Tokenizer::TokenizerImpl {
// Initialize tokenizer's cache to save time later.
if (m_tokenizer) {
// TODO CVS-150630: Empty strings sporadically can fail, therefore use nonempty string for warmup.
encode("non empty string").input_ids;
encode("non empty string");
}
if (m_detokenizer) {
decode({1, 33, 199, 42, 42});
Expand Down

0 comments on commit db28c8c

Please sign in to comment.