aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/api
Commit message (Collapse)AuthorAge
* Part 2/3 of the update of tf.keras to the Keras 2.2.4 API.Gravatar Francois Chollet2018-10-09
| | | | PiperOrigin-RevId: 216442569
* [tf.data] NUMA-aware MapAndBatch dataset.Gravatar Brennan Saeta2018-10-09
| | | | PiperOrigin-RevId: 216395709
* 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
* Part 1/3 of the feature sync to the Keras 2.2.4 API.Gravatar Francois Chollet2018-10-08
| | | | PiperOrigin-RevId: 216211279
* 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
* Add option in tf.gradients() to return zero tensors for unconnected gradients.Gravatar A. Unique TensorFlower2018-10-04
| | | | | | | | tf.gradients currently returns [NONE] when the gradient of unconnected variables is required. This backwards compatable change adds in the option to have zero tensors returned that match the dimensions of the input tensor. PiperOrigin-RevId: 215725488
* [data-stats] Sets user given `tag` and `counter_prefix` with ↵Gravatar Shivani Agrawal2018-10-03
| | | | | | | | `set_stats_aggregator`. `tag` would get prep-end with all the statistics recorded as summary and `counter_prefix` would set the prefix for the statistics recorded as counter. Note: `counter` defaults to `\tensorflow`, and `tag` and `prefix` gets associated with the dataset (not the stats_aggregator). PiperOrigin-RevId: 215609159
* Update Keras RNN layer to support time major input.Gravatar Scott Zhu2018-10-02
| | | | PiperOrigin-RevId: 215479788
* Merge pull request #17672 from joeyearsley:patch-3Gravatar TensorFlower Gardener2018-10-02
|\ | | | | | | PiperOrigin-RevId: 215447391
| * Updated ordering for kwargsGravatar joe yearsley2018-10-02
| |
* | [tf.data] Adding `tf.data.Options()`, `tf.data.Dataset.options()`, and ↵Gravatar Jiri Simsa2018-10-01
| | | | | | | | | | | | `tf.data.Dataset.with_options()` to make it possible to respectively represent, get, and set options, such as optimization configuration, of a tf.data input pipeline. PiperOrigin-RevId: 215310764
* | [tf.data] Deprecate `tf.contrib.data` and introduce `tf.data.experimental` ↵Gravatar Derek Murray2018-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to replace it. This change prepares `tf.data` for TensorFlow 2.0, where `tf.contrib` will no longer exist. It retains the pre-existing endpoints in `tf.contrib.data` with deprecation warnings. Note there are some exceptions to the move: * Deprecated symbols in `tf.contrib.data` have not been moved to `tf.data.experimental`, because replacements already exist. * `tf.contrib.data.LMDBDataset` has not been moved, because we plan to move it to a SIG-maintained repository. * `tf.contrib.data.assert_element_shape()` has not yet been moved, because it depends on functionality in `tf.contrib`, and it will move in a later change. * `tf.contrib.data.AUTOTUNE` has not yet been moved, because we have not yet determined how to `tf_export()` a Python integer. * The stats-related API endpoints have not yet appeared in a released version of TensorFlow, so these are moved to `tf.data.experimental` without retaining an endpoint in `tf.contrib.data`. In addition, this change includes some build rule and ApiDef refactoring: * Some of the "//third_party/tensorflow/python:training" dependencies had to be split in order to avoid a circular dependency. * The `tf.contrib.stateless` ops now have a private core library for the generated wrappers (and accordingly are hidden in their ApiDef) so that `tf.data.experimental.sample_from_datasets()` can depend on them. PiperOrigin-RevId: 215304249
* | Updating function and class tf_export decorators for endpoints according toGravatar Anna R2018-10-01
| | | | | | | | | | | | | | | | | | | | | | https://github.com/tensorflow/community/pull/16. In addition to the changes in the doc, I made the following updates (these changes make sense to me and I didn't notice them when compiling the doc): * deprecate saved_model.builder.SavedModelBuilder - replaced with saved_model.SavedModelBuilder * deprecate python_io.tf_record_iterator - replaced with io.tf_record_iterator * deprecate python_io.TFRecordWriter - replaced with io.TFRecordWriter * move reduce_join to tf.string PiperOrigin-RevId: 215253944
* | Add deprecation notice for BasicRNNCell, which will be replaced by ↵Gravatar Scott Zhu2018-10-01
| | | | | | | | | | | | keras.SimpleRNNCell. PiperOrigin-RevId: 215249611
| * Update tensorflow.layers.pbtxtGravatar Joe Yearsley2018-09-29
| |
| * Updated v2Gravatar Joe Yearsley2018-09-29
| |
| * Updated protobufGravatar Joe Yearsley2018-09-29
| |
| * Updated layersGravatar josephyearsley2018-09-29
| |
| * Updated goldenGravatar josephyearsley2018-09-29
|/
* Internal change.Gravatar Anna R2018-09-28
| | | | PiperOrigin-RevId: 215005698
* Introduce the abstraction of RunHandler which each DirectSession can use forGravatar A. Unique TensorFlower2018-09-28
| | | | | | | | | the duration of a single RunInternal() call from RunHandlerPool. It is used for running inter-op closures with a global scheduler (which in the future) to improve both median and tail latency (for use-cases like CPU inference). In the case that global pools aren't used, this change should be a no-op. PiperOrigin-RevId: 214992852
* Remove testing non-core APIs from api_compatibility_test.Gravatar Michael Case2018-09-27
| | | | | | | | Some APIs are moving out of core TF repo. These APIs will have their own API compat tests. Adding flag --only_test_core_api=true which will not check for changes to non-core APIs. PiperOrigin-RevId: 214860984
* Automated rollback of commit 750466c6e6624d279de7f9a43accd682d487509cGravatar Revan Sopher2018-09-27
| | | | PiperOrigin-RevId: 214853846
* [tf.data Introducing tf.data.Dataset.reduce() which reduces elements of a ↵Gravatar Jiri Simsa2018-09-27
| | | | | | (finite) dataset to a single element. PiperOrigin-RevId: 214852364
* Updating the V2 variables API.Gravatar Alexandre Passos2018-09-27
| | | | PiperOrigin-RevId: 214824023
* Introduce the abstraction of RunHandler which each DirectSession can use forGravatar A. Unique TensorFlower2018-09-27
| | | | | | | | | the duration of a single RunInternal() call from RunHandlerPool. We want to leverage this abstraction for improving the cross-session inter-op parallelism for lower latency inference in the future. In the case that global pools aren't used, this change should be a no-op. PiperOrigin-RevId: 214818187
* 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
* Add xlogy and xdivy op.Gravatar A. Unique TensorFlower2018-09-26
| | | | PiperOrigin-RevId: 214700693
* 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
* Merge pull request #21509 from facaiy:ENH/feature_importances_for_boosted_treeGravatar TensorFlower Gardener2018-09-25
|\ | | | | | | PiperOrigin-RevId: 214462540
* | Documentation for tf.map_fn in Eager mode.Gravatar Debidatta Dwibedi2018-09-24
| | | | | | | | PiperOrigin-RevId: 214376416
* | Deprecate do_quantize_training_on_graphdef.Gravatar Suharsh Sivakumar2018-09-24
| | | | | | | | PiperOrigin-RevId: 214263489
* | Merge pull request #21715 from hsgkim:volume_patchesGravatar TensorFlower Gardener2018-09-23
|\ \ | | | | | | | | | PiperOrigin-RevId: 214177065
* | | Add searchsorted (ie lower/upper bound) op.Gravatar A. Unique TensorFlower2018-09-20
| | | | | | | | | | | | PiperOrigin-RevId: 213863392
* | | This CL adds a new `tf.print` operator that more closely aligns with the ↵Gravatar A. Unique TensorFlower2018-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | standard python `print` method, and deprecates the old `tf.Print` operator (to be removed in in v2.0). It follows the design doc specified in https://github.com/tensorflow/community/pull/14 and additionally incorporates the community feedback and design review decisions. This CL adds two new internal graph operators: a StringFormat operator that formats a template string with a list of input tensors to insert into the string and outputs a string scalar containing the result, and a PrintV2 operator that prints a string scalar to a specified output stream or logging level. The formatting op is exposed at `tf.strings.Format`. A new python method is exposed at `tf.print` that takes a list of inputs that may be nested structures and may contain tensors, formats them nicely using the formatting op, and returns a PrintV2 operator that prints them. In Eager mode and inside defuns this PrintV2 operator will automatically be executed, but in graph mode it will need to be either added to `sess.run`, or used as a control dependency for other operators being executed. As compared to the previous print function, the new print function: - Has an API that more closely aligns with the standard python3 print - Supports changing the print logging level/output stream - allows printing arbitrary (optionally nested) data structures as opposed to just flat lists of tensors - support printing sparse tensors - changes printed tensor format to show more meaningful summary (recursively print the first and last elements of each tensor dimension, instead of just the first few elements of the tensor irregardless of dimension). PiperOrigin-RevId: 213709924
| | * Merge remote-tracking branch 'upstream/master' into ↵Gravatar Yan Facai (颜发才)2018-09-20
| | |\ | |_|/ |/| | | | | ENH/feature_importances_for_boosted_tree
* | | Python interface for Boosted Trees model explainability (currently includes ↵Gravatar A. Unique TensorFlower2018-09-19
| | | | | | | | | | | | | | | | | | directional feature contributions); fixed ExampleDebugOutputs bug where it errors with empty trees. PiperOrigin-RevId: 213658470
* | | Add a new function to load kernel libraries and library folders.Gravatar Gunhan Gulsoy2018-09-18
| | | | | | | | | | | | PiperOrigin-RevId: 213549838
* | | [tf.data] Introducing `tf.data.Dataset.window(size, shift, stride, ↵Gravatar Jiri Simsa2018-09-17
| | | | | | | | | | | | | | | | | | | | | | | | drop_remainder)`, which can be used for combining elements of input dataset into "windows". A window is itself a finite dataset and, among other things, can be used for generalized batching (see https://github.com/tensorflow/community/pull/5 for details). PiperOrigin-RevId: 213360134
* | | Export tf.keras.sparse_categorical_accuracy. Copied from PR #21790.Gravatar Martin Wicke2018-09-14
| | | | | | | | | | | | | | | | | | closes #21790, fixes #21735 PiperOrigin-RevId: 213003724
* | | Fixing error output in api_compatibility_test.py. Looks like it should be ↵Gravatar Anna R2018-09-13
| | | | | | | | | | | | | | | | | | | | | | | | self.maxDiff instead of self.maxDiffs: "Diff is 2708 characters long. Set self.maxDiff to None to see it." PiperOrigin-RevId: 212892831
* | | Automated rollback of commit 56d4fc8ff67f48294ae5cb0a7f9ff3d954463aa3Gravatar A. Unique TensorFlower2018-09-13
| | | | | | | | | | | | PiperOrigin-RevId: 212847619
* | | Add a `namedtuple` factory that accepts doc-strings.Gravatar Mark Daoust2018-09-13
| | | | | | | | | | | | PiperOrigin-RevId: 212828094
| | * Merge branch 'master' into ENH/feature_importances_for_boosted_treeGravatar Yan Facai (颜发才)2018-09-13
| | |\ | |_|/ |/| |
| | * BLD: update golden fileGravatar Yan Facai (颜发才)2018-09-12
| | |
* | | Add support for populating a feature columns to output tensors dictionary in ↵Gravatar A. Unique TensorFlower2018-09-11
| | | | | | | | | | | | | | | | | | input_layer. PiperOrigin-RevId: 212528172
* | | Adds generator support directly to Keras's fit, evaluate, and predict.Gravatar A. Unique TensorFlower2018-09-11
| | | | | | | | | | | | PiperOrigin-RevId: 212516939
* | | Adding forgotten exports.Gravatar A. Unique TensorFlower2018-09-10
| | | | | | | | | | | | PiperOrigin-RevId: 212333784
* | | Add tf_api_version flag. If --define=tf_api_version=2 flag is passed in, ↵Gravatar Anna R2018-09-07
| | | | | | | | | | | | | | | | | | then bazel will build TensorFlow API version 2.0. In all other cases, it would build API version 1.*. PiperOrigin-RevId: 212016666
* | | Support not automatically watching (trainable) accessed variables in ↵Gravatar Tom Hennigan2018-09-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | GradientTape. For more complex use cases this allows fine grained control over what is tracked by the tape. PiperOrigin-RevId: 211948236