Skip to content
heliaEDGE
Reference
HELIA

convolutional

Convolutional Layers API

This module provides classes to build convolutional layers.

Functions

Name Description
conv1d 1D convolutional layer using 2D convolutional layer
conv2d 2D convolutional layer

Please refer to Keras Convolutional Layers for additional layers.

Machine-readable model

  • conv2dfunction2D convolutional layer
  • conv1dfunction1D convolutional layer using 2D convolutional layer
function

conv2d

Python

2D convolutional layer

helia_edge/layers/convolutional.py:16

conv2d(
filters: int,
kernel_size: int | tuple[int, int] = 3,
strides: int | tuple[int, int] = 1,
padding: str = 'same',
use_bias: bool = False,
groups: int = 1,
dilation: int = 1,
name: str | None = None,
) -> keras.Layer

2D convolutional layer

Parameters of conv2d
NameTypeDefaultDescription
filtersintRequiredNumber of filters
kernel_sizeint | tuple[int, int]3Kernel size. Defaults to 3.
stridesint | tuple[int, int]1Stride length. Defaults to 1.
paddingstr'same'Padding. Defaults to "same".
use_biasboolFalseAdd bias. Defaults to False.
groupsint1Number of groups. Defaults to 1.
dilationint1Dilation rate. Defaults to 1.
namestr | NoneNoneLayer name. Defaults to None.
Returns of conv2d
TypeDescription
keras.Layerkeras.Layer: Functional 2D conv layer
function

conv1d

Python

1D convolutional layer using 2D convolutional layer

helia_edge/layers/convolutional.py:55

conv1d(
filters: int,
kernel_size: int = 3,
strides: int = 1,
padding: str = 'same',
use_bias: bool = False,
name: str | None = None,
) -> keras.Layer

1D convolutional layer using 2D convolutional layer

Parameters of conv1d
NameTypeDefaultDescription
filtersintRequiredNumber of filters
kernel_sizeint3Kernel size. Defaults to 3.
stridesint1Stride length. Defaults to 1.
paddingstr'same'Padding. Defaults to "same".
use_biasboolFalseAdd bias. Defaults to False.
namestr | NoneNoneLayer name. Defaults to None.
Returns of conv1d
TypeDescription
keras.Layerkeras.Layer: Functional 1D conv layer