| 1033 | } |
| 1034 | |
| 1035 | std::vector<int64> OpKernelContext::persistent_alloc_ids() const { |
| 1036 | mutex_lock l(stats_mu_); |
| 1037 | if (persistent_alloc_ids_) { |
| 1038 | return std::vector<int64>(persistent_alloc_ids_->begin(), |
| 1039 | persistent_alloc_ids_->end()); |
| 1040 | } else { |
| 1041 | return std::vector<int64>(); |
| 1042 | } |
| 1043 | } |
| 1044 | |
| 1045 | void OpKernelContext::clear_recorded_memory() { |
| 1046 | mutex_lock l(stats_mu_); |
no test coverage detected