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

Function ThreeDYReduce

tensorflow/core/kernels/reduction_ops_test.cc:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static Graph* ThreeDYReduce(const string& reduce, int num_y, int num_z) {
62 auto* g = new Graph(OpRegistry::Global());
63 Tensor data(DT_FLOAT, TensorShape({4, num_y, num_z}));
64 data.flat<float>().setRandom();
65 Tensor axes(DT_INT32, TensorShape({1}));
66 axes.flat<int32>()(0) = 1;
67 test::graph::Reduce(g, reduce, test::graph::Constant(g, data),
68 test::graph::Constant(g, axes));
69 return g;
70}
71
72static Graph* ThreeDXZReduce(const string& reduce, int num_y, int num_z) {
73 auto* g = new Graph(OpRegistry::Global());

Callers 1

Do3DYReduceFunction · 0.85

Calls 3

ConstantFunction · 0.70
TensorShapeClass · 0.50
ReduceFunction · 0.50

Tested by

no test coverage detected