Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

[BUGFIX] fix the in_channels of LN in qa script #1177

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/language_model/model/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, units=768, is_eval=False, prefix=None, params=None):
with self.name_scope():
self.dense_0 = nn.Dense(units, activation='tanh', flatten=False)
self.dense_1 = nn.Dense(1, flatten=False)
self.layernorm = nn.LayerNorm(epsilon=1e-12, in_channels=768)
self.layernorm = nn.LayerNorm(epsilon=1e-12, in_channels=units)

def __call__(self,
hidden_states,
Expand Down