| 65 | } |
| 66 | |
| 67 | Node* Zeros(Graph* const g, const TensorShape& shape) { |
| 68 | Tensor data(DT_FLOAT, shape); |
| 69 | data.flat<float>().setZero(); |
| 70 | return test::graph::Constant(g, data); |
| 71 | } |
| 72 | |
| 73 | Node* Zeros(Graph* const g, const int n) { return Zeros(g, TensorShape({n})); } |
| 74 |
no test coverage detected