5f465041619a63bf1de99c55d1298865bf70fd9e,reconstruction.py,,,#,19
Before Change
import timeit
MANIFOLDS = {
"lorentz": LorentzManifold,
"euclidean": EuclideanManifold,
"transe": TranseManifold,
"poincare": PoincareManifold
}
np.random.seed(42)
parser = argparse.ArgumentParser()
After Change
model = MODELS[chkpnt["conf"]["model"]](
manifold,
dim=chkpnt["conf"]["dim"],
size=chkpnt["embeddings"].size(0),
sparse=chkpnt["conf"]["sparse"]
)
model.load_state_dict(chkpnt["model"])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: facebookresearch/poincare-embeddings
Commit Name: 5f465041619a63bf1de99c55d1298865bf70fd9e
Time: 2020-01-07
Author: mattle@fb.com
File Name: reconstruction.py
Class Name:
Method Name:
Project Name: elbayadm/attn2d
Commit Name: 5a2f76ede044b4904af9461e18253f2929cfc5a4
Time: 2019-10-23
Author: dnn@fb.com
File Name: fairseq/models/levenshtein_transformer.py
Class Name: LevenshteinTransformerModel
Method Name: initialize_output_tokens