Reshape

class dragon.vm.tensorlayer.layers.Reshape(
  shape,
  name=None
)[source]

The layer to change the dimensions of input.

Examples:

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

__init__

Reshape.__init__(
  shape,
  name=None
)[source]

Create a Reshape layer.

Parameters:
  • shape (Sequence[int]) – The output shape.
  • name (str, optional) – The optional layer name.