QANet icon indicating copy to clipboard operation
QANet copied to clipboard

why did u add this kind of dropout in every residual block

Open xiongma opened this issue 4 years ago • 1 comments

def layer_dropout(inputs, residual, dropout): pred = tf.random_uniform([]) < dropout return tf.cond(pred, lambda: residual, lambda: tf.nn.dropout(inputs, 1.0 - dropout) + residual)

xiongma avatar Sep 04 '19 08:09 xiongma

@localminimum hope you can reply this, thx

xiongma avatar Sep 04 '19 08:09 xiongma