Skip to content

Commit 5ec16b6

Browse files
Merge pull request #3 from musikisomorphie/master
update roll
2 parents 9790d34 + d9e3090 commit 5ec16b6

File tree

6,306 files changed

+584345
-206231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,306 files changed

+584345
-206231
lines changed

.bazelrc

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ build:android_arm --fat_apk_cpu=armeabi-v7a
99
build:android_arm64 --config=android
1010
build:android_arm64 --cpu=arm64-v8a
1111
build:android_arm64 --fat_apk_cpu=arm64-v8a
12+
build:android_x86 --config=android
13+
build:android_x86 --cpu=x86
14+
build:android_x86 --fat_apk_cpu=x86
15+
build:android_x86_64 --config=android
16+
build:android_x86_64 --cpu=x86_64
17+
build:android_x86_64 --fat_apk_cpu=x86_64
1218

1319
# Sets the default Apple platform to macOS.
1420
build --apple_platform_type=macos
@@ -39,32 +45,46 @@ build:mkl_open_source_only --define=tensorflow_mkldnn_contraction_kernel=0
3945

4046
build:download_clang --crosstool_top=@local_config_download_clang//:toolchain
4147
build:download_clang --define=using_clang=true
48+
build:download_clang --action_env TF_DOWNLOAD_CLANG=1
4249
# Instruct clang to use LLD for linking.
4350
# This only works with GPU builds currently, since Bazel sets -B/usr/bin in
4451
# auto-generated CPU crosstool, forcing /usr/bin/ld.lld to be preferred over
4552
# the downloaded one.
4653
build:download_clang_use_lld --linkopt='-fuse-ld=lld'
4754

48-
build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
49-
build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true
55+
# This config refers to building with CUDA available. It does not necessarily
56+
# mean that we build CUDA op kernels.
57+
build:using_cuda --define=using_cuda=true
58+
build:using_cuda --action_env TF_NEED_CUDA=1
59+
build:using_cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
60+
61+
# This config refers to building CUDA op kernels with nvcc.
62+
build:cuda --config=using_cuda
63+
build:cuda --define=using_cuda_nvcc=true
64+
65+
# This config refers to building CUDA op kernels with clang.
66+
build:cuda_clang --config=using_cuda
67+
build:cuda_clang --define=using_cuda_clang=true
68+
build:cuda_clang --define=using_clang=true
69+
70+
build:tensorrt --action_env TF_NEED_TENSORRT=1
5071

5172
build:rocm --crosstool_top=@local_config_rocm//crosstool:toolchain
5273
build:rocm --define=using_rocm=true --define=using_rocm_hipcc=true
53-
54-
build:cuda_clang --crosstool_top=@local_config_cuda//crosstool:toolchain
55-
build:cuda_clang --define=using_cuda=true --define=using_cuda_clang=true --define=using_clang=true
74+
build:rocm --action_env TF_NEED_ROCM=1
5675

5776
build:sycl --crosstool_top=@local_config_sycl//crosstool:toolchain
58-
build:sycl --define=using_sycl=true --define=using_trisycl=false
77+
build:sycl --define=using_sycl=true
78+
build:sycl --action_env TF_NEED_OPENCL_SYCL=1
5979

60-
build:sycl_nodouble --crosstool_top=@local_config_sycl//crosstool:toolchain
61-
build:sycl_nodouble --define=using_sycl=true --cxxopt -DTENSORFLOW_SYCL_NO_DOUBLE
80+
build:sycl_nodouble --config=sycl
81+
build:sycl_nodouble --cxxopt -DTENSORFLOW_SYCL_NO_DOUBLE
6282

63-
build:sycl_asan --crosstool_top=@local_config_sycl//crosstool:toolchain
64-
build:sycl_asan --define=using_sycl=true --define=using_trisycl=false --copt -fno-omit-frame-pointer --copt -fsanitize-coverage=3 --copt -DGPR_NO_DIRECT_SYSCALLS --linkopt -fPIC --linkopt -fsanitize=address
83+
build:sycl_nodouble --config=sycl
84+
build:sycl_asan --copt -fno-omit-frame-pointer --copt -fsanitize-coverage=3 --copt -DGPR_NO_DIRECT_SYSCALLS --linkopt -fPIC --linkopt -fsanitize=address
6585

