Skip to content

Commit

Permalink
convert Maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Sep 4, 2017
1 parent 92eef2b commit 04cd833
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/tensorflow/tensorflow2ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ int main(int argc, char** argv)
weights[output_name] = tensorflow::TensorProto();
continue;
}
else if (node.op() == "Add" || node.op() == "BiasAdd" || node.op() == "Max" || node.op() == "Mul" || node.op() == "RealDiv" || node.op() == "Sub")
else if (node.op() == "Add" || node.op() == "BiasAdd"
|| node.op() == "Max" || node.op() == "Maximum" || node.op() == "Mul"
|| node.op() == "RealDiv" || node.op() == "Sub")
{
// check weights
for (int j=0; j<node.input_size(); j++)
Expand Down Expand Up @@ -305,7 +307,7 @@ int main(int argc, char** argv)
{
fprintf(pp, "%-16s", "InnerProduct");
}
else if (node.op() == "Max")
else if (node.op() == "Max" || node.op() == "Maximum")
{
// check weights
tensorflow::TensorProto tensor;
Expand Down Expand Up @@ -754,7 +756,7 @@ int main(int argc, char** argv)

fprintf(pp, " %d %d %d", num_output, bias_term, weight_data_size);
}
else if (node.op() == "Max")
else if (node.op() == "Max" || node.op() == "Maximum")
{
// check weights
tensorflow::TensorProto tensor;
Expand Down

0 comments on commit 04cd833

Please sign in to comment.