Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit e5635fd

Browse files
authored
Update sentencepiece.cpp
add `set -x` to debug output to get command with tokenizer path echoed
1 parent f7b3df6 commit e5635fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokenizer/sentencepiece.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void SPTokenizer::load(const std::string& tokenizer_path) {
4141
const auto status = _processor->Load(tokenizer_path);
4242
if (!status.ok()) {
4343
// Execute 'ls -al' on the tokenizer path
44-
std::string command = "ls -al " + tokenizer_path;
44+
std::string command = "set -x ; ls -al " + tokenizer_path;
4545
int ret = system(command.c_str());
4646
if (ret != 0) {
4747
fprintf(stderr, "Failed to execute 'ls -al' on path: %s\n", tokenizer_path.c_str());

0 commit comments

Comments
 (0)