- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for single_use_scope (0.12 sec)
-
tensorflow/cc/framework/scope_internal.h
// Helper functions to get a unique names. string GetUniqueName(const string& prefix, bool check_single_use) const; string GetNameForOp(const string& default_name) const; bool single_use_scope() const { return scope_used_ != nullptr; } // The graph, status, and name maps are shared by all child scopes // created from a single 'root' scope. A root scope is created by calling the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 15:46:43 UTC 2022 - 5.1K bytes - Viewed (0) -
tensorflow/cc/framework/scope_test.cc
EXPECT_EQ(names3[0], "c/mul"); EXPECT_EQ(names3[1], "c/bias_add"); EXPECT_EQ(names3[2], "c/c1"); EXPECT_EQ(names3[3], "c/mul_1"); EXPECT_EQ(names3[4], "c"); } TEST(ScopeTest, SingleUseScope) { Scope root = Scope::NewRootScope(); auto cop_scopes = root.GetCompositeOpScopes("cop"); // cop_scopes.last is a single use scope EXPECT_EQ(cop_scopes.last.GetUniqueNameForOp("foo"), "cop");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 08:17:37 UTC 2019 - 5.5K bytes - Viewed (0)