deprecated keep_prob removed from dropout in grappler/hierarchical_controller.py
This commit is contained in:
parent
0fe684b5eb
commit
e6a655127a
@ -883,7 +883,7 @@ class HierarchicalController(Controller):
|
|||||||
actions.read(i - 1))
|
actions.read(i - 1))
|
||||||
)
|
)
|
||||||
if self.hparams.keep_prob is not None:
|
if self.hparams.keep_prob is not None:
|
||||||
signal = nn_ops.dropout(signal, self.hparams.keep_prob)
|
signal = nn_ops.dropout(signal, rate=(1 - self.hparams.keep_prob))
|
||||||
next_c, next_h = lstm(signal, prev_c, prev_h, w_lstm, forget_bias)
|
next_c, next_h = lstm(signal, prev_c, prev_h, w_lstm, forget_bias)
|
||||||
query = math_ops.matmul(next_h, attn_w_2)
|
query = math_ops.matmul(next_h, attn_w_2)
|
||||||
query = array_ops.reshape(
|
query = array_ops.reshape(
|
||||||
|
Loading…
Reference in New Issue
Block a user