Make DropoutWrapper.__call__ forward the scope argument to the cell that it wraps.
Change: 126222638
This commit is contained in:
parent
4e5f9a6d42
commit
f2c3b2e702
@ -660,7 +660,7 @@ class DropoutWrapper(RNNCell):
|
||||
if (not isinstance(self._input_keep_prob, float) or
|
||||
self._input_keep_prob < 1):
|
||||
inputs = nn_ops.dropout(inputs, self._input_keep_prob, seed=self._seed)
|
||||
output, new_state = self._cell(inputs, state)
|
||||
output, new_state = self._cell(inputs, state, scope)
|
||||
if (not isinstance(self._output_keep_prob, float) or
|
||||
self._output_keep_prob < 1):
|
||||
output = nn_ops.dropout(output, self._output_keep_prob, seed=self._seed)
|
||||
|
Loading…
Reference in New Issue
Block a user