| 73 | Node* Zeros(Graph* const g, const int n) { return Zeros(g, TensorShape({n})); } |
| 74 | |
| 75 | Node* Ones(Graph* const g, const int n) { |
| 76 | Tensor data(DT_FLOAT, TensorShape({n})); |
| 77 | test::FillFn<float>(&data, [](const int i) { return 1.0f; }); |
| 78 | return test::graph::Constant(g, data); |
| 79 | } |
| 80 | |
| 81 | Node* SparseIndices(Graph* const g, const int sparse_features_per_group) { |
| 82 | Tensor data(DT_INT64, TensorShape({sparse_features_per_group})); |
no test coverage detected