platform/upstream/tensorflow.git
6 years agoAdd ExplicitShapes as a new shape inference function for Ops with
A. Unique TensorFlower [Mon, 14 May 2018 22:45:33 +0000 (15:45 -0700)]
Add ExplicitShapes as a new shape inference function for Ops with
multiple outputs, each of which is explicitly declared.

PiperOrigin-RevId: 196579920

6 years agoRemove CuDNNRNN timing test.
Pavithra Vijay [Mon, 14 May 2018 22:32:44 +0000 (15:32 -0700)]
Remove CuDNNRNN timing test.

PiperOrigin-RevId: 196578043

6 years agoFix copy functions of MutableOpResolver
Yu-Cheng Ling [Mon, 14 May 2018 22:27:51 +0000 (15:27 -0700)]
Fix copy functions of MutableOpResolver

PiperOrigin-RevId: 196577314

6 years agoUsed aligned allocation for vector cache.
Shashi Shekhar [Mon, 14 May 2018 22:22:04 +0000 (15:22 -0700)]
Used aligned allocation for vector cache.

PiperOrigin-RevId: 196576497

6 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Mon, 14 May 2018 22:20:07 +0000 (15:20 -0700)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 196576189

6 years agoInternal change.
A. Unique TensorFlower [Mon, 14 May 2018 22:15:38 +0000 (15:15 -0700)]
Internal change.

PiperOrigin-RevId: 196575483

6 years agoRefactoring: Remove lite/tools:mutable_op_resolver dependency.
Yu-Cheng Ling [Mon, 14 May 2018 22:14:53 +0000 (15:14 -0700)]
Refactoring: Remove lite/tools:mutable_op_resolver dependency.
PiperOrigin-RevId: 196575387

6 years agoStricter analysis for functional conditional generation
A. Unique TensorFlower [Mon, 14 May 2018 22:06:17 +0000 (15:06 -0700)]
Stricter analysis for functional conditional generation

PiperOrigin-RevId: 196573938

6 years agoDo shape validation in ScatterNd kernel, not just the shape inference function.
Alexandre Passos [Mon, 14 May 2018 21:58:17 +0000 (14:58 -0700)]
Do shape validation in ScatterNd kernel, not just the shape inference function.

Fixes #18648

PiperOrigin-RevId: 196572262

6 years agoFail gracefully with a helpful error message when provided with conflicting
Asim Shankar [Mon, 14 May 2018 21:56:36 +0000 (14:56 -0700)]
Fail gracefully with a helpful error message when provided with conflicting
visible_devices_list.

See #19083
See #18861

More generally, this change avoids assertion failures (that will bring the
whole process down) on a few code-paths that can be triggerred by user input.

PiperOrigin-RevId: 196572013

6 years agoInternal change.
A. Unique TensorFlower [Mon, 14 May 2018 21:49:08 +0000 (14:49 -0700)]
Internal change.

PiperOrigin-RevId: 196570742

6 years agoMake CollectiveParamReducerLocal::InitInstanceSharedParams non-blocking.
A. Unique TensorFlower [Mon, 14 May 2018 21:44:31 +0000 (14:44 -0700)]
Make CollectiveParamReducerLocal::InitInstanceSharedParams non-blocking.

PiperOrigin-RevId: 196570011

6 years agoAutomated g4 rollback of changelist 196456687
Gunhan Gulsoy [Mon, 14 May 2018 21:32:15 +0000 (14:32 -0700)]
Automated g4 rollback of changelist 196456687

PiperOrigin-RevId: 196567964

6 years agoAdd score filtering to tf.image.non_max_suppression.
A. Unique TensorFlower [Mon, 14 May 2018 21:32:03 +0000 (14:32 -0700)]
Add score filtering to tf.image.non_max_suppression.

PiperOrigin-RevId: 196567928

6 years agoUpdate the eager programmer's guide to reflect the fact that "==" is not
Akshay Agrawal [Mon, 14 May 2018 21:25:55 +0000 (14:25 -0700)]
Update the eager programmer's guide to reflect the fact that "==" is not
implemented in the natural way for the Tensor class.

