Skip to content

Commit feef76e

Browse files
authored
[WINDOWS] Fix windows build (#1602)
This PR fixes the windows build.
1 parent 4a3797a commit feef76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/tokenizers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ std::string TokenizerObj::Decode(const std::vector<int32_t>& token_ids) const {
3535
}
3636

3737
Tokenizer Tokenizer::FromPath(const String& _path) {
38-
std::filesystem::path path(_path);
38+
std::filesystem::path path(_path.operator std::string());
3939
std::filesystem::path sentencepiece;
4040
std::filesystem::path huggingface;
4141
std::filesystem::path rwkvworld;

0 commit comments

Comments
 (0)