convmixer
ConvMixer
For more info, refer to the original paper ConvMixer: Revisiting Convolution in Vision.
Classes:
-
ConvMixerParams
–ConvMixer parameters
-
ConvMixerModel
–Helper class to generate model from parameters
Functions:
-
conv_mixer_block
–ConvMixer block
-
conv_mixer_layer
–ConvMixer layer
Classes
ConvMixerParams
ConvMixerModel
Helper class to generate model from parameters
Functions
layer_from_params
staticmethod
layer_from_params(inputs: keras.Input, params: ConvMixerParams | dict, num_classes: int | None = None)
Create layer from parameters
Source code in neuralspot_edge/models/convmixer.py
model_from_params
staticmethod
model_from_params(inputs: keras.Input, params: ConvMixerParams | dict, num_classes: int | None = None)
Create model from parameters
Source code in neuralspot_edge/models/convmixer.py
Functions
conv_mixer_block
conv_mixer_block(filters: int, kernel_size: int) -> Callable[[keras.KerasTensor], keras.KerasTensor]
ConvMixer block
Parameters:
Source code in neuralspot_edge/models/convmixer.py
conv_mixer_layer
conv_mixer_layer(x: keras.KerasTensor, params: ConvMixerParams, num_classes: int | None = None) -> keras.KerasTensor
ConvMixer: https://openreview.net/pdf?id=TVHS5Y4dNvM.
Parameters:
-
x
(KerasTensor
) –Input tensor
-
params
(ConvMixerParams
) –Model parameters.
-
num_classes
(int
, default:None
) –Number of classes.
Returns:
-
KerasTensor
–keras.KerasTensor: Model output