def test_dense_general_two_out(self):
    rng = dict(params=random.PRNGKey(0))
    x = jnp.ones((1, 3))
    dg_module = nn.DenseGeneral(features=(2, 2), kernel_init=initializers.ones, bias_init=initializers.ones)
    (y, _) = dg_module.init_with_output(rng, x)
    np.testing.assert_allclose(y, np.full((1, 2, 2), 4.0))
def test_dense_general_two_out(self):
    rng = dict(params=random.PRNGKey(0))
    x = jnp.ones((1, 3))
    dg_module = nn.DenseGeneral(features=(2, 2), kernel_init=initializers.ones, bias_init=initializers.ones)
    (y, _) = dg_module.init_with_output(rng, x)
    np.testing.assert_allclose(y, np.full((1, 2, 2), 4.0))