Skip to content

Commit

Permalink
fixes #1
Browse files Browse the repository at this point in the history
near-zero initialization
  • Loading branch information
hmohebbi authored Feb 25, 2021
1 parent 71045a2 commit e38e00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modeling_tf_adapter_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def __init__(self, input_size, bottleneck_size, non_linearity, *inputs, **kwargs

self.down_project = tf.keras.layers.Dense(
bottleneck_size,
kernel_initializer=tf.keras.initializers.TruncatedNormal(stddev=0.02),
kernel_initializer=tf.keras.initializers.TruncatedNormal(stddev=1e-3),
bias_initializer="zeros",
name="feedforward_downproject")

self.up_project = tf.keras.layers.Dense(
input_size,
kernel_initializer=tf.keras.initializers.TruncatedNormal(stddev=0.02),
kernel_initializer=tf.keras.initializers.TruncatedNormal(stddev=1e-3),
bias_initializer="zeros",
name="feedforward_upproject")

Expand Down

0 comments on commit e38e00d

Please sign in to comment.