| 95 | } |
| 96 | |
| 97 | Node* Var(Graph* g, const DataType dtype, const TensorShape& shape) { |
| 98 | Node* ret; |
| 99 | TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Variable") |
| 100 | .Attr("dtype", dtype) |
| 101 | .Attr("shape", shape) |
| 102 | .Finalize(g, &ret)); |
| 103 | return ret; |
| 104 | } |
| 105 | |
| 106 | Node* Var(Graph* g, const DataType dtype, const TensorShape& shape, |
| 107 | const string& name) { |
no test coverage detected