bert
bert copied to clipboard
linear projection "bias=True" != original t2t implementation transformer
Hi,
In modeling.py line 866:
with tf.variable_scope("output"):
attention_output = tf.layers.dense(
attention_output,
hidden_size,
kernel_initializer=create_initializer(initializer_range))
You are setting the bias of the dense layer = True, where in the original implementation of transformer they are setting it to False. There is any reason for doing that?
Thanks.
No particular reason, we didn't attempt to make it 100% compatible with the original implementation and minor changes like this probably aren't important.