| 18 | #define DEFAULT_ALLOCATE_SIZE 32 |
| 19 | namespace MNN { |
| 20 | static bool _hasZeroShapeOutput(const Schedule::OpCacheInfo& info) { |
| 21 | for (auto t : info.outputs) { |
| 22 | for (int v = 0; v < t->dimensions(); ++v) { |
| 23 | if (t->length(v) <= 0) { |
| 24 | return true; |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | return false; |
| 29 | } |
| 30 | flatbuffers::Offset<Op> GeometryComputerUtils::makePool(flatbuffers::FlatBufferBuilder& builder, std::pair<int, int> kernel, std::pair<int, int> stride, PoolType type, MNN::PoolPadType pad, std::pair<int, int> pads, bool isglobal, AvgPoolCountType countType) { |
| 31 | PoolBuilder poolB(builder); |
| 32 | poolB.add_type(type); |
no test coverage detected