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

Function Zeros

tensorflow/core/kernels/training_ops_test.cc:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static Node* Zeros(Graph* g, int n) {
53 Tensor data(DT_FLOAT, TensorShape({n}));
54 data.flat<float>().setZero();
55 return test::graph::Constant(g, data);
56}
57
58static Node* Zeros(Graph* g, int m, int n) {
59 Tensor data(DT_FLOAT, TensorShape({m, n}));

Callers 8

SGDFunction · 0.70
AdagradFunction · 0.70
SparseAdagradFunction · 0.70
MomentumFunction · 0.70
AdamFunction · 0.70
RMSPropFunction · 0.70
AddSignFunction · 0.70
PowerSignFunction · 0.70

Calls 2

ConstantFunction · 0.70
TensorShapeClass · 0.50

Tested by

no test coverage detected