| 170 | } |
| 171 | |
| 172 | Graph* CubeWithMulSquare(int num) { |
| 173 | Graph* g = new Graph(OpRegistry::Global()); |
| 174 | Tensor lhs(DT_FLOAT, TensorShape({64, 64, num / (64 * 64)})); |
| 175 | lhs.flat<float>().setRandom(); |
| 176 | auto* x = test::graph::Constant(g, lhs); |
| 177 | auto* inner = test::graph::Unary(g, "Square", x); |
| 178 | test::graph::Binary(g, "Mul", test::graph::Constant(g, lhs), inner); |
| 179 | return g; |
| 180 | } |
| 181 | |
| 182 | #define BM_CUBE(DEVICE, Impl) \ |
| 183 | void BM_##DEVICE##_Cube_##Impl(int iters, int num) { \ |
nothing calls this directly
no test coverage detected