PiperOrigin-RevId: 196566940

6 years agoReverseDFS scheduler reverses the heuristics used in DFSScheduler.
Yunxing Dai [Mon, 14 May 2018 21:18:11 +0000 (14:18 -0700)]
ReverseDFS scheduler reverses the heuristics used in DFSScheduler.

Also fixes hlo_schedule_test to remove the expected order on unrelated operations.

PiperOrigin-RevId: 196565651

6 years agoDisable flaky cudnn_recurrent test
Gunhan Gulsoy [Mon, 14 May 2018 21:16:09 +0000 (14:16 -0700)]
Disable flaky cudnn_recurrent test

PiperOrigin-RevId: 196565296

6 years agoReenable virtual gpu test, and decrease the number of testing rounds.
Guangda Lai [Mon, 14 May 2018 21:15:14 +0000 (14:15 -0700)]
Reenable virtual gpu test, and decrease the number of testing rounds.

PiperOrigin-RevId: 196565153

6 years ago[XLA] Ergonomic improvements to --xla_hlo_profile.
Justin Lebar [Mon, 14 May 2018 21:09:01 +0000 (14:09 -0700)]
[XLA] Ergonomic improvements to --xla_hlo_profile.

- Don't display ops with 0 optimal seconds and 0 actual cycles.  These
  are ops that were expected to be free and were actually free.

- Fix HloCostAnalysis to mark parameters, constants, and
  get-tuple-element as expected-to-be-free per the definition above.

- Allow optimal-seconds < 0 to indicate "I don't know".  Use this for
  custom calls, and then hide such ops from the "seconds above the
  optimum" table.

- Don't display "<none>" and "<unknown>" -- instead, just display the
  empty string.  Less visual noise.

- Instead of showing ~5 ops per category in the categories tables, show
  everything.  This isn't so noisy now that we're hiding "free" ops, and
  it makes finding optimization opportunities much easier.

PiperOrigin-RevId: 196564177

6 years agoAdd If op rewriter.
Jacques Pienaar [Mon, 14 May 2018 21:04:05 +0000 (14:04 -0700)]
Add If op rewriter.

* Add attribute to If op to indicate if lowering to switch-merge form is
  needed;
* Add initial version of If op rewriter than transforms a If op into
  switch/merge nodes (as would have been constructed via tf.cond) if the If op
  has the lowering attribute set.
  - The pass is not ready for general use and, for example, does not support
    reference data types.

PiperOrigin-RevId: 196563421

6 years agoReserves 'context' key in TPUEstimator params dict.
Jianwei Xie [Mon, 14 May 2018 20:53:00 +0000 (13:53 -0700)]
Reserves 'context' key in TPUEstimator params dict.

PiperOrigin-RevId: 196561620

6 years agoAdd CheckpointInputPipelineHook to the API docs.
Saurabh Saxena [Mon, 14 May 2018 20:44:52 +0000 (13:44 -0700)]
Add CheckpointInputPipelineHook to the API docs.

PiperOrigin-RevId: 196560221

6 years agoAdded support for strided slicing of symbolic shapes
Benoit Steiner [Mon, 14 May 2018 20:33:46 +0000 (13:33 -0700)]
Added support for strided slicing of symbolic shapes

PiperOrigin-RevId: 196558466

6 years agoResolve inlined function input/output types from GrapplerFunctionItem.
A. Unique TensorFlower [Mon, 14 May 2018 20:30:53 +0000 (13:30 -0700)]
Resolve inlined function input/output types from GrapplerFunctionItem.

Remove duplicated code to resolve type from attributes.

PiperOrigin-RevId: 196558061

6 years agoUpdated speech commands example to use new dataset
Pete Warden [Mon, 14 May 2018 20:24:58 +0000 (13:24 -0700)]
Updated speech commands example to use new dataset

PiperOrigin-RevId: 196557132

6 years agoVarious ClangTidy-inspired fixes.
A. Unique TensorFlower [Mon, 14 May 2018 20:22:09 +0000 (13:22 -0700)]
Various ClangTidy-inspired fixes.

PiperOrigin-RevId: 196556727

