| Commit message (Collapse) | Author | Age |
|
|
|
| |
PiperOrigin-RevId: 216442569
|
|
|
|
| |
PiperOrigin-RevId: 216395709
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 216211279
|
|
|
|
|
|
|
|
|
|
| |
"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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
`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
|
|
|
|
| |
PiperOrigin-RevId: 215479788
|
|\
| |
| |
| | |
PiperOrigin-RevId: 215447391
|
| | |
|
| |
| |
| |
| |
| |
| | |
`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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
keras.SimpleRNNCell.
PiperOrigin-RevId: 215249611
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
PiperOrigin-RevId: 215005698
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 214853846
|
|
|
|
|
|
| |
(finite) dataset to a single element.
PiperOrigin-RevId: 214852364
|
|
|
|
| |
PiperOrigin-RevId: 214824023
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
based on standard ranges.
PiperOrigin-RevId: 214796357
|
|
|
|
| |
PiperOrigin-RevId: 214700693
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| | |
PiperOrigin-RevId: 214462540
|
| |
| |
| |
| | |
PiperOrigin-RevId: 214376416
|
| |
| |
| |
| | |
PiperOrigin-RevId: 214263489
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 214177065
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 213863392
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |\
| |_|/
|/| |
| | | |
ENH/feature_importances_for_boosted_tree
|
| | |
| | |
| | |
| | |
| | |
| | | |
directional feature contributions); fixed ExampleDebugOutputs bug where it errors with empty trees.
PiperOrigin-RevId: 213658470
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 213549838
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | | |
closes #21790, fixes #21735
PiperOrigin-RevId: 213003724
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
self.maxDiff instead of self.maxDiffs:
"Diff is 2708 characters long. Set self.maxDiff to None to see it."
PiperOrigin-RevId: 212892831
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 212847619
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 212828094
|
| | |\
| |_|/
|/| | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
input_layer.
PiperOrigin-RevId: 212528172
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 212516939
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 212333784
|
| | |
| | |
| | |
| | |
| | |
| | | |
then bazel will build TensorFlow API version 2.0. In all other cases, it would build API version 1.*.
PiperOrigin-RevId: 212016666
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
GradientTape.
For more complex use cases this allows fine grained control over what is tracked
by the tape.
PiperOrigin-RevId: 211948236
|