Skip to content

Commit

Permalink
Merge pull request Rayhane-mamah#138 from alex73/patch-2
Browse files Browse the repository at this point in the history
Fix for tensorflow 1.10
  • Loading branch information
Rayhane-mamah authored Aug 11, 2018
2 parents a94b9d2 + 8b0a224 commit 19abfe8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tacotron/models/custom_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ def __init__(self, cell, helper, initial_state, output_layer=None):
Raises:
TypeError: if `cell`, `helper` or `output_layer` have an incorrect type.
"""
if not rnn_cell_impl._like_rnncell(cell): # pylint: disable=protected-access
raise TypeError("cell must be an RNNCell, received: %s" % type(cell))
rnn_cell_impl.assert_like_rnncell(type(cell), cell)
if not isinstance(helper, helper_py.Helper):
raise TypeError("helper must be a Helper, received: %s" % type(helper))
if (output_layer is not None
Expand Down

0 comments on commit 19abfe8

Please sign in to comment.