* add faster transformer * add README * add fp16 * add big config * delete temp time record * improve performance * vocab_size * add decoding sample config * add desription for variable in op.cc * add clang format * add reader description * update comments * process format and rm useless import * comments * add decription * undo useless change * update load * update according to comments * ulter * update readme * add more info in readme * update readme * gpu:0 -> gpu
16 lines
361 B
Bash
Executable File
16 lines
361 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
readonly VERSION="3.8"
|
|
|
|
version=$(clang-format -version)
|
|
|
|
if ! [[ $version == *"$VERSION"* ]]; then
|
|
echo "clang-format version check failed."
|
|
echo "a version contains '$VERSION' is needed, but get '$version'"
|
|
echo "you can install the right version, and make an soft-link to '\$PATH' env"
|
|
exit -1
|
|
fi
|
|
|
|
clang-format $@
|