MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / LinkTensors

Method LinkTensors

tensorflow/lite/delegates/gpu/cl/api.cc:489–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 5

OkStatusFunction · 0.85
NewTensorTieMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected