mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-12 23:35:47 +03:00
Keep working through errors
This commit is contained in:
parent
b67dd0cf89
commit
af9a30b192
|
@ -226,6 +226,10 @@ def _forward_precomputable_affine(model, X: Floats2d, is_train: bool):
|
||||||
model.inc_grad(
|
model.inc_grad(
|
||||||
"lower_pad", _backprop_precomputable_affine_padding(model, dY, ids)
|
"lower_pad", _backprop_precomputable_affine_padding(model, dY, ids)
|
||||||
)
|
)
|
||||||
|
print("X", X.shape)
|
||||||
|
print("ids", ids.shape)
|
||||||
|
print("dims", "nF", "nI")
|
||||||
|
print("X[ids]", X[ids].shape)
|
||||||
Xf = model.ops.reshape2f(X[ids], ids.shape[0], nF * nI)
|
Xf = model.ops.reshape2f(X[ids], ids.shape[0], nF * nI)
|
||||||
|
|
||||||
model.inc_grad("lower_b", dY.sum(axis=0)) # type: ignore
|
model.inc_grad("lower_b", dY.sum(axis=0)) # type: ignore
|
||||||
|
|
Loading…
Reference in New Issue
Block a user