Skip to content

Instantly share code, notes, and snippets.

@mwitiderrick
Created July 14, 2022 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwitiderrick/d4d01bf38a473d351767afd455489b1f to your computer and use it in GitHub Desktop.
Save mwitiderrick/d4d01bf38a473d351767afd455489b1f to your computer and use it in GitHub Desktop.
labels = jnp.array([0.20,0.30,0.10,0.20,0.2])
optax.smooth_labels(labels,alpha=0.4)
# DeviceArray([0.2 , 0.26, 0.14, 0.2 , 0.2 ], dtype=float32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment