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

Method DeviceBuffer

tensorflow/compiler/xla/python/local_client.cc:412–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412std::shared_ptr<SharedDeviceBuffer> PyLocalBuffer::DeviceBuffer() const {
413 absl::MutexLock lock(&mu_);
414 return device_buffer_;
415}
416
417StatusOr<ShapedBuffer> PyLocalBuffer::AsShapedBuffer() const {
418 absl::MutexLock lock(&mu_);

Callers 5

PyLocalBufferGetBufferFunction · 0.45
PYBIND11_MODULEFunction · 0.45
MakeTupleMethod · 0.45
ExecuteHelperMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected