Skip to content

Commit 0c45f4f

Browse files
authored
Merge pull request #1 from tensorflow/master
Merge upstream changes.
2 parents 9cf868e + 063c51d commit 0c45f4f

File tree

11,543 files changed

+916765
-490530
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,543 files changed

+916765
-490530
lines changed

.bazelrc

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Android configs. Bazel needs to have --cpu and --fat_apk_cpu both set to the
2+
# target CPU to build transient dependencies correctly. See
3+
# https://docs.bazel.build/versions/master/user-manual.html#flag--fat_apk_cpu
4+
build:android --crosstool_top=//external:android/crosstool
5+
build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
6+
build:android_arm --config=android
7+
build:android_arm --cpu=armeabi-v7a
8+
build:android_arm --fat_apk_cpu=armeabi-v7a
9+
build:android_arm64 --config=android
10+
build:android_arm64 --cpu=arm64-v8a
11+
build:android_arm64 --fat_apk_cpu=arm64-v8a
12+
13+
# Config to use a mostly-static build and disable modular op registration
14+
# support (this will revert to loading TensorFlow with RTLD_GLOBAL in Python).
15+
# By default, TensorFlow will build with a dependence on
16+
# //tensorflow:libtensorflow_framework.so.
17+
build:monolithic --define framework_shared_object=false
18+
19+
# For projects which use TensorFlow as part of a Bazel build process, putting
20+
# nothing in a bazelrc will default to a monolithic build. The following line
21+
# opts in to modular op registration support by default.
22+
build --define framework_shared_object=true
23+
24+
# Please note that MKL on MacOS or windows is still not supported.
25+
# If you would like to use a local MKL instead of downloading, please set the
26+
# environment variable "TF_MKL_ROOT" every time before build.
27+
build:mkl --define=build_with_mkl=true --define=enable_mkl=true
28+
build:mkl --define=tensorflow_mkldnn_contraction_kernel=0
29+
build:mkl -c opt
30+
31+
# This config option is used to enable MKL-DNN open source library only,
32+
# without depending on MKL binary version.
33+
build:mkl_open_source_only --define=build_with_mkl_dnn_only=true
34+
build:mkl_open_source_only --define=build_with_mkl=true --define=enable_mkl=true
35+
build:mkl_open_source_only --define=tensorflow_mkldnn_contraction_kernel=0
36+
37+
build:download_clang --crosstool_top=@local_config_download_clang//:toolchain
38+
build:download_clang --define=using_clang=true
39+
# Instruct clang to use LLD for linking.
40+
# This only works with GPU builds currently, since Bazel sets -B/usr/bin in
41+
# auto-generated CPU crosstool, forcing /usr/bin/ld.lld to be preferred over
42+
# the downloaded one.
43+
build:download_clang_use_lld --linkopt='-fuse-ld=lld'
44+
45+
build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
46+
build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true
47+
48+
build:rocm --crosstool_top=@local_config_rocm//crosstool:toolchain
49+
build:rocm --define=using_rocm=true --define=using_rocm_hipcc=true
50+
51+
build:cuda_clang --crosstool_top=@local_config_cuda//crosstool:toolchain
52+
build:cuda_clang --define=using_cuda=true --define=using_cuda_clang=true --define=using_clang=true
53+
54+
build:sycl --crosstool_top=@local_config_sycl//crosstool:toolchain
55+
build:sycl --define=using_sycl=true --define=using_trisycl=false
56+
57+
build:sycl_nodouble --crosstool_top=@local_config_sycl//crosstool:toolchain
58+
build:sycl_nodouble --define=using_sycl=true --cxxopt -DTENSORFLOW_SYCL_NO_DOUBLE
59+
60+
build:sycl_asan --crosstool_top=@local_config_sycl//crosstool:toolchain
61+
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
62+
63+
build:sycl_trisycl --crosstool_top=@local_config_sycl//crosstool:toolchain
64+
build:sycl_trisycl --define=using_sycl=true --define=using_trisycl=true
65+
66+
# Options extracted from configure script
67+
build:gdr --define=with_gdr_support=true
68+
build:ngraph --define=with_ngraph_support=true
69+
build:verbs --define=with_verbs_support=true
70+
71+
# Options to disable default on features
72+
build:noaws --define=no_aws_support=true
73+
build:nogcp --define=no_gcp_support=true
74+
build:nohdfs --define=no_hdfs_support=true
75+
build:nokafka --define=no_kafka_support=true
76+
build:noignite --define=no_ignite_support=true
77+
build:nonccl --define=no_nccl_support=true
78+
79+
build --define=use_fast_cpp_protos=true
80+
build --define=allow_oversize_protos=true
81+
82+
build --spawn_strategy=standalone
83+
build --strategy=Genrule=standalone
84+
build -c opt
85+
86+
# Other build flags.
87+
build --define=grpc_no_ares=true
88+
89+
# Modular TF build options
90+
build:dynamic_kernels --define=dynamic_loaded_kernels=true
91+
build:dynamic_kernels --copt=-DAUTOLOAD_DYNAMIC_KERNELS
92+
93+
# Build TF with C++ 17 features.
94+
build:c++17 --cxxopt=-std=c++1z
95+
build:c++17 --cxxopt=-stdlib=libc++
96+
build:c++1z --cxxopt=-std=c++1z
97+
build:c++1z --cxxopt=-stdlib=libc++
98+
99+
# Default paths for TF_SYSTEM_LIBS
100+
build --define=PREFIX=/usr
101+
build --define=LIBDIR=$(PREFIX)/lib
102+
build --define=INCLUDEDIR=$(PREFIX)/include
103+
104+
# Default options should come above this line
105+
106+
# Options from ./configure
107+
try-import %workspace%/.tf_configure.bazelrc
108+
109+
# Put user-specific options in .bazelrc.user
110+
try-import %workspace%/.bazelrc.user
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug/Performance Issue
3+
about: Use this template for reporting a bug or a performance issue.
4+
5+
---
6+
7+
<em>Please make sure that this is a bug. 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:bug_template</em>
8+
9+
**System information**
10+
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
11+
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
12+
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
13+
- TensorFlow installed from (source or binary):
14+
- TensorFlow version (use command below):
15+
- Python version:
16+
- Bazel version (if compiling from source):
17+
- GCC/Compiler version (if compiling from source):
18+
- CUDA/cuDNN version:
19+
- GPU model and memory:
20+
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)"
25+
26+
**Describe the current behavior**
27+
28+
**Describe the expected behavior**
29+
30+
**Code to reproduce the issue**
31+
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
32+
33+
**Other info / logs**
34+
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.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Build/Installation Issue
3+
about: Use this template for build/installation issues
4+
5+
---
6+
7+
<em>Please make sure that this is a build/installation 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:build_template</em>
8+
9+
**System information**
10+
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
11+
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
12+
- TensorFlow installed from (source or binary):
13+
- TensorFlow version:
14+
- Python version:
15+
- Installed using virtualenv? pip? conda?:
16+
- Bazel version (if compiling from source):
17+
- GCC/Compiler version (if compiling from source):
18+
- CUDA/cuDNN version:
19+
- GPU model and memory:
20+
21+
22+
23+
**Describe the problem**
24+
25+
**Provide the exact sequence of commands / steps that you executed before running into the problem**
26+
27+
28+
**Any other info / logs**
29+
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.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Documentation Issue
3+
about: Use this template for documentation related issues
4+
5+
---
6+
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+
9+
10+
**System information**
11+
- TensorFlow version:
12+
- Doc Link:
13+
14+
15+
**Describe the documentation issue**
16+
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?**
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature Request
3+
about: Use this template for raising a feature request
4+
5+
---
6+
7+
<em>Please make sure that this is a feature request. 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:feature_template</em>
8+
9+
10+
**System information**
11+
- TensorFlow version (you are using):
12+
- Are you willing to contribute it (Yes/No):
13+
14+
15+
16+
**Describe the feature and the current behavior/state.**
17+
18+
**Will this change the current api? How?**
19+
20+
**Who will benefit with this feature?**
21+
22+
**Any Other info.**
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: TensorFlow Lite Op Request
3+
about: Use this template for reporting ops you are using or missing.
4+
5+
---
6+
7+
8+
**System information**
9+
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
10+
- TensorFlow installed from (source or binary):
11+
- TensorFlow version (or github SHA if from source):
12+
13+
14+
**Provide the text output from tflite_convert**
15+
16+
```
17+
# Copy and paste here
18+
```
19+
20+
Also, please include a link to a GraphDef or the model if possible.
21+
22+
**Any other info / logs**
23+
24+
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.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Other Issues
3+
about: Use this template for any other non-support related issues
4+
5+
---
6+
7+
This template is for miscellaneous issues not covered by the other issue categories.
8+
9+
For questions on how to work with TensorFlow, or support for problems that are not verified bugs in TensorFlow, please go to [StackOverflow](https://stackoverflow.com/questions/tagged/tensorflow).
10+
11+
If you are reporting a vulnerability, please use the [dedicated reporting process](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md).
12+
13+
For high-level discussions about TensorFlow, please post to discuss@tensorflow.org, for questions about the development or internal workings of TensorFlow, or if you would like to know how to contribute to TensorFlow, please post to developers@tensorflow.org.

.gitignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DS_Store
22
.ipynb_checkpoints
33
node_modules
4-
/.bazelrc
4+
/.bazelrc.user
55
/.tf_configure.bazelrc
66
/bazel-*
77
/bazel_pip
@@ -14,6 +14,7 @@ __pycache__
1414
*.swp
1515
.vscode/
1616
cmake_build/
17+
tensorflow/contrib/cmake/_build/
1718
.idea/**
1819
/build/
1920
[Bb]uild/
@@ -23,13 +24,14 @@ Pods
2324
Podfile.lock
2425
*.pbxproj
2526
*.xcworkspacedata
26-
/tensorflow/contrib/lite/downloads/**
27-
/tensorflow/contrib/lite/gen/**
28-
/tensorflow/contrib/lite/examples/ios/simple/data/*.txt
29-
/tensorflow/contrib/lite/examples/ios/simple/data/*.tflite
27+
/tensorflow/lite/tools/make/downloads/**
28+
/tensorflow/lite/gen/**
29+
/tensorflow/lite/examples/ios/simple/data/*.txt
30+
/tensorflow/lite/examples/ios/simple/data/*.tflite
3031
xcuserdata/**
3132
/api_init_files_list.txt
3233
/estimator_api_init_files_list.txt
34+
*.whl
3335

3436
# Android
3537
.gradle

BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ exports_files(
22
[
33
"LICENSE",
44
"ACKNOWLEDGEMENTS",
5+
"configure",
6+
"configure.py",
57
],
68
)

0 commit comments

Comments
 (0)