Skip to content

Commit

Permalink
Merge pull request #2 from sspintel/add-llama-ops
Browse files Browse the repository at this point in the history
Add ops for LLAMA
  • Loading branch information
cavusmustafa authored Sep 14, 2023
2 parents f2eb270 + a7617bf commit 430e4a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def __init__(self):
"torch.ops.aten.logsumexp.default": None,
#"torch.ops.aten.masked_fill.Scalar": None,
"torch.ops.aten.masked_fill_.Scalar": None,
"torch.ops.aten.masked_fill.Scalar": None,
"torch.ops.aten.masked_fill.Tensor": None,
"torch.ops.aten.max_pool2d_with_indices.default": None,
"torch.ops.aten.mean.dim": None,
Expand Down
4 changes: 3 additions & 1 deletion src/frontends/pytorch/src/op_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ const std::map<std::string, CreatorFunction> get_supported_ops_fx() {
{"aten.logical_not.default", op::translate_1to1_match_1_inputs<opset10::LogicalNot>},
{"aten.logsumexp.default", op::translate_logsumexp},
{"aten.lt.Tensor", op::translate_1to1_match_2_inputs_align_types<opset10::Less>},
{"aten.masked_fill.Scalar", op::translate_masked_fill},
{"aten.masked_fill_.Scalar", op::inplace_op<op::translate_masked_fill>},
{"aten.masked_fill.Scalar", op::inplace_op<op::translate_masked_fill>},
{"aten.masked_fill.Tensor", op::translate_masked_fill},
{"aten.masked_fill_.Scalar", op::inplace_op<op::translate_masked_fill>},
{"aten.masked_fill_.Tensor", op::inplace_op<op::translate_masked_fill>},
Expand Down Expand Up @@ -573,6 +574,7 @@ const std::map<std::string, CreatorFunction> get_supported_ops_fx() {
{"aten.split.Tensor", op::translate_chunk_fx},
{"aten.split_with_sizes.default", op::translate_split_with_sizes_fx},
{"aten.stack.default", op::translate_stack_fx},
{"aten.squeeze.dim", op::quantizable_op<op::translate_squeeze>},
{"aten.sub.default", op::translate_sub},
{"aten.sub.Tensor", op::translate_sub},
{"aten.t.default", op::translate_t},
Expand Down

0 comments on commit 430e4a0

Please sign in to comment.