| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
estimators. This is required for TF hub use cases where users might send in new feature columns to old model code. Implemented this support by making V2 feature columns support the V1 API. This is needed temporarily and would definitely be removed by TF 2.0, possibly earlier depending on what guarantees are provided by TF hub.
The only case we don't allow here is mixing in V2 shared embedding columns with V1 Feature columns. V2 Shared FC's depend on a SharedEmbeddingState manager that would have to be passed in to the various API's and there wasn't really a very clean way to make that work.
Mixing V2 feature columns with V1 shared embedding columns is fine though and along with all other combinations
PiperOrigin-RevId: 216359041
|
|
|
|
| |
PiperOrigin-RevId: 216210141
|
|
|
|
|
|
| |
Currently _check_shape requires that a shape be an `int` or sequence of `int`s. This CL allows `six.integer_type`s so now (1L,) would be a valid shape.
PiperOrigin-RevId: 215589131
|
|
|
|
|
|
|
| |
Since we now have support for FeatureColumnV2 for both DNN and Linear models,
adding tests for the combined canned estimators as well.
PiperOrigin-RevId: 215002573
|
|
|
|
|
|
|
| |
In subsequent change I'll change canned estimators to support FeatureColumn V2
and use this LinearModel.
PiperOrigin-RevId: 214882241
|
|
|
|
|
|
|
| |
reshape can't determine the size of the last dimension when reshaping
shape (0) to (0, 1).
PiperOrigin-RevId: 214872677
|
|
|
|
|
|
| |
Revert #20539.
PiperOrigin-RevId: 214849875
|
|
|
|
| |
PiperOrigin-RevId: 214721004
|
|
|
|
| |
PiperOrigin-RevId: 214541221
|
|\
| |
| |
| | |
PiperOrigin-RevId: 214121495
|
| | |
|
| |
| |
| |
| | |
PiperOrigin-RevId: 213630404
|
| |
| |
| |
| | |
PiperOrigin-RevId: 213561495
|
| |
| |
| |
| |
| |
| | |
input_layer.
PiperOrigin-RevId: 212528172
|
| |
| |
| |
| |
| |
| |
| |
| | |
Model.fit() function to support taking in dictionaries of features in.
Support for functional models coming in a subsequent change.
PiperOrigin-RevId: 211897153
|
| |
| |
| |
| |
| |
| | |
Creates a SharedEmbeddingStateManager object to manage the state of shared embedding columns.
PiperOrigin-RevId: 209997417
|
| |
| |
| |
| |
| |
| |
| |
| | |
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: 209701635
|
| |
| |
| |
| | |
PiperOrigin-RevId: 208120728
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
| |
embedding_lookup,
because ResourceVariable support ResourceGather OP.
|
|
|
|
| |
PiperOrigin-RevId: 203518000
|
|
|
|
|
|
|
|
| |
the existing implementation with minor changes to fit in the new API.
InputLayer and LinearModel are mostly unchanged and currently only supported using the old _FeatureColumns. In subsequent changes, they'll be made to support both new and old FeatureColumn API's.
PiperOrigin-RevId: 203506113
|
|
|
|
| |
PiperOrigin-RevId: 201764268
|
|
|
|
| |
PiperOrigin-RevId: 201652888
|
|
|
|
| |
PiperOrigin-RevId: 201585400
|
|
|
|
|
|
| |
'linear_model'. This causes issues when we create multiple linear models in the same graph.
PiperOrigin-RevId: 201270816
|
|
|
|
|
|
| |
Erroring out SharedEmbeddingColumn usage in Eager mode since collections aren't supported in eager.
PiperOrigin-RevId: 201230316
|
|
|
|
| |
PiperOrigin-RevId: 200849332
|
|
|
|
| |
PiperOrigin-RevId: 200667467
|
|
|
|
| |
PiperOrigin-RevId: 200485876
|
|
|
|
|
|
| |
EmbeddingColumnLayer.
PiperOrigin-RevId: 199571833
|
|
|
|
| |
PiperOrigin-RevId: 198823349
|
|
|
|
| |
PiperOrigin-RevId: 198514621
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 197097430
|
|
|
|
|
|
| |
This is in preparation for removing the _USE_C_API toggle altogether.
PiperOrigin-RevId: 196920481
|
|
|
|
| |
PiperOrigin-RevId: 196899145
|
|
|
|
|
|
| |
error messages in situations like: #19219
PiperOrigin-RevId: 196616638
|
|
|
|
|
|
|
|
|
|
|
| |
LogicalOr(x, true) = true
LogicalOr(x, false) = x
LogicalAnd(x, true) = x
LogicalAnd(x, false) = false
and similar if the first argument is constant.
PiperOrigin-RevId: 195161140
|
|
|
|
| |
PiperOrigin-RevId: 194274698
|
|
|
|
| |
PiperOrigin-RevId: 194031845
|
|
|
|
| |
PiperOrigin-RevId: 193585237
|
|
|
|
|
|
| |
in _LinearModel in order to make this possible. Also, made some fixes so that variable names come out the same as before.
PiperOrigin-RevId: 193551353
|
|
|
|
|
|
| |
_SharedEmbeddingColumn into a base.Layer
PiperOrigin-RevId: 193401873
|
|
|
|
| |
PiperOrigin-RevId: 192355950
|
|
|
|
|
|
|
|
|
|
|
|
| |
- tf.layers layers now subclasses tf.keras.layers layers.
- tf.keras.layers is now agnostic to variable scopes and global collections (future-proof). It also uses ResourceVariable everywhere by default.
- As a result tf.keras.layers is in general lower-complexity, with fewer hacks and workarounds. However some of current code is temporary (variable creation should be moved to Checkpointable, arguably, and there are some dependency issues that will require later refactors).
- The legacy tf.layers layers behavior is kept, with references to variable scopes and global collections injected in the subclassed tf.layers.base.Layer class (the content of tf.layers.base.Layer is the complexity differential between the old implementation and the new one).
Note: this refactor does slightly change the behavior of tf.layers.base.Layer, by disabling extreme edge-case behavior that either has long been invalid, or is dangerous and should most definitely be disabled. This will not affect any users since such behaviors only existed in the base Layer unit tests. The behaviors disabled are:
- Option to create reusable variables in `call` (already invalid for some time).
- Option to use a variable scope to create layer variables outside of the layer while not having the layer track such variables locally.
PiperOrigin-RevId: 192339798
|
|
|
|
|
|
|
|
| |
model.
Had to modify the __call__ method in the base layer class so that it could work with feature style inputs in which case we lazily convert the inputs to tensors instead of providing tensors as inputs upfront.
PiperOrigin-RevId: 191655445
|
|
|
|
|
|
| |
variable (more generally, state) creation from getting dense tensors etc. This lays the groundwork to create a Layer type interface (which is more eager friendly) on top of feature columns where variable creation is separated from getting the tensors out.
PiperOrigin-RevId: 191647517
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
191029891 by xiejw:
Fix python script file.
--
191029336 by isaprykin:
Add .configure method to the whole hierarchy of DistributionStrategies.
--
191026971 by blamb:
Updates get_started nav and renames the beginner guides to include eager.
--
191025863 by mrry:
Add private Python API for accessing the C++ Session::*Callable API.
--
191025795 by mikecase:
Internal Change.
--
191024780 by isaprykin:
Internal change.
--
PiperOrigin-RevId: 191029891
|
|
|
|
| |
PiperOrigin-RevId: 190878279
|