code: def __init__(self, *, dim, dim_ff, seq_len, act=nn.Identity()):
      super().__init__()
      self.proj_in = nn.Sequential(nn.Linear(dim, dim_ff), nn.GELU())
  
      self.sgu = SpatialGatingUnit(dim_ff, seq_len, act)
      self.proj_out = nn.Linear(dim_ff // 2, dim)
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new gMLPBlock object from inherited base classes: nn with example: obj = gMLPBlock()