Type LocallyConnected1D
Namespace tensorflow.keras.layers
Parent Layer
Interfaces ILocallyConnected1D
Locally-connected layer for 1D inputs. The `LocallyConnected1D` layer works similarly to
the `Conv1D` layer, except that weights are unshared,
that is, a different set of filters is applied at each different patch
of the input. Example:
Show Example
# apply a unshared weight convolution 1d of length 3 to a sequence with # 10 timesteps, with 64 output filters model = Sequential() model.add(LocallyConnected1D(64, 3, input_shape=(10, 32))) # now model.output_shape == (None, 8, 64) # add a new conv1d on top model.add(LocallyConnected1D(32, 3)) # now model.output_shape == (None, 6, 32)
Methods
Properties
- activation
- activity_regularizer
- activity_regularizer_dyn
- bias
- bias_constraint
- bias_initializer
- bias_regularizer
- built
- data_format
- dtype
- dtype_dyn
- dynamic
- dynamic_dyn
- filters
- implementation
- inbound_nodes
- inbound_nodes_dyn
- input
- input_dyn
- input_mask
- input_mask_dyn
- input_shape
- input_shape_dyn
- input_spec
- input_spec_dyn
- kernel
- kernel_constraint
- kernel_idxs
- kernel_initializer
- kernel_mask
- kernel_regularizer
- kernel_shape
- kernel_size
- losses
- losses_dyn
- metrics
- metrics_dyn
- name
- name_dyn
- name_scope
- name_scope_dyn
- non_trainable_variables
- non_trainable_variables_dyn
- non_trainable_weights
- non_trainable_weights_dyn
- outbound_nodes
- outbound_nodes_dyn
- output
- output_dyn
- output_length
- output_mask
- output_mask_dyn
- output_shape
- output_shape_dyn
- padding
- PythonObject
- stateful
- strides
- submodules
- submodules_dyn
- supports_masking
- trainable
- trainable_dyn
- trainable_variables
- trainable_variables_dyn
- trainable_weights
- trainable_weights_dyn
- updates
- updates_dyn
- use_bias
- variables
- variables_dyn
- weights
- weights_dyn
Public static methods
LocallyConnected1D NewDyn(object filters, object kernel_size, ImplicitContainer<T> strides, ImplicitContainer<T> padding, object data_format, object activation, ImplicitContainer<T> use_bias, ImplicitContainer<T> kernel_initializer, ImplicitContainer<T> bias_initializer, object kernel_regularizer, object bias_regularizer, object activity_regularizer, object kernel_constraint, object bias_constraint, ImplicitContainer<T> implementation, IDictionary<string, object> kwargs)
Public properties
object activation get; set;
object activity_regularizer get; set;
Optional regularizer function for the output of this layer.