| 126 | } |
| 127 | |
| 128 | const CapturedGraph* GraphRegistry::find(LayerType type, int n_tokens) const { |
| 129 | const auto it = graphs_.find(Key{(int) type, n_tokens}); |
| 130 | return it == graphs_.end() ? nullptr : &it->second; |
| 131 | } |
| 132 | |
| 133 | bool GraphRegistry::launch(LayerType type, int n_tokens, int timeout_ms, std::string& err) const { |
| 134 | const CapturedGraph* g = find(type, n_tokens); |