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

Function FetchesConfig

tensorflow/compiler/tf2xla/tf2xla_util_test.cc:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160static tf2xla::Config FetchesConfig(std::vector<string> fetches) {
161 tf2xla::Config config;
162 for (const auto& fetch_node_name : fetches) {
163 auto* fetch = config.add_fetch();
164 fetch->set_name(absl::StrCat("fetch_", fetch_node_name));
165 fetch->mutable_id()->set_node_name(fetch_node_name);
166 }
167 return config;
168}
169
170TEST(PruneGraphDefInto, Basic) {
171 GraphDef def;

Callers 1

TESTFunction · 0.85

Calls 3

StrCatFunction · 0.50
add_fetchMethod · 0.45
set_nameMethod · 0.45

Tested by

no test coverage detected