tf.contrib.layers.flatten()

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.
doc_TensorFlow
2016-10-14 13:05:21
Comments
Leave a Comment

Please login to continue.