mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Fix init for padding
This commit is contained in:
parent
85ed5730a2
commit
233945bfe0
|
@ -110,6 +110,7 @@ def init(model, X=None, Y=None):
|
|||
|
||||
ops = model.ops
|
||||
W = normal_init(ops, W.shape, mean=float(ops.xp.sqrt(1.0 / nF * nI)))
|
||||
pad = normal_init(ops, pad.shape, mean=1.0)
|
||||
model.set_param("W", W)
|
||||
model.set_param("b", b)
|
||||
model.set_param("pad", pad)
|
||||
|
|
Loading…
Reference in New Issue
Block a user