platform/upstream/tensorflow.git
6 years agoAdd utility for converting FunctionDef to GraphDef and _FuncGraph.
Saurabh Saxena [Thu, 31 May 2018 23:06:15 +0000 (16:06 -0700)]
Add utility for converting FunctionDef to GraphDef and _FuncGraph.

PiperOrigin-RevId: 198795625

6 years ago[XLA:GPU] Specify cudnn conv algorithm via backend_config.
Justin Lebar [Thu, 31 May 2018 23:02:26 +0000 (16:02 -0700)]
[XLA:GPU] Specify cudnn conv algorithm via backend_config.

Gets rid of the tricky algorithm/use-tensor-cores operands to cudnn
convolution customcalls, using instead a backend_config.

PiperOrigin-RevId: 198794988

6 years agoFix one comment in prefetch_autotuner_test.cc.
Ruoxin Sang [Thu, 31 May 2018 23:01:50 +0000 (16:01 -0700)]
Fix one comment in prefetch_autotuner_test.cc.

PiperOrigin-RevId: 198794897

6 years agoPutting stubs for function shape inference interface
A. Unique TensorFlower [Thu, 31 May 2018 23:01:23 +0000 (16:01 -0700)]
Putting stubs for function shape inference interface

PiperOrigin-RevId: 198794845

6 years agoAdd warning for gcs_config_ops
Frank Chen [Thu, 31 May 2018 22:52:15 +0000 (15:52 -0700)]
Add warning for gcs_config_ops

PiperOrigin-RevId: 198793502

6 years agoRefactoring: Extract CombineHashes function into a shared module
Yu-Cheng Ling [Thu, 31 May 2018 22:50:55 +0000 (15:50 -0700)]
Refactoring: Extract CombineHashes function into a shared module
PiperOrigin-RevId: 198793295

6 years ago[XLA] Check for identical backend configs in HloInstruction::Identical.
Justin Lebar [Thu, 31 May 2018 22:25:10 +0000 (15:25 -0700)]
[XLA] Check for identical backend configs in HloInstruction::Identical.

PiperOrigin-RevId: 198789495

6 years agoMove reorder-cast-and-transpose optimization to optimization stage.
A. Unique TensorFlower [Thu, 31 May 2018 22:17:52 +0000 (15:17 -0700)]
Move reorder-cast-and-transpose optimization to optimization stage.

PiperOrigin-RevId: 198788352

6 years agoInternal change.
A. Unique TensorFlower [Thu, 31 May 2018 22:11:26 +0000 (15:11 -0700)]
Internal change.

PiperOrigin-RevId: 198787391

6 years agoSimilar to cr/188652533, specify the `maximum_iterations` to tf.while_loop in tf...
A. Unique TensorFlower [Thu, 31 May 2018 22:05:23 +0000 (15:05 -0700)]
Similar to cr/188652533, specify the `maximum_iterations` to tf.while_loop in tf.map_fn to be compatible with XLA.

PiperOrigin-RevId: 198786266

6 years agoWrite checkpoint path of evaluated checkpoint to the event file.
A. Unique TensorFlower [Thu, 31 May 2018 21:48:51 +0000 (14:48 -0700)]
Write checkpoint path of evaluated checkpoint to the event file.

PiperOrigin-RevId: 198783364

6 years agoExpose the ExponentialMovingAverage name as a public property.
A. Unique TensorFlower [Thu, 31 May 2018 21:42:07 +0000 (14:42 -0700)]
Expose the ExponentialMovingAverage name as a public property.

PiperOrigin-RevId: 198782348

6 years agoMark XLAShapeForArgument as const.
Jacques Pienaar [Thu, 31 May 2018 21:24:13 +0000 (14:24 -0700)]
Mark XLAShapeForArgument as const.

PiperOrigin-RevId: 198778945

6 years agoMove RemodeRedundantReshape optimization to a separate stage.
A. Unique TensorFlower [Thu, 31 May 2018 21:01:45 +0000 (14:01 -0700)]
Move RemodeRedundantReshape optimization to a separate stage.

PiperOrigin-RevId: 198775276

6 years agoAdd attributes to TFLite Python API.
Nupur Garg [Thu, 31 May 2018 20:58:32 +0000 (13:58 -0700)]
Add attributes to TFLite Python API.

PiperOrigin-RevId: 198774775

6 years ago[tf.data] Changing signature of `MakeIterator` to enable propagating error status.
Jiri Simsa [Thu, 31 May 2018 20:43:43 +0000 (13:43 -0700)]
[tf.data] Changing signature of `MakeIterator` to enable propagating error status.

PiperOrigin-RevId: 198772254

6 years agoMore eager notebooks.
Alexandre Passos [Thu, 31 May 2018 20:22:10 +0000 (13:22 -0700)]
More eager notebooks.

PiperOrigin-RevId: 198768912

6 years agoMoving generated API to tensorflow/.
Anna R [Thu, 31 May 2018 20:11:43 +0000 (13:11 -0700)]
Moving generated API to tensorflow/.

PiperOrigin-RevId: 198767512

6 years agoAdd profiling statistics to benchmark.
Shashi Shekhar [Thu, 31 May 2018 20:10:07 +0000 (13:10 -0700)]
Add profiling statistics to benchmark.

PiperOrigin-RevId: 198767297

6 years agoFix links in the TensorFlow Security Advisories
Frank Chen [Thu, 31 May 2018 19:38:35 +0000 (12:38 -0700)]
Fix links in the TensorFlow Security Advisories

PiperOrigin-RevId: 198762795

6 years agoMaking the tf.name_scope blocks related to the factor and weight vars configurable...
A. Unique TensorFlower [Thu, 31 May 2018 19:16:54 +0000 (12:16 -0700)]
Making the tf.name_scope blocks related to the factor and weight vars configurable. By default they will not be scoped.

PiperOrigin-RevId: 198759754

6 years agoRuntimeShapes class: minor tweak to fix builds.
A. Unique TensorFlower [Thu, 31 May 2018 18:52:43 +0000 (11:52 -0700)]
RuntimeShapes class: minor tweak to fix builds.

PiperOrigin-RevId: 198755870

6 years ago[XLA] Make HloInstruction::backend_config() a JSON-encoded protobuf.
Justin Lebar [Thu, 31 May 2018 18:43:37 +0000 (11:43 -0700)]
[XLA] Make HloInstruction::backend_config() a JSON-encoded protobuf.

PiperOrigin-RevId: 198754463

6 years ago[XLA] Redesign: delete computation_tracker and user_computation.
A. Unique TensorFlower [Thu, 31 May 2018 17:39:33 +0000 (10:39 -0700)]
[XLA] Redesign: delete computation_tracker and user_computation.

PiperOrigin-RevId: 198743117

6 years agoInitial implementation of a few of the list-specific operators.
Dan Moldovan [Thu, 31 May 2018 17:33:53 +0000 (10:33 -0700)]
Initial implementation of a few of the list-specific operators.
This introduces an abstraction for a dispatch context, which allows passing local information through to the specialized operators.

PiperOrigin-RevId: 198742074

6 years agoSuppress generation of the proto API's descriptor() method, it conflicts with the...
A. Unique TensorFlower [Thu, 31 May 2018 17:20:00 +0000 (10:20 -0700)]
Suppress generation of the proto API's descriptor() method, it conflicts with the field name.

PiperOrigin-RevId: 198739727

6 years agoIntroduce runtime shape class.
A. Unique TensorFlower [Thu, 31 May 2018 17:15:59 +0000 (10:15 -0700)]
Introduce runtime shape class.

PiperOrigin-RevId: 198739017

6 years agoAnother handle_data fix for graph-mode functions.
Skye Wanderman-Milne [Thu, 31 May 2018 16:43:30 +0000 (09:43 -0700)]
Another handle_data fix for graph-mode functions.

PiperOrigin-RevId: 198734229

6 years agoCleanup: update continue_statements.py to use the base transformer facilities for...
Dan Moldovan [Thu, 31 May 2018 15:53:36 +0000 (08:53 -0700)]
Cleanup: update continue_statements.py to use the base transformer facilities for tracking local state and reindenting node blocks. Rearrange the error handling in base transformer to avoid chained exceptions.

PiperOrigin-RevId: 198727946

6 years agoStandardize shifts in multiplication util functions.
A. Unique TensorFlower [Thu, 31 May 2018 15:33:36 +0000 (08:33 -0700)]
Standardize shifts in multiplication util functions.

PiperOrigin-RevId: 198725578

6 years agoMake GraphConstructor create nodes in the same order as the GraphDef.
Skye Wanderman-Milne [Thu, 31 May 2018 14:56:56 +0000 (07:56 -0700)]
Make GraphConstructor create nodes in the same order as the GraphDef.

While technically the order of the created nodes doesn't matter, this
makes viewing and debugging graphs more sensible.

Fixes #19594.

PiperOrigin-RevId: 198721173

6 years ago[tf.data] Scaling down the `batch_dataset_op_test`.
Jiri Simsa [Thu, 31 May 2018 13:57:55 +0000 (06:57 -0700)]
[tf.data] Scaling down the `batch_dataset_op_test`.

PiperOrigin-RevId: 198715407

6 years agoimplementation of sparse_to_dense
A. Unique TensorFlower [Thu, 31 May 2018 13:05:04 +0000 (06:05 -0700)]
implementation of sparse_to_dense

PiperOrigin-RevId: 198710452

6 years ago[XLA] Redesign: delete the old service interface.
A. Unique TensorFlower [Thu, 31 May 2018 05:03:16 +0000 (22:03 -0700)]
[XLA] Redesign: delete the old service interface.
- Computation
- ComputeConstant
- Execute
- ExecuteAsync
- ExecuteParallel
- GetComputationStats
- GetComputationShape
- GetLocalShape
- IsConstant
- LoadComputationSnapshot
- Op
- SetReturnValue
- SnapshotComputation

PiperOrigin-RevId: 198669035

6 years agoImprove ReshapeIsIdentity to work with symbolic shapes.
Jingyue Wu [Thu, 31 May 2018 05:00:32 +0000 (22:00 -0700)]
Improve ReshapeIsIdentity to work with symbolic shapes.

For example, with this CL, ArithmeticOptimizer can optimize the Reshape below
into a no-op.

  s = Shape(t)
  Reshape(t, Concat(s[0], s[1], s[2], s[3]))

PiperOrigin-RevId: 198668726

6 years agoAdd GCS_READ_CACHE_DISABLED explicit env var to GcsFileSystem
Nick Felt [Thu, 31 May 2018 02:27:26 +0000 (19:27 -0700)]
Add GCS_READ_CACHE_DISABLED explicit env var to GcsFileSystem

PiperOrigin-RevId: 198658074

6 years agoAdd a subclassed Model's attribute-assigned variables to Model.weights et al
Allen Lavoie [Thu, 31 May 2018 02:01:58 +0000 (19:01 -0700)]
Add a subclassed Model's attribute-assigned variables to Model.weights et al

Makes the Variable.trainable property public, which is sensible if we're discouraging use of the global collection (currently eager execution is using ResourceVariable._trainable in a bunch of places anyway). I'm leaving it read-only for now, since we should toggle in and out of the global collection when it changes.

Same change for checkpointable data structures with respect to gathering extra variables. They'll behave like subclassed Models.

I think this makes more sense than trying to have a distinction between "variables" and "weights". It's also more sensible than collecting everything that would get checkpointed, since that will include Optimizer slot variables and metrics. Collecting those is generally pointless, and accidentally adding them to gradient tapes would be horribly confusing.

PiperOrigin-RevId: 198656079

6 years agoAutomated g4 rollback of changelist 195379693
HyoukJoong Lee [Thu, 31 May 2018 01:43:40 +0000 (18:43 -0700)]
Automated g4 rollback of changelist 195379693

PiperOrigin-RevId: 198654780

6 years agoExpose xla_disable_hlo_passes via ExecutableBuildOptions.
Sanjoy Das [Thu, 31 May 2018 01:35:42 +0000 (18:35 -0700)]
Expose xla_disable_hlo_passes via ExecutableBuildOptions.

PiperOrigin-RevId: 198654099

6 years agoRemove code returning bad status when the input pointer is nullptr in internal
Ruoxin Sang [Thu, 31 May 2018 01:11:10 +0000 (18:11 -0700)]
Remove code returning bad status when the input pointer is nullptr in internal
functions. That should be a programmatic error and we have full control of
internal functions, so it is OK to crash if error happens.

PiperOrigin-RevId: 198651749

6 years ago[XLA] Add parsers for Window and ConvolutionDimensionNumbers.
Justin Lebar [Thu, 31 May 2018 00:59:50 +0000 (17:59 -0700)]
[XLA] Add parsers for Window and ConvolutionDimensionNumbers.

Also modify relevant ToString functions so we can have the property
Parse(ToString(x)) == x.

PiperOrigin-RevId: 198650340

6 years agoEnable TOCO pip command line binding.
Nupur Garg [Thu, 31 May 2018 00:54:02 +0000 (17:54 -0700)]
Enable TOCO pip command line binding.

PiperOrigin-RevId: 198649827

6 years agoFix bug with renorm + virtual_batch_size.
Chris Ying [Thu, 31 May 2018 00:38:13 +0000 (17:38 -0700)]
Fix bug with renorm + virtual_batch_size.

PiperOrigin-RevId: 198648273

6 years ago[XLA] Switch replay_computation to use LocalClient.
Justin Lebar [Thu, 31 May 2018 00:00:50 +0000 (17:00 -0700)]
[XLA] Switch replay_computation to use LocalClient.

This lets replay_computation build an executable once and run it
multiple times.  This is particularly important because in XLA:GPU, the
first run of an executable does some autotuning and therefore is
unrepresentative.

This change removes --xla_hlo_profile_last_run, because I don't see how
to support it in LocalClient -- LocalClient wants the do-profile bit to
be set when we *compile*.  (There may not be an easy fix for this; it
worked with regular Client because we were recompiling every time we
ran.)

PiperOrigin-RevId: 198643577

6 years ago[TF:XLA] Bump open source llvm revision to r333547
Sanjoy Das [Wed, 30 May 2018 23:54:00 +0000 (16:54 -0700)]
[TF:XLA] Bump open source llvm revision to r333547

PiperOrigin-RevId: 198642698

6 years agoRegard a path as a directory if it ends with "/" in GCS. This implies the assumption...
Ruoxin Sang [Wed, 30 May 2018 23:38:59 +0000 (16:38 -0700)]
Regard a path as a directory if it ends with "/" in GCS. This implies the assumption that if a real GCS object has file name ending with "/", it is always a directory mark rather than an object carrying actual contents.

PiperOrigin-RevId: 198640604

6 years agoAlways delete old while loop after LICM
Sanjoy Das [Wed, 30 May 2018 23:29:25 +0000 (16:29 -0700)]
Always delete old while loop after LICM

Right now the old while loop can stick around if it had side effects, which is
incorrect.

PiperOrigin-RevId: 198639203

6 years agoAdd SerialDeviceBatchScheduler which offers similar performance as the AdaptiveShared...
A. Unique TensorFlower [Wed, 30 May 2018 23:27:26 +0000 (16:27 -0700)]
Add SerialDeviceBatchScheduler which offers similar performance as the AdaptiveSharedBatchScheduler, but increased reliablility and stability.

ASBS assumes request latency can be minimized at a specific number of batch processing threads. Under reasonable load, this is true and ASBS performs well, but under low load latency is basically unaffected by the number of threads, and ASBS can learn a wide variety of 'optimal' values.  If load resumes suddenly, these values can give very poor latencies.  In most cases, ASBS will recover, eventually rediscovering the correct value, but we have observed other cases where the latency is so large and noisy that ASBS can't get a good signal to guide its learning and the number of threads remains stuck at the bad value.

In addition, the incremental learning nature of this algorithm means that ASBS is always exploring to some extent, which can give rise to periods of non-optimal latency. This is most significant at high utilization where the wrong number of threads can potentially overload the system.

ASBS uses latency as a proxy for keeping the tensorflow processing pipeline optimally loaded. SDBS, on the other hand, uses a direct measurement of the pipeline fullness, and adjusts its number of batch processing threads accordingly. This solves the exploration problem. SDBS solves the low load problem by not adjusting its thread count when the threads pass some idleness threshold.

PiperOrigin-RevId: 198638918

6 years agoAdd a convenience function, build_supervised_input_receiver_fn_from_input_fn,
Karmel Allison [Wed, 30 May 2018 23:25:00 +0000 (16:25 -0700)]
Add a convenience function, build_supervised_input_receiver_fn_from_input_fn,
that takes an Estimator input_fn and returns an input receiver function.

PiperOrigin-RevId: 198638593

6 years agoAutomated g4 rollback of changelist 198444757
A. Unique TensorFlower [Wed, 30 May 2018 23:17:45 +0000 (16:17 -0700)]
Automated g4 rollback of changelist 198444757

PiperOrigin-RevId: 198637528

6 years agoMakes empty() support uint8 on cpu.
A. Unique TensorFlower [Wed, 30 May 2018 23:01:05 +0000 (16:01 -0700)]
Makes empty() support uint8 on cpu.

PiperOrigin-RevId: 198634986

6 years agoRemove environment variable to disable C API.
Skye Wanderman-Milne [Wed, 30 May 2018 23:00:26 +0000 (16:00 -0700)]
Remove environment variable to disable C API.

This is staging for removing the _USE_C_API toggle altogether.

PiperOrigin-RevId: 198634886

6 years agoMakes most variable writes depend on the cached value.
Alexandre Passos [Wed, 30 May 2018 22:50:43 +0000 (15:50 -0700)]
Makes most variable writes depend on the cached value.

This disallows some undefined behavior with unordered reads and writes.

PiperOrigin-RevId: 198633444

6 years agoAdd HloProto support to replay_computation
A. Unique TensorFlower [Wed, 30 May 2018 22:39:03 +0000 (15:39 -0700)]
Add HloProto support to replay_computation

PiperOrigin-RevId: 198631733

6 years agoAvoid recursion in ExpandDomain() as stack is not happy.
A. Unique TensorFlower [Wed, 30 May 2018 22:24:17 +0000 (15:24 -0700)]
Avoid recursion in ExpandDomain() as stack is not happy.

PiperOrigin-RevId: 198629366

6 years agoAdd kwargs support for tpu.outside_compilation
A. Unique TensorFlower [Wed, 30 May 2018 22:03:25 +0000 (15:03 -0700)]
Add kwargs support for tpu.outside_compilation

PiperOrigin-RevId: 198625799

6 years agoMove RemoveInvolution optimization to optimizer stage.
A. Unique TensorFlower [Wed, 30 May 2018 21:55:54 +0000 (14:55 -0700)]
Move RemoveInvolution optimization to optimizer stage.

PiperOrigin-RevId: 198624394

6 years agoAdd GCS configure ops.
Brennan Saeta [Wed, 30 May 2018 22:25:46 +0000 (15:25 -0700)]
Add GCS configure ops.

PiperOrigin-RevId: 198624285

6 years agoAdd `fill_triangular_inverse`, which flattens a triangular matrix in a way such that:
Joshua V. Dillon [Wed, 30 May 2018 21:52:57 +0000 (14:52 -0700)]
Add `fill_triangular_inverse`, which flattens a triangular matrix in a way such that:
# Lower triangular matrix
x = tf.matrix_band_part(x, -1, 0)
x == fill_triangular(fill_triangular_inverse(x))
Code by srvasude@ which I'm submitting on his behalf.