6 years ago add memory utilization estimate for HLO op profile.
A. Unique TensorFlower [Mon, 14 May 2018 20:00:26 +0000 (13:00 -0700)]
  add memory utilization estimate for HLO op profile.

PiperOrigin-RevId: 196553696

6 years agoDeletes an unused private method in head.py
A. Unique TensorFlower [Mon, 14 May 2018 19:03:50 +0000 (12:03 -0700)]
Deletes an unused private method in head.py

PiperOrigin-RevId: 196545696

6 years agoDon't check that bool arrays are quantized.
A. Unique TensorFlower [Mon, 14 May 2018 18:40:50 +0000 (11:40 -0700)]
Don't check that bool arrays are quantized.

PiperOrigin-RevId: 196541955

6 years agoUse utility methods to compute AttrValue hash code and check for equality.
A. Unique TensorFlower [Mon, 14 May 2018 17:43:08 +0000 (10:43 -0700)]
Use utility methods to compute AttrValue hash code and check for equality.

PiperOrigin-RevId: 196531355

6 years agoavoid having stream_executor depend on tensorflow/core
A. Unique TensorFlower [Mon, 14 May 2018 16:51:52 +0000 (09:51 -0700)]
avoid having stream_executor depend on tensorflow/core

PiperOrigin-RevId: 196521381

6 years agoExtracts the following optimizations into methods:
A. Unique TensorFlower [Mon, 14 May 2018 16:45:42 +0000 (09:45 -0700)]
Extracts the following optimizations into methods:

PartialConstPropThroughIdentityN
ConstantPushDown

PiperOrigin-RevId: 196520167

6 years agoPre-factoring: Fix overly specific test expectations to prepare for multi-output...
A. Unique TensorFlower [Mon, 14 May 2018 16:06:25 +0000 (09:06 -0700)]
Pre-factoring: Fix overly specific test expectations to prepare for multi-output fusion.
PiperOrigin-RevId: 196514026

6 years agoPrevent removal of constant inputs to passthrough ops.
A. Unique TensorFlower [Mon, 14 May 2018 14:53:04 +0000 (07:53 -0700)]
Prevent removal of constant inputs to passthrough ops.

PiperOrigin-RevId: 196505061

6 years agoBump protobuf dependency to fix windows build issues.
Gunhan Gulsoy [Mon, 14 May 2018 05:30:21 +0000 (22:30 -0700)]
Bump protobuf dependency to fix windows build issues.

PiperOrigin-RevId: 196456687

6 years agoIntroduce op version into TFLite
Yu-Cheng Ling [Mon, 14 May 2018 02:52:18 +0000 (19:52 -0700)]
Introduce op version into TFLite

PiperOrigin-RevId: 196448769

6 years agoUpdate UI for Camera example.
Shashi Shekhar [Mon, 14 May 2018 01:21:21 +0000 (18:21 -0700)]
Update UI for Camera example.

PiperOrigin-RevId: 196444970

6 years agoClangTidy - Legacy cleanup:
A. Unique TensorFlower [Sun, 13 May 2018 23:52:14 +0000 (16:52 -0700)]
ClangTidy - Legacy cleanup:

  * use nullptr
  * converting integer literal to bool, use bool literal instead
  * annotate this function with 'override' or (rarely) 'final'
  * prefer using 'override' or (rarely) 'final' instead of 'virtual'

PiperOrigin-RevId: 196441181

6 years agoFix logic bug: should use logical-AND, not bitwise-AND.
A. Unique TensorFlower [Sun, 13 May 2018 20:53:35 +0000 (13:53 -0700)]
Fix logic bug: should use logical-AND, not bitwise-AND.

PiperOrigin-RevId: 196435466

6 years agoMake CPython implementation function type-correct, which removes UB from calling...
A. Unique TensorFlower [Sun, 13 May 2018 17:09:58 +0000 (10:09 -0700)]
Make CPython implementation function type-correct, which removes UB from calling a function through a pointer of the wrong type, and also removes a C-style cast.

PiperOrigin-RevId: 196428430

6 years agoAutomated g4 rollback of changelist 196349902
A. Unique TensorFlower [Sat, 12 May 2018 22:40:29 +0000 (15:40 -0700)]
Automated g4 rollback of changelist 196349902

