MCPcopy Create free account
hub / github.com/alibaba/euler / Buffer

Method Buffer

euler/core/framework/tensor.cc:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace euler {
22
23Buffer::Buffer(Allocator* allocator, size_t size)
24 : allocator_(allocator), begin_(allocator->Allocate(size)),
25 size_(size), own_(true), parent_(nullptr) {
26 // memset(begin_, 0x00, size_);
27}
28
29Buffer::Buffer(Allocator* allocator, void* begin, size_t size, bool own)
30 : allocator_(allocator), begin_(begin),

Callers

nothing calls this directly

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected