gcn icon indicating copy to clipboard operation
gcn copied to clipboard

dropout ratio for inputs

Open copyrightly opened this issue 5 years ago • 1 comments

In the layer.py line 170, there is x = tf.nn.dropout(x, 1-self.dropout). By the documentation of tf, the argument for tf.nn.dropout is the ratio to drop. So should it be x = tf.nn.dropout(x, self.dropout)?

copyrightly avatar Jan 30 '20 17:01 copyrightly

I believe you are correct, but at the time of writing this was not the case.

There was a change in the code for tf.nn.dropout; according to the documentation,

Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_prob). They will be removed in a future version. Instructions for updating: Please use rate instead of keep_prob. Rate should be set to rate = 1 - keep_prob.

shannon-np avatar Aug 12 '20 15:08 shannon-np