PiperOrigin-RevId: 196387391

6 years agoCheck that the module group metadata builder correctly detects whether there are...
A. Unique TensorFlower [Sat, 12 May 2018 14:13:06 +0000 (07:13 -0700)]
Check that the module group metadata builder correctly detects whether there are more than one companion instruction per device/module.

PiperOrigin-RevId: 196369766

6 years agoAdding cuDNN header dependency to targets that include the cuDNN header file.
A. Unique TensorFlower [Sat, 12 May 2018 06:48:06 +0000 (23:48 -0700)]
Adding cuDNN header dependency to targets that include the cuDNN header file.

PiperOrigin-RevId: 196349902

6 years agoAutomated g4 rollback of changelist 196166118
A. Unique TensorFlower [Sat, 12 May 2018 02:41:09 +0000 (19:41 -0700)]
Automated g4 rollback of changelist 196166118

PiperOrigin-RevId: 196340289

6 years agoMaking GetInput from kernel_util.h return a pointer to const data.
A. Unique TensorFlower [Sat, 12 May 2018 02:38:48 +0000 (19:38 -0700)]
Making GetInput from kernel_util.h return a pointer to const data.

PiperOrigin-RevId: 196340200

6 years agoAdd bool conversion in toco for tflite since bool is supported by tflite.
A. Unique TensorFlower [Sat, 12 May 2018 02:31:37 +0000 (19:31 -0700)]
Add bool conversion in toco for tflite since bool is supported by tflite.

PiperOrigin-RevId: 196339883

6 years agoImplement additional options to control the string output of HloInstruction and HloCo...
A. Unique TensorFlower [Sat, 12 May 2018 00:53:06 +0000 (17:53 -0700)]
Implement additional options to control the string output of HloInstruction and HloComputation.

PiperOrigin-RevId: 196334340

6 years agoAdd IsCondMerge.
Jacques Pienaar [Sat, 12 May 2018 00:32:25 +0000 (17:32 -0700)]
Add IsCondMerge.

PiperOrigin-RevId: 196332782

6 years agoAdd hook for checkpointing input pipeline while training with Estimator.
Saurabh Saxena [Sat, 12 May 2018 00:14:29 +0000 (17:14 -0700)]
Add hook for checkpointing input pipeline while training with Estimator.

PiperOrigin-RevId: 196331223

6 years ago[XLA] s/tensorflow::Status/Status/.
Justin Lebar [Fri, 11 May 2018 23:04:54 +0000 (16:04 -0700)]
[XLA] s/tensorflow::Status/Status/.

These are type aliases of one another; we'd like to be consistent and
use the shorter one.

PiperOrigin-RevId: 196322955

6 years agoCheckpointable: Remove overzealous error checking from tf.make_template
Allen Lavoie [Fri, 11 May 2018 22:58:39 +0000 (15:58 -0700)]
Checkpointable: Remove overzealous error checking from tf.make_template

It was checking that all variables in the Template's scope were dependencies, but Optimizer slot variables are created with the same prefix (and should not be dependencies).

Conversely, eager execution's eager slot variable creation meant that Templates create unnecessary/somewhat harmful dependencies on restored slot variables. Fixes that.

PiperOrigin-RevId: 196321999

6 years agoIn broadcaster.cc send from the input tensor, not the output, since
A. Unique TensorFlower [Fri, 11 May 2018 22:44:39 +0000 (15:44 -0700)]
In broadcaster.cc send from the input tensor, not the output, since
it may not have been forwarded.  Add non-forwarding cases to unittest.

PiperOrigin-RevId: 196320304

6 years agoAdd `<float>` to the call to `Tensor`
Mark Daoust [Fri, 11 May 2018 22:17:58 +0000 (15:17 -0700)]
Add `<float>` to the call to `Tensor`

PiperOrigin-RevId: 196316735

6 years agoExpose MaybeGetMinimumShape for use in cost estimators other than OpLevelCostEstimator.
A. Unique TensorFlower [Fri, 11 May 2018 22:07:48 +0000 (15:07 -0700)]
Expose MaybeGetMinimumShape for use in cost estimators other than OpLevelCostEstimator.

