File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 'include_dirs' : [
1111
1212 # Third party must be included as root as well
13- "lib/tensorflow/third_party/eigen3" ,
13+ "lib/tensorflow/bazel-tensorflow" ,
14+ "lib/tensorflow/bazel-tensorflow/tensorflow" ,
15+ "lib/tensorflow/bazel-tensorflow/third_party/eigen3" ,
16+ "lib/tensorflow/bazel-tensorflow/external/eigen_archive/eigen-eigen-fa22401ededc" ,
1417 "lib/tensorflow/third_party/gpus" ,
15- "lib/tensorflow/external" ,
18+ "lib/tensorflow/bazel-tensorflow/external" ,
19+ "lib/tensorflow/bazel-tensorflow/external/eigen_archive" ,
1620 "lib/tensorflow" ,
1721
1822 # Include NAN
Original file line number Diff line number Diff line change 1- # Compile photobuf
21cd " lib/tensorflow"
32echo " "
4- echo " = Configuring TensorFlow (GPU: $TENSORFLOW_GPU_ENABLED )"
3+ git reset --hard
4+ patch -Np1 < ../../tools/tensorflow.patch # From https://github.com/bytedeco/javacpp-presets/blob/master/tensorflow/tensorflow-master.patch
55echo " \n" | ./configure
6- echo " = Compiling TensorFlow [cc|core] "
7- bazel build --verbose_failures=1 //tensorflow/cc:cc_ops //tensorflow/core:tensorflow
6+ bazel build --verbose_failures=1 -c opt //tensorflow/cc:libtensorflow.so
7+ # bazel build --verbose_failures=2 //tensorflow/cc:cc_ops //tensorflow/core:protos_all_cc //tensorflow/core:tensorflow
88
Original file line number Diff line number Diff line change 1+ diff -ruN tensorflow-master/tensorflow/cc/BUILD tensorflow-master-patch/tensorflow/cc/BUILD
2+ --- tensorflow-master/tensorflow/cc/BUILD 2016-02-06 10:08:02.000000000 +0900
3+ +++ tensorflow-master-patch/tensorflow/cc/BUILD 2016-02-06 17:42:56.446230724 +0900
4+ @@ -75,6 +75,21 @@
5+ ],
6+ )
7+
8+ + cc_binary(
9+ + name = "libtensorflow.so",
10+ + copts = tf_copts(),
11+ + linkshared = 1,
12+ + linkopts = [
13+ + "-lpthread",
14+ + "-lm",
15+ + ],
16+ + deps = [
17+ + ":cc_ops",
18+ + "//tensorflow/core:all_kernels",
19+ + "//tensorflow/core:tensorflow",
20+ + ],
21+ + )
22+ +
23+ filegroup(
24+ name = "all_files",
25+ srcs = glob(
You can’t perform that action at this time.
0 commit comments