| 487 | |
| 488 | private: |
| 489 | static Status LinkTensors(const std::vector<TensorTieDef>& defs, |
| 490 | TensorTieFactory* factory, |
| 491 | std::vector<std::unique_ptr<TensorTie>>* objects) { |
| 492 | objects->reserve(defs.size()); |
| 493 | for (auto& def : defs) { |
| 494 | std::unique_ptr<TensorTie> object; |
| 495 | RETURN_IF_ERROR(factory->NewTensorTie(def, &object)); |
| 496 | objects->push_back(std::move(object)); |
| 497 | } |
| 498 | return OkStatus(); |
| 499 | } |
| 500 | |
| 501 | static std::vector<TensorObjectDef> GetExternalDefinitions( |
| 502 | const std::vector<std::unique_ptr<TensorTie>>& objects) { |
nothing calls this directly
no test coverage detected