| 38 | MNN_PRINT("dst: { stride: [%d, %d, %d], offset: %d }\n}\n", reg.dst.stride[0],reg.dst.stride[1],reg.dst.stride[2],reg.dst.offset); |
| 39 | } |
| 40 | static void dumpTensor(const Tensor* t) { |
| 41 | MNN_PRINT("\t%p [", t); |
| 42 | for (int d : t->shape()) |
| 43 | MNN_PRINT("%d,", d); |
| 44 | MNN_PRINT("], format:%d\n", TensorUtils::getDescribe(t)->dimensionFormat); |
| 45 | auto des = TensorUtils::getDescribe(t); |
| 46 | if (des->memoryType == Tensor::InsideDescribe::MEMORY_VIRTUAL) { |
| 47 | MNN_PRINT("Regions:"); |
| 48 | for (auto reg : des->regions) { |
| 49 | dumpRegion(reg); |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | static void dumpCmd(const Command* cmd) { |
| 54 | MNN_PRINT("\n{\n"); |
| 55 | dumpOp(cmd->op); |
no test coverage detected