(x: TfExpressionEx)
Shortcut function for flattening a tensor.
Shortcut function for flattening a tensor.
Shortcut function for flattening a tensor .
def flatten(x: TfExpressionEx) -> TfExpression:
    """Shortcut function for flattening a tensor."""
    with tf.name_scope("Flatten"):
        return tf.reshape(x, [-1])
def flatten ( x : TfExpressionEx ) -> TfExpression : with tf . name_scope ( "Flatten" ) : return tf . reshape ( x , [ - 1 ] )