Fix backend issues.
@@ -4502,11 +4502,11 @@ def ctc_decode(y_pred, input_length, greedy=True, beam_width=100,
for st in decoded:
dense_tensor = tf.sparse.to_dense(st, default_value=-1)
decoded_dense.append(dense_tensor)
+ return decoded_dense, log_prob
def control_dependencies(control_inputs):
- """A context manager that specifies control dependencies for all operations
- constructed within the context.
+ """A context manager that specifies control dependencies.
# Arguments
control_inputs: A list of Operation or Tensor objects which must be executed
