MCPcopy Create free account
hub / github.com/apache/singa / Block

Method Block

include/singa/core/common.h:66–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64class Block {
65 public:
66 Block(void* ptr, size_t size, Device* device = nullptr, size_t offset = 0)
67 : data_(ptr), size_(size), offset_(offset), device_(device) {
68 ref_count_ = 1; // std::make_shared<std::atomic<int>>(1);
69 }
70 // Disabled as it is not used currently.
71 // Block(void* ptr, size_t size, size_t offset, std::shared_ptr<atomic<int>>
72 // ref) : data_(ptr), size_(size), offset_(offset), ref_count_(ref) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected