Clear the TensorArray, including any Tensor references, and mark as closed.
| 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_; } |