| Commit message (Collapse) | Author | Age |
|
|
|
| |
PiperOrigin-RevId: 214824023
|
|
|
|
|
|
|
|
| |
self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.
PiperOrigin-RevId: 213326581
|
|
|
|
|
|
|
|
| |
self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.
PiperOrigin-RevId: 212336464
|
|\
| |
| |
| | |
PiperOrigin-RevId: 210626817
|
| |
| |
| |
| |
| |
| |
| |
| | |
self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.
PiperOrigin-RevId: 209700634
|
| |
| |
| |
| |
| |
| | |
self.test_session() has been deprecated in cl/208545396 as its behavior confuses readers of the test. Moving to self.session() instead.
PiperOrigin-RevId: 209696110
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
This change contains no code changes. Only doc-strings.
We can't use relative links in code files, so we don't have much choice but to link to tensorflow.org/
The deleted links were to docs that no longer exist.
PiperOrigin-RevId: 209019572
|
|
|
|
| |
PiperOrigin-RevId: 209016800
|
|\ |
|
| |\
| | |
| | |
| | | |
PiperOrigin-RevId: 208099821
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Back-ticks are now converted to links in the api_docs generator. With the new docs repo we're moving to simplify the docs pipeline, and make everything more readable.
By doing this we no longer get test failures for symbols that don't exist (`tf.does_not_exist` will not get a link).
There is also no way, not to set custom link text. That's okay.
This is the result of the following regex replacement (+ a couple of manual edits.):
re: @\{([^$].*?)(\$.+?)?}
sub: `\1`
Which does the following replacements:
"@{tf.symbol}" --> "`tf.symbol`"
"@{tf.symbol$link_text}" --> "`tf.symbol`"
PiperOrigin-RevId: 208042358
|
| | |
| | |
| | |
| | |
| | |
| | | |
Pure refactor, in preparation for adding a higher level checkpoint management utility. This utility will also need to work with the Checkpoint proto, and globbing it on to saver.py seems dirty.
PiperOrigin-RevId: 207179646
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 206938939
|
| | |
| | |
| | |
| | |
| | |
| | | |
in contrib/layers.
PiperOrigin-RevId: 205588849
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The metaclass, when asked to make instances of Variable, will loop over a
scope of creator functions calling them, before finally bottoming out on
a function which constructs a subclass of Variable, which goes through
the normal route.
This allows us to split Variable from RefVariable and to, in a follow-up CL,
add a use_resource argument to the Variable constructor so it can also return
ResourceVariable.
This is the minimal change to get things working; it does not expose the
creator stack or add the use_resource argument.
PiperOrigin-RevId: 204910138
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201652888
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201110240
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201033171
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201011811
|
| | |
| | |
| | |
| | |
| | |
| | | |
VariableDeviceChooser. This is necessary for when the device with replica is set in a surrounding arg_scope.
PiperOrigin-RevId: 200567897
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Revert #18413. Too many internal test failures due to the name scope change caused by this change.
Revert #18192. Cannot use re2::StringPiece internally. Need alternative for set call. Will pull and clean this up in a separate change.
PiperOrigin-RevId: 197991247
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is in preparation for removing the _USE_C_API toggle altogether.
PiperOrigin-RevId: 196920481
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This fixes a race condition where `add_arg_scope` doesn't reliably extract the arg list.
fixes #11923
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 194274698
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
tf.colocate_with() might be provided with eager tensors when
constructing TensorFlow functions (like the subgraph for map()
inside a tf.data.Dataset).
Prior to this change, the added test would fail with:
"Tensor.op is meaningless when eager execution is enabled."
PiperOrigin-RevId: 194217166
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 194077027
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 194031845
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
After this change and run with:
```
bazel run tools/docs:generate --
--src_dir="$(pwd)/docs_src/"
--output_dir=/tmp/tfdocs/
```
The documentation correctly shown up in:
`/tmp/tfdocs/api_docs/python/tf/contrib/framework/RecordInput.md`
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This fix tries to address the issue raised in 10622
where the RecordInput is not available in the documentation.
As was suggested in 10622, this fix exposes RecordInput
to tf.contrib (tf.contrib.framework) so that
docs could shown up.
This fix fixes 10622.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
|\| | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add support for explicit broadcasting in TensorFlow
This fix tries to adds support for explicit broadcasting in TensorFlow,
as was suggested in 14509. This fix adds the op of tf.broadcast_to,
which is equivalent to the numpy.broadcast_to in numpy.
This fix fixes 14509.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Register BroadcastTo op in array_ops.cc
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Sanitize with clang-format -i
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add test cases for tf.broadcast_to
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Sanitize bazel BUILD and python.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Split broadcast_to_ops_test from array_ops_test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Support int64 shape
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Improve shape inference for broadcast_to
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add scalar input support for broadcast_to
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update API defs tensorflow/core/api_def/update_api_def.sh
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update API golden
```
bazel-bin/tensorflow/tools/api/tests/api_compatibility_test
--update_goldens True
```
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update docstring for broadcast_to
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Enable GPU kernel for BroadcastTo
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Enable use_gpu=True for test cases
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Hiden the ops and export to tf.contrib.framework for now.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add the op to the _allowed_symbol in tf.contrib.framework
Otherwise the symbole will be hidden
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix pylint sanity issue.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
|/
|
|
| |
PiperOrigin-RevId: 192861809
|
|
|
|
| |
PiperOrigin-RevId: 192645769
|
|
|
|
| |
PiperOrigin-RevId: 191308666
|
|
|
|
|
|
| |
- Add is_training=None option to mobinenet arg_scopes. This allows the users to set is_training from an outer scope.
PiperOrigin-RevId: 190997959
|
|
|
|
| |
PiperOrigin-RevId: 190878279
|
|
|
|
|
|
| |
Comparable to np.argsort.
PiperOrigin-RevId: 190109968
|
|
|
|
|
|
| |
a Variable outside of it.
PiperOrigin-RevId: 189957569
|
|
|
|
| |
PiperOrigin-RevId: 189945839
|
|
|
|
|
|
| |
dependencies on the lock op.
PiperOrigin-RevId: 189910726
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a second level of staging before fully enabling the C
API. With _USE_C_API enabled but _USE_C_SHAPES disabled, the C API is
used for everything but retrieving the shape of Tensors (i.e. we
continue using the existing Python shape inference to implement
Tensor.shape).
This is useful because many tests fail with the C API fully
enabled. This will allow us to enable everything but the full shape
inference, fix the remaining broken tests, and then enable the full
shape shape inference.
This change also introduces the test_util.enable_c_shapes test method
decorator. This can be used to enable C shapes for a specific test
method. This is useful for tests that have already been modified to
work with full C shape inference.
PiperOrigin-RevId: 188949619
|
|
|
|
| |
PiperOrigin-RevId: 188534066
|
|
|
|
|
|
|
|
| |
This is in preparation to introduce one public, stable symbol: tf.executing_eagerly()
(i.e., part of moving APIs related to eager execution from "contrib" to a namespace
where we provide API stability guarantees)
PiperOrigin-RevId: 188212646
|
|
|
|
| |
PiperOrigin-RevId: 187747019
|