aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/seq2seq
Commit message (Collapse)AuthorAge
* Compute `axes` and `free` statically during graph creation.Gravatar A. Unique TensorFlower2018-09-17
| | | | PiperOrigin-RevId: 213327709
* Support coverage penalty for beam search decoder (according to ↵Gravatar A. Unique TensorFlower2018-09-12
| | | | | | https://arxiv.org/pdf/1609.08144.pdf). PiperOrigin-RevId: 212683753
* Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-08-21
| | | | | | | | 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
* Remove magic-doc-links from code.Gravatar Mark Daoust2018-08-16
| | | | | | | | | | 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
* Internal change.Gravatar Anna R2018-08-10
| | | | PiperOrigin-RevId: 208293192
* Remove usage of magic-api-link syntax from source files.Gravatar Mark Daoust2018-08-09
| | | | | | | | | | | | | | | | | | | | 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
* Fix masking of beam ids in gather_tree_from_arrayGravatar Guillaume Klein2018-07-10
| | | | | | | | | | | | The `sequence_length` argument that is passed to the function is the lengths of the **reordered** predictions and was incorrectly used to mask beam ids *before* reordering. Instead, we can reorder beam ids without caring about out of range steps and only select the reodered ids that are in bounds. The added test covers a beam trajectory that previously produced an out of range error because `gather_tree` returned `end_token` (here `beam_width + 1`) for some steps.
* Merge pull request #20374 from pj-parag/masterGravatar Yifei Feng2018-07-02
|\ | | | | Update beam_search_decoder.py
* | Don't cache RNN weights in while loops since it's possible that train steps ↵Gravatar A. Unique TensorFlower2018-06-28
| | | | | | | | | | | | could be updating the weights. This is specifically true on TPUS (tpu.repeat). Also, fix the `testDynamicRnnTrainLoop` unit test. PiperOrigin-RevId: 202565323
| * Update beam_search_decoder.pyGravatar Parag Jain2018-06-28
| |
* | Merge changes from github.Gravatar Yifei Feng2018-04-23
| | | | | | | | PiperOrigin-RevId: 194031845
| * Merge commit for internal changesGravatar Yifei Feng2018-04-19
| |\ | |/ |/|
* | Various lint fixes to TensorFlow detected after GitHub merge.Gravatar Michael Case2018-04-18
| | | | | | | | PiperOrigin-RevId: 193448139
| * Merge commit for internal changesGravatar Yifei Feng2018-04-17
| |\ | |/ |/|
* | Fixes a comment in tf.contrib.seq2seq.monotonic_attention().Gravatar A. Unique TensorFlower2018-04-17
| | | | | | | | PiperOrigin-RevId: 193224285
* | Use fixed sized tensor arrays and max loop iterations in dynamic_decode if ↵Gravatar A. Unique TensorFlower2018-04-16
| | | | | | | | | | | | the user supplies it and if the inputs were created in an XLA context. PiperOrigin-RevId: 193097293
| * Fix pylint issueGravatar Yong Tang2018-04-16
| | | | | | | | Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
| * Add test case for Bahdanau attention when normalized=True and dtype = float16/32Gravatar Yong Tang2018-04-16
| | | | | | | | Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
| * Fix the issue with Bahdanau attention when normalized=True and dtype = ↵Gravatar Yong Tang2018-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | float16/32 While revisiting 18016 I noticed that Bahdanau attention has a similiar dtype mismatch issue when normalized=True. The issue comes from: ``` g = variable_scope.get_variable( "attention_g", dtype=dtype, initializer=math.sqrt((1. / num_units))) ``` where the initializer value does not work well with differnt dtype. This fix converts changes the initializer to `init_ops.constant_initializer` to address the issue, and adds additional test cases for it. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
| * Support passing layer instances to produce attentional hidden states (#14974)Gravatar Guillaume Klein2018-04-15
| | | | | | | | | | | | | | | | | | | | * Support passing Layer instances to the AttentionWrapper. * Use _compute_output_shape to get the attention layer depth * compute_output_shape is now a public method * Move new argument at the end
* | Merge changes from github.Gravatar Scott Zhu2018-04-13
| | | | | | | | PiperOrigin-RevId: 192850372
* | Merge changes from github.Gravatar Michael Case2018-04-10
| | | | | | | | PiperOrigin-RevId: 192388250
| * Fix some rendering format in contrib doc strings (#18148)Gravatar ImSheridan2018-04-05
| | | | | | | | | | | | * Fix some rendering format in contrib doc strings * Fix line too long pylint error
| * Fix issue with Luong attention when scale=True and dtype of ↵Gravatar Yong Tang2018-03-30
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | tf.float16/tf.float64 (#18106) * Fix issue with Luong attention when scale=True and dtype=tf.float16/tf.float64 This fix tries to address the issue raised in 18099 where Luong throws a ValueError when scale=True and dtype is not tf.float32. This fix addresses the issue with the additional test case added. This fix fixes 18099. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix pylint issue Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add test case for Luong attention with scale=True and dtype=float16/float64 Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add assertEqual to confirm the dtypes of the output Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Automated g4 rollback of changelist 190858242Gravatar Jianwei Xie2018-03-29
| | | | PiperOrigin-RevId: 190953197
* Remove all_opensource_files. It's not needed any more.Gravatar Martin Wicke2018-03-28
| | | | PiperOrigin-RevId: 190878279
* Automated g4 rollback of changelist 190835392Gravatar Anna R2018-03-28
| | | | PiperOrigin-RevId: 190858242
* Merge changes from github.Gravatar Jianwei Xie2018-03-28
| | | | PiperOrigin-RevId: 190835392
* Makes tf.gather not silently snapshot resource variables.Gravatar Alexandre Passos2018-03-26
| | | | PiperOrigin-RevId: 190537320
* Fixes an issue with calling tf.contrib.seq2seq.dynamic_decode with an ↵Gravatar A. Unique TensorFlower2018-03-26
| | | | | | | | extended BasicDecoder which for example returns a tf.contrib.seq2seq.AttentionWrapperState. In this case the internal while-loop fails when trying to store an instance tf.contrib.seq2seq.AttentionWrapperState in the internal TensorArray. PiperOrigin-RevId: 190491787
* Merge changes from github.Gravatar Jacques Pienaar2018-03-21
| | | | PiperOrigin-RevId: 189945839
* Automated g4 rollback of changelist 189231636Gravatar A. Unique TensorFlower2018-03-15
| | | | PiperOrigin-RevId: 189258641
* Merge changes from github.Gravatar Jacques Pienaar2018-03-15
| | | | PiperOrigin-RevId: 189231636
* Merge changes from github.Gravatar Shanqing Cai2018-03-12
| | | | PiperOrigin-RevId: 188817194
* Lint some files.Gravatar A. Unique TensorFlower2018-03-12
| | | | PiperOrigin-RevId: 188698275
* Improve errors raised when an object does not match the RNNCell interface.Gravatar A. Unique TensorFlower2018-03-11
| | | | PiperOrigin-RevId: 188651070
* Merge changes from github.Gravatar Yifei Feng2018-02-22
| | | | PiperOrigin-RevId: 186674197
* Merge changes from github.Gravatar Ankur Taly2018-02-16
| | | | PiperOrigin-RevId: 186073337
* Merge changes from github.Gravatar Michael Case2018-02-07
| | | | PiperOrigin-RevId: 184897758
* Add input and sequence_length accessor to TrainingHelper.Gravatar Adam Roberts2018-01-29
| | | | PiperOrigin-RevId: 183701716
* Automated g4 rollback of changelist 183321394Gravatar Adam Roberts2018-01-26
| | | | PiperOrigin-RevId: 183438398
* Add input_shape to seq2seq helpers.Gravatar Adam Roberts2018-01-25
| | | | PiperOrigin-RevId: 183321394
* Remove THIRD_PARTY_ from #include guardsGravatar Sanjoy Das2018-01-24
| | | | | | They don't make sense in the open source repository. PiperOrigin-RevId: 183140889
* Fixed linter errors.Gravatar Jianwei Xie2018-01-24
| | | | PiperOrigin-RevId: 183115307
* Merge changes from github.Gravatar Jianwei Xie2018-01-24
| | | | PiperOrigin-RevId: 183100142
* Propagate static shape info in AttentionWrapperState.clone() if possible.Gravatar Rui Zhao2018-01-10
| | | | | | Fixes #15737 PiperOrigin-RevId: 181523430
* Does not use constants for zeros/ones.Gravatar Alexandre Passos2018-01-05
| | | | PiperOrigin-RevId: 180981378
* Make layer method `compute_output_shape` public.Gravatar Francois Chollet2018-01-04
| | | | | | | | | Motivations: - Useful for computing the shape of a layer's output without calling the layer. - It is public in standalone keras (hence API discrepancy, which is something to be avoided). - With eager mode and deferred mode for Network building, it is going to be increasingly necessary for users to implement this method or call it. - Lots of internal users are apparently already relying on it, which highlights the importance of making this feature publicly available. PiperOrigin-RevId: 180854139
* Clarify confusing documentation regarding FinalBeamSearchDecoderOutput.Gravatar Adam Roberts2018-01-04
| | | | PiperOrigin-RevId: 180820115
* Merge changes from github.Gravatar Patrick Nguyen2017-12-28
| | | | PiperOrigin-RevId: 180301735