MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetBuffer

Method SetBuffer

tensorflow/compiler/xla/service/gpu/buffer_allocations.cc:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void BufferAllocations::SetBuffer(BufferAllocation::Index buffer_index,
173 se::DeviceMemoryBase buffer) {
174 CHECK_GE(buffer_index, 0);
175 CHECK_LT(buffer_index, buffers_.size());
176 buffers_[buffer_index] = buffer;
177}
178
179BufferAllocations::KeyType BufferAllocations::Key() const {
180 KeyType key;

Callers 1

BuildMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected