def test_layernorm(self):
    x = torch.randn(64, 16, 24, 24)
    self._check_one_layer(nn.LayerNorm(24), x)
    self._check_one_layer(nn.LayerNorm((24, 24)), x)
    self._check_one_layer(nn.LayerNorm((16, 24, 24)), x)
def test_layernorm(self):
    x = torch.randn(64, 16, 24, 24)
    self._check_one_layer(nn.LayerNorm(24), x)
    self._check_one_layer(nn.LayerNorm((24, 24)), x)
    self._check_one_layer(nn.LayerNorm((16, 24, 24)), x)