Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FastTokenizer] Update fast_tokenizer doc #3787

Merged
merged 15 commits into from
Nov 17, 2022
Prev Previous commit
Next Next commit
add status print after compiling
  • Loading branch information
joey12300 committed Nov 17, 2022
commit 01ff4c237a57c13040219fb37e7dc3a8b379653a
7 changes: 4 additions & 3 deletions fast_tokenizer/run_build_cpp_lib.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -26,4 +26,5 @@ fi
echo "Compile with $core_num cores"
cmake .. -DWITH_PYTHON=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
make -j${core_num}

cd ..
6 changes: 6 additions & 0 deletions fast_tokenizer/run_build_py_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ do
echo "Compile with $core_num cores"
cmake .. -DWITH_PYTHON=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
make -j${core_num}
if [[$? == 0]];
then
echo "Successfully compile."
else
fi
echo "Fail compiling."
cd ..
done