Repository navigation
Syncing to master - #7
Merged
Merged
Conversation
fixes #16167 PiperOrigin-RevId: 184160925
PiperOrigin-RevId: 184165180
PiperOrigin-RevId: 184169668
…ng loops in the process. PiperOrigin-RevId: 184172483
…nvisible. This change ensures that a shared iterator (which requires a private FunctionLibraryRuntime that outlasts the calling op's runtime, because it can outlive a single session) uses the same Device as a non-shared iterator, and hence capturing resources from the creating graph will work as intended. Fixes #16481. PiperOrigin-RevId: 184172498
PiperOrigin-RevId: 184173047
PiperOrigin-RevId: 184174800
…n generated code. Add a helper for the control dependencies context manager. PiperOrigin-RevId: 184176409
PiperOrigin-RevId: 184179246
PiperOrigin-RevId: 184183725
PiperOrigin-RevId: 184183730
…tion=SUM_OVER_BATCH_SIZE. PiperOrigin-RevId: 184186573
TensorFlow Serving Model Server. PiperOrigin-RevId: 184188752
* Change how switch grouping works:
- This is an intermediate step, next is combining
DetermineBranchMapAndFrontier into one traversal.
* Homogeneous the naming (switch_nodes -> switches);
* Change graph dumping to be due to class member - currently still performed when vlog-level is sufficiently high;
* Pass in correct library when dumping graphs;
PiperOrigin-RevId: 184188816
…aph or an invalid set of fetch nodes PiperOrigin-RevId: 184192790
The alternative to this is to have an adaptive approach that would unevenly split input into per-tower batches. The concern with that was that all towers will be as slow as the one with more input reducing the performance. Batch size seems to be commonly tailored to the available hardware. PiperOrigin-RevId: 184192793
PiperOrigin-RevId: 184194895
PiperOrigin-RevId: 184201506
PiperOrigin-RevId: 184202425
PiperOrigin-RevId: 184202470
PiperOrigin-RevId: 184205196
…ed batch norm) to support quantized training. The weights are always now scaled by gamma/sigma, where sigma is the moving standard deviation for stability prior to quantization. For improved performance, the moving means and variances are frozen and the training graph modified accordingly. An additional parameter freeze_batch_norm_delay is added to foldbatchnorm function to set the delay at which training switches from regular batch norm to frozen mean and variances. Remove placement options within FoldBatchNorm as this causes folded training to place all ops on a single GPU. The modification now significantly speeds up distributed training. The tests for folding batch norms are also updated to reflect the additional topological changes to the graph. PiperOrigin-RevId: 184211434
Previously, 1 token was approximately 256 bytes. This is slightly less intuitive than 1 kb. PiperOrigin-RevId: 184212503
PiperOrigin-RevId: 184213576
…plan. Now whenever we want to operate in dependency order we use execution_plan. It begins as identity map (0, ..., nodes_size()) but can be changed in the future. This is the basis for more pluggable delegation. PiperOrigin-RevId: 184216885
PiperOrigin-RevId: 184220515
…emory. Track all persistent memory allocation in allocate_persistent call except for variables and queues where persistent memory is tracked in variables ops and queue ops. Deallocation of persistent memory is ignored. PiperOrigin-RevId: 184768231
…mes in a session. Previously, we would instantiate a new function handle for each function in a dataset each time an iterator on that dataset was initialized. These would only be deleted at session closure, which could lead to an apparent leak of memory over the lifetime of session. PiperOrigin-RevId: 184768730
This fix fixes two incorrect links in CONTRIBUTING.md about license examples. The reason for broken links is because tensorboard is in another repo. Signed-off-by: Yong Tang <[email protected]>
__BETA__ is defined on line 118 as a class member so it can only be accessed via __self__ or via the __ElasticAverageOptimizer__. flake8 testing of https://github.com/tensorflow/tensorflow $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./tensorflow/contrib/opt/python/training/elastic_average_optimizer.py:153:27: F821 undefined name 'BETA' self._moving_rate = BETA / communication_period / num_worker ^ ```
This fix tries to address the issue raised in 16534 where tf.losses.softmax_cross_entropy causes warnings due to the calling of tf.nn.softmax_cross_entropy_with_logits. This fix switches to tf.nn.softmax_cross_entropy_with_logits_v2 to remove the warning. This fix fixes 16534. Signed-off-by: Yong Tang <[email protected]>
* Add unsortedsegment(prod/min/max/sqrt_n/mean). This commit adds CPU/GPU implementations for prod/min/max ops and python implementations for mean/sqrt_n. Also, it adapts and unifies the corresponding tests of all unsorted reductions. Note: The new gradient of unsorted_segment_max fixes the crash occuring when negative indices on CPU are used. * update golden API * Fix compilation of atomicAdd for cuda_arch < 600. \n This commit moves the std::complex specialization of atomicAdd below the double specialization of atomicAdd for cuda_arch 600. * Enable bfloat16, change inline to EIGEN_STRONG_INLINE. * fix includes of cuda_device_functions; fix typo
merge from master
assertArrayNear compares absolute instead of relative error. For floating point computation you want the latter.
Fix bug in and speed up ConstantFolding::CreateNodeDef(): * Fix bug trying to store more than kintmax32 values in a repeated proto field. * Speed up populating compressed format. Example: tensorflow/python/kernel_tests/large_concat_op_test with size = 2**29+6 goes from ~30 seconds to ~15 seconds. The fraction of time spent in ConstantFolding::CreateNodeDef() goes down from about 35% to about 12%.
Branch 184768730
Fix comparison in neon_depthwise_conv_op test.
#16838) * Fixes issue when linking of rule '//tensorflow/contrib/lite/toco:toco' fails because LD_LIBRARY_PATH is not configured * Check if LD_LIBRARY_PATH is in environ_cp
…_entropy Remove warnings in tf.losses.softmax_cross_entropy
As was pointed out by 9485, BernoulliWithSigmoidProbs is covered by Bernoulli and is obsolete. This fix removes BernoulliWithSigmoidProbs. This fix closes 9485. Signed-off-by: Yong Tang <[email protected]>
…#16763) * Added support for ninja build and some fixes/changes in CMake for Windows * Fixed typo
flake8 testing of https://github.com/tensorflow/tensorflow on Python 2.7.14 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./tensorflow/python/util/compat_internal.py:33:12: F821 undefined name 'as_str_any' path = as_str_any(path.__fspath__()) ^ ```
* Support CopyFile with streaming This fix tries to address the issue raised in 12641 where it was not possible to have CopyFile with streaming. The original implementation copies the whole content of the file to a string buffer and write to the file. This could be an issue if the file size is large (than memory of the host). This fix streams the CopyFile operation. This fix fixes 12641. Signed-off-by: Yong Tang <[email protected]> * Use sendfile for CopyFile implementation in Linux Signed-off-by: Yong Tang <[email protected]> * Merge CopyFile for same fs and different fs Signed-off-by: Yong Tang <[email protected]> * `sendfile64` -> `sendfile` to fix Android build Signed-off-by: Yong Tang <[email protected]> * Add sendfile processing for Darwin This commit adds sendfile processing for OSX Darwin. Signed-off-by: Yong Tang <[email protected]> * Not using sendfile in MacOSX Signed-off-by: Yong Tang <[email protected]> * Address review feedback Signed-off-by: Yong Tang <[email protected]> * Remove the size check and test OUT_OF_RANGE instead. Signed-off-by: Yong Tang <[email protected]> * Small fixes Signed-off-by: Yong Tang <[email protected]> * Rename CopyFile to FileSystemCopyFile to fix Windows build errors Signed-off-by: Yong Tang <[email protected]>
* Add uint32 and uint64 kernel support for `Invert` This fix adds uint32 and uint64 kernel support for `Invert`. In bitwise_ops.cc, uint32 and uint64 have been registered for `Invert` like other bitwise ops `BitwiseAnd`/`BitwiseOr`/`BitwiseXor`/`LeftShift`/`RightShift`. However, no uint32 and uint64 kernels available for `Invert` yet. This fix add uint32 and uint64 kernel for `Invert`, and adds additional test cases to cover the changes. Signed-off-by: Yong Tang <[email protected]> * Add test cases for uint32 and uint64 support with `Invert` Signed-off-by: Yong Tang <[email protected]> * Add missing uint32 and uint64 in GPU for invert Signed-off-by: Yong Tang <[email protected]> * Add DEFINE_UNARY8 for invert Signed-off-by: Yong Tang <[email protected]>
* Add optimized gif support for decode_gif While revisiting the issue of 15838, I noticed that currently optimized gif is not supported. However, optimized gif is actually possible to be processed as essentially the subsequent frame just adds the content on top of the previous frame on canvas. This fix adds the support for optimized gif with decode_gif. As is shown in the added test case, optimized gif (`optimized.gif`) could be handled the same way as original gif (`scan.gif`). This fix fixes 15838. Signed-off-by: Yong Tang <[email protected]> * Format gif_io.cc with clang-format -i --style=Google Signed-off-by: Yong Tang <[email protected]> * Add test case to cover optimized gif support for decode_gif. Signed-off-by: Yong Tang <[email protected]> * Add `#include <algorithm>` to fix Windows build errors This commit add `#include <algorithm>` to fix build errors on Windows platform. Signed-off-by: Yong Tang <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.