ef6cd0490d7fc2d0cf85d78f3dcb6b83dd52e2f1,thinc/layers/maxout.py,,forward,#,42

Before Change


    nP = model.get_dim("nP")
    nI = model.get_dim("nI")
    b = model.get_param("b")
    W = model.get_param("W")
    W = W.reshape((nO * nP, nI))
    Y = model.ops.gemm(X, W, trans2=True)
    Y += b.reshape((nO * nP,))
    Y = Y.reshape((Y.shape[0], nO, nP))
    best, which = model.ops.maxout(Y)

After Change


    nP = model.get_dim("nP")
    nI = model.get_dim("nI")
    b = model.get_param("b")
    W = cast(Array2d, model.get_param("W"))
    W = W.reshape((nO * nP, nI))
    Y = model.ops.gemm(X, W, trans2=True)
    Y += b.reshape((nO * nP,))
    Y = Y.reshape((Y.shape[0], nO, nP))
    best, which = model.ops.maxout(Y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: ef6cd0490d7fc2d0cf85d78f3dcb6b83dd52e2f1
Time: 2020-01-23
Author: ines@ines.io
File Name: thinc/layers/maxout.py
Class Name:
Method Name: forward


Project Name: explosion/thinc
Commit Name: ef6cd0490d7fc2d0cf85d78f3dcb6b83dd52e2f1
Time: 2020-01-23
Author: ines@ines.io
File Name: thinc/layers/multisoftmax.py
Class Name:
Method Name: forward


Project Name: explosion/thinc
Commit Name: ef6cd0490d7fc2d0cf85d78f3dcb6b83dd52e2f1
Time: 2020-01-23
Author: ines@ines.io
File Name: thinc/layers/mish.py
Class Name:
Method Name: forward


Project Name: explosion/thinc
Commit Name: 56cb14754d2084f5660c8c7e16906e13d99973fd
Time: 2020-01-19
Author: honnibal+gh@gmail.com
File Name: thinc/layers/lstm.py
Class Name:
Method Name: forward


Project Name: explosion/thinc
Commit Name: ef6cd0490d7fc2d0cf85d78f3dcb6b83dd52e2f1
Time: 2020-01-23
Author: ines@ines.io
File Name: thinc/layers/relu.py
Class Name:
Method Name: forward


Project Name: explosion/thinc
Commit Name: ef6cd0490d7fc2d0cf85d78f3dcb6b83dd52e2f1
Time: 2020-01-23
Author: ines@ines.io
File Name: thinc/layers/softmax.py
Class Name:
Method Name: forward