Shape layers¶
Flatten |
Flatten layer |
-
class
braid.berry.layers.Flatten(incoming, **kwargs)¶ Flatten layer
- incoming :
- 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).
Layerortf.Tensor- input_layer :
- Input layer to this layer.
- input_shape : tuple
- Shape of the incoming layer.
- output :
- 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.
Layerortf.Tensortf.TensorSee 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
Trueif the input layer is 2+D else, raise anexceptions.AssertError.