Conditional Gumbel-Softmax for constrained feature selection with application to node selection in wireless sensor networks