Apply 1D conv with un-shared weights. Arguments: inputs: 3D tensor with shape: (batch_size, steps, input_dim) if data_format is "channels_last" or (batch_size, input_dim, steps) if data_format is "channels_first". kernel: the unshared weight for
(inputs, kernel, kernel_size, strides, data_format=None)
| 5299 | |
| 5300 | @keras_export('keras.backend.local_conv1d') |
| 5301 | def local_conv1d(inputs, kernel, kernel_size, strides, data_format=None): |
| 5302 | """Apply 1D conv with un-shared weights. |
| 5303 | |
| 5304 | Arguments: |
| 5305 | inputs: 3D tensor with shape: |
| 5306 | (batch_size, steps, input_dim) |
| 5307 | if data_format is "channels_last" or |
| 5308 | (batch_size, input_dim, steps) |
| 5309 | if data_format is "channels_first". |
| 5310 | kernel: the unshared weight for convolution, |
| 5311 | with shape (output_length, feature_dim, filters). |
| 5312 | kernel_size: a tuple of a single integer, |
| 5313 | specifying the length of the 1D convolution window. |
| 5314 | strides: a tuple of a single integer, |
| 5315 | specifying the stride length of the convolution. |
| 5316 | data_format: the data format, channels_first or channels_last. |
| 5317 | |
| 5318 | Returns: |
| 5319 | A 3d tensor with shape: |
| 5320 | (batch_size, output_length, filters) |
| 5321 | if data_format='channels_first' |
| 5322 | or 3D tensor with shape: |
| 5323 | (batch_size, filters, output_length) |
| 5324 | if data_format='channels_last'. |
| 5325 | """ |
| 5326 | output_shape = (kernel.shape[0],) |
| 5327 | return local_conv(inputs, |
| 5328 | kernel, |
| 5329 | kernel_size, |
| 5330 | strides, |
| 5331 | output_shape, |
| 5332 | data_format) |
| 5333 | |
| 5334 | |
| 5335 | @keras_export('keras.backend.local_conv2d') |
nothing calls this directly
no test coverage detected