aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests
Commit message (Collapse)AuthorAge
* cond_v2: raise an error if pred is a Python bool.Gravatar Skye Wanderman-Milne2018-10-10
| | | | | | This is to match the existing behavior of tf.cond. PiperOrigin-RevId: 216534084
* Delete dead code in batch_scatter_ops_test.Gravatar A. Unique TensorFlower2018-10-10
| | | | PiperOrigin-RevId: 216483746
* Run while loop test that was not being run before.Gravatar A. Unique TensorFlower2018-10-10
| | | | PiperOrigin-RevId: 216483744
* Part 2/3 of the update of tf.keras to the Keras 2.2.4 API.Gravatar Francois Chollet2018-10-09
| | | | PiperOrigin-RevId: 216442569
* Avoid extra calls to set_random_seed, as it is already called inGravatar Gunhan Gulsoy2018-10-09
| | | | | | tensorflowtestcase. PiperOrigin-RevId: 216363450
* Partial support tfe.defun in tf.gradients.Gravatar Alexandre Passos2018-10-08
| | | | | | | | Doesn't attempt to deal with cases where we might have already generated the functiondef for the parent function as in that case we cannot easily modify the forward pass. PiperOrigin-RevId: 216243224
* Add tf.BenchmarkConfig that returns a session config appropriate for ↵Gravatar A. Unique TensorFlower2018-10-08
| | | | | | benchmarking. At the moment, it returns a default config with only Grappler dependency optimizer disabled. Many benchmarks wrap the subgraph they want to time in control_flow_ops.group() to avoid including the overhead of copying the output back to the Python client in the measurement. In the graph, this only adds a control dependency between the subgraph output and the fetch node, which in turn (often) causes the dependency optimizer to turn all nodes in the graph into no-ops. PiperOrigin-RevId: 216242463
* Merge pull request #21658 from lowintelligence:masterGravatar TensorFlower Gardener2018-10-08
|\ | | | | | | PiperOrigin-RevId: 216217509
* | Simply the logic for bubbling captured tensors when building cond_v2 grad.Gravatar Saurabh Saxena2018-10-05
| | | | | | | | | | | | | | | | | | | | The current logic tries to bubble the forward pass tensor to the outermost graph. That might not always be do-able e.g. when the cond is inside a while loop it will need to know accumulator logic for while_loop. So instead, the cond_grad now captures tensors from the forward If op's graph. When the grad If op is built these tensors will be appropriately captured by the surrounding FuncGraph. PiperOrigin-RevId: 215993009
* | Orders non-resource-affecting stateful ops in defuns.Gravatar Alexandre Passos2018-10-05
| | | | | | | | PiperOrigin-RevId: 215985679
* | Copy device from If op to the lowered ops.Gravatar Saurabh Saxena2018-10-05
| | | | | | | | | | | | Enable GPU tests for cond_v2. PiperOrigin-RevId: 215956220
* | Merge pull request #20476 from yongtang:06052018-bincount-shapeGravatar TensorFlower Gardener2018-10-05
|\ \ | | | | | | | | | PiperOrigin-RevId: 215947463
* | | Internal change.Gravatar Anna R2018-10-04
| | | | | | | | | | | | PiperOrigin-RevId: 215797256
* | | Temporarily disable testCondInDefun test in control_flow_ops_py_testGravatar Smit Hinsu2018-10-04
| | | | | | | | | | | | PiperOrigin-RevId: 215788359
* | | Add "encoding" attribute to string substr op, which controls how each ↵Gravatar A. Unique TensorFlower2018-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "character" is treated: * BYTE: Position & length refer to bytes in the string. (Default) * UTF8: The string is interpreted as UTF-8 encoded Unicode code points, and position & length are treated relative to them. RELNOTES: Add option to get substring using Unicode characters PiperOrigin-RevId: 215773373
* | | Gracefully disallow updating resource variables with invalid shapes.Gravatar Asim Shankar2018-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During graph construction, the shape function for AssignAddVariableOp etc. would raise an error when the value being "assign add"ed to the variable has an incompatible shape. With eager execution, no such validation was being made which triggerred an assertion failure in eigen: https://github.com/eigenteam/eigen-git-mirror/blob/7d97e1cbbe4424fda39e31c88def7c0863897640/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h#L479 This change prevents that assertion failure. PiperOrigin-RevId: 215749071
* | | Make batch_gather work with indices of dtype int64.Gravatar Adria Puigdomenech2018-10-04
| | | | | | | | | | | | PiperOrigin-RevId: 215711383
* | | Disable norm_op_test and svd_op_test under msanGravatar Smit Hinsu2018-10-03
| | | | | | | | | | | | PiperOrigin-RevId: 215643600
* | | Re-enable the arithmetic optimizer by default in tests.Gravatar A. Unique TensorFlower2018-10-03
| | | | | | | | | | | | | | | | | | Add a warning to not disable optimizers without consulting with the Grappler team. PiperOrigin-RevId: 215584369
* | | Fix bug in shape function for transpose: If the rank of the input is unknown ↵Gravatar A. Unique TensorFlower2018-10-03
| | | | | | | | | | | | | | | | | | and the rank derived from the permutation array is 0 or 1, the shape is ambiguous and cannot be determined at graph construction time. In this case, forward the shape of the input. PiperOrigin-RevId: 215583050
* | | Internal change.Gravatar Anna R2018-10-02
| | | | | | | | | | | | PiperOrigin-RevId: 215518288
* | | Further loosen bounds for depthwise_conv_op_test.Gravatar Anna R2018-10-02
| | | | | | | | | | | | PiperOrigin-RevId: 215512168
* | | Set shape for output tensors of cond_v2.Gravatar Saurabh Saxena2018-10-02
| | | | | | | | | | | | PiperOrigin-RevId: 215492782
* | | Add missing `import unittest` to control_flow_ops_py_test.pyGravatar Todd Wang2018-10-02
| | | | | | | | | | | | PiperOrigin-RevId: 215485333
* | | Support shape_invariants in while_v2. Note that this arg is temporary and ↵Gravatar Saurabh Saxena2018-10-02
| | | | | | | | | | | | | | | | | | | | | | | | may be replaced by automatic shape inference in TF 2.0 (or before). Add a output_shapes attr to While op to allow output shapes to be different from the incoming loop_vars. PiperOrigin-RevId: 215446737
* | | Use xlogy in a few places in TFP to avoid NaN's for certain special cases.Gravatar A. Unique TensorFlower2018-10-02
| | | | | | | | | | | | PiperOrigin-RevId: 215392621
* | | Loosen test bounds.Gravatar Revan Sopher2018-10-01
| | | | | | | | | | | | PiperOrigin-RevId: 215338403
* | | Override implementation of log survival for Exponential distribution to ↵Gravatar A. Unique TensorFlower2018-10-01
| | | | | | | | | | | | | | | | | | better handle small values. PiperOrigin-RevId: 215299532
* | | Make cond_v2 If op lowering work in a defun + eager.Gravatar Skye Wanderman-Milne2018-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, the lowering pass assumed that the If op functions would be available in the If op's graph. If the If op is defined in a defun and then called via eager execution, the functions will be in the eager context, but not in the defun's graph. This change makes the lowering pass correctly use the function library passed in by the caller via GraphOptimizationPassOptions. PiperOrigin-RevId: 215271990
* | | Fixes possible out-of-bounds access by strided slice.Gravatar Alexandre Passos2018-10-01
| | | | | | | | | | | | PiperOrigin-RevId: 215269882
* | | Add deprecation notice for BasicRNNCell, which will be replaced by ↵Gravatar Scott Zhu2018-10-01
| | | | | | | | | | | | | | | | | | keras.SimpleRNNCell. PiperOrigin-RevId: 215249611
* | | Merge pull request #22473 from wangsiyu:assign_in_part_varsGravatar TensorFlower Gardener2018-10-01
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 215211485
* | | | Internal change.Gravatar A. Unique TensorFlower2018-09-28
| | | | | | | | | | | | | | | | PiperOrigin-RevId: 214986756
* | | | Add flag for enabling while_v2.Gravatar Saurabh Saxena2018-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a single test flag for enabling v2 control flow in tests since we do not plan to support v2 ops with legacy control flow. We have 2 test decorators now: @with_control_flow_v2: Enables all tests in a class to run with v2 control flow. @disable_control_flow_v2: Disables a test function from running in v2. I have removed the skiptests to avoid setup/teardown overheads. Enable tests in control_flow_ops_py_test that run with control_flow_v2. PiperOrigin-RevId: 214980108
* | | | Support nested variants in CopyHostToDevice and CopyDeviceToHost.Gravatar Saurabh Saxena2018-09-27
| | | | | | | | | | | | | | | | PiperOrigin-RevId: 214853860
* | | | Updating the V2 variables API.Gravatar Alexandre Passos2018-09-27
| | | | | | | | | | | | | | | | PiperOrigin-RevId: 214824023
* | | | Add tf.strings.unicode_script, which detects the script of a unicode codepointGravatar A. Unique TensorFlower2018-09-27
| | | | | | | | | | | | | | | | | | | | | | | | based on standard ranges. PiperOrigin-RevId: 214796357
* | | | Specify a preferred_dtype=self.dtype when converting Distribution methods' ↵Gravatar Brian Patton2018-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sample-like args to Tensors. After this change, you could conceivably write tfd.Normal(0., 1.).log_prob(1) The tf core distributions can't use tfp dtype_util.common_dtype, so you can't yet write tfd.Normal(0, 1). Works around an eager bug that loses precision in the presence in tf.convert_to_tensor(0.5, preferred_dtype=tf.int32) PiperOrigin-RevId: 214666222
* | | | Trivial change to softplus_op_test.py.Gravatar Todd Wang2018-09-26
| | | | | | | | | | | | | | | | PiperOrigin-RevId: 214614405
| | | * Merge remote-tracking branch 'origin'Gravatar Cao Zongyan2018-09-26
| | | |\ | |_|_|/ |/| | |
* | | | Remove integer dtypes from Soft{plus,sign} OpDefs.Gravatar Todd Wang2018-09-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These ops were never intended to support integer dtypes, and the OpKernels have already been removed in a previous patch. PiperOrigin-RevId: 214542750
* | | | Add "encoding" attribute to string length op, which controls how "string ↵Gravatar A. Unique TensorFlower2018-09-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | length" is defined: * BYTE: The number of bytes in each string. (Default) * UTF8: The number of UTF-8 encoded Unicode code points in each string. RELNOTES: Add option to calculate string length in Unicode characters PiperOrigin-RevId: 214478470
* | | | Temporarily disable float16 tests in depthwise_conv_op_test. They seem to be ↵Gravatar Anna R2018-09-25
| | | | | | | | | | | | | | | | | | | | | | | | failing when running with P100. PiperOrigin-RevId: 214477405
* | | | Boosted trees: Adding categorical split support to prediction ops.Gravatar A. Unique TensorFlower2018-09-25
| | | | | | | | | | | | | | | | PiperOrigin-RevId: 214448656
* | | | Use self.cached_session instead of self.test_session in ↵Gravatar A. Unique TensorFlower2018-09-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linear_operator_circulant_test. Also: * Instead of overwriting self.test_session(), overwrite self._constrain_devices_and_set_default() to remap the kernel operations (this way self.cached_session(), self.test_session() and self.session() are all correct). * Make linear_operator_test_util use self.session(graph=...) instead of self.test_session(graph=...) (semantically equivalent). PiperOrigin-RevId: 214448118
| * | | fix back variabe nameGravatar wangsiyu2018-09-25
| | | |
| * | | Merge branch 'master' of github.com:tensorflow/tensorflow into ↵Gravatar wangsiyu2018-09-25
| |\ \ \ | |/ / / |/| | | | | | | assign_in_part_vars
* | | | Unpack output of cond_v2 if it is a singleton to match behavior of cond.Gravatar Saurabh Saxena2018-09-24
| | | | | | | | | | | | | | | | PiperOrigin-RevId: 214381126
| | | * Fix build dependencies in tensorflow/cc/BUILD.Gravatar Cao Zongyan2018-09-25
| | | |
* | | | BEGIN_PUBLICGravatar Alexandre Passos2018-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Temporary rollback to fix forward compatibility. END_PUBLIC Automated rollback of commit 0c48c703c3c1455cf3b2c0e47e2108e053ff83e2. Revert #21798. PiperOrigin-RevId: 214349479