Conv1D

class dragon.vm.tensorflow.keras.layers.Conv1D(
  filters,
  kernel_size,
  strides=1,
  padding='valid',
  data_format=None,
  dilation_rate=1,
  activation=None,
  use_bias=True,
  kernel_initializer='glorot_uniform',
  bias_initializer='zeros',
  kernel_regularizer=None,
  bias_regularizer=None,
  **kwargs
)[source]

1D convolution layer.

__init__

Conv1D.__init__(
  filters,
  kernel_size,
  strides=1,
  padding='valid',
  data_format=None,
  dilation_rate=1,
  activation=None,
  use_bias=True,
  kernel_initializer='glorot_uniform',
  bias_initializer='zeros',
  kernel_regularizer=None,
  bias_regularizer=None,
  **kwargs
)[source]

Create a Conv1D Layer.

Parameters:
  • filters (int`) – The number of output filters.
  • kernel_size (Union[int, Sequence[int]]) – The shape of convolution window.
  • strides (Union[int, Sequence[int]], optional, default=1) – The stride of convolution window.
  • padding (Union[str, Sequence[int]], optional) – The padding algorithm or size.
  • data_format (str, optional, default='channels_last') – 'channels_first' or 'channels_last'.
  • dilation_rate (Union[int, Sequence[int]], optional, default=1) – The rate of dilated convolution.
  • activation (Union[callable, str], optional) – The optional activation function.
  • use_bias (bool, optional, default=True) – Add a bias tensor to output or not.
  • kernel_initializer (Union[callable, str], optional) – The initializer for kernel tensor.
  • bias_initializer (Union[callable, str], optional) – The initializer for bias tensor.
  • kernel_regularizer (Union[callable, str], optional) – The regularizer for kernel tensor.
  • bias_regularizer (Union[callable, str], optional) – The regularizer for bias tensor.