PiperOrigin-RevId: 198623887

6 years agoAdd control dependencies to the correct graph when simplifying packing ops.
Benoit Steiner [Wed, 30 May 2018 21:45:56 +0000 (14:45 -0700)]
Add control dependencies to the correct graph when simplifying packing ops.

PiperOrigin-RevId: 198622727

6 years agoAdd `tf.contrib.distributions.bijectors.MatrixInverseTriL`: Bijector that inverts...
A. Unique TensorFlower [Wed, 30 May 2018 21:44:57 +0000 (14:44 -0700)]
Add `tf.contrib.distributions.bijectors.MatrixInverseTriL`: Bijector that inverts a lower-triangular matrix.

PiperOrigin-RevId: 198622553

6 years agoAdd include file which provides the proper std::string mapping.
A. Unique TensorFlower [Wed, 30 May 2018 21:33:54 +0000 (14:33 -0700)]
Add include file which provides the proper std::string mapping.

PiperOrigin-RevId: 198620715

6 years agoSkip errors in function optimizer if optimized graph was not modified before error...
A. Unique TensorFlower [Wed, 30 May 2018 18:48:43 +0000 (11:48 -0700)]
Skip errors in function optimizer if optimized graph was not modified before error happened.

Currently error can happen if function can't be instantiated as GrapplerFunctionItem.

PiperOrigin-RevId: 198595096

6 years ago[tf.data] change batch dataset op test size to large to prevent timeout
Jiri Simsa [Wed, 30 May 2018 18:30:23 +0000 (11:30 -0700)]
[tf.data] change batch dataset op test size to large to prevent timeout

PiperOrigin-RevId: 198592202

6 years agoLet the swig wrapped builder to return the HloModuleProto.
A. Unique TensorFlower [Wed, 30 May 2018 18:12:26 +0000 (11:12 -0700)]
Let the swig wrapped builder to return the HloModuleProto.

PiperOrigin-RevId: 198588920

6 years agoAdd an option to propagate Status in GraphOptimizerStagePipelines.
Rob Sloan [Wed, 30 May 2018 17:56:02 +0000 (10:56 -0700)]
Add an option to propagate Status in GraphOptimizerStagePipelines.

PiperOrigin-RevId: 198585886

6 years agoInternal change
A. Unique TensorFlower [Wed, 30 May 2018 17:40:39 +0000 (10:40 -0700)]
Internal change

PiperOrigin-RevId: 198582954

6 years agoDisable flaky fused_rnn_cell_test
Gunhan Gulsoy [Wed, 30 May 2018 17:35:57 +0000 (10:35 -0700)]
Disable flaky fused_rnn_cell_test

PiperOrigin-RevId: 198582181

6 years agoKL divergence for two Dirichlet distributions.
A. Unique TensorFlower [Wed, 30 May 2018 16:39:57 +0000 (09:39 -0700)]
KL divergence for two Dirichlet distributions.

PiperOrigin-RevId: 198573236

6 years agoAdding tf.name_scope blocks to make the TensorBoard graph visualization usable.
A. Unique TensorFlower [Wed, 30 May 2018 16:14:12 +0000 (09:14 -0700)]
Adding tf.name_scope blocks to make the TensorBoard graph visualization usable.

PiperOrigin-RevId: 198569786

6 years ago[tf.data] Adding a concurrency stress test for `map_and_batch`.
Jiri Simsa [Wed, 30 May 2018 15:53:16 +0000 (08:53 -0700)]
[tf.data] Adding a concurrency stress test for `map_and_batch`.

PiperOrigin-RevId: 198566777

6 years agointernal
Mustafa Ispir [Wed, 30 May 2018 15:00:34 +0000 (08:00 -0700)]
internal

PiperOrigin-RevId: 198560342

6 years agobeautify test output file name.
A. Unique TensorFlower [Wed, 30 May 2018 14:13:33 +0000 (07:13 -0700)]
beautify test output file name.

PiperOrigin-RevId: 198555383

