| 42 | } |
| 43 | |
| 44 | void Get(const std::string& op_name, OpKernel** op) { |
| 45 | *op = nullptr; |
| 46 | MutexLock lock(&mu_); |
| 47 | auto it = cache_.find(op_name); |
| 48 | if (it != cache_.end()) { |
| 49 | *op = it->second; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void Cache(OpKernel* op) { |
| 54 | MutexLock lock(&mu_); |
no test coverage detected