This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:keras [2019/12/10 20:31] – [tensorflow] scipio | tips:keras [2019/12/17 15:48] (current) – [tensorflow] scipio | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| < | < | ||
| - | pip install -U --user | + | pip install -U pip six numpy wheel setuptools mock |
| - | pip install -U --user | + | pip install -U keras_applications --no-deps |
| - | pip install -U --user | + | pip install -U keras_preprocessing --no-deps |
| + | # tf 2 | ||
| git clone https:// | git clone https:// | ||
| cd tensorflow | cd tensorflow | ||
| + | |||
| + | # tf 1.15 | ||
| + | wget https:// | ||
| + | tar zxvf v1.15.0.tar.gz | ||
| </ | </ | ||
| + | only for tf 2 | ||
| < | < | ||
| wget https:// | wget https:// | ||
| Line 19: | Line 25: | ||
| </ | </ | ||
| - | edit configure.py and modify | ||
| < | < | ||
| + | export TF_IGNORE_MAX_BAZEL_VERSION=1 | ||
| export TF_NEED_CUDA=1 | export TF_NEED_CUDA=1 | ||
| ./configure | ./configure | ||
| Line 55: | Line 61: | ||
| compile | compile | ||
| < | < | ||
| - | bazel \ | + | bazel build // |
| + | |||
| + | # ??? | ||
| + | bazelisk | ||
| build --config=opt \ | build --config=opt \ | ||
| // | // | ||