Skip to content

Commit

Permalink
Add Hardswish #60
Browse files Browse the repository at this point in the history
  • Loading branch information
Talmaj committed Sep 15, 2024
1 parent 3943a43 commit 85d9ea7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions onnx2pytorch/convert/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ def convert_operations(onnx_graph, opset_version, batch_dim=0, enable_pruning=Tr
op = nn.Sigmoid()
elif node.op_type == "HardSigmoid":
op = Hardsigmoid(**extract_attributes(node))
elif node.op_type == "HardSwish":
op = nn.Hardswish()
elif node.op_type == "Slice":
op = Slice(**extract_attributes(node))
elif node.op_type == "Softmax":
Expand Down

0 comments on commit 85d9ea7

Please sign in to comment.