Skip to content

Commit

Permalink
MNN_NPU IR op modify
Browse files Browse the repository at this point in the history
  • Loading branch information
946166920 committed Feb 20, 2024
1 parent 24841e7 commit 241289e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/shape/ShapePool3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class Pool3DSizeComputer : public SizeComputer {
auto size = (float)outputs[0]->elementSize() / 1024.0f / 1024.0f;
auto layer = op->main_as_Pool3D();
float flopsPerElement = 1;
if (layer->kernels() == nullptr) {
return size * flopsPerElement;
}
for (auto kernel: *layer->kernels()) {
flopsPerElement *= kernel;
}
Expand Down

0 comments on commit 241289e

Please sign in to comment.