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

Function Random

tensorflow/core/kernels/training_ops_test.cc:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static Node* Random(Graph* g, int n) {
65 Tensor data(DT_FLOAT, TensorShape({n}));
66 data.flat<float>().setRandom();
67 return test::graph::Constant(g, data);
68}
69
70static Node* Random(Graph* g, int m, int n) {
71 Tensor data(DT_FLOAT, TensorShape({m, n}));

Callers 11

SGDFunction · 0.85
AdagradFunction · 0.85
SparseAdagradFunction · 0.85
MomentumFunction · 0.85
AdamFunction · 0.85
RMSPropFunction · 0.85
AddSignFunction · 0.85
PowerSignFunction · 0.85
GetNextInternalMethod · 0.85
GetNextInternalMethod · 0.85
GetNextInternalMethod · 0.85

Calls 2

ConstantFunction · 0.70
TensorShapeClass · 0.50

Tested by

no test coverage detected