parent
3d3e30894d
commit
a1f5abe8e1
@ -497,7 +497,7 @@ class AttentionWrapper(core_rnn_cell.RNNCell):
|
|||||||
if probability_fn is None:
|
if probability_fn is None:
|
||||||
probability_fn = nn_ops.softmax
|
probability_fn = nn_ops.softmax
|
||||||
else:
|
else:
|
||||||
if not callable(cell_input_fn):
|
if not callable(probability_fn):
|
||||||
raise TypeError(
|
raise TypeError(
|
||||||
"probability_fn must be callable, saw type: %s"
|
"probability_fn must be callable, saw type: %s"
|
||||||
% type(probability_fn).__name__)
|
% type(probability_fn).__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user