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

Method GetSlice

tensorflow/compiler/xla/service/buffer_assignment.cc:229–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229BufferAllocation::Slice BufferAllocation::GetSlice(
230 const HloValue& buffer) const {
231 const OffsetSize os = FindOrDie(assigned_buffers_, &buffer);
232 return Slice(this, os.offset, os.size);
233}
234
235void BufferAllocation::AddAssignment(const HloValue& buffer, int64 offset,
236 int64 size) {

Callers 3

GetAllSlicesMethod · 0.45
GetUniqueSliceMethod · 0.45

Calls 1

SliceClass · 0.70

Tested by

no test coverage detected