| 632 | } |
| 633 | |
| 634 | Status Graph::AddFunctionLibrary(const FunctionDefLibrary& fdef_lib) { |
| 635 | // Need a new-enough consumer to support the functions we add to the graph. |
| 636 | if (fdef_lib.function_size() > 0 && versions_->min_consumer() < 12) { |
| 637 | versions_->set_min_consumer(12); |
| 638 | } |
| 639 | return ops_.AddLibrary(fdef_lib); |
| 640 | } |
| 641 | |
| 642 | namespace { |
| 643 |