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

Function MoveAttrValue

tensorflow/core/framework/attr_value_util.cc:495–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void MoveAttrValue(std::vector<string>&& value, AttrValue* out) {
496 out->mutable_list()->Clear(); // Create list() even if value empty.
497 for (auto& v : value) {
498 out->mutable_list()->add_s(std::move(v));
499 }
500}
501
502void SetAttrValue(const TensorShape& value, AttrValue* out) {
503 value.AsProto(out->mutable_shape());

Callers 1

AddAttrMethod · 0.85

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected