| 56 | } |
| 57 | |
| 58 | void MutableOpResolver::AddAll(const MutableOpResolver& other) { |
| 59 | // map::insert does not replace existing elements, and map::insert_or_assign |
| 60 | // wasn't added until C++17. |
| 61 | for (const auto& other_builtin : other.builtins_) { |
| 62 | builtins_[other_builtin.first] = other_builtin.second; |
| 63 | } |
| 64 | for (const auto& other_custom_op : other.custom_ops_) { |
| 65 | custom_ops_[other_custom_op.first] = other_custom_op.second; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | } // namespace tflite |
no outgoing calls