b10173655589b038ba1e69e937eddf03819dc94d,spacy/_ml.py,PrecomputableAffine,begin_update,#PrecomputableAffine#Any#Any#,135
Before Change
return self.nF * self.nO
def begin_update(self, X, drop=0.):
nN = X.shape[0]
// X: (b, i)
// Xf: (b, f, i)
// Yf: (b, f, o)
// dY: (b, o)
After Change
tensordot = self.ops.xp.tensordot
ascontiguous = self.ops.xp.ascontiguousarray
Yf = tensordot(X, self.W, axes=[[1], [2]])
def backward(dY_ids, sgd=None):
dY, ids = dY_ids
Xf = X[ids]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: explosion/spaCy
Commit Name: b10173655589b038ba1e69e937eddf03819dc94d
Time: 2017-10-20
Author: honnibal+gh@gmail.com
File Name: spacy/_ml.py
Class Name: PrecomputableAffine
Method Name: begin_update
Project Name: GPflow/GPflow
Commit Name: bd1e9c04b48dd5ccca9619d5eaa2595a358bdb08
Time: 2020-01-31
Author: st--@users.noreply.github.com
File Name: gpflow/kernels/misc.py
Class Name: Coregion
Method Name: K
Project Name: keras-team/keras
Commit Name: 002a9d5d2b2c26fff63293e3007ede9ab7dee616
Time: 2015-11-02
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/core.py
Class Name: Merge
Method Name: output_shape