6 years agoRemove unused Make variables from tf_py_wrap_cc.
A. Unique TensorFlower [Wed, 30 May 2018 07:58:29 +0000 (00:58 -0700)]
Remove unused Make variables from tf_py_wrap_cc.

PiperOrigin-RevId: 198518885

6 years agoAdds GPU kernel registration for igamma, igammac.
Brian Patton [Wed, 30 May 2018 07:14:37 +0000 (00:14 -0700)]
Adds GPU kernel registration for igamma, igammac.

Switches use_gpu=True to force_gpu=True for cwise_ops_test.

PiperOrigin-RevId: 198515293

6 years agoImprove error message when a missing feature name is passed as a unicode string.
A. Unique TensorFlower [Wed, 30 May 2018 07:06:26 +0000 (00:06 -0700)]
Improve error message when a missing feature name is passed as a unicode string.

PiperOrigin-RevId: 198514621

6 years agoFix GPU build on windows
Smit Hinsu [Wed, 30 May 2018 06:52:59 +0000 (23:52 -0700)]
Fix GPU build on windows

PiperOrigin-RevId: 198513480

6 years agointernal cleanup
A. Unique TensorFlower [Wed, 30 May 2018 04:39:20 +0000 (21:39 -0700)]
internal cleanup

PiperOrigin-RevId: 198504528

6 years agoIntroduced kDomain HLO instruction set isolation to bound connected sets of instructi...
A. Unique TensorFlower [Wed, 30 May 2018 04:24:36 +0000 (21:24 -0700)]
Introduced kDomain HLO instruction set isolation to bound connected sets of instructions with similar attributes (ie, sharding).
This CL simply adds the infrastructure, but leaves the wire-on to a separate CL.

PiperOrigin-RevId: 198503625

6 years agoAdd features to HloRunner for running while leaving buffers on the device and add...
Bjarke Hammersholt Roune [Wed, 30 May 2018 04:10:43 +0000 (21:10 -0700)]
Add features to HloRunner for running while leaving buffers on the device and add option to test_utils for generating more-boring data much faster.

PiperOrigin-RevId: 198502753

6 years agoDo not allow cross computation instruction lookups in HLO parser.
A. Unique TensorFlower [Wed, 30 May 2018 02:50:19 +0000 (19:50 -0700)]
Do not allow cross computation instruction lookups in HLO parser.

PiperOrigin-RevId: 198496653

6 years ago[XLA] Minor HloSharding cleanups.
Justin Lebar [Wed, 30 May 2018 02:07:32 +0000 (19:07 -0700)]
[XLA] Minor HloSharding cleanups.

Delete dead code in HloSharding::ToString(), and add and use proper
hasher struct.

PiperOrigin-RevId: 198493972

6 years agoRemove unnecessary shape registration fn from cudnn rnn ops.
James Qin [Wed, 30 May 2018 01:17:19 +0000 (18:17 -0700)]
Remove unnecessary shape registration fn from cudnn rnn ops.

The registered ones are the same as default.

PiperOrigin-RevId: 198489529

6 years agoMaking RPC op handle the case where cancellation manager is not initialized in OpKern...
Jiri Simsa [Wed, 30 May 2018 01:10:27 +0000 (18:10 -0700)]
Making RPC op handle the case where cancellation manager is not initialized in OpKernelContext.

Fixes #19496

PiperOrigin-RevId: 198488860

6 years agoConvenience functions to create TensorProto directly from data (std::vector).
Alexander Gorban [Wed, 30 May 2018 00:51:13 +0000 (17:51 -0700)]
Convenience functions to create TensorProto directly from data (std::vector).

PiperOrigin-RevId: 198486802

6 years agoUse absolute indexing in `fill_triangular`.
Joshua V. Dillon [Wed, 30 May 2018 00:42:37 +0000 (17:42 -0700)]
Use absolute indexing in `fill_triangular`.

PiperOrigin-RevId: 198485926