PiperOrigin-RevId: 196315239

6 years agoIntroduce an indirection to access posix/error.h, so implementations don't
A. Unique TensorFlower [Fri, 11 May 2018 22:07:47 +0000 (15:07 -0700)]
Introduce an indirection to access posix/error.h, so implementations don't
have to worry about platform details.

PiperOrigin-RevId: 196315234

6 years agoImplement constant-only ListDiff Op in XLA to support dense layer.
A. Unique TensorFlower [Fri, 11 May 2018 22:07:24 +0000 (15:07 -0700)]
Implement constant-only ListDiff Op in XLA to support dense layer.

PiperOrigin-RevId: 196315170

6 years ago[XLA:GPU] Load kernel thunks' kernels before running them.
Justin Lebar [Fri, 11 May 2018 22:04:41 +0000 (15:04 -0700)]
[XLA:GPU] Load kernel thunks' kernels before running them.

The motivation here is that with --xla_hlo_profile, we count the time
spent in Thunk::ExecuteOnStream, but we don't want to count the time
spent loading the CUDA code into the GPU as time spent in the first
kernel thunk we try to run.

PiperOrigin-RevId: 196314733

6 years agoModify the python interface to toco to provide arithmetic operations used by the...
A. Unique TensorFlower [Fri, 11 May 2018 22:03:34 +0000 (15:03 -0700)]
Modify the python interface to toco to provide arithmetic operations used by the model.

PiperOrigin-RevId: 196314416

6 years agoRemove degenerate batch dimensions form batch dot
Sanjoy Das [Fri, 11 May 2018 22:02:33 +0000 (15:02 -0700)]
Remove degenerate batch dimensions form batch dot

The way things are set up today this specific optimization isn't particularly
important, but I want to implement a follow-on optimization in
BatchDotSimplification to transform (non-degenerate) batch GEMV operations into
GEMM which I'm expecting to help us a bit.

This would normally be in the algebraic simplifier, but we want to fixpoint this
pass before we run DotDecomposer.  This will become more important when we
implement the (non-degenerate) batch GEMV operations -> GEMM transform.

PiperOrigin-RevId: 196314230

6 years ago[TF:XLA] Bump open source llvm revision to r332085
Sanjoy Das [Fri, 11 May 2018 22:02:15 +0000 (15:02 -0700)]
[TF:XLA] Bump open source llvm revision to r332085

PiperOrigin-RevId: 196314181

6 years agoCheckpointable: Add UniqueNameTracker for managing dependencies on arbitrarily named...
Allen Lavoie [Fri, 11 May 2018 21:45:36 +0000 (14:45 -0700)]
Checkpointable: Add UniqueNameTracker for managing dependencies on arbitrarily named objects

Makes generating object-unique dependency names easier, which will hopefully discourage people from using Graph-global names with Checkpointable.

PiperOrigin-RevId: 196311633

6 years agoAdd some python wrapper for TF_ApiDefMap.
A. Unique TensorFlower [Fri, 11 May 2018 21:24:47 +0000 (14:24 -0700)]
Add some python wrapper for TF_ApiDefMap.

PiperOrigin-RevId: 196308677

6 years agoMake the elemental ir emitter for dot operations respect contraction dims
Sanjoy Das [Fri, 11 May 2018 21:05:38 +0000 (14:05 -0700)]
Make the elemental ir emitter for dot operations respect contraction dims

PiperOrigin-RevId: 196305803

6 years agoAllow zero initializer by default for string variables (no reason not to)
Alexandre Passos [Fri, 11 May 2018 20:42:31 +0000 (13:42 -0700)]
Allow zero initializer by default for string variables (no reason not to)

PiperOrigin-RevId: 196302302

6 years agoReads the L2 and L3 cache sizes from the system instead of using hard-coded constants.
A. Unique TensorFlower [Fri, 11 May 2018 19:55:55 +0000 (12:55 -0700)]
Reads the L2 and L3 cache sizes from the system instead of using hard-coded constants.

PiperOrigin-RevId: 196296096

6 years agoUpdate HeapSimulator to use BufferValue.
Jeremy Lau [Fri, 11 May 2018 19:39:40 +0000 (12:39 -0700)]
Update HeapSimulator to use BufferValue.

PiperOrigin-RevId: 196293610

6 years agoChange default number of threads to 1.
Shashi Shekhar [Fri, 11 May 2018 19:36:40 +0000 (12:36 -0700)]
Change default number of threads to 1.

PiperOrigin-RevId: 196293227

6 years agoUpdating the descriptions for TensorFlow.
Amit Patankar [Fri, 11 May 2018 19:27:40 +0000 (12:27 -0700)]
Updating the descriptions for TensorFlow.

PiperOrigin-RevId: 196291844

6 years agoRELNOTES: This allows the use of '.' in variables (e.g. "hparams.parse('a.b=1.0'...
A. Unique TensorFlower [Fri, 11 May 2018 18:04:33 +0000 (11:04 -0700)]
RELNOTES: This allows the use of '.' in variables (e.g. "hparams.parse('a.b=1.0')"), which would previously raise an error. This will correspond to an attribute name with an embedded '.' symbol (e.g. 'a.b'), which can only be accessed indirectly (e.g. through getattr and setattr).  To set this up the user will first need to explicitly add the variable to the hparam object (e.g. "hparams.add_hparam(name='a.b', value=0.0)").

NOTE: the use of '.' in variable names is now allowed, but it is not recommended.
PiperOrigin-RevId: 196278660

6 years agoAllow communicating instructions within a kCall computation.
A. Unique TensorFlower [Fri, 11 May 2018 18:04:22 +0000 (11:04 -0700)]
Allow communicating instructions within a kCall computation.

PiperOrigin-RevId: 196278635

6 years ago[XLA] Fix a doc that still mentioned computation_builder.
A. Unique TensorFlower [Fri, 11 May 2018 18:01:30 +0000 (11:01 -0700)]
[XLA] Fix a doc that still mentioned computation_builder.

PiperOrigin-RevId: 196278086

6 years agoMove fn_args utility into core TensorFlow from Estimator.
Michael Case [Fri, 11 May 2018 17:58:17 +0000 (10:58 -0700)]
Move fn_args utility into core TensorFlow from Estimator.

Working on untangling TF/Estimator deps. Some core TF code depends on Estimator
by using the fn_args utility function within Estimator.

PiperOrigin-RevId: 196277612

6 years agoIntroduce ordered_inputs option to graph_matcher to allow simpler matching of commuta...
Suharsh Sivakumar [Fri, 11 May 2018 17:51:24 +0000 (10:51 -0700)]
Introduce ordered_inputs option to graph_matcher to allow simpler matching of commutative operations.

#18919

PiperOrigin-RevId: 196276502

6 years agoUse Identity instead of Snapshot when the graph does not contain ops that modify...
A. Unique TensorFlower [Fri, 11 May 2018 17:43:30 +0000 (10:43 -0700)]
Use Identity instead of Snapshot when the graph does not contain ops that modify their inputs.

PiperOrigin-RevId: 196275133

6 years ago[XLA] Redesign: delete ComputationBuilder.
A. Unique TensorFlower [Fri, 11 May 2018 17:42:50 +0000 (10:42 -0700)]
[XLA] Redesign: delete ComputationBuilder.

PiperOrigin-RevId: 196275032

6 years agoAdds code examples in public head methods.
A. Unique TensorFlower [Fri, 11 May 2018 17:25:02 +0000 (10:25 -0700)]
Adds code examples in public head methods.

PiperOrigin-RevId: 196272143

6 years agoArithmeticOptimizer assumes valid feeds in aggressive mode.
Jingyue Wu [Fri, 11 May 2018 16:27:13 +0000 (09:27 -0700)]
ArithmeticOptimizer assumes valid feeds in aggressive mode.

ArithmeticOptimizer depends heavily on shapes in some stages.

PiperOrigin-RevId: 196264319

6 years agoMake core:device_tracer private to core/BUILD.
A. Unique TensorFlower [Fri, 11 May 2018 14:51:14 +0000 (07:51 -0700)]
Make core:device_tracer private to core/BUILD.

PiperOrigin-RevId: 196254936

6 years agoAdd NNAPI 1.1 Div/Mul/Pad/Mean nodes.
A. Unique TensorFlower [Fri, 11 May 2018 11:33:38 +0000 (04:33 -0700)]
Add NNAPI 1.1 Div/Mul/Pad/Mean nodes.

PiperOrigin-RevId: 196240584

6 years agoFixing 'nothing to do' test in depthwise backward filter kernel for GPU.
A. Unique TensorFlower [Fri, 11 May 2018 09:39:15 +0000 (02:39 -0700)]
Fixing 'nothing to do' test in depthwise backward filter kernel for GPU.

PiperOrigin-RevId: 196233957

6 years agoRemove 'using' of dnn types in CudnnSupport implementation file.
A. Unique TensorFlower [Fri, 11 May 2018 09:38:54 +0000 (02:38 -0700)]
Remove 'using' of dnn types in CudnnSupport implementation file.

PiperOrigin-RevId: 196233933

6 years agoAdded eval_dir to Estimator so that user does not need to guess which directory conta...
Mustafa Ispir [Fri, 11 May 2018 05:46:15 +0000 (22:46 -0700)]
Added eval_dir to Estimator so that user does not need to guess which directory contains evaluation summaries.

PiperOrigin-RevId: 196218167

6 years agoAdd missing #include. tensorflow::FunctionDef only happens to be available in this...
A. Unique TensorFlower [Fri, 11 May 2018 05:34:52 +0000 (22:34 -0700)]
Add missing #include. tensorflow::FunctionDef only happens to be available in this header because it happens to be forward-declared in one of the other .proto.h headers, but it's not actually used there and will go away.

PiperOrigin-RevId: 196217574

6 years agoCorrect accidental code reversion.
A. Unique TensorFlower [Fri, 11 May 2018 05:05:13 +0000 (22:05 -0700)]
Correct accidental code reversion.

PiperOrigin-RevId: 196216176

6 years ago[XLA] Roll forward fix to use TF macro.
Chris Leary [Fri, 11 May 2018 04:15:35 +0000 (21:15 -0700)]
[XLA] Roll forward fix to use TF macro.

PiperOrigin-RevId: 196213299

6 years agoDisable flaky batch_dataset_op_test
Gunhan Gulsoy [Fri, 11 May 2018 03:55:55 +0000 (20:55 -0700)]
Disable flaky batch_dataset_op_test

PiperOrigin-RevId: 196212027

6 years ago[XLA] Break out literal comparisons from testonly target.
Chris Leary [Fri, 11 May 2018 03:10:34 +0000 (20:10 -0700)]
[XLA] Break out literal comparisons from testonly target.

Moves methods from LiteralTestUtil::* to Literal::* where they have nothing
to do with test infrastructure.

Pares down the "void" variants of the LiteralTestUtil methods and consolidates
to the version that return success/failure such that the values can be
EXPECT_TRUE / ASSERT_TRUE asserted in the caller test cases.

This way the literal comparison functionality can be used from cc_libraries
that are not test only / cc_binary.

PiperOrigin-RevId: 196209410

6 years ago[XLA:GPU] Remove unused Thunk::ShouldBlockFutureThunks function.
Justin Lebar [Fri, 11 May 2018 02:28:35 +0000 (19:28 -0700)]
[XLA:GPU] Remove unused Thunk::ShouldBlockFutureThunks function.

PiperOrigin-RevId: 196206896

6 years agoInternal change
Smit Hinsu [Fri, 11 May 2018 02:05:45 +0000 (19:05 -0700)]
Internal change

PiperOrigin-RevId: 196205436

6 years agoCheckpointable: Have RNN wrappers add their cells as dependencies
Allen Lavoie [Fri, 11 May 2018 01:28:24 +0000 (18:28 -0700)]
Checkpointable: Have RNN wrappers add their cells as dependencies

Also marks _SlimRNNCell as not checkpointable, and adds a more convenient way to tag such classes.

Ideally adding a wrapper around a cell wouldn't break a checkpoint. This could look like RNN cell wrappers inheriting the dependencies of the cell they're wrapping. Possible to add that later if there's demand, or users can just add a dependency on wrapper._cell in addition to/instead of the wrapper when modifying programs.

Fixes #19208.

PiperOrigin-RevId: 196202366

6 years agoA test fix on Windows.
Younghee Kwon [Fri, 11 May 2018 01:17:33 +0000 (18:17 -0700)]
A test fix on Windows.

PiperOrigin-RevId: 196201610

6 years agoPartial update of tf.keras to the Keras 2.1.6 API.
Francois Chollet [Fri, 11 May 2018 00:42:27 +0000 (17:42 -0700)]
Partial update of tf.keras to the Keras 2.1.6 API.

This covers the following features and associated unit tests:
- multi-output layer where `compute_output_mask` returns `None`.
- saving to, and loading from, an existing hdf5 file.
- `verbose` argument (1/0) in `evaluate_generator`.
- stateful metrics with generator methods.
- `data_format` argument in `Flatten`.
- `constants` argument in Bidirectional's `__call__`.

PiperOrigin-RevId: 196198134

6 years ago[TPU]: If the $TPU_NAME env var is set, fallback to that.
Brennan Saeta [Fri, 11 May 2018 00:32:40 +0000 (17:32 -0700)]
[TPU]: If the $TPU_NAME env var is set, fallback to that.

PiperOrigin-RevId: 196196939

6 years agoPipe through warm_start_from parameter
A. Unique TensorFlower [Fri, 11 May 2018 00:07:21 +0000 (17:07 -0700)]
Pipe through warm_start_from parameter

PiperOrigin-RevId: 196194069

6 years agoAdd a HLO evaluator test case for gather
Sanjoy Das [Fri, 11 May 2018 00:06:27 +0000 (17:06 -0700)]
Add a HLO evaluator test case for gather

PiperOrigin-RevId: 196193959

6 years agoFix some races detected by the analysis tool.
A. Unique TensorFlower [Thu, 10 May 2018 23:56:13 +0000 (16:56 -0700)]
Fix some races detected by the analysis tool.

collective_rma_distributed: Return WorkerInterface to cache
prior to invoking RecvFromPeer callback, instead of after.

broadcaster: put status_ updates inside mutex.
PiperOrigin-RevId: 196192631

6 years ago[XLA] Redesign: change the docs to describe the new interfaces. This change is simply...
A. Unique TensorFlower [Thu, 10 May 2018 23:34:09 +0000 (16:34 -0700)]
[XLA] Redesign: change the docs to describe the new interfaces. This change is simply about replacing keywords and formatting files.
- s/ComputationDataHandle/XlaOp/
- s/ComputationBuilder/XlaBuilder/
- s/\<Computation\>/XlaComputation/
- s/client\/computation\.h/client\/xla_client\/xla_computation\.h/
- s/client\/computation_builder\.h/client\/xla_client\/xla_builder\.h/

PiperOrigin-RevId: 196189890

6 years agoring_reducer.cc errata:
A. Unique TensorFlower [Thu, 10 May 2018 23:18:20 +0000 (16:18 -0700)]
ring_reducer.cc errata:
1. Block in the current (blockable) thread when pre-copying input to
output rather than continuing in the callback which cannot block.
2. Clear RingField array on exit to more promptly release Refs on
output tensor buffer.
3. Properly set the forward_from_array parameter in SubContext.

PiperOrigin-RevId: 196188047

6 years agoEnable support for crops in BatchToSpaceNd
A. Unique TensorFlower [Thu, 10 May 2018 23:09:00 +0000 (16:09 -0700)]
Enable support for crops in BatchToSpaceNd

PiperOrigin-RevId: 196186750

6 years agoExport GCS object statting streamz metrics. Fix the wrong #define Guard name in gcs_f...
Ruoxin Sang [Thu, 10 May 2018 22:56:54 +0000 (15:56 -0700)]
Export GCS object statting streamz metrics. Fix the wrong #define Guard name in gcs_file_system.h.

PiperOrigin-RevId: 196184962