tf.contrib.layers.flatten(*args, **kwargs)
Flattens the input while maintaining the batch_size.
Assumes that the first dimension represents the batch.
Args:
-
inputs
: a tensor of size [batch_size, ...]. -
outputs_collections
: collection to add the outputs. -
scope
: Optional scope for name_scope.
Returns:
a flattened tensor with shape [batch_size, k].
Raises:
-
ValueError
: if inputs.shape is wrong.
Please login to continue.