| 72 | } |
| 73 | |
| 74 | inline 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 | |
| 84 | static bool _virtualMemory(Tensor::InsideDescribe::NativeInsideDescribe* des) { |
| 85 | return des->memoryType == Tensor::InsideDescribe::MEMORY_VIRTUAL && nullptr == des->rasterCommand.lock().get(); |
no test coverage detected