MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / alloc

Method alloc

src/core/impl/tensor.cpp:209–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207class mgb::DeviceTensorStorageTrait {
208public:
209 static void* alloc(CompNode node, size_t size) { return node.alloc_device(size); }
210
211 static void free(CompNode node, void* data) { node.free_device(data); }
212};

Callers

nothing calls this directly

Calls 1

alloc_deviceMethod · 0.45

Tested by

no test coverage detected