Shape layers

Flatten Flatten layer
class braid.berry.layers.Flatten(incoming, **kwargs)

Flatten layer

incoming
: Layer or tf.Tensor
Parent layer, whose output is given as input to the current layer.
name
: string, optional (default = None)
Name of the layer. Should be specified for better readability ( inherited from Layer).
input_layer
: Layer or tf.Tensor
Input layer to this layer.
input_shape
: tuple
Shape of the incoming layer.
output
: tf.Tensor
The Tensor obtained after performing the transformation applied by this layer.
output_shape
: tuple
Shape of the output tensor.
type
: string
Return the name of the class.

See also

Inherits class Layer.

get_output_for()

Ravel the input layer into a 1D vector

tf.Tensor
Output tensor of this layer.
get_output_shape_for(input_shape)

Shape of the output tensor

input_shape
: tuple or list
Shape of the input layer.
tuple
Shape of the output tensor. (batch_size, total_num_input_units)
validate_input_layer(incoming)

Validate the input layer shape

Returns True if the input layer is 2+D else, raise an exceptions.AssertError.