This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:keras [2019/12/09 21:00] – [tensorflow] scipio | tips:keras [2019/12/17 15:48] (current) – [tensorflow] scipio | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| < | < | ||
| - | git clone ... | + | pip install -U pip six numpy wheel setuptools mock |
| + | pip install -U keras_applications --no-deps | ||
| + | pip install -U keras_preprocessing --no-deps | ||
| + | |||
| + | # tf 2 | ||
| + | git clone https:// | ||
| + | cd tensorflow | ||
| + | |||
| + | # tf 1.15 | ||
| + | wget https:// | ||
| + | tar zxvf v1.15.0.tar.gz | ||
| + | </ | ||
| + | |||
| + | only for tf 2 | ||
| + | < | ||
| + | wget https:// | ||
| + | patch -Np1 -i Add-grpc-fix-for-gettid.patch | ||
| </ | </ | ||
| - | edit configure.py and modify | ||
| < | < | ||
| + | export TF_IGNORE_MAX_BAZEL_VERSION=1 | ||
| + | export TF_NEED_CUDA=1 | ||
| ./configure | ./configure | ||
| + | </ | ||
| + | |||
| + | for atf 1.15 | ||
| + | < | ||
| + | echo 0.26.1 > .bazelversion | ||
| </ | </ | ||
| Line 39: | Line 61: | ||
| compile | compile | ||
| < | < | ||
| - | bazelisk build // | + | bazel build // |
| + | |||
| + | # ??? | ||
| + | bazelisk | ||
| + | | ||
| + | // | ||
| + | // | ||
| + | // | ||
| + | | ||
| ./ | ./ | ||
| pip install / | pip install / | ||