| 123 | } |
| 124 | |
| 125 | void OpRegistry::GetRegisteredOps(std::vector<OpDef>* op_defs) { |
| 126 | mutex_lock lock(mu_); |
| 127 | MustCallDeferred(); |
| 128 | for (const auto& p : registry_) { |
| 129 | op_defs->push_back(p.second->op_def); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void OpRegistry::GetOpRegistrationData( |
| 134 | std::vector<OpRegistrationData>* op_data) { |