Flatten

class dragon.vm.tensorlayer.layers.Flatten(name=None)[source]

The layer to reshape input into a matrix.

Examples:

x = tl.layers.Input([8, 4, 3])
y = tl.layers.Flatten()(x)  # [8, 4, 3] -> [8, 12]

__init__

Flatten.__init__(name=None)[source]

Create a Flatten layer.

Parameters:
  • name (str, optional) – The optional layer name.