66-
build:sycl_trisycl --crosstool_top=@local_config_sycl//crosstool:toolchain
67-
build:sycl_trisycl --define=using_sycl=true --define=using_trisycl=true
86+
build:sycl_nodouble --config=sycl
87+
build:sycl_trisycl --define=using_trisycl=true
6888

6989
# Options extracted from configure script
7090
build:gdr --define=with_gdr_support=true
@@ -87,6 +107,9 @@ build --spawn_strategy=standalone
87107
build --strategy=Genrule=standalone
88108
build -c opt
89109

110+
# Make Bazel print out all options from rc files.
111+
build --announce_rc
112+
90113
# Other build flags.
91114
build --define=grpc_no_ares=true
92115

@@ -97,14 +120,36 @@ build:dynamic_kernels --copt=-DAUTOLOAD_DYNAMIC_KERNELS
97120
# Build TF with C++ 17 features.
98121
build:c++17 --cxxopt=-std=c++1z
99122
build:c++17 --cxxopt=-stdlib=libc++
100-
build:c++1z --cxxopt=-std=c++1z
101-
build:c++1z --cxxopt=-stdlib=libc++
123+
build:c++1z --config=c++17
102124

103125
# Default paths for TF_SYSTEM_LIBS
104126
build --define=PREFIX=/usr
105127
build --define=LIBDIR=$(PREFIX)/lib
106128
build --define=INCLUDEDIR=$(PREFIX)/include
107129

130+
# Suppress all warning messages.
131+
build:short_logs --output_filter=DONT_MATCH_ANYTHING
132+
133+
# Options when using remote execution
134+
build:rbe --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
135+
build:rbe --auth_enabled=true
136+
build:rbe --auth_scope=https://www.googleapis.com/auth/cloud-source-tools
137+
build:rbe --define=EXECUTOR=remote
138+
build:rbe --flaky_test_attempts=3
139+
build:rbe --jobs=200
140+
build:rbe --remote_accept_cached=true
141+
build:rbe --remote_cache=remotebuildexecution.googleapis.com
142+
build:rbe --remote_executor=remotebuildexecution.googleapis.com
143+
build:rbe --remote_local_fallback=false
144+
build:rbe --remote_timeout=600
145+
build:rbe --spawn_strategy=remote
146+
build:rbe --strategy=Genrule=remote
147+
build:rbe --strategy=Closure=remote
148+
build:rbe --strategy=Javac=remote
149+
build:rbe --strategy=TestRunner=remote
150+
build:rbe --tls_enabled
151+
test:rbe --test_env=USER=anon
152+
108153
# Default options should come above this line
109154

110155
# Options from ./configure

.github/ISSUE_TEMPLATE/00-bug-performance-issue.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ about: Use this template for reporting a bug or a performance issue.
1818
- CUDA/cuDNN version:
1919
- GPU model and memory:
2020

21-
22-
You can collect some of this information using our environment capture [script](https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh)
23-
You can also obtain the TensorFlow version with
24-
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
21+
You can collect some of this information using our environment capture
22+
[script](https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh)
23+
You can also obtain the TensorFlow version with: 1. TF 1.0: `python -c "import
24+
tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"` 2. TF 2.0: `python -c
25+
"import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"`
2526

2627
**Describe the current behavior**
2728

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,55 @@
11
---
22
name: Documentation Issue
3-
about: Use this template for documentation related issues
3+
about: Use this template for documentation related
4+
labels: 'type:docs'
45

56
---
67

7-
<em>Please make sure that this is a documentation issue. As per our [GitHub Policy](https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md), we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:doc_template</em>
8+
Thank you for submitting a TensorFlow documentation issue. Per our GitHub
9+
policy, we only address code/doc bugs, performance issues, feature requests, and
10+
build/installation issues on GitHub.
811

12+
The TensorFlow docs are open source! To get involved, read the documentation
13+
contributor guide: https://www.tensorflow.org/community/contribute/docs
914

10-
**System information**
11-
- TensorFlow version:
12-
- Doc Link:
15+
## URL(s) with the issue:
1316

17+
Please provide a link to the documentation entry, for example:
18+
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/MyMethod
1419

15-
**Describe the documentation issue**
20+
## Description of issue (what needs changing):
1621

17-
**We welcome contributions by users. Will you be able to update submit a PR (use the [doc style guide](https://www.tensorflow.org/community/documentation)) to fix the doc Issue?**
22+
### Clear description
23+
24+
For example, why should someone use this method? How is it useful?
25+
26+
### Correct links
27+
28+
Is the link to the source code correct?
29+
30+
### Parameters defined
31+
32+
Are all parameters defined and formatted correctly?
33+
34+
### Returns defined
35+
36+
Are return values defined?
37+
38+
### Raises listed and defined
39+
40+
Are the errors defined? For example,
41+
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/feature_column/categorical_column_with_vocabulary_file#raises
42+
43+
### Usage example
44+
45+
Is there a usage example?
46+
47+
### Request visuals, if applicable
48+
49+
Are there currently visuals? If not, will it clarify the content?
50+
51+
### Submit a pull request?
52+
53+
Are you planning to also submit a pull request to fix the issue? See the docs
54+
contributor guide: https://www.tensorflow.org/community/contribute/docs and the
55+
docs style guide: https://www.tensorflow.org/community/contribute/docs_style

.gitignore

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,8 @@ tensorflow/contrib/cmake/_build/
2020
[Bb]uild/
2121
/tensorflow/core/util/version_info.cc
2222
/tensorflow/python/framework/fast_tensor_util.cpp
23-
Pods
24-
Podfile.lock
25-
*.pbxproj
26-
*.xcworkspacedata
27-
/*.podspec
28-
/tensorflow/lite/experimental/objc/BUILD
29-
/tensorflow/lite/experimental/swift/BUILD
30-
/tensorflow/lite/examples/ios/simple/data/*.txt
31-
/tensorflow/lite/examples/ios/simple/data/*.tflite
3223
/tensorflow/lite/gen/**
3324
/tensorflow/lite/tools/make/downloads/**
34-
xcuserdata/**
3525
/api_init_files_list.txt
3626
/estimator_api_init_files_list.txt
3727
*.whl
@@ -42,3 +32,14 @@ xcuserdata/**
4232
*.iml
4333
local.properties
4434
gradleBuild
35+
36+
# iOS
37+
*.pbxproj
38+
*.xcworkspace
39+
/*.podspec
40+
/tensorflow/lite/**/[ios|objc|swift]*/BUILD
41+
/tensorflow/lite/examples/ios/simple/data/*.tflite
42+
/tensorflow/lite/examples/ios/simple/data/*.txt
43+
Podfile.lock
44+
Pods
45+
xcuserdata

CODEOWNERS

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Where component owners are known, add them here.
22

3+
/tensorflow/c/eager @jaingurav @alextp
4+
/tensorflow/core/common_runtime/eager @jaingaurav @alextp
35
/tenosrflow/core/debug @caisq
46
/tensorflow/core/nccl/ @azaks2 @chsigg
57
/tensorflow/core/platform/windows/ @mrry
68
/tensorflow/core/platform/s3 @yongtang
7-
/tensorflow/go @asimshankar
8-
/tensorflow/java/ @asimshankar
99
/tensorflow/python/debug @caisq
10+
/tensorflow/python/eager @jaingurav @alextp
1011
/tensorflow/python/tools/api/generator/ @annarev
1112
/tensorflow/tensorboard/ @jart
1213
/tensorflow/tools/docs/ @markdaoust
@@ -25,7 +26,7 @@
2526
/tensorflow/contrib/data/ @mrry
2627
/tensorflow/tensorflow/contrib/distribute @joshl @priyag @sourabhbajaj @frankchn
2728
/tensorflow/contrib/distributions/ @jvdillon @langmore @rsepassi
28-
/tensorflow/contrib/eager @alextp @asimshankar
29+
/tensorflow/contrib/eager @jaingurav @alextp
2930
/tensorflow/contrib/factorization/ @agarwal-ashish @xavigonzalvo
3031
/tensorflow/contrib/ffmpeg/ @fredbertsch
3132
/tensorflow/contrib/framework/ @ebrevdo

CONTRIBUTING.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ working on getting your pull request submitted to our internal repository. After
3838
the change has been submitted internally, your pull request will be merged
3939
automatically on GitHub.
4040

41-
If you want to contribute but you're not sure where to start, take a look at the
41+
If you want to contribute, start working through the TensorFlow codebase,
42+
navigate to the
43+
[Github "issues" tab](https://github.com/tensorflow/tensorflow/issues) and start
44+
looking through interesting issues. If you are not sure of where to start, then
45+
start by trying one of the smaller/easier issues here i.e.
46+
[issues with the "good first issue" label](https://github.com/tensorflow/tensorflow/labels/good%20first%20issue)
47+
and then take a look at the
4248
[issues with the "contributions welcome" label](https://github.com/tensorflow/tensorflow/labels/stat%3Acontributions%20welcome).
4349
These are issues that we believe are particularly well suited for outside
4450
contributions, often because we probably won't get to them right now. If you
@@ -157,16 +163,16 @@ There are two ways to run TensorFlow unit tests.
157163
1. Using tools and libraries installed directly on your system.
158164

159165
Refer to the
160-
[CPU-only developer Dockerfile](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/docker/Dockerfile.devel)
166+
[CPU-only developer Dockerfile](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/dockerfiles/dockerfiles/devel-cpu.Dockerfile)
161167
and
162-
[GPU developer Dockerfile](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/docker/Dockerfile.devel-gpu)
168+
[GPU developer Dockerfile](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/dockerfiles/dockerfiles/devel-gpu.Dockerfile)
163169
for the required packages. Alternatively, use the said
164170
[Docker images](https://hub.docker.com/r/tensorflow/tensorflow/tags/), e.g.,
165-
`tensorflow/tensorflow:nightly-devel` and
166-
`tensorflow/tensorflow:nightly-devel-gpu` for development to avoid
167-
installing the packages directly on your system (in which case remember to
168-
change directory from `/root` to `/tensorflow` once you get into the running
169-
container so `bazel` can find the `tensorflow` workspace).
171+
`tensorflow/tensorflow:devel` and `tensorflow/tensorflow:devel-gpu` for
172+
development to avoid installing the packages directly on your system (in
173+
which case remember to change directory from `/root` to `/tensorflow` once
174+
you get into the running container so `bazel` can find the `tensorflow`
175+
workspace).
170176

171177
Once you have the packages installed, you can run a specific unit test in
172178
bazel by doing as follows:

ISSUES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ out. 3. The issue should be related to the repo it is created in.
55

66
**Here's why we have this policy:** We want to focus on the work that benefits
77
the whole community, e.g., fixing bugs and adding features. Individual support
8-
should be seeked on StackOverflow or other non-GitHub channels. It helps us to
8+
should be sought on Stack Overflow or other non-GitHub channels. It helps us to
99
address bugs and feature requests in a timely manner.

ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
3232
You can obtain the TensorFlow version with:
3333

3434
```bash
35-
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
35+
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
3636
```
3737

3838
### Describe the problem

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2018 The TensorFlow Authors. All rights reserved.
1+
Copyright 2019 The TensorFlow Authors. All rights reserved.
22

33
Apache License
44
Version 2.0, January 2004
@@ -188,7 +188,7 @@ Copyright 2018 The TensorFlow Authors. All rights reserved.
188188
same "printed page" as the copyright notice for easier
189189
identification within third-party archives.
190190

191-
Copyright 2017, The TensorFlow Authors.
191+
Copyright [yyyy] [name of copyright owner]
192192

193193
Licensed under the Apache License, Version 2.0 (the "License");
194194
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)