6 years agoFixing a bug in `map_and_batch_fusion` and improving test coverage.
Jiri Simsa [Wed, 30 May 2018 00:08:59 +0000 (17:08 -0700)]
Fixing a bug in `map_and_batch_fusion` and improving test coverage.

PiperOrigin-RevId: 198481898

6 years agoAdd tf.keras programmer's guide.
Francois Chollet [Tue, 29 May 2018 23:57:17 +0000 (16:57 -0700)]
Add tf.keras programmer's guide.

PiperOrigin-RevId: 198480159

6 years agoFix documented numpy equivalent of matrix_triangular_solve.
A. Unique TensorFlower [Tue, 29 May 2018 23:47:59 +0000 (16:47 -0700)]
Fix documented numpy equivalent of matrix_triangular_solve.

PiperOrigin-RevId: 198478933

6 years agoAutomated g4 rollback of changelist 198137414
Justin Lebar [Tue, 29 May 2018 23:41:00 +0000 (16:41 -0700)]
Automated g4 rollback of changelist 198137414

PiperOrigin-RevId: 198477942

6 years agoAdjust TPUEstimator timeout for worker shutdown to 60 seconds.
Russell Power [Tue, 29 May 2018 23:36:16 +0000 (16:36 -0700)]
Adjust TPUEstimator timeout for worker shutdown to 60 seconds.

PiperOrigin-RevId: 198477309

6 years agoWraps the FinalOp exection with a user-friendly error mssage.
Jianwei Xie [Tue, 29 May 2018 23:33:25 +0000 (16:33 -0700)]
Wraps the FinalOp exection with a user-friendly error mssage.

PiperOrigin-RevId: 198476911

6 years agoUpdate setup.py with project description and development status.
Yifei Feng [Tue, 29 May 2018 23:22:46 +0000 (16:22 -0700)]
Update setup.py with project description and development status.

PiperOrigin-RevId: 198475440

6 years agoAdd microbenchmarks for the executor.
Derek Murray [Tue, 29 May 2018 23:22:22 +0000 (16:22 -0700)]
Add microbenchmarks for the executor.

PiperOrigin-RevId: 198475385

6 years ago streaming trace viewer need to filter host.
A. Unique TensorFlower [Tue, 29 May 2018 22:56:42 +0000 (15:56 -0700)]
  streaming trace viewer need to filter host.

PiperOrigin-RevId: 198471853

6 years agoAdding a check in eager metrics to make sure that the shapes of labels and prediction...
Rohan Jain [Tue, 29 May 2018 22:31:04 +0000 (15:31 -0700)]
Adding a check in eager metrics to make sure that the shapes of labels and predictions are exactly the same. The issue is that math_ops.equal would do broadcasting and so even if the shapes weren't entirely equal it'll produce an output which would be incorrect rather that reporting an error.

PiperOrigin-RevId: 198468251

6 years agoIn TPUEstimator.export_savedmodel(), if saving TPU metegraph fails, issue a warning...
A. Unique TensorFlower [Tue, 29 May 2018 21:28:59 +0000 (14:28 -0700)]
In TPUEstimator.export_savedmodel(), if saving TPU metegraph fails, issue a warning instead so that user can still use the CPU metagraph.

PiperOrigin-RevId: 198458571

6 years ago[tf.data] better benchmarking code in tests for measuring improvements to csv parsing
Rachel Lim [Tue, 29 May 2018 21:22:18 +0000 (14:22 -0700)]
[tf.data] better benchmarking code in tests for measuring improvements to csv parsing

PiperOrigin-RevId: 198457501

6 years ago[TF:XLA] Implement Bucketize.
Peter Hawkins [Tue, 29 May 2018 20:53:17 +0000 (13:53 -0700)]
[TF:XLA] Implement Bucketize.

PiperOrigin-RevId: 198452289

6 years agoMake the quantize_and_dequantize op use the full quantized range when possible.
A. Unique TensorFlower [Tue, 29 May 2018 20:44:28 +0000 (13:44 -0700)]
Make the quantize_and_dequantize op use the full quantized range when possible.

PiperOrigin-RevId: 198450816