Masking: Masks a sequence by using a mask value to skip timesteps.

Description Usage Arguments Author(s) References See Also

View source: R/layers.core.R

Description

For each timestep in the input tensor (dimension #1 in the tensor), if all values in the input tensor at that timestep are equal to mask_value, then the timestep will be masked (skipped) in all downstream layers (as long as they support masking). If any downstream layer does not support masking yet receives such an input mask, an exception will be raised.

Usage

1
Masking(mask_value, input_shape = NULL)

Arguments

mask_value

the value to use in the masking

input_shape

only need when first layer of a model; sets the input shape of the data

Author(s)

Taylor B. Arnold, taylor.arnold@acm.org

References

Chollet, Francois. 2015. Keras: Deep Learning library for Theano and TensorFlow.

See Also

Other layers: Activation, ActivityRegularization, AdvancedActivation, BatchNormalization, Conv, Dense, Dropout, Embedding, Flatten, GaussianNoise, LayerWrapper, LocallyConnected, MaxPooling, Permute, RNN, RepeatVector, Reshape, Sequential


YTLogos/kerasR documentation built on May 19, 2019, 4:04 p.m.