Skip to content

Commit 430bf9e

Browse files
authored
Added .bazelversion to be consitent with the TF build process (tensorflow#340)
1 parent b38cc04 commit 430bf9e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CONTRIBUTING.md

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ configuration script (`./configure`), and copy the resulting
4444
`.tf_configure.bazelrc` to `tensorflow-core-api`. This overrides the default options, and you can add to it manually (i.e. adding `build --copt="-g"`
4545
to build with debugging info).
4646

47+
The `tensorflow-core/tensorflow-core-api/.bazelversion` file must be kept in sync with `@org_tensorflow/.bazel_version`.
48+
This allows using [Bazelisk](https://github.com/bazelbuild/bazelisk) which runs the bazel version given in .bazelversion instead of having to
49+
physically reinstall a specific `bazel` version each time the TensorFlow version changes.
50+
51+
4752
### GPU Support
4853

4954
Currently, due to build time constraints, the GPU binaries only support compute capacities 3.5 and 7.0.
@@ -127,6 +132,7 @@ bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/libtensorflow_cc.so --ou
127132

128133
(called in `tensorflow-core-api`).
129134

135+
130136
## Adding Gradients
131137

132138
In some cases, a op supported by Tensorflow Java will not have a gradient defined, resulting in errors like this:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.7.2

0 commit comments

Comments
 (0)