MCPcopy Create free account
hub / github.com/alibaba/MNN / _hasZeroDim

Function _hasZeroDim

source/geometry/GeometryComputer.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74inline bool _hasZeroDim(const Tensor* t) {
75
76 for (int i = 0; i < t->dimensions(); ++i) {
77 if (t->length(i) <= 0) {
78 return true;
79 }
80 }
81 return false;
82}
83
84static bool _virtualMemory(Tensor::InsideDescribe::NativeInsideDescribe* des) {
85 return des->memoryType == Tensor::InsideDescribe::MEMORY_VIRTUAL && nullptr == des->rasterCommand.lock().get();

Callers 1

Calls 2

dimensionsMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected