parameters: (op)
docstring: Shape function for determinant op.
docstring_summary: Shape function for determinant op.
docstring_tokens: Shape function for determinant op .
function: def _MatrixDeterminantShape(op):
    """Shape function for determinant op."""
    input_shape = op.inputs[0].get_shape().with_rank(2)
    # The matrix must be square.
    input_shape[0].assert_is_compatible_with(input_shape[1])
    if input_shape.ndims is not None:
      return [tensor_shape.scalar()]
    else:
      return [tensor_shape.unknown_shape()]
function_tokens: def _MatrixDeterminantShape ( op ) : input_shape = op . inputs [ 0 ] . get_shape ( ) . with_rank ( 2 ) # The matrix must be square. input_shape [ 0 ] . assert_is_compatible_with ( input_shape [ 1 ] ) if input_shape . ndims is not None : return [ tensor_shape . scalar ( ) ] else : return [ tensor_shape . unknown_shape ( ) ]