Module: tf.contrib.sparsemax

Module that implements sparsemax and sparsemax loss, see 1.

Defined in contrib/sparsemax/__init__.py.

Sparsemax

Functions

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

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