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

Function Zeros

tensorflow/core/kernels/basic_ops_benchmark_test.cc:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static Node* Zeros(Graph* g, int n) {
43 Tensor data(DT_FLOAT, TensorShape({n}));
44 data.flat<float>().setZero();
45 return test::graph::Constant(g, data);
46}
47
48static void MulChain(int chain_length, Graph** init_g, Graph** run_g) {
49 {

Callers 1

MulChainFunction · 0.70

Calls 2

ConstantFunction · 0.70
TensorShapeClass · 0.50

Tested by

no test coverage detected