tips:keras

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:keras [2019/12/10 20:31] – [tensorflow] scipiotips:keras [2019/12/17 15:48] (current) – [tensorflow] scipio
Line 6: Line 6:
  
 <code> <code>
-pip install -U --user pip six numpy wheel setuptools mock +pip install -U pip six numpy wheel setuptools mock 
-pip install -U --user keras_applications --no-deps +pip install -U keras_applications --no-deps 
-pip install -U --user keras_preprocessing --no-deps+pip install -U keras_preprocessing --no-deps
  
 +# tf 2
 git clone https://github.com/tensorflow/tensorflow.git git clone https://github.com/tensorflow/tensorflow.git
 cd tensorflow cd tensorflow
 +
 +# tf 1.15
 +wget https://github.com/tensorflow/tensorflow/archive/v1.15.0.tar.gz
 +tar zxvf v1.15.0.tar.gz
 </code> </code>
  
 +only for tf 2
 <code> <code>
 wget https://git.archlinux.org/svntogit/community.git/plain/trunk/Add-grpc-fix-for-gettid.patch\?h\=packages/tensorflow -O Add-grpc-fix-for-gettid.patch wget https://git.archlinux.org/svntogit/community.git/plain/trunk/Add-grpc-fix-for-gettid.patch\?h\=packages/tensorflow -O Add-grpc-fix-for-gettid.patch
Line 19: Line 25:
 </code> </code>
  
-edit configure.py and modify  _TF_MAX_BAZEL_VERSION = '1.2.1' 
 <code> <code>
 +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
 <code> <code>
-bazel \+bazel build //tensorflow/tools/pip_package:build_pip_package 
 + 
 +# ??? 
 +bazelisk \
     build --config=opt \     build --config=opt \
       //tensorflow:libtensorflow.so \       //tensorflow:libtensorflow.so \
  • tips/keras.1576006267.txt.gz
  • Last modified: 2019/12/10 20:31
  • by scipio