private mlpmixer — function
mlpmixer(block, imsize::Dims{2} = (224, 224); inchannels = 3, norm_layer = LayerNorm,
patch_size::Dims{2} = (16, 16), embedplanes = 512, drop_path_rate = 0.,
depth = 12, nclasses = 1000, kwargs...)
Creates a model with the MLPMixer architecture. (reference).
Arguments
block: the type of mixer block to use in the model - architecture dependent (a constructor of the formblock(embedplanes, npatches; drop_path_rate, kwargs...))imsize: the size of the input imageinchannels: the number of input channelsnorm_layer: the normalization layer to use in the modelpatch_size: the size of the patchesembedplanes: the number of channels after the patch embedding (denotes the hidden dimension)drop_path_rate: Stochastic depth ratedepth: the number of blocks in the modelnclasses: number of output classeskwargs: additional arguments (if any) to pass to the mixer block. Will use the defaults if not specified.