Hello
I am working with binary data in the generative network and want to  generate binary value in the last layer  .
I have added a layer noisy rectified linear unit  with :
max(     0 ,  x + N(0 ,  sigmoid(x)     )
in the last layer  in order to convert values to (0,1)   .
I dont know do how set gradient for this layer and add to back propagation?
please help me.