def __init__(self, seq_len, d_model, d_ffn):
    super(gMLPBlock, self).__init__()
    self.layer_norm = nn.LayerNorm(d_model)
    self.channel1 = nn.Linear(d_model, d_ffn)
    self.sgu = SpatialGatingUnit(seq_len, d_ffn)
    self.channel2 = nn.Linear((d_ffn // 2), d_model)
def __init__(self, seq_len, d_model, d_ffn):
    super(gMLPBlock, self).__init__()
    self.layer_norm = nn.LayerNorm(d_model)
    self.channel1 = nn.Linear(d_model, d_ffn)
    self.sgu = SpatialGatingUnit(seq_len, d_ffn)
    self.channel2 = nn.Linear((d_ffn // 2), d_model)