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

Function Zeros

tensorflow/core/kernels/sdca_ops_test.cc:67–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Node* Zeros(Graph* const g, const TensorShape& shape) {
68 Tensor data(DT_FLOAT, shape);
69 data.flat<float>().setZero();
70 return test::graph::Constant(g, data);
71}
72
73Node* Zeros(Graph* const g, const int n) { return Zeros(g, TensorShape({n})); }
74

Callers 1

GetGraphsFunction · 0.70

Calls 2

ConstantFunction · 0.70
TensorShapeClass · 0.50

Tested by

no test coverage detected