Make different Theano function. One to generate the mask, make that function return it or put it in a shared variable. Then the other Theano function use that mask.
Frédéric On Wed, Nov 1, 2017 at 12:29 PM Farhood Etaati <[email protected]> wrote: > Hello there! > > I'm trying to implement a custom dropout layer which can generate a random > mask and hold on to it until a stop flag has been given to it. Does anyone > have an idea how could I implement this? > > Thanks. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
