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

Function LargeOneDCumsum

tensorflow/core/kernels/scan_ops_test.cc:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template <typename T>
25static Graph* LargeOneDCumsum(int num_x, bool reverse = false) {
26 auto* g = new Graph(OpRegistry::Global());
27 Tensor data(DataTypeToEnum<T>::value, TensorShape({num_x}));
28 data.flat<T>().setRandom();
29 Tensor axes(DT_INT32, TensorShape({}));
30 axes.flat<int32>()(0) = 0;
31 test::graph::Cumsum(g, test::graph::Constant(g, data),
32 test::graph::Constant(g, axes));
33 return g;
34}
35
36static Graph* ColCumsum(int num_x, int num_y, bool reverse = false) {
37 auto* g = new Graph(OpRegistry::Global());

Callers

nothing calls this directly

Calls 3

ConstantFunction · 0.70
TensorShapeClass · 0.50
CumsumFunction · 0.50

Tested by

no test coverage detected