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

Function ThreeDYCumsum

tensorflow/core/kernels/scan_ops_test.cc:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static Graph* ThreeDYCumsum(int num_y, int num_z, bool reverse = false) {
59 auto* g = new Graph(OpRegistry::Global());
60 Tensor data(DT_FLOAT, TensorShape({32, num_y, num_z}));
61 data.flat<float>().setRandom();
62 Tensor axes(DT_INT32, TensorShape({}));
63 axes.flat<int32>()(0) = 1;
64 test::graph::Cumsum(g, test::graph::Constant(g, data),
65 test::graph::Constant(g, axes));
66 return g;
67}
68
69template <typename T>
70static void LargeOneDimensional(int iters, const string& device, int num_x,

Callers 1

Do3DYCumsumFunction · 0.85

Calls 3

ConstantFunction · 0.70
TensorShapeClass · 0.50
CumsumFunction · 0.50

Tested by

no test coverage detected