ef6cd0490d7fc2d0cf85d78f3dcb6b83dd52e2f1,thinc/layers/relu.py,,forward,#,41

Before Change




def forward(model: Model[InT, OutT], X: InT, is_train: bool) -> Tuple[OutT, Callable]:
    W = model.get_param("W")
    b = model.get_param("b")

    Y = model.ops.affine(X, W, b)
    Y = model.ops.relu(Y)

After Change




def forward(model: Model[InT, OutT], X: InT, is_train: bool) -> Tuple[OutT, Callable]:
    W = cast(Array2d, model.get_param("W"))
    b = model.get_param("b")
    Y = model.ops.affine(X, W, b)
    Y = model.ops.relu(Y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 3

Instances


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/linear.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/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/softmax.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/staticvectors.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