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

Function Constant

tensorflow/core/graph/testlib.cc:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66Node* Constant(Graph* g, const Tensor& tensor) {
67 Node* ret;
68 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Const")
69 .Attr("dtype", tensor.dtype())
70 .Attr("value", tensor)
71 .Finalize(g, &ret));
72 return ret;
73}
74
75Node* Constant(Graph* g, const Tensor& tensor, const string& name) {
76 Node* ret;

Callers 15

ConstantMethod · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.50
BuildArgumentsMethod · 0.50
SetConstantOutputMethod · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
IsAllFpConstantPowerOf2Function · 0.50
HandleAddMethod · 0.50
HandleSubtractMethod · 0.50

Calls 5

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

Tested by

no test coverage detected