parameters: (op)
return_statement: return [tensor_shape.unknown_shape()]
docstring: Shape function for the EditDistance op.
docstring_summary: Shape function for the EditDistance op.
docstring_tokens: Shape function for the EditDistance op .
function: def _EditDistanceShape(op):
    """Shape function for the EditDistance op."""
    hypothesis_shape = tensor_util.constant_value(op.inputs[2])
    truth_shape = tensor_util.constant_value(op.inputs[5])
    if hypothesis_shape is not None and truth_shape is not None:
      if len(hypothesis_shape) != len(truth_shape):
        raise ValueError(
            "Inconsistent ranks in hypothesis and truth.  Saw shapes: %s and %s" %
            (str(hypothesis_shape), str(truth_shape)))
      return [tensor_shape.TensorShape(
          [max(h, t) for h, t in zip(hypothesis_shape[:-1], truth_shape[:-1])])]
  
    return [tensor_shape.unknown_shape()]
function_tokens: def _EditDistanceShape ( op ) : hypothesis_shape = tensor_util . constant_value ( op . inputs [ 2 ] ) truth_shape = tensor_util . constant_value ( op . inputs [ 5 ] ) if hypothesis_shape is not None and truth_shape is not None : if len ( hypothesis_shape ) != len ( truth_shape ) : raise ValueError ( "Inconsistent ranks in hypothesis and truth.  Saw shapes: %s and %s" % ( str ( hypothesis_shape ) , str ( truth_shape ) ) ) return [ tensor_shape . TensorShape ( [ max ( h , t ) for h , t in zip ( hypothesis_shape [ : - 1 ] , truth_shape [ : - 1 ] ) ] ) ] return [ tensor_shape . unknown_shape ( ) ]