5b648ef909fbf89c53f28ebc1b3bd2f4fde168c5,torch/onnx/symbolic_opset9.py,,embedding,#Any#Any#Any#Any#Any#Any#,475

Before Change


    // return out.view(size);
    weight = g.op("Gather", weight, indices)
    if (padding_idx >= 0):
        mask = eq(g, indices, g.op("Constant", value_t=torch.tensor(padding_idx)))
        if sym_help._export_onnx_opset_version < 11:
            mask = unsqueeze(g, mask, -1)
        else:
            mask = sym_help._unsqueeze_helper(g, mask, [-1])
        weight = masked_fill(g, weight, mask, torch.tensor(0.))
    return weight


@parse_args("v", "v", "v", "i", "i", "i", "v", "i")
def embedding_bag(g,

After Change




def embedding(g, weight, indices, padding_idx, scale_grad_by_freq, sparse):
    return g.op("Gather", weight, indices)


@parse_args("v", "v", "v", "i", "i", "i", "v", "i")
def embedding_bag(g,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pytorch/pytorch
Commit Name: 5b648ef909fbf89c53f28ebc1b3bd2f4fde168c5
Time: 2021-03-12
Author: nshulga@fb.com
File Name: torch/onnx/symbolic_opset9.py
Class Name:
Method Name: embedding


Project Name: dmlc/dgl
Commit Name: cf8a3fb30547d6e980ecd8182f64a51df8e55c62
Time: 2021-02-10
Author: expye@outlook.com
File Name: python/dgl/backend/pytorch/tensor.py
Class Name:
Method Name: pack_padded_tensor


Project Name: facebookresearch/Horizon
Commit Name: 7808b4cba793ff9f1baaec6de82692ebd1395c01
Time: 2020-05-15
Author: kaiwenw@fb.com
File Name: reagent/models/cem_planner.py
Class Name: CEMPlannerNetwork
Method Name: continuous_planning