Skip to content

Commit

Permalink
fix the build issues on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl committed Aug 19, 2024
1 parent 7361d69 commit 1afbb84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operators/tokenizer/bpe_kernels.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ OrtStatusPtr KernelBpeTokenizer::OnModelAttach(const OrtApi& api, const OrtKerne
return {};
}

extTokenId_t KernelBpeTokenizer::GetTokenId(const std::string& token) const {
uint32_t KernelBpeTokenizer::GetTokenId(const std::string& token) const {
auto id = bbpe_tokenizer_->GetAddedTokenId(token);
if (id != bpe::kInvalidTokenId) {
return id;
Expand Down
2 changes: 1 addition & 1 deletion operators/tokenizer/bpe_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct KernelBpeTokenizer {
std::optional<ortc::Tensor<int64_t>*> offset_mapping) const;

const std::string& ModelName() const { return model_name_; }
extTokenId_t GetTokenId(const std::string& token) const;
uint32_t GetTokenId(const std::string& token) const;

protected:
using OffsetMappingType = std::list<std::pair<size_t, size_t>>;
Expand Down

0 comments on commit 1afbb84

Please sign in to comment.