Defined in File var_node.h
This class is a nested type of Class MemAllocPlan.
identifier for allocated memory
Each Chunk object corresponds to an allocated memory chunk. Memory forwarding and force updating are implemented by sharing Chunk objects between vars.
If mem_alloc_status is not invalid, the memory region for this chunk is owner_var->dev_tensor().storage().
size of this chunk in bytes
update value of m_size, only used in dynamic var allocation
var that first creates this chunk
memory allocation status for this chunk
Allocation status can either be INVALID, FROM_OWNER_VAR, or an offset in a static allocation buffer. This status is compactly represented by an integer value. No error check is performed in the accessors.
Note that for static_offset, it is set in SeqMemOptimizer::plan_chunk_allocation() and accessed in VarNodeMemManager::make_static_var_tensor_from_alloc_plan()
whether memory is not allocated yet
whether memory comes from owner_var->dev_tensor()
whether memory is statically allocated