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

Method ~Stream

tensorflow/stream_executor/stream.cc:294–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294Stream::~Stream() {
295 VLOG_CALL();
296
297 // Ensure the stream is completed.
298 auto status = BlockHostUntilDone();
299 if (!status.ok()) {
300 LOG(WARNING) << "Error blocking host until done in stream destructor: "
301 << status;
302 }
303 temporary_memory_manager_.ForceDeallocateAll();
304 RunAfterBlockHostUntilDoneCallbacks();
305
306 if (allocated_) {
307 parent_->DeallocateStream(this);
308 }
309}
310
311port::Status Stream::RefreshStatus() {
312 port::Status status = parent_->GetStatus(this);

Callers

nothing calls this directly

Calls 3

ForceDeallocateAllMethod · 0.80
okMethod · 0.45
DeallocateStreamMethod · 0.45

Tested by

no test coverage detected