f2754e0656d8cebe1f785f6af100e4ade241a7f8,thinc/model.py,Model,from_bytes,#Model#Any#,556

Before Change


            for dim, value in data["dims"].items():
                layer.set_dim(dim, value)
            for param in data["params"]:
                layer.set_param(param["name"], param["value"])
            for i, shim_bytes in enumerate(data["shims"]):
                layer.shims[i].from_bytes(shim_bytes)
            for name, ref_i in data["refs"].items():

After Change


                default_value = node.get_attr(attr)
                loaded_value = deserialize_attr(default_value, value, attr, node)
                node.set_attr(attr, loaded_value)
            for param_name, value in msg["params"][i].items():
                node.set_param(param_name, value)
            for i, shim_bytes in enumerate(msg["shims"][i]):
                node.shims[i].from_bytes(shim_bytes)
        return self
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: from_bytes


Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: from_bytes


Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: use_params


Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: finish_update