Join TensorFlow at Google I/O, May 11-12 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.