TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

Module: tf.contrib.sparsemax

View source on GitHub

Module that implements sparsemax and sparsemax loss, see 1.

Sparsemax

Functions

sparsemax(...): Computes sparsemax activations 1.

sparsemax_loss(...): Computes sparsemax loss function 1.