MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / set_associated_memory_group

Method set_associated_memory_group

src/runtime/TensorAllocator.cpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void TensorAllocator::set_associated_memory_group(IMemoryGroup *associated_memory_group)
172{
173 ARM_COMPUTE_ERROR_ON(associated_memory_group == nullptr);
174 ARM_COMPUTE_ERROR_ON(_associated_memory_group != nullptr && _associated_memory_group != associated_memory_group);
175 ARM_COMPUTE_ERROR_ON(_memory.region() != nullptr && _memory.region()->buffer() != nullptr);
176
177 _associated_memory_group = associated_memory_group;
178}
179
180uint8_t *TensorAllocator::lock()
181{

Callers 3

TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45

Calls 2

regionMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected