How can I reuse a Dense layer? : <p>I have a network in Tensorflow, and I want to define a function that passes it's input through a <code>tf.layers.dense</code> layer (obviously, the same one). I see the <code>reuse</code> argument, but in order to use it properly it seems I need to keep a global variable just to remember if my function was called already. Is there a cleaner way?</p>
