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

Function dumpTensor

codegen/OpFuse.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}
40static 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}
53static void dumpCmd(const Command* cmd) {
54 MNN_PRINT("\n{\n");
55 dumpOp(cmd->op);

Callers 1

dumpCmdFunction · 0.70

Calls 2

shapeMethod · 0.80
dumpRegionFunction · 0.70

Tested by

no test coverage detected