jraph/_src/deepsets_test.py
def deepset_node_update_fn(feats: jnp.ndarray) -> jnp.ndarray:
  """Node update deepset function for graph net."""

  net = hk.Sequential(
      [
       PermEquil_mean(128), # deepset layer 1
       jax.nn.elu,
       PermEquil_mean(128),
       jax.nn.elu,
       PermEquil_mean(128),
       jax.nn.elu
      ]
  )

  return net(feats)
Node update deepset function for graph net.
Node update deepset function for graph net.
Node update deepset function for graph net .
def deepset_node_update_fn(feats: jnp.ndarray) -> jnp.ndarray:
  net = hk.Sequential(
      [
       PermEquil_mean(128), 
       jax.nn.elu,
       PermEquil_mean(128),
       jax.nn.elu,
       PermEquil_mean(128),
       jax.nn.elu
      ]
  )
  return net(feats)
def deepset_node_update_fn ( feats : jnp . ndarray ) -> jnp . ndarray : net = hk . Sequential ( [ PermEquil_mean ( 128 ) , jax . nn . elu , PermEquil_mean ( 128 ) , jax . nn . elu , PermEquil_mean ( 128 ) , jax . nn . elu ] ) return net ( feats )
Node update deepset function for graph net.
Node update deepset function for graph net .
"""Node update deepset function for graph net.""" # deepset layer 1
feats
jnp.ndarray