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

Function RandomNumberGenerator

tensorflow/core/graph/testlib.cc:182–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182Node* RandomNumberGenerator(const string& op, Graph* g, Node* input,
183 DataType dtype) {
184 Node* ret;
185 TF_CHECK_OK(NodeBuilder(g->NewName("n"), op, g->op_registry())
186 .Input(input)
187 .Attr("dtype", dtype)
188 .Attr("seed", 0)
189 .Finalize(g, &ret));
190 return ret;
191}
192
193Node* RandomUniform(Graph* g, Node* input, DataType dtype) {
194 return RandomNumberGenerator("RandomUniform", g, input, dtype);

Callers 3

RandomUniformFunction · 0.85
RandomGaussianFunction · 0.85
TruncatedNormalFunction · 0.85

Calls 6

NodeBuilderClass · 0.70
FinalizeMethod · 0.45
AttrMethod · 0.45
InputMethod · 0.45
NewNameMethod · 0.45
op_registryMethod · 0.45

Tested by

no test coverage detected