TensorFlow 2.0 RC is available Learn more

tf.keras.layers.UpSampling1D

TensorFlow 2.0 version View source on GitHub

Class UpSampling1D

Upsampling layer for 1D inputs.

Inherits From: Layer

Aliases:

  • Class tf.compat.v1.keras.layers.UpSampling1D
  • Class tf.compat.v2.keras.layers.UpSampling1D

Repeats each temporal step size times along the time axis.

Arguments:

  • size: Integer. Upsampling factor.

Input shape:

3D tensor with shape: (batch, steps, features).

Output shape:

3D tensor with shape: (batch, upsampled_steps, features).

__init__

View source

__init__(
    size=2,
    **kwargs
)