Skip to content

Commit 4e20264

Browse files
authored
Merge pull request #12 from tensorflow/master
Merge changes from tensorflow:master
2 parents 285319f + dc57189 commit 4e20264

File tree

11,725 files changed

+992638
-368063
lines changed

Some content is hidden

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

11,725 files changed

+992638
-368063
lines changed

.bazelrc

Lines changed: 229 additions & 39 deletions
Large diffs are not rendered by default.

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
3.1.0

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

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,30 @@ labels: 'type:bug'
1010
we only address code/doc bugs, performance issues, feature requests and
1111
build/installation issues on GitHub. tag:bug_template</em>
1212

13-
**System information**
14-
- Have I written custom code (as opposed to using a stock
15-
example script provided in TensorFlow):
16-
- OS Platform and Distribution (e.g.,
17-
Linux Ubuntu 16.04):
18-
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if
19-
the issue happens on mobile device:
20-
- TensorFlow installed from (source or
21-
binary): - TensorFlow version (use command below):
22-
- Python version: - Bazel
23-
version (if compiling from source):
24-
- GCC/Compiler version (if compiling from
25-
source):
26-
- CUDA/cuDNN version: - GPU model and memory:
13+
**System information**
14+
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
15+
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
16+
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
17+
- TensorFlow installed from (source or binary):
18+
- TensorFlow version (use command below):
19+
- Python version:
20+
- Bazel version (if compiling from source):
21+
- GCC/Compiler version (if compiling from source):
22+
- CUDA/cuDNN version:
23+
- GPU model and memory:
2724

2825
You can collect some of this information using our environment capture
2926
[script](https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh)
30-
You can also obtain the TensorFlow version with: 1. TF 1.0: `python -c "import
31-
tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"` 2. TF 2.0: `python -c
32-
"import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"`
27+
You can also obtain the TensorFlow version with:
28+
1. TF 1.0: `python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"`
29+
2. TF 2.0: `python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"`
30+
3331

3432
**Describe the current behavior**
3533

3634
**Describe the expected behavior**
3735

38-
**Standalone code to reproduce the issue**
36+
**Standalone code to reproduce the issue**
3937
Provide a reproducible test case that is the bare minimum necessary to generate
4038
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
4139

.github/ISSUE_TEMPLATE/60-tflite-converter-issue.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ state what is wrong:
3838
- Producing correct results, but the model is slower than expected (model generated from old converter)
3939

4040

41+
**RNN conversion support**
42+
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.
43+
4144
**Any other info / logs**
4245

4346
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

.github/ISSUE_TEMPLATE/80-performance-issue.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,29 @@ As per our
1111
we only address code/doc bugs, performance issues, feature requests and
1212
build/installation issues on GitHub. tag:performance_template</em>
1313

14-
**System information**
15-
- Have I written custom code (as opposed to using a stock
16-
example script provided in TensorFlow):
17-
- OS Platform and Distribution (e.g.,
18-
Linux Ubuntu 16.04):
19-
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if
20-
the issue happens on mobile device:
21-
- TensorFlow installed from (source or
22-
binary): - TensorFlow version (use command below):
23-
- Python version: - Bazel
24-
version (if compiling from source):
25-
- GCC/Compiler version (if compiling from
26-
source):
27-
- CUDA/cuDNN version: - GPU model and memory:
14+
**System information**
15+
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
16+
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
17+
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
18+
- TensorFlow installed from (source or binary):
19+
- TensorFlow version (use command below):
20+
- Python version:
21+
- Bazel version (if compiling from source):
22+
- GCC/Compiler version (if compiling from source):
23+
- CUDA/cuDNN version:
24+
- GPU model and memory:
2825

2926
You can collect some of this information using our environment capture
3027
[script](https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh)
31-
You can also obtain the TensorFlow version with: 1. TF 1.0: `python -c "import
32-
tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"` 2. TF 2.0: `python -c
33-
"import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"`
28+
You can also obtain the TensorFlow version with:
29+
1. TF 1.0: `python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"`
30+
2. TF 2.0: `python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"`
3431

3532
**Describe the current behavior**
3633

3734
**Describe the expected behavior**
3835

39-
**Standalone code to reproduce the issue**
36+
**Standalone code to reproduce the issue**
4037
Provide a reproducible test case that is the bare minimum necessary to generate
4138
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
4239

.github/bot_config.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ============================================================================
15+
#
16+
# THIS IS A GENERATED DOCKERFILE.
17+
#
18+
# This file was assembled from multiple pieces, whose use is documented
19+
# throughout. Please refer to the TensorFlow dockerfiles documentation
20+
# for more information.
21+
22+
# A list of assignees
23+
assignees:
24+
- amahendrakar
25+
- ravikyram
26+
- Saduf2019
27+
# A list of assignees for compiler folder
28+
compiler_assignees:
29+
- joker-eph
30+
# filesystem path
31+
filesystem_path:
32+
- tensorflow/c/experimental/filesystem
33+
# security path
34+
security_path:
35+
- tensorflow/security
36+
# words checklist
37+
segfault_memory:
38+
- segfault
39+
- memory leaks
40+
# assignees
41+
filesystem_security_assignee:
42+
- mihaimaruseac
43+
44+
tflite_micro_path:
45+
- tensorflow/lite/micro
46+
47+
tflite_micro_comment: >
48+
Thanks for contributing to TensorFlow Lite Micro.
49+
50+
51+
To keep this process moving along, we'd like to make sure that you have completed the items on this list:
52+
* Read the [contributing guidelines for TensorFlow Lite Micro](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/micro/CONTRIBUTING.md)
53+
* Created a [TF Lite Micro Github issue](https://github.com/tensorflow/tensorflow/issues/new?labels=comp%3Amicro&template=70-tflite-micro-issue.md)
54+
* Linked to the issue from the PR description
55+
56+
57+
We would like to have a discussion on the Github issue first to determine the best path forward, and then proceed to the PR review.
58+
59+
# Cuda Comment
60+
cuda_comment: >
61+
From the template it looks like you are installing **TensorFlow** (TF) prebuilt binaries:
62+
* For TF-GPU - See point 1
63+
* For TF-CPU - See point 2
64+
-----------------------------------------------------------------------------------------------
65+
66+
**1. Installing **TensorFlow-GPU** (TF) prebuilt binaries**
67+
68+
69+
Make sure you are using compatible TF and CUDA versions.
70+
Please refer following TF version and CUDA version compatibility table.
71+
72+
| TF | CUDA |
73+
74+
| :-------------: | :-------------: |
75+
76+
| 2.1.0 - 2.2.0 | 10.1 |
77+
78+
| 1.13.1 - 2.0 | 10.0 |
79+
80+
| 1.5.0 - 1.12.0 | 9.0 |
81+
82+
* If you have above configuration and using _**Windows**_ platform -
83+
* Try adding the CUDA, CUPTI, and cuDNN installation directories to the %PATH% environment variable.
84+
* Refer [windows setup guide](https://www.tensorflow.org/install/gpu#windows_setup).
85+
* If you have above configuration and using _**Ubuntu/Linux**_ platform -
86+
* Try adding the CUDA, CUPTI, and cuDNN installation directories to the $LD_LIBRARY_PATH environment variable.
87+
* Refer [linux setup guide](https://www.tensorflow.org/install/gpu#linux_setup).
88+
* If error still persists then, apparently your CPU model does not support AVX instruction sets.
89+
* Refer [hardware requirements](https://www.tensorflow.org/install/pip#hardware-requirements).
90+
91+
-----------------------------------------------------------------------------------------------
92+
93+
**2. Installing **TensorFlow** (TF) CPU prebuilt binaries**
94+
95+
96+
*TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets.*
97+
98+
99+
Therefore on any CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.
100+
101+
Apparently, your CPU model does not support AVX instruction sets. You can still use TensorFlow with the alternatives given below:
102+
103+
* Try Google Colab to use TensorFlow.
104+
* The easiest way to use TF will be to switch to [google colab](https://colab.sandbox.google.com/notebooks/welcome.ipynb#recent=true). You get pre-installed latest stable TF version. Also you can use ```pip install``` to install any other preferred TF version.
105+
* It has an added advantage since you can you easily switch to different hardware accelerators (cpu, gpu, tpu) as per the task.
106+
* All you need is a good internet connection and you are all set.
107+
* Try to build TF from sources by changing CPU optimization flags.
108+
109+
*Please let us know if this helps.*
110+
111+
windows_comment: >
112+
From the stack trace it looks like you are hitting windows path length limit.
113+
* Try to disable path length limit on Windows 10.
114+
* Refer [disable path length limit instructions guide.](https://mspoweruser.com/ntfs-260-character-windows-10/)
115+
116+
Please let us know if this helps.

.github/stale.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ============================================================================
15+
#
16+
# THIS IS A GENERATED DOCKERFILE.
17+
#
18+
# This file was assembled from multiple pieces, whose use is documented
19+
# throughout. Please refer to the TensorFlow dockerfiles documentation
20+
# for more information.
21+
22+
# Number of days of inactivity before an Issue or Pull Request becomes stale
23+
daysUntilStale: 7
24+
# Number of days of inactivity before a stale Issue or Pull Request is closed
25+
daysUntilClose: 7
26+
# Only issues or pull requests with all of these labels are checked if stale. Defaults to `[]` (disabled)
27+
onlyLabels:
28+
- stat:awaiting response
29+
# Comment to post when marking as stale. Set to `false` to disable
30+
markComment: >
31+
This issue has been automatically marked as stale because it has not had
32+
recent activity. It will be closed if no further activity occurs. Thank you.
33+
# Comment to post when removing the stale label. Set to `false` to disable
34+
unmarkComment: false
35+
closeComment: >
36+
Closing as stale. Please reopen if you'd like to work on this further.
37+
limitPerRun: 30
38+
# Limit to only `issues` or `pulls`
39+
only: issues

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ gradleBuild
3838
*.pbxproj
3939
*.xcworkspace
4040
/*.podspec
41+
/tensorflow/lite/**/coreml/**/BUILD
4142
/tensorflow/lite/**/ios/BUILD
4243
/tensorflow/lite/**/objc/BUILD
4344
/tensorflow/lite/**/swift/BUILD

ADOPTERS.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# TensorFlow Code of Conduct
22

3-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
4-
3+
In the interest of fostering an open and welcoming environment, we as
4+
contributors and maintainers pledge to make participation in our project and our
5+
community a harassment-free experience for everyone, regardless of age, body
6+
size, disability, ethnicity, gender identity and expression, level of
7+
experience, nationality, personal appearance, race, religion, or sexual identity
8+
and orientation.
59

610
## Our Standards
711

0 commit comments

Comments
 (0)