Restore LayerNorm for mish

This commit is contained in:
Matthw Honnibal 2019-10-24 17:35:10 +02:00
parent 134056684f
commit 7d81d17ce5

View File

@ -382,8 +382,10 @@ def CNN(width, depth, pieces, nW=1):
if pieces == 1: if pieces == 1:
layer = chain( layer = chain(
ExtractWindow(nW=nW), ExtractWindow(nW=nW),
LN(Mish(width, width * (nW*2+1))) Mish(width, width*(nW*2+1)),
LN(nO=width)
) )
return clone(Residual(layer), depth)
else: else:
layer = chain( layer = chain(
ExtractWindow(nW=nW), ExtractWindow(nW=nW),