IvanaXu / iDeepRec

DeepRec For Me https://github.com/alibaba/DeepRec
https://deeprec.readthedocs.io/zh/latest/index.html
Apache License 2.0
3 stars 1 forks source link

part2 🍎 x0.5 same to x0.4 #41

Closed IvanaXu closed 2 years ago

IvanaXu commented 2 years ago

https://deeprec.readthedocs.io/zh/latest/DeepRec-Compile-And-Install.html

./configure serving --mkl_threadpool
bazel build //serving/processor/serving:libserving_processor.so
IvanaXu commented 2 years ago
# run.sh

#
echo 
echo "> Run"

#
echo
echo ">> STEP@1"
cd /pro/DeepRec
ls -l

# 
echo
echo ">> STEP@2"
./configure serving --mkl_threadpool

# 
echo
echo ">> STEP@3"
# bazel build -c opt --config=opt //tensorflow/tools/pip_package:build_pip_package
# bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --host_cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" -c opt --config=opt //tensorflow/tools/pip_package:build_pip_package
# bazel build  -c opt --config=opt  --config=mkl_threadpool --define build_with_mkl_dnn_v1_only=true //tensorflow/tools/pip_package:build_pip_package
bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --host_cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" -c opt --config=opt --config=mkl_threadpool --define build_with_mkl_dnn_v1_only=true //tensorflow/tools/pip_package:build_pip_package

echo
echo ">> STEP@4"
./bazel-bin/tensorflow/tools/pip_package/build_pip_package /pkg/tensorflow_pkg

# echo
# echo ">> STEP@5"
# pip uninstall tensorflow -y
# pip install /pkg/tensorflow_pkg/tensorflow-1.15.5+deeprec2206-cp36-cp36m-linux_x86_64.whl

# echo 
# echo ">> STEP@6"
# cd /pro/DeepRec/tianchi
# python run_models.py

#
echo "> Run"
IvanaXu commented 2 years ago

git clone https://github.com/tensorflow/serving

https://deeprec.readthedocs.io/zh/latest/TFServing-Compile-And-Install.html#id3

https://github.com/AlibabaPAI/serving