Skip to content

update to latest #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 473 commits into from
Jul 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
473 commits
Select commit Hold shift + click to select a range
014cdf6
Merge pull request #40585 from yongtang:40577-tensor_scatter_nd_add-gpu
tensorflower-gardener Jul 8, 2020
6fd3e5e
Remove ReplicaContext.__enter__ and __exit__ methods from the docs si…
guptapriya Jul 8, 2020
faab692
Merge pull request #40158 from gaurav1086:fix_segmentation_fault_in_s…
tensorflower-gardener Jul 8, 2020
89b2b97
Fully init TF_TString in order to mitigate potential msan false posit…
gharibian Jul 8, 2020
c688b1a
Rolling forward with #include of missing logging.h header.
bmzhao Jul 8, 2020
91c5b33
Integrate LLVM at https://github.com/llvm/llvm-project/commit/f54d0e3…
Jul 8, 2020
a1cae5e
Updates to Profiler Guide
anirudh161 Jul 8, 2020
efd35d7
[MLIR] Convert FuncOp signature with unranked types in HLO->LHLO conv…
pifon2a Jul 8, 2020
d6060e0
Update GraphDef version to 456.
tensorflower-gardener Jul 8, 2020
f91f6e8
compat: Update forward compatibility horizon to 2020-07-08
tensorflower-gardener Jul 8, 2020
b76ea0e
[MLIR][LHLO] Convert mhlo.dynamic_reshape -> lhlo.reshape_memref_cast.
pifon2a Jul 8, 2020
375484f
Add error message for outfeed shape mismatch.
tensorflower-gardener Jul 8, 2020
7fe25a5
Fix docstring
lgeiger Jul 8, 2020
10cb239
Add rename, move, delete recursiveley
vnghia Jul 8, 2020
4852acc
[MLIR][LHLO] Legalize CallOp that call funcs with tensor args/results.
pifon2a Jul 8, 2020
e12984c
fix
ZhuBaohe Jul 8, 2020
6f914d1
[XLA:CPU] Teach dot_op_emitter how to tile&vectorize linalg matmuls
d0k Jul 8, 2020
c164c98
Remove broken (and unused) kernel targets.
akuegel Jul 8, 2020
eec4fba
Integrate LLVM at https://github.com/llvm/llvm-project/commit/1ea2896…
Jul 8, 2020
5c1b099
Add expiring_lru_cache
vnghia Jul 8, 2020
e1ff0e7
[TF:TRT] Fix the TF-TRT bridge to respect the device assignment infor…
bixia1 Jul 8, 2020
ddf37bc
Merge pull request #41158 from vnvo2409:gcs-ram
tensorflower-gardener Jul 8, 2020
7d38b67
Qualify uses of std::string
tensorflower-gardener Jul 8, 2020
67b47fd
Disable MLIR bridge for NMS image ops test
smit-hinsu Jul 8, 2020
67c3176
Make the "untracked resource" error less awful
allenlavoie Jul 8, 2020
b4c6669
Integrate LLVM at https://github.com/llvm/llvm-project/commit/24b62f2…
tensorflower-gardener Jul 8, 2020
86fa7c3
Fork the checkpointing_test and move the keras related test to keras/…
qlzh727 Jul 8, 2020
c0b72c2
Fix msan false positive for //third_party/tensorflow/go:tensorflow_test
gharibian Jul 8, 2020
4e1aa30
Internal change
jpienaar Jul 8, 2020
e2f8269
[MLIR][NFC] Adopt variadic isa<> on MLIR Types and Attributes
jurahul Jul 8, 2020
1f8b8e7
Qualify uses of std::string
tensorflower-gardener Jul 8, 2020
1942ccc
Update syntax in pip_smoke_test.
Jul 8, 2020
b1cdfe3
Add SparseTensor support to assert_type.
tensorflower-gardener Jul 8, 2020
a85beef
Fix a race condition in attr_builder where the AttrTypeMap for the sa…
cky9301 Jul 8, 2020
7eab1f3
Replace instances of "whitelist" with "allowlist" where possible. See…
karmel Jul 8, 2020
d35df6d
Rename xla_lhlo dialect into lmhlo
joker-eph Jul 8, 2020
ab442b9
Rename xla_chlo dialect into chlo
joker-eph Jul 8, 2020
61d0aaf
Update v1 only saved_model_experimental_test test with proper reason.
pavithrasv Jul 8, 2020
2ebad1d
Call TfTpu_Initialize() to initialize relevant bits of the TPU framew…
Jul 8, 2020
17939ba
Rename XlaHloDialect class into MhloDialect following the recent dial…
joker-eph Jul 8, 2020
69ea5a7
Adjust error reporting and messages with remote targets.
haoyuz Jul 8, 2020
b709aa2
Fix typo in a message.
tensorflower-gardener Jul 8, 2020
736b8b8
Allow computing gradients of If/While in imported graphs.
saxenasaurabh Jul 8, 2020
1ca7b3f
Update whitelist to allowlist in comment.
lucarfox Jul 8, 2020
fed98ed
Add mlir_cpu_runner tests infra for CHLO->LHLO->LLVM lowering.
pifon2a Jul 8, 2020
a24f458
Lower tf.IsNan op to an equivalent computation using tf.Equal op.
lucarfox Jul 8, 2020
21ed77b
Correctly set the experimental_io_device when restoring variable from…
kenfranko Jul 8, 2020
73166ba
Update TF_AllocateOutput to just call ctx->allocate_output now that T…
annarev Jul 8, 2020
e0d896a
Expose Interpreter from InterpreterWrapper.
tensorflower-gardener Jul 8, 2020
eae9ba7
Make ParseOpData a stub function that returns an error for TFLM.
advaitjain Jul 8, 2020
4a8aa32
Run gpu doctest with a fixed set of devices
crccw Jul 8, 2020
afed3a8
Add helper functions to tf_device.replicate op for determining and ac…
andyly Jul 8, 2020
2d18e2b
Go: Update generated wrapper functions for TensorFlow ops.
tensorflower-gardener Jul 8, 2020
65960e7
Merge pull request #41144 from xingyu-long:xingyu_simplify_cpu_example
tensorflower-gardener Jul 8, 2020
0a95e95
Canonicalize identity arithmetic operations with dynamic shapes
ezhulenev Jul 8, 2020
bf9ed62
Clean up the LSTM/GRU layer with the new grappler selector.
yhliang2018 Jul 8, 2020
ee7172a
Add tf.TPUPartitionedCall to TensorFlow MLIR ODS.
andyly Jul 8, 2020
80ac3b3
[tf.data] Change buckets for tf.data's iterator.getNext() duration.
Jul 8, 2020
26e2f2e
Fix cleanup of TFLite Java NNAPI delegate
jdduke Jul 8, 2020
6ad4a65
Add shape inference pass to the beginning of the TPUBridgeV1Compat pi…
andyly Jul 8, 2020
072f95d
Add pass to update tpu embedding ops pass.
tensorflower-gardener Jul 8, 2020
41b7f9c
Fix critical bug with `add_loss` TFOpLayer graph construction
fchollet Jul 8, 2020
1404718
[MLIR:TF] Canonicalize redundant reshape
ezhulenev Jul 8, 2020
d597246
HloModule::Clone function copies input_output_alias_config. Without t…
mangpo Jul 8, 2020
93990d3
Update the docstring of reduce_to and batch_reduce_to
crccw Jul 8, 2020
84d017c
Update Grappler Remapper documentation to include DepthwiseConv2dNati…
lucarfox Jul 8, 2020
c38762b
Reland "Fix issues with 32-bit ARM builds"
jdduke Jul 8, 2020
e1fcc87
Update TPUUpdateEmbeddingEnqueueOpInputs pass to use llvm::StringMap …
andyly Jul 8, 2020
546df25
[TF-numpy] Re-enables signature check against numpy, and fixes proble…
wangpengmit Jul 8, 2020
5ef85fc
Convert path to string right before passing it to the filesystem layer
lgeiger Jul 8, 2020
e242717
Update v1 only training/adagrad_test with proper reason.
pavithrasv Jul 8, 2020
a22b28a
Fix typo, AddIntemediateTensorsToFusedOp to AddIntermediateTensorsToF…
tensorflower-gardener Jul 8, 2020
486ac1e
Update TF's six dependency.
gunan Jul 8, 2020
353af3e
Expose XlaOptions as an argument to tpu.rewrite
ukoxyz Jul 8, 2020
7f357c4
Improve tf.train.list_variables API doc.
pavithrasv Jul 8, 2020
871797b
Create consume_leading_digits_fuzz.cc
grasskin Jul 8, 2020
532bb64
Create arg_def_case_fuzz.cc
grasskin Jul 8, 2020
5fdcc8e
Create consume_non_whitespace_fuzz.cc
grasskin Jul 8, 2020
457388e
Update BUILD
grasskin Jul 8, 2020
5b64e1d
Expose x*sigmoid(x) as silu in addition to swish, and credit silu paper.
martinwicke Jul 8, 2020
552d71f
[ROCm] Fix for ROCm Breakage - 200708
deven-amd Jul 8, 2020
af38ccc
Add dependencies to TPU library for graph rewrite registration
Jul 8, 2020
7527ff6
Internal Build Change.
tf-marissaw Jul 8, 2020
aff1b97
Implement policy for constant folding TF ops to avoid creating large …
Jul 8, 2020
112a490
Disable test which has flaky timeouts and breaks build
mihaimaruseac Jul 8, 2020
1e847a6
[TF/XLA] [NFC] Refactor the function for getting the aliased tensor
cheshire Jul 8, 2020
273fbd4
Use absl::flat_hash_map instead of std::unordered_map
tensorflower-gardener Jul 9, 2020
e120d1d
Add one more reference. The last modified date tripped me up earlier.
martinwicke Jul 9, 2020
51b3781
Support packed TPUReplicatedInput in mlir.
zhangyujing Jul 9, 2020
f5e22e5
[XLA] Add a stateful flag to custom call builder API
ukoxyz Jul 9, 2020
af54c4e
tflite: Add SharedLibrary class
terryheo Jul 9, 2020
7fb37a9
Add BertQA iOS example link to the model overview page
Jul 9, 2020
cc1cd04
Adding an object graph traversal utility function, and a few other co…
bmzhao Jul 9, 2020
1d2141e
[TF/XLA] Simplify functions used for populating XlaTensors
cheshire Jul 9, 2020
1bfefd3
Update README.md of TFLite benchmark tool for Flex delegate
terryheo Jul 9, 2020
c0deeda
[XLA:CPU] [NFC] Extract a helper function for defining a function typ…
cheshire Jul 9, 2020
56d094d
Expose GetPerfEnvFromXPlane via header
jbaiocchi Jul 9, 2020
746b735
Add element tracing for parallel_interleave.
Jul 9, 2020
b62b140
Adding a comment to TFSavedModelAPI, and renaming to drop the Impl su…
bmzhao Jul 9, 2020
5232497
Cleanup build rule names in compiler/mlir/hlo to remove the redundant…
joker-eph Jul 9, 2020
30f6b22
Remove defined(__ANDROID__) in nnapi_delegate_provider as it's been h…
multiverse-tf Jul 9, 2020
94ca0bd
[tf.data] Change the structure of how `GetNext` function recording ti…
jayxiaojieshi Jul 9, 2020
5b61b7c
Move keras model related combinations and tests to keras/distribute.
qlzh727 Jul 9, 2020
a3196a6
Merge pull request #40197 from linux-on-ibm-z:xla_aot_fix
tensorflower-gardener Jul 9, 2020
4b31c14
Add support for tf.TPUPartitionedCall in shape inference pass.
andyly Jul 9, 2020
2369310
Internal change
kkimdev Jul 9, 2020
e5aed49
Make a V2 default strategy
crccw Jul 9, 2020
988d5c0
Add type check for cases where a layer instance is called on invalid …
fchollet Jul 9, 2020
5c084a3
Add size test to flex delegate selective build
thaink Jul 9, 2020
571b2aa
Add a new badge for nightly build on arm
bzhaoopenstack Jul 9, 2020
d364411
Make a V2 default strategy
tensorflower-gardener Jul 9, 2020
d9b7abb
Correct the badge
bzhaoopenstack Jul 9, 2020
da00667
Remove the redundant lite/minimal_logging.h in NNAPI delegate tests.
multiverse-tf Jul 9, 2020
aac3fa9
Update GraphDef version to 457.
tensorflower-gardener Jul 9, 2020
eef6b67
compat: Update forward compatibility horizon to 2020-07-09
tensorflower-gardener Jul 9, 2020
a61a816
PR #40745: [MLIR] Add constant folder for xla_hlo.broadcast_in_dim op
bondhugula Jul 9, 2020
df97d27
Add ram test and remove unused header
vnghia Jul 9, 2020
27a99c7
Fix namespace
vnghia Jul 9, 2020
ccd471c
Fix include header and run clang-format
vnghia Jul 9, 2020
9e18ede
[MLIR] Update lhlo.const to linalg lowering to use affine.store inste…
bondhugula Jun 30, 2020
b846478
Update includes and invariants
grasskin Jul 9, 2020
12e1df4
Update consume_non_whitespace_fuzz.cc
grasskin Jul 9, 2020
276ee43
Change size invariants for consumers
grasskin Jul 9, 2020
ae975ee
Integrate LLVM at https://github.com/llvm/llvm-project/commit/305b500…
Jul 9, 2020
b91f0ca
Merge pull request #41173 from lgeiger:gfile-pathlib
tensorflower-gardener Jul 9, 2020
99e19f6
Disable flaky //third_party/tensorflow/lite/python:tflite_convert_tes…
kkimdev Jul 9, 2020
28b630b
Merge pull request #41203 from vnvo2409:expiring-lru
tensorflower-gardener Jul 9, 2020
755c5e1
Enable importing graph with tf.function nested in a while body inside…
saxenasaurabh Jul 9, 2020
71aa37c
Merge pull request #41192 from vnvo2409:gcs-move-rename
tensorflower-gardener Jul 9, 2020
bd94a53
Qualify uses of std::string
tensorflower-gardener Jul 9, 2020
916b696
Strictify Python targets in tensorflow/python/saved_model/.
ccrusius Jul 9, 2020
3932424
Move the optimizer related combination/tests to keras/distribute.
qlzh727 Jul 9, 2020
634c600
Shift memory allocation parameters to lite/util. Also make specifying…
Jul 9, 2020
7605b75
Remove the usage of TF private API ops.uid from Keras.
pavithrasv Jul 9, 2020
1cb7ec9
Remove the usage of TF private API multi_worker_test_base.get_task_in…
pavithrasv Jul 9, 2020
73758fc
Remove the usage of TF private API ops.convert_n_to_tensor from Keras
pavithrasv Jul 9, 2020
61a985b
Merge pull request #40783 from lgeiger:slots
tensorflower-gardener Jul 9, 2020
5491487
Fix angle brackets in distribute docstring.
aaudiber Jul 9, 2020
5c2b747
Copyright notice
grasskin Jul 9, 2020
a297145
Support SQRT operator in XNNPACK delegate
Maratyszcza Jul 9, 2020
3fbef6e
Merge pull request #41223 from bzhaoopenstack:patch-2
tensorflower-gardener Jul 9, 2020
19fe053
Create string_replace_fuzz.cc
grasskin Jul 9, 2020
1af1f3c
Add string_replace_fuzz
grasskin Jul 9, 2020
3f26ed8
Merge pull request #41199 from ZhuBaohe:cross
tensorflower-gardener Jul 9, 2020
5c25035
Reduce the parallelism in windows rbe build, as it is not helping spe…
gunan Jul 9, 2020
3240a3d
Fix typo in log
tensorflower-gardener Jul 9, 2020
4a35f5a
Fix a typo in tf.distribute.Strategy.reduce docstring
crccw Jul 9, 2020
f520fa6
Remove the usage of TF private API deprecation.deprecated_args from K…
pavithrasv Jul 9, 2020
1e16c4a
Remove tfl.micro unused codes.
tensorflower-gardener Jul 9, 2020
0f5ef2f
Fold xla iota across a 1-length dimension into a zero value
rsuderman Jul 9, 2020
aad3efe
Enable packed variable by default when mlir is enabled.
zhangyujing Jul 9, 2020
9ae37aa
Update RaggedTensor.__eq__ and RaggedTensor.__ne__ to compare by valu…
edloper Jul 9, 2020
37c74f7
Enable importing graph with tf.function nested in a while body inside…
tensorflower-gardener Jul 9, 2020
9d083e1
[XLA/GPU] Make Thunk::hlo_instruction() non-public.
timshen91 Jul 9, 2020
0062905
Minor improvements to tf numpy eager
Jul 9, 2020
fda99ee
In shared batch scheduler, rename 'max_batch_size' to 'input_batch_si…
mingmingl-llvm Jul 9, 2020
134e3c4
Merge pull request #41030 from wwwind:fix_docs_16x8
tensorflower-gardener Jul 9, 2020
8722ee5
Make several graph-only tests run in a graph explicitly instead of us…
Jul 9, 2020
b1a57d8
Fix build error on Linux platforms caused by unavailable vasprintf in…
tensorflower-gardener Jul 9, 2020
285b5fa
Update RaggedTensor.__eq__ and RaggedTensor.__ne__ to compare by valu…
kkimdev Jul 9, 2020
df16e58
Removing all the build deps from python/distribute to python/keras/di…
qlzh727 Jul 9, 2020
023fe58
[XLA] Support short form when dumping aliasing into HLO output
cheshire Jul 9, 2020
bbbfa77
Internal change
River707 Jul 9, 2020
52a91a0
Make TpuPlatform::event_map_ access thread-safe to fix a race.
jiawenhao Jul 9, 2020
cee3559
Merge pull request #26936 from ANSHUMAN87:slice_refactor
tensorflower-gardener Jul 9, 2020
5e6bc1a
Merge pull request #40621 from yixingfu:updateweights
tensorflower-gardener Jul 9, 2020
372f1dd
[XLA:CPU] Provide missing link on allowing reassociation in MLIR vect…
aartbik Jul 9, 2020
68e9110
stacktrace_handler_test passes. Turn tap back on.
tfboyd Jul 9, 2020
b75de2d
Updating `tf_proto_library` rule of "compilation_result_proto".
henrytansetiawan Jul 9, 2020
3304c4a
Further refine KerasTensors to match behavior in head, and fix severa…
Jul 9, 2020
e7569fd
Update Eigen to: https://gitlab.com/libeigen/eigen/-/commit/8889a2c1c…
tensorflower-gardener Jul 9, 2020
cff5492
Update v1 only slot_creator_test with graph scope.
pavithrasv Jul 9, 2020
82e1db2
Remove debug method/commented dead code.
mihaimaruseac Jul 9, 2020
ad35731
Rollback of 'Reland "Fix issues with 32-bit ARM builds"'
jdduke Jul 9, 2020
9937a3c
Update v1 only training/gradient_descent_test with graph scope.
pavithrasv Jul 9, 2020
856ced7
Moving `ComputeInternal` and its helper functions to `TpuCompileOpKer…
henrytansetiawan Jul 9, 2020
22193a6
Support duplicate functions after functionalization in signaturedef i…
cky9301 Jul 9, 2020
e27843c
Handles additional Einsum formulas in TF Lite
talumbau Jul 10, 2020
ae3caed
Use a binary op specific promote_types
Jul 10, 2020
d699fe6
Removing unused filegroup.
bmzhao Jul 10, 2020
f5e8685
Add a pass that removes variables in the saved model's session initia…
abattery Jul 10, 2020
78199b4
Add checks for equal operand and result (element) types for TF dialec…
mgester Jul 10, 2020
fdce31d
Move ImmediateExecutionTensorHandle::DataType() to AbstractTensorHandle.
saxenasaurabh Jul 10, 2020
902443f
Introduce tpu_node_device to represent the individual TPU cores
Jul 10, 2020
d0c63bb
[TF-numpy] Adds a switch to control whether to inline the original nu…
wangpengmit Jul 10, 2020
2015320
Disable 2 grappler tests under MSAN
mihaimaruseac Jul 10, 2020
d13f4ec
Remove run_v1_only annotation from proximal_adagrad_test, saved_model…
pavithrasv Jul 10, 2020
deb994e
Make layer overhead benchmarks as parameterized benchmark tests.
yhliang2018 Jul 10, 2020
6c292dc
Disable test that fails due to gRPC port collisions.
mihaimaruseac Jul 10, 2020
eddb295
Support more delegate options in kernel tests by utilizing TFLite too…
multiverse-tf Jul 10, 2020
3bc2b31
Rollback of PRs #40554 and #41144 as they break nightly builds
mihaimaruseac Jul 10, 2020
8614ed5
Use relative path for TableGen include with MLIR HLO
joker-eph Jul 10, 2020
766a356
[tf2xla] Align sign with TensorFlow
majnemer Jul 10, 2020
9e54b4b
Remove the usage of TF private API ops.convert_n_to_tensor from Keras
rryan Jul 10, 2020
62f54dd
Skip graph optimization passes for component functions.
haoyuz Jul 10, 2020
f1c2b67
To avoid confusion, remove lite/tools/accuracy as it's been replaced …
multiverse-tf Jul 10, 2020
b867dec
Support more delegate options in kernel tests by utilizing TFLite too…
mihaimaruseac Jul 10, 2020
992b6e2
Add C API for TPU execution.
jiawenhao Jul 10, 2020
d1b956a
Update GraphDef version to 458.
tensorflower-gardener Jul 10, 2020
0f5c86f
compat: Update forward compatibility horizon to 2020-07-10
tensorflower-gardener Jul 10, 2020
60b972f
[MLIR][LHLO] Lower ReshapeMemRefCastOp to LLVM.
pifon2a Jul 10, 2020
c36bc9b
Fix FileIO test for Python < 3.6
lgeiger Jul 10, 2020
9ccaf9b
Support more delegate options in kernel tests by utilizing TFLite too…
multiverse-tf Jul 10, 2020
c12d8cd
Integrate LLVM at https://github.com/llvm/llvm-project/commit/c2a61ef…
Jul 10, 2020
633c41f
Fix the output bug that the specified value by --num_images isn't hon…
multiverse-tf Jul 10, 2020
e820edf
TF2.x API Docs module.py example fix.
jpodivin Jun 19, 2020
9065899
LocalResponseNormalization: We're spending about half of the time in …
tensorflower-gardener Jul 10, 2020
60fb9ca
Fix ResourceOpLiftingPass to handle call ops that return tf.ReadVaria…
andyly Jul 10, 2020
65d5194
Rollback #41144 as #40554 was rolled back only, resulting in keras_cp…
andyly Jul 10, 2020
585d841
Fix missing backtick in tf.where documentation.
tensorflower-gardener Jul 10, 2020
af8a7e5
Add __getstate__ and __setstate__ to name_scope_v2 s.t. it can be pic…
tensorflower-gardener Jul 10, 2020
aad8c66
New experimental saved model flags.
ccrusius Jul 10, 2020
0603381
Avoid linear search in HloComputation::IsMarkedAsDead.
tensorflower-gardener Jul 10, 2020
3a3ad18
Update RaggedTensor.__eq__ and RaggedTensor.__ne__ to compare by valu…
edloper Jul 10, 2020
0e8ef97
Merge pull request #40925 from polymage-labs:lhlo_to_linalg_affine_store
tensorflower-gardener Jul 10, 2020
b5a50ac
Merge pull request #41273 from lgeiger:fix-python35-test
tensorflower-gardener Jul 10, 2020
7e279d6
Merge pull request #40619 from jpodivin:docfix37293
tensorflower-gardener Jul 10, 2020
9443a1b
Reorganize tpu_compile_c_api into tpu_util_c_api.
henrytansetiawan Jul 10, 2020
a45b6fb
Merge pull request #40966 from fsx950223:losses
tensorflower-gardener Jul 10, 2020
ed0faac
Expose mlir verify method in the mlir python binding
liufengdb Jul 10, 2020
497aa18
Fix data race during platform registration.
rjpower Jul 10, 2020
796f522
Rollback: Ignore other graph inputs in custom gradient
jaingaurav Jul 10, 2020
c77d764
Fix the test order dependency issue for gradient_checkpointing.
qlzh727 Jul 10, 2020
05d855a
PR #39429: [ROCm] Fixing and enabling TopK
ekuznetsov139 Jul 10, 2020
623430d
Change BUILD order
grasskin Jul 10, 2020
805a0c6
Introduce TFLiteEvalTensor and introduce TFLM-only tensor getters to …
Jul 10, 2020
25153af
Merge pull request #41235 from vnvo2409:gcs-ram-test
tensorflower-gardener Jul 10, 2020
c7874e1
Internal refactoring of BUILD files.
gunan Jul 10, 2020
8334ef9
Merge pull request #41217 from ROCmSoftwarePlatform:google_upstream_r…
tensorflower-gardener Jul 10, 2020
c14d4f0
Merge pull request #40921 from rahul-kamat:generic-tensor
tensorflower-gardener Jul 10, 2020
4d97a12
Fix the exporting of tf.io.decode_proto and tf.io.encode_proto so tha…
Jul 10, 2020
9a9bcee
Wrap the new padded NMS implementation into a composite function, and…
Jul 10, 2020
41b4e2f
[MLIR] Adopt NoRegionArguments trait for IfRegion.
jurahul Jul 10, 2020
5b95d3d
Update the mini-tutorial and move specialized to the proper class.
Jul 10, 2020
c299f3f
Merge pull request #40962 from Intel-tensorflow:yang/eigen-bf16
tensorflower-gardener Jul 10, 2020
63cb494
Internal change
tensorflower-gardener Jul 10, 2020
fc0b3b4
Auto generated TensorFlow SelfAdjointEigV2 op
smit-hinsu Jul 10, 2020
d4a0544
Reject quantized type tensor with zero scales in flatbuffer importer.
chhe7 Jul 10, 2020
08c6590
[XLA:Docs] Describe the aliasing semantics
cheshire Jul 10, 2020
195c91d
Rollback PR #39429: [ROCm] Fixing and enabling TopK
mihaimaruseac Jul 10, 2020
b70a86f
Add a test for known issues with saved model
crccw Jul 10, 2020
3adc7cf
Merge pull request #39543 from wwwind:op_tests_16x8
tensorflower-gardener Jul 10, 2020
c1921df
Allow the TF_XLA_FLAGS tf_mlir_enable_mlir_bridge to still enable the…
tf-marissaw Jul 10, 2020
639364e
Improve documentation and clean up code for cluster FLR.
haoyuz Jul 10, 2020
14d1e13
Give KerasTensor op lambda layers a name matching the tf api symbol
Jul 10, 2020
a4eadff
Add outside compilation tests for control flow on host and gradients …
kenfranko Jul 10, 2020
49750fb
Merge pull request #35985 from wwwind:addsub_16x8
tensorflower-gardener Jul 10, 2020
5abbeee
[XLA] Update dynamic dimension inference when replacing a node.
yunxing Jul 10, 2020
e77d208
Merge pull request #41215 from grasskin:master
tensorflower-gardener Jul 10, 2020
5986721
Use the shape property over the get_shape() method.
Jul 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ build:rbe_win --shell_executable=C:\\tools\\msys64\\usr\\bin\\bash.exe

# TODO(gunan): Remove once we use MSVC 2019 with latest patches.
build:rbe_win --define=override_eigen_strong_inline=true
build:rbe_win --jobs=500
build:rbe_win --jobs=100

build:rbe_win_py37 --config=rbe
build:rbe_win_py37 --repo_env=TF_PYTHON_CONFIG_REPO="@windows_py37_config_python"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ Build Type
**Linux ppc64le CPU** Stable Release | [![Build Status](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_CPU_Release_Build/badge/icon)](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_CPU_Release_Build/) | Release [1.15](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_CPU_Release_Build/) / [2.x](https://powerci.osuosl.org/job/TensorFlow2_PPC64LE_CPU_Release_Build/)
**Linux ppc64le GPU** Nightly | [![Build Status](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Build/badge/icon)](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Build/) | [Nightly](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Nightly_Artifact/)
**Linux ppc64le GPU** Stable Release | [![Build Status](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Release_Build/badge/icon)](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Release_Build/) | Release [1.15](https://powerci.osuosl.org/job/TensorFlow_PPC64LE_GPU_Release_Build/) / [2.x](https://powerci.osuosl.org/job/TensorFlow2_PPC64LE_GPU_Release_Build/)
**Linux aarch64 CPU** Nightly <br> Python 3.6 | [![Build Status](http://openlabtesting.org:15000/badge?project=tensorflow%2Ftensorflow)](https://status.openlabtesting.org/builds/builds?project=tensorflow%2Ftensorflow) | [Nightly](https://status.openlabtesting.org/builds/builds?project=tensorflow%2Ftensorflow&job_name=tensorflow-arm64-build-daily-master)
**Linux CPU with Intel oneAPI Deep Neural Network Library (oneDNN)** Nightly | [![Build Status](https://tensorflow-ci.intel.com/job/tensorflow-mkl-build-whl-nightly/badge/icon)](https://tensorflow-ci.intel.com/job/tensorflow-mkl-build-whl-nightly/) | [Nightly](https://tensorflow-ci.intel.com/job/tensorflow-mkl-build-whl-nightly/)
**Linux CPU with Intel oneAPI Deep Neural Network Library (oneDNN)** Stable Release | ![Build Status](https://tensorflow-ci.intel.com/job/tensorflow-mkl-build-release-whl/badge/icon) | Release [1.15](https://pypi.org/project/intel-tensorflow/1.15.0/) / [2.x](https://pypi.org/project/intel-tensorflow/)
**Red Hat® Enterprise Linux® 7.6 CPU & GPU** <br> Python 2.7, 3.6 | [![Build Status](https://jenkins-tensorflow.apps.ci.centos.org/buildStatus/icon?job=tensorflow-rhel7-3.6&build=2)](https://jenkins-tensorflow.apps.ci.centos.org/job/tensorflow-rhel7-3.6/2/) | [1.13.1 PyPI](https://tensorflow.pypi.thoth-station.ninja/index/)
Expand Down
13 changes: 12 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* C-API functions `TF_StringDecode`, `TF_StringEncode`, and
`TF_StringEncodedSize` are no longer relevant and have been removed; see
core/platform/ctstring.h for string access/modification in C.
* In batching library, rename parameter
SharedBatchScheduler::QueueOptions::max_batch_size to a more accurate name
(input_batch_size_limit) for a recent feature to enable split of large batch
sizes.

## Known Caveats

Expand All @@ -27,7 +31,11 @@
* <IF A CHANGE CLOSES A GITHUB ISSUE, IT SHOULD BE DOCUMENTED HERE>
* <NOTES SHOULD BE GROUPED PER AREA>
* TF Core:
* <ADD RELEASE NOTES HERE>
* <ADD RELEASE NOTES HERE>
* `tf.Tensor` is now a subclass of `typing.Generic`, allowing type annotations
to be parameterized by dtype: `tf.Tensor[tf.Int32]`. This requires Python 3,
and will become fully compatible with static type checkers in the future.

* `tf.data`:
* Added optional `exclude_cols` parameter to CsvDataset. This parameter is
the complement of `select_cols`; at most one of these should be specified.
Expand All @@ -50,6 +58,9 @@
* Tracing and Debugging:
* <ADD RELEASE NOTES HERE>
* Other:
* We have replaced uses of "whitelist" with "allowlist" where possible.
Please see https://developers.google.com/style/word-list#blacklist for more
context.
* <ADD RELEASE NOTES HERE>

## Thanks to our Contributors
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Even if the untrusted party only supplies the serialized computation
graph (in form of a `GraphDef`, `SavedModel`, or equivalent on-disk format), the
set of computation primitives available to TensorFlow is powerful enough that
you should assume that the TensorFlow process effectively executes arbitrary
code. One common solution is to whitelist only a few safe Ops. While this is
code. One common solution is to allow only a few safe Ops. While this is
possible in theory, we still recommend you sandbox the execution.

It depends on the computation graph whether a user provided checkpoint is safe.
Expand Down
7 changes: 7 additions & 0 deletions tensorflow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,13 @@ config_setting(
visibility = ["//visibility:public"],
)

# This flag enables experimental MLIR bridge support.
config_setting(
name = "enable_mlir_bridge",
values = {"define": "enable_mlir_bridge=true"},
visibility = ["//visibility:public"],
)

# This flag enables experimental TPU support
config_setting(
name = "with_tpu_support",
Expand Down
5 changes: 4 additions & 1 deletion tensorflow/c/eager/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ cc_library(
visibility = [
"//tensorflow:internal",
],
deps = [],
deps = [
"//tensorflow/core:protos_all_cc",
],
)

cc_library(
Expand Down Expand Up @@ -480,6 +482,7 @@ tf_cuda_cc_test(
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core/common_runtime:function_optimization_registry",
"//tensorflow/core/common_runtime:optimization_registry",
"//tensorflow/core/common_runtime/eager:eager_operation",
"//tensorflow/core/distributed_runtime/rpc:grpc_server_lib",
"@com_google_absl//absl/strings",
Expand Down
3 changes: 2 additions & 1 deletion tensorflow/c/eager/abstract_operation.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ class AbstractOperation {
virtual Status SetDeviceName(const char* name) = 0;

virtual Status AddInput(AbstractTensorHandle* input) = 0;
virtual Status AddInputList(absl::Span<AbstractTensorHandle*> inputs) = 0;
virtual Status AddInputList(
absl::Span<AbstractTensorHandle* const> inputs) = 0;
virtual Status Execute(absl::Span<AbstractTensorHandle*> retvals,
int* num_retvals) = 0;

Expand Down
5 changes: 5 additions & 0 deletions tensorflow/c/eager/abstract_tensor_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ limitations under the License.
#define TENSORFLOW_C_EAGER_ABSTRACT_TENSOR_HANDLE_H_

#include <memory>

#include "tensorflow/core/framework/types.pb.h"
namespace tensorflow {

// Abstract interface to a Tensor handle in either tracing or immediate
Expand All @@ -27,6 +29,9 @@ class AbstractTensorHandle {
virtual ~AbstractTensorHandle() {}

public:
// Returns tensor dtype.
virtual tensorflow::DataType DataType() const = 0;

AbstractTensorHandleKind getKind() const { return kind_; }

// Release any underlying resources, including the interface object.
Expand Down
33 changes: 24 additions & 9 deletions tensorflow/c/eager/c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,13 @@ tensorflow::Status CreateRemoteContexts(
});
}
counter.Wait();
tensorflow::StatusGroup sg;
for (int i = 0; i < num_remote_workers; i++) {
TF_RETURN_IF_ERROR(statuses[i]);
if (TF_PREDICT_FALSE(!statuses[i].ok())) {
sg.Update(statuses[i]);
}
}
return tensorflow::Status::OK();
return sg.as_summary_status();
}

tensorflow::Status UpdateRemoteContexts(
Expand Down Expand Up @@ -611,10 +614,21 @@ tensorflow::Status UpdateTFE_ContextWithServerDef(

// Initialize remote eager workers.
if (reset_context) {
LOG_AND_RETURN_IF_ERROR(CreateRemoteContexts(
const tensorflow::Status s = CreateRemoteContexts(
ctx, remote_workers, context_id, context_view_id, keep_alive_secs,
server_def, remote_eager_workers.get(), context->Executor().Async(),
context->LazyCopyFunctionRemoteInputs(), base_request));
context->LazyCopyFunctionRemoteInputs(), base_request);
// NOTE: the remote tasks could fail after `GetAllRemoteDevices` and cause
// the CreateRemoteContexts to fail. We currently only log instead of
// directly returning the error, since returning here will cause the server
// object to be destroyed (which currently CHECK-fails). The client will
// see additional errors if ops are subsequently sent to the failed workers.
if (TF_PREDICT_FALSE(!s.ok())) {
LOG(ERROR) << "Error when creating contexts on remote targets: "
<< s.error_message()
<< "\nExecuting remote ops or functions on these remote "
"targets will fail.";
}
} else {
// The master's context_view_id will be incremented by one
// the UpdateRemoteMaster call later. We want all new workers and
Expand Down Expand Up @@ -644,15 +658,16 @@ tensorflow::Status UpdateTFE_ContextWithServerDef(
grpc_server->worker_env()->rendezvous_mgr->Find(context_id);
auto* device_mgr = grpc_server->worker_env()->device_mgr;
std::shared_ptr<tensorflow::WorkerSession> worker_session;
TF_RETURN_IF_ERROR(grpc_server->worker_env()->session_mgr->CreateSession(
session_name, server_def, base_request.cluster_device_attributes(),
true));
TF_RETURN_IF_ERROR(
LOG_AND_RETURN_IF_ERROR(
grpc_server->worker_env()->session_mgr->CreateSession(
session_name, server_def, base_request.cluster_device_attributes(),
true));
LOG_AND_RETURN_IF_ERROR(
grpc_server->worker_env()->session_mgr->WorkerSessionForSession(
session_name, &worker_session));

// Initialize remote tensor communication based on worker session.
TF_RETURN_IF_ERROR(r->Initialize(worker_session.get()));
LOG_AND_RETURN_IF_ERROR(r->Initialize(worker_session.get()));

tensorflow::DistributedFunctionLibraryRuntime* cluster_flr =
tensorflow::eager::CreateClusterFLR(context_id, context,
Expand Down
109 changes: 109 additions & 0 deletions tensorflow/c/eager/c_api_distributed_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.
#include "tensorflow/c/eager/tfe_tensorhandle_internal.h"
#include "tensorflow/core/common_runtime/eager/eager_operation.h"
#include "tensorflow/core/common_runtime/function_optimization_registry.h"
#include "tensorflow/core/common_runtime/optimization_registry.h"
#include "tensorflow/core/distributed_runtime/rpc/grpc_server_lib.h"
#include "tensorflow/core/framework/function.h"
#include "tensorflow/core/graph/graph.h"
Expand Down Expand Up @@ -316,6 +317,114 @@ string VariableAddFunction() {
return def.SerializeAsString();
}

// A graph optimization pass that would fail when triggered for more than once.
class GraphErrorInjectionPass : public tensorflow::GraphOptimizationPass {
public:
static bool enabled_;
GraphErrorInjectionPass() {}

tensorflow::Status Run(
const tensorflow::GraphOptimizationPassOptions& options) override {
if (!enabled_) {
return tensorflow::Status::OK();
}
if (first_call_) {
first_call_ = false;
return tensorflow::Status::OK();
}
return tensorflow::errors::Internal("Graph pass runs for more than once!");
}

private:
bool first_call_ = true;
};

// After the graph pass is registered, it takes effect globally and can affect
// other test cases. Define a static variable to switch it on and off.
bool GraphErrorInjectionPass::enabled_ = false;

// Test to ensure that a registered graph optimization pass is only executed
// once (i.e., on the main function side) in running distributed functions.
// This test creates a cluster with two workers, create a variable on the
// second worker, and run a distributed function (VariableAddFunction) whose ops
// span the local and remote workers. If the graph optimization pass is executed
// on both the main function side and the component function side, an error will
// be thrown in the registered graph optimization pass.
TEST(CAPI, DistributedFunctionGraphPassOnlyOnce) {
// Register graph pass that will raise error if called more than once.
tensorflow::optimization_registration::OptimizationPassRegistration
register_test_pass(tensorflow::OptimizationPassRegistry::PRE_PLACEMENT, 0,
std::make_unique<GraphErrorInjectionPass>(),
"error_injector");
GraphErrorInjectionPass::enabled_ = true;

tensorflow::ServerDef server_def = GetServerDef(3);
// This server def has the task index set to 0.
string serialized = server_def.SerializeAsString();

server_def.set_task_index(1);
std::unique_ptr<tensorflow::GrpcServer> worker_server1;
ASSERT_TRUE(tensorflow::GrpcServer::Create(
server_def, tensorflow::Env::Default(), &worker_server1)
.ok());
ASSERT_TRUE(worker_server1->Start().ok());
server_def.set_task_index(2);
std::unique_ptr<tensorflow::GrpcServer> worker_server2;
ASSERT_TRUE(tensorflow::GrpcServer::Create(
server_def, tensorflow::Env::Default(), &worker_server2)
.ok());
ASSERT_TRUE(worker_server2->Start().ok());
const char dev2_name[] = "/job:localhost/replica:0/task:2/device:CPU:0";

TF_Status* status = TF_NewStatus();
TFE_ContextOptions* opts = TFE_NewContextOptions();
TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
TFE_Context* ctx = TFE_NewContext(opts, status);
EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
TFE_DeleteContextOptions(opts);

TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status);
EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);

TFE_TensorHandle* var_handle = TestVariable(ctx, 2.0, dev2_name);
EXPECT_NE(var_handle, nullptr);

const string function_def = VariableAddFunction();
TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(),
status);
ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);

TFE_Op* func = TFE_NewOp(ctx, "VariableAddFunction", status);
ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
TFE_OpAddInput(func, var_handle, status);
ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
TFE_TensorHandle* retvals[1] = {nullptr};
int num_retvals = 1;
TFE_Execute(func, &retvals[0], &num_retvals, status);
ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
ASSERT_EQ(1, num_retvals);
TF_Tensor* t = TFE_TensorHandleResolve(retvals[0], status);
ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
TFE_DeleteTensorHandle(retvals[0]);
float sum = 0;
ASSERT_EQ(sizeof(sum), TF_TensorByteSize(t));
memcpy(&sum, TF_TensorData(t), TF_TensorByteSize(t));
TF_DeleteTensor(t);
ASSERT_EQ(sum, 4.0);

TFE_DeleteOp(func);
TFE_DeleteTensorHandle(var_handle);
TFE_DeleteContext(ctx);
TF_DeleteStatus(status);

// TODO(b/136478427): Figure out how to correctly shut the server down.
worker_server1.release();
worker_server2.release();

// Disable the test graph pass so it does not affect other test cases.
GraphErrorInjectionPass::enabled_ = false;
}

class FunctionErrorInjectionPass : public tensorflow::FunctionOptimizationPass {
public:
FunctionErrorInjectionPass(string error_node, string error_device)
Expand Down
19 changes: 16 additions & 3 deletions tensorflow/c/eager/c_api_unified_experimental_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class GraphTensor : public TracingTensorHandle {
explicit GraphTensor(TF_Output output)
: TracingTensorHandle(kGraph), output_(output) {}
void Release() override { delete this; }

tensorflow::DataType DataType() const override {
return static_cast<tensorflow::DataType>(TF_OperationOutputType(output_));
}
TF_Output output_;

// For LLVM style RTTI.
Expand Down Expand Up @@ -102,9 +106,18 @@ class GraphOperation : public TracingOperation {
TF_AddInput(op_.get(), t->output_);
return Status::OK();
}
Status AddInputList(absl::Span<AbstractTensorHandle*> inputs) override {
return tensorflow::errors::Unimplemented(
"AddInputList has not been implemented yet.");
Status AddInputList(absl::Span<AbstractTensorHandle* const> inputs) override {
std::vector<TF_Output> tf_outputs(inputs.size());
for (int i = 0; i < inputs.size(); i++) {
GraphTensor* t = dyn_cast<GraphTensor>(inputs[i]);
if (!t) {
return tensorflow::errors::InvalidArgument(
"Unable to cast input to GraphTensor");
}
tf_outputs[i] = t->output_;
}
TF_AddInputList(op_.get(), tf_outputs.data(), tf_outputs.size());
return Status::OK();
}
Status Execute(absl::Span<AbstractTensorHandle*> retvals,
int* num_retvals) override {
Expand Down
2 changes: 0 additions & 2 deletions tensorflow/c/eager/immediate_execution_tensor_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ namespace tensorflow {
// is needed a static_cast can be applied.
class ImmediateExecutionTensorHandle : public AbstractTensorHandle {
public:
// Returns tensor dtype.
virtual tensorflow::DataType DataType() const = 0;
// Returns number of dimensions.
virtual Status NumDims(int* num_dims) const = 0;
// Returns number of elements across all dimensions.
Expand Down
6 changes: 4 additions & 2 deletions tensorflow/c/eager/parallel_device/parallel_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ TFE_TensorHandle* CopyTensorFromParallelDevice(TFE_Context* context,
const char* target_device_name,
TF_Status* status,
void* device_info) {
TF_SetStatus(status, TF_INTERNAL,
"Trying to copy a tensor out of a parallel device.");
TF_SetStatus(status, TF_UNIMPLEMENTED,
"Trying to copy a tensor out of a parallel device. Since there "
"are multiple components to parallel tensors, they must be "
"unpacked explicitly.");
return nullptr;
}

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/c/eager/parallel_device/parallel_device_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ TEST(PARALLEL_DEVICE, TestExplicitCopies) {
// Copies off of parallel devices must be explicit.
TensorHandlePtr copy_back(TFE_TensorHandleCopyToDevice(
device_value.get(), context.get(), first_device_name, status.get()));
ASSERT_EQ(TF_GetCode(status.get()), TF_INTERNAL);
ASSERT_EQ(TF_GetCode(status.get()), TF_UNIMPLEMENTED);
}

TEST(PARALLEL_DEVICE, TestDifferentShapes) {
Expand Down
Loading