Introduction

Tutorials

Developer guide

API Reference

private SpatialGatingUnitparametric type

SpatialGatingUnit(norm, proj)

Creates a spatial gating unit as described in the gMLP paper. (reference)

Arguments

  • norm: the normalisation layer to use
  • proj: the projection layer to use
SpatialGatingUnit(planes::Integer, npatches::Integer; norm_layer = LayerNorm)

Creates a spatial gating unit as described in the gMLP paper. (reference)

Arguments

  • planes: the number of planes in the block
  • npatches: the number of patches of the input
  • norm_layer: the normalisation layer to use