5 Star 6 Fork 6

Gitee 极速下载 / DELTA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/didi/delta
克隆/下载
faq.md 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
Hui Zhang 提交于 2019-10-23 10:19 . fix doc and install for 2.x

FAQ

Install

  1. How to speed up the installation?

If you are a user from mainland China, you can use the comments code in tools/install/install-delta.sh.

# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
# conda config --set show_channel_urls yes
# pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  1. CondaValueError: prefix already exists: ../miniconda3/envs/delta-py3.6-tf2.0.0 or ERROR: unknown command "config"

Please update your conda by:

conda update -n base -c defaults conda
  1. Custom operator error: tensorflow.python.framework.errors_impl.NotFoundError: /../delta/delta/layers/ops/x_ops.so: undefined symbol: _ZN10tensorflow8str_util9LowercaseEN4absl11string_viewE

This error always raise when you use the tensorflow installed by conda instead of pip. Conda use more high level gcc than pip dose to compile tensorflow. In this case, compilation of custom op with g++ 4.8 may cause this error.

You can use conda install -c conda-forge cxx-compiler to update the g++ version under your conda env.

then, compile custom op again:

pushd delta/layers/ops/
./build.sh delta
popd
  1. Segmentation fault. 0x00007fff48e930d4 in tensorflow::shape_inference::UnchangedShape(tensorflow::shape_inference::InferenceContext*) ()

This error always raise when you use the tensorflow installed by pip instead of conda. The pip is compiled by g++ 4.8. In this case, you need to install g++ 4.8 on your system and re-compile your custom op again.

The error no.3 and no.4 are similar questions. The principle is to keep the g++ version for tensorflow compilation and custom compilation same. You need to upgrade or downgrade your g++ according to the cases.

Python
1
https://gitee.com/mirrors/DELTA.git
git@gitee.com:mirrors/DELTA.git
mirrors
DELTA
DELTA
master

搜索帮助