Skip to content

Commit b573beb

Browse files
Merge pull request #6 from tensorflow/master
Stay up to date
2 parents bbe28da + 8e55a91 commit b573beb

File tree

450 files changed

+13014
-5595
lines changed

Some content is hidden

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

450 files changed

+13014
-5595
lines changed

.github/bot_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ assignees:
2121
# A list of assignees for compiler folder
2222
compiler_assignees:
2323
- joker-eph
24+
- sanjoy
2425
# filesystem path
2526
filesystem_path:
2627
- tensorflow/c/experimental/filesystem

RELEASE.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
## Breaking Changes
66

7+
* `tf.train.experimental.enable_mixed_precision_graph_rewrite` is removed, as
8+
the API only works in graph mode and is not customizable. The function is
9+
still accessible under
10+
`tf.compat.v1.mixed_precision.enable_mixed_precision_graph_rewrite`, but it is
11+
recommended to use the
12+
[Keras mixed precision API](https://www.tensorflow.org/guide/mixed_precision)
13+
instead.
714
*<DOCUMENT BREAKING CHANGES HERE>
815
*<THIS SECTION SHOULD CONTAIN API, ABI AND BEHAVIORAL BREAKING CHANGES>
916

@@ -41,12 +48,25 @@
4148
lower overall memory usage, and a cleaner API. It does not require
4249
specifying a `delete_key` and `empty_key` that cannot be inserted into
4350
the table.
51+
* Added support for specifying number of subdivisions in all reduce host
52+
collective. This parallelizes work on CPU and speeds up the collective
53+
performance. Default behavior is unchanged.
4454
* `tf.data`:
4555
* Promoting `tf.data.experimental.get_single_element` API to
4656
`tf.data.Dataset.get_single_element` and deprecating the experimental
4757
endpoint.
48-
* `tf.lite`:
49-
* Fix mean op reference quantization rounding issue.
58+
* Promoting `tf.data.experimental.group_by_window` API to
59+
`tf.data.Dataset.group_by_window` and deprecating the experimental
60+
endpoint.
61+
* Added `stop_on_empty_dataset` parameter to `sample_from_datasets` and
62+
`choose_from_datasets`. Setting `stop_on_empty_dataset=True` will stop
63+
sampling if it encounters an empty dataset. This preserves the sampling
64+
ratio throughout training. The prior behavior was to continue sampling,
65+
skipping over exhausted datasets, until all datasets are exhausted. By
66+
default, the original behavior (`stop_on_empty_dataset=False`) is
67+
preserved.
68+
* `tf.lite`:
69+
* Fix mean op reference quantization rounding issue.
5070

5171
## Thanks to our Contributors
5272

tensorflow/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,7 @@ package_group(
791791
"//learning/lib/ami/simple_ml/...",
792792
"//tensorflow/...",
793793
"//tensorflow_decision_forests/...",
794+
"//tensorflow_federated/...",
794795
"//third_party/cloud_tpu/inference_converter/...",
795796
],
796797
)

tensorflow/c/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ load("//tensorflow/core/platform:rules_cc.bzl", "cc_library")
55
load(
66
"//tensorflow:tensorflow.bzl",
77
"check_deps",
8+
"if_google",
89
"tf_cc_test",
910
"tf_copts",
1011
"tf_cuda_library",
@@ -723,6 +724,7 @@ tf_cc_test(
723724
"testdata/tf_record",
724725
"//tensorflow/c/experimental/stream_executor/test:test_pluggable_device.so",
725726
],
727+
extra_copts = if_google(["-DTENSORFLOW_NO_SHARED_OBJECTS=1"]),
726728
linkopts = select({
727729
"//tensorflow:macos": ["-headerpad_max_install_names"],
728730
"//conditions:default": [],

tensorflow/c/eager/BUILD

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ tf_cuda_cc_test(
263263
srcs = [
264264
"gradients_test.cc",
265265
],
266-
args = ["--heap_check=local"],
266+
args = ["--heap_check="],
267267
linkstatic = tf_kernel_tests_linkstatic(),
268268
tags = tf_cuda_tests_tags() + ["nomac"],
269269
deps = [
@@ -300,7 +300,7 @@ tf_cuda_cc_test(
300300
srcs = [
301301
"unified_api_test.cc",
302302
],
303-
args = ["--heap_check=local"],
303+
args = ["--heap_check="],
304304
linkstatic = tf_kernel_tests_linkstatic(),
305305
tags = tf_cuda_tests_tags() + ["no_cuda_asan"], # b/173654156
306306
deps = [
@@ -344,7 +344,7 @@ tf_cuda_cc_test(
344344
srcs = [
345345
"gradient_checker_test.cc",
346346
],
347-
args = ["--heap_check=local"],
347+
args = ["--heap_check="],
348348
linkstatic = tf_kernel_tests_linkstatic(),
349349
tags = tf_cuda_tests_tags() + [
350350
"no_cuda_asan", # b/175330074
@@ -715,7 +715,7 @@ tf_cuda_cc_test(
715715
"c_api_remote_test.cc",
716716
],
717717
# TODO(b/136478427): Figure out how to correctly shut the server down
718-
args = ["--heap_check=local"],
718+
args = ["--heap_check="],
719719
tags = [
720720
"no_windows",
721721
],
@@ -747,7 +747,7 @@ tf_cuda_cc_test(
747747
"c_api_remote_function_test.cc",
748748
],
749749
# TODO(b/136478427): Figure out how to correctly shut the server down
750-
args = ["--heap_check=local"],
750+
args = ["--heap_check="],
751751
tags = [
752752
"no_windows",
753753
],
@@ -765,7 +765,7 @@ tf_cuda_cc_test(
765765
"c_api_distributed_test.cc",
766766
],
767767
# TODO(b/136478427): Figure out how to correctly shut the server down
768-
args = ["--heap_check=local"],
768+
args = ["--heap_check="],
769769
tags = [
770770
"no_windows",
771771
"noasan", # leaks gRPC server instances
@@ -798,7 +798,7 @@ tf_cuda_cc_test(
798798
"c_api_cluster_test.cc",
799799
],
800800
# TODO(b/136478427): Figure out how to correctly shut the server down
801-
args = ["--heap_check=local"],
801+
args = ["--heap_check="],
802802
tags = [
803803
"no_windows",
804804
],
@@ -904,7 +904,7 @@ tf_cuda_cc_test(
904904
srcs = [
905905
"c_api_experimental_test.cc",
906906
],
907-
args = ["--heap_check=local"],
907+
args = ["--heap_check="],
908908
linkstatic = tf_kernel_tests_linkstatic(),
909909
tags = tf_cuda_tests_tags() + ["nomac"],
910910
deps = [
@@ -927,7 +927,7 @@ tf_cuda_cc_test(
927927
srcs = [
928928
"c_api_unified_experimental_test.cc",
929929
],
930-
args = ["--heap_check=local"],
930+
args = ["--heap_check="],
931931
linkstatic = tf_kernel_tests_linkstatic(),
932932
tags = tf_cuda_tests_tags() + ["nomac"],
933933
deps = [

tensorflow/c/eager/abstract_tensor_handle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AbstractTensorHandle : public core::RefCounted {
2929
protected:
3030
enum AbstractTensorHandleKind { kGraph, kMlir, kEager, kTfrt, kCustomDevice };
3131
explicit AbstractTensorHandle(AbstractTensorHandleKind kind) : kind_(kind) {}
32-
virtual ~AbstractTensorHandle() {}
32+
~AbstractTensorHandle() override {}
3333

3434
public:
3535
// Returns tensor dtype.

tensorflow/c/eager/c_api.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ TFE_Context* TFE_NewContext(const TFE_ContextOptions* opts, TF_Status* status) {
146146
static_cast<tensorflow::ContextDevicePlacementPolicy>(
147147
opts->device_placement_policy),
148148
opts->async, device_mgr.release(),
149-
/*device_mgr_owned*/ true, r);
149+
/*device_mgr_owned*/ true, r,
150+
/*cluster_flr=*/nullptr,
151+
/*run_eager_op_as_function=*/opts->run_eager_op_as_function);
150152
#if !defined(IS_MOBILE_PLATFORM)
151153
eager_context->SetDistributedManager(
152154
std::make_unique<tensorflow::EagerContextDistributedManager>(

tensorflow/c/eager/c_api_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ struct TFE_ContextOptions {
3434
TFE_DEVICE_PLACEMENT_SILENT};
3535
// If true, use TFRT backend
3636
bool use_tfrt = false;
37+
// Whether to run elementary eager ops wrapped in a call op.
38+
bool run_eager_op_as_function = false;
3739
};
3840

3941
#endif // TENSORFLOW_C_EAGER_C_API_INTERNAL_H_

tensorflow/c/eager/parallel_device/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ tf_cc_test(
149149
srcs = ["parallel_device_remote_test.cc"],
150150
# TODO(b/136478427): Enable global heap checking when servers shut down
151151
# cleanly.
152-
args = ["--heap_check=local"],
152+
args = ["--heap_check="],
153153
deps = [
154154
":parallel_device",
155155
":parallel_device_testlib",

tensorflow/c/experimental/gradients/BUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ tf_cuda_cc_test(
119119
srcs = [
120120
"custom_gradient_test.cc",
121121
],
122-
args = ["--heap_check=local"], # TODO(b/174752220): Remove
122+
args = ["--heap_check="], # TODO(b/174752220): Remove
123123
linkstatic = tf_kernel_tests_linkstatic(),
124124
tags = tf_cuda_tests_tags(),
125125
deps = [
@@ -176,7 +176,7 @@ tf_cuda_cc_test(
176176
srcs = [
177177
"nn_grad_test.cc",
178178
],
179-
args = ["--heap_check=local"], # TODO(b/174752220): Remove
179+
args = ["--heap_check="], # TODO(b/174752220): Remove
180180
linkstatic = tf_kernel_tests_linkstatic(),
181181
tags = tf_cuda_tests_tags() + ["no_cuda_asan"], # b/173654156,
182182
deps = [
@@ -203,7 +203,7 @@ tf_cuda_cc_test(
203203
srcs = [
204204
"math_grad_test.cc",
205205
],
206-
args = ["--heap_check=local"], # TODO(b/174752220): Remove
206+
args = ["--heap_check="], # TODO(b/174752220): Remove
207207
linkstatic = tf_kernel_tests_linkstatic(),
208208
tags = tf_cuda_tests_tags() + ["no_cuda_asan"], # b/173654156,
209209
deps = [
@@ -230,7 +230,7 @@ tf_cuda_cc_test(
230230
srcs = [
231231
"array_grad_test.cc",
232232
],
233-
args = ["--heap_check=local"], # TODO(b/174752220): Remove
233+
args = ["--heap_check="], # TODO(b/174752220): Remove
234234
linkstatic = tf_kernel_tests_linkstatic(),
235235
tags = tf_cuda_tests_tags() + ["no_cuda_asan"], # b/173654156,
236236
deps = [

0 commit comments

Comments
 (0)