mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-28 20:12:35 +08:00
fix onnx2ncnn adaptive pool conversion bug, remove no used weights node (#2570)
This commit is contained in:
@@ -42,7 +42,7 @@ Pooling_arm::Pooling_arm()
|
||||
support_bf16_storage = true;
|
||||
}
|
||||
|
||||
int Pooling_arm::create_pipeline(const Option& _opt)
|
||||
int Pooling_arm::create_pipeline(const Option& /*opt*/)
|
||||
{
|
||||
if (adaptive_pooling)
|
||||
{
|
||||
|
||||
@@ -2270,6 +2270,13 @@ int main(int argc, char** argv)
|
||||
node_reference[node.input(1)] -= 1;
|
||||
}
|
||||
}
|
||||
else if (op == "adaptive_avg_pool2d" || op == "adaptive_max_pool2d")
|
||||
{
|
||||
if (node.input_size() >= 2)
|
||||
{
|
||||
node_reference[node.input(1)] -= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// for (auto a: node_reference)
|
||||
|
||||
Reference in New Issue
Block a user