| 59 | } |
| 60 | |
| 61 | static 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 | |
| 72 | static Graph* ThreeDXZReduce(const string& reduce, int num_y, int num_z) { |
| 73 | auto* g = new Graph(OpRegistry::Global()); |
no test coverage detected