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

Function RowCumsum

tensorflow/core/kernels/scan_ops_test.cc:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static Graph* RowCumsum(int num_x, int num_y, bool reverse = false) {
48 auto* g = new Graph(OpRegistry::Global());
49 Tensor data(DT_FLOAT, TensorShape({num_x, num_y}));
50 data.flat<float>().setRandom();
51 Tensor axes(DT_INT32, TensorShape({}));
52 axes.flat<int32>()(0) = 1;
53 test::graph::Cumsum(g, test::graph::Constant(g, data),
54 test::graph::Constant(g, axes));
55 return g;
56}
57
58static Graph* ThreeDYCumsum(int num_y, int num_z, bool reverse = false) {
59 auto* g = new Graph(OpRegistry::Global());

Callers 1

DoRowCumsumFunction · 0.85

Calls 3

ConstantFunction · 0.70
TensorShapeClass · 0.50
CumsumFunction · 0.50

Tested by

no test coverage detected