1b353a3d96de2d48b22ad8c2db6a15ede008c767,thinc/layers/embed.py,,Embed,#Any#Any#,17
Before Change
dims={"nO": nO, "nV": nV},
params={"E": None},
)
model = model if column is None else chain(ints_getitem(column), model)
model.attrs["column"] = column
return cast(Model[InT, OutT], model)
After Change
dims={"nO": nO, "nV": nV},
params={"E": None},
)
if column is not None:
// This is equivalent to array[:, column]. What you"re actually doing
// there is passing in a tuple: array[(:, column)], except in the context
// of array indexing, the ":" creates an object slice(0, None).
// So array[:, column] is array.__getitem__(slice(0), column).
model = chain(ints_getitem((slice(0), column)), model)
model.attrs["column"] = column
return cast(Model[InT, OutT], model)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances
Project Name: explosion/thinc
Commit Name: 1b353a3d96de2d48b22ad8c2db6a15ede008c767
Time: 2020-01-28
Author: honnibal+gh@gmail.com
File Name: thinc/layers/embed.py
Class Name:
Method Name: Embed
Project Name: explosion/thinc
Commit Name: 858880eb22f2e0b85df33137fd748e6bb09b3383
Time: 2020-01-28
Author: honnibal+gh@gmail.com
File Name: thinc/layers/staticvectors.py
Class Name:
Method Name: StaticVectors
Project Name: explosion/thinc
Commit Name: 858880eb22f2e0b85df33137fd748e6bb09b3383
Time: 2020-01-28
Author: honnibal+gh@gmail.com
File Name: thinc/layers/hashembed.py
Class Name:
Method Name: HashEmbed