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

Method ClearAndMarkClosed

tensorflow/core/kernels/tensor_array.h:340–344  ·  view source on GitHub ↗

Clear the TensorArray, including any Tensor references, and mark as closed.

Source from the content-addressed store, hash-verified

338
339 // Clear the TensorArray, including any Tensor references, and mark as closed.
340 void ClearAndMarkClosed() {
341 mutex_lock l(mu_);
342 tensors_.clear();
343 closed_ = true;
344 }
345
346 mutex* mu() { return &mu_; }
347 Tensor* handle() { return &handle_; }

Callers 1

ComputeMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected