Skip to content

Commit

Permalink
added onnx2ncnn support of erf
Browse files Browse the repository at this point in the history
  • Loading branch information
brightening-eyes committed Sep 6, 2023
1 parent 5a8a599 commit 3ddc351
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/onnx/onnx2ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3714,6 +3714,10 @@ int main(int argc, char** argv)
{
fprintf(pp, "%-16s", "EmbedLayerNormalization");
}
else if (op == "Erf")
{
fprintf(pp, "%-16s", "Erf");
}
else if (op == "Exp")
{
fprintf(pp, "%-16s", "UnaryOp");
Expand Down Expand Up @@ -4510,6 +4514,10 @@ int main(int argc, char** argv)

fwrite_tensor_proto_data(B, bp);
}
else if (op == "Erf")
{
// no-op
}
else if (op == "Exp")
{
int op_type = 7;
Expand Down

0 comments on commit 3ddc351

Please sign in to comment.