405bf9cf6e1aa895ffeb4ae0895edcdefc8db1a0,thinc/layers/concatenate.py,,init,#,96

Before Change


            X_width = get_width(X)
            model.set_dim("nI", X_width)
            for layer in model.layers:
                if layer.has_dim("nI"):
                    layer.set_dim("nI", X_width)
    for layer in model.layers:
        layer.initialize(X=X, Y=Y)

After Change


        if model.has_dim("nI") is not False:
            model.set_dim("nI", get_width(X))
        for layer in model.layers:
            if layer.has_dim("nI") is not False:
                layer.set_dim("nI", get_width(X))
    for layer in model.layers:
        layer.initialize(X=X, Y=Y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: 405bf9cf6e1aa895ffeb4ae0895edcdefc8db1a0
Time: 2020-04-13
Author: justindujardin@users.noreply.github.com
File Name: thinc/layers/concatenate.py
Class Name:
Method Name: init


Project Name: explosion/thinc
Commit Name: 405bf9cf6e1aa895ffeb4ae0895edcdefc8db1a0
Time: 2020-04-13
Author: justindujardin@users.noreply.github.com
File Name: thinc/layers/add.py
Class Name:
Method Name: init