Skip to content

Commit

Permalink
Don't use names
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Dec 24, 2024
1 parent db82acd commit 7f6eb73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cpp/src/tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ class Tokenizer::TokenizerImpl {
infer_request_guard.get().start_async();
infer_request_guard.get().wait();
return get_copied_results(
infer_request_guard.get().get_tensor("input_ids"),
infer_request_guard.get().get_tensor("attention_mask")
infer_request_guard.get().get_output_tensor(0),
infer_request_guard.get().get_output_tensor(1)
);
}

Expand All @@ -412,8 +412,8 @@ class Tokenizer::TokenizerImpl {
infer_request_guard.get().wait();

unpadded = get_copied_results(
infer_request_guard.get().get_tensor("input_ids"),
infer_request_guard.get().get_tensor("attention_mask")
infer_request_guard.get().get_output_tensor(0),
infer_request_guard.get().get_output_tensor(1)
);
}
return pad_left(unpadded.input_ids, unpadded.attention_mask);
Expand Down

0 comments on commit 7f6eb73

Please sign in to comment.