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

Function Var

tensorflow/core/graph/testlib.cc:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97Node* Var(Graph* g, const DataType dtype, const TensorShape& shape) {
98 Node* ret;
99 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Variable")
100 .Attr("dtype", dtype)
101 .Attr("shape", shape)
102 .Finalize(g, &ret));
103 return ret;
104}
105
106Node* Var(Graph* g, const DataType dtype, const TensorShape& shape,
107 const string& name) {

Callers 5

BuildConcurrentAddAssignFunction · 0.50
TEST_FFunction · 0.50
TESTFunction · 0.50
TEST_FFunction · 0.50
TESTFunction · 0.50

Calls 4

NodeBuilderClass · 0.70
FinalizeMethod · 0.45
AttrMethod · 0.45
NewNameMethod · 0.45

Tested by

no test coverage detected