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

Method AsShapedBuffer

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

Source from the content-addressed store, hash-verified

415}
416
417StatusOr<ShapedBuffer> PyLocalBuffer::AsShapedBuffer() const {
418 absl::MutexLock lock(&mu_);
419 if (!device_buffer_) {
420 return InvalidArgument(
421 "Attempted to fetch value of invalid/deleted buffer.");
422 }
423 return device_buffer_->AsShapedBuffer(on_host_shape_, on_device_shape_,
424 client_->client()->platform());
425}
426
427StatusOr<std::vector<std::unique_ptr<PyLocalBuffer>>>
428PyLocalBuffer::DestructureTuple() {

Callers 2

TESTFunction · 0.45
FromHostBufferMethod · 0.45

Calls 3

InvalidArgumentFunction · 0.85
platformMethod · 0.45
clientMethod · 0.45

Tested by 1

TESTFunction · 0.36