c9e922c0f16ace10b60df275c2add5fde54e11cf,thinc/layers/with_reshape.py,,init,#Any#Any#Any#,41

Before Change


        Y2d = Y.reshape((-1, Y.shape[-1]))
    layer.initialize(X=X2d, Y=Y2d)
    model.set_dim("nI", layer.get_dim("nI"))
    model.set_dim("nO", layer.get_dim("nO"))

After Change


    layer.initialize(X=X2d, Y=Y2d)
    if layer.has_dim("nI"):
        model.set_dim("nI", layer.get_dim("nI"))
    if layer.has_dim("nO"):
        model.set_dim("nO", layer.get_dim("nO"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: explosion/thinc
Commit Name: c9e922c0f16ace10b60df275c2add5fde54e11cf
Time: 2020-01-12
Author: honnibal+gh@gmail.com
File Name: thinc/layers/with_reshape.py
Class Name:
Method Name: init


Project Name: explosion/thinc
Commit Name: 612fb894d89d3d47ebecb8f7959a1a152acba894
Time: 2020-01-08
Author: svlandeg@users.noreply.github.com
File Name: thinc/layers/uniqued.py
Class Name:
Method Name: init


Project Name: explosion/thinc
Commit Name: aadc687d0a7e2cfa10675471314e8977079d0344
Time: 2020-01-20
Author: svlandeg@users.noreply.github.com
File Name: thinc/layers/concatenate.py
Class Name:
Method Name: init