Skip to content

Commit

Permalink
convert LogisticRegressionOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed May 18, 2018
1 parent 0fa92b5 commit 307a77f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/mxnet/mxnet2ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,10 @@ int main(int argc, char** argv)
{
fprintf(pp, "%-16s", "UnaryOp");
}
else if (n.op == "LogisticRegressionOutput")
{
fprintf(pp, "%-16s", "Sigmoid");
}
else if (n.op == "max")
{
fprintf(pp, "%-16s", "Reduction");
Expand Down Expand Up @@ -1040,7 +1044,7 @@ int main(int argc, char** argv)
}
}

if (n.op == "SoftmaxOutput")
if (n.op == "SoftmaxOutput" || n.op == "LogisticRegressionOutput")
{
// drop label
input_size--;
Expand All @@ -1057,7 +1061,7 @@ int main(int argc, char** argv)
continue;
}

if (n.op == "SoftmaxOutput")
if (n.op == "SoftmaxOutput" || n.op == "LogisticRegressionOutput")
{
// drop label
if (j == 1)
Expand Down Expand Up @@ -1549,6 +1553,9 @@ int main(int argc, char** argv)
int op_type = 8;
fprintf(pp, " 0=%d", op_type);
}
else if (n.op == "LogisticRegressionOutput")
{
}
else if (n.op == "max")
{
int operation = 4;
Expand Down

0 comments on commit 307a77f

Please sign in to comment.