| 64 | } |
| 65 | |
| 66 | Node* Constant(Graph* g, const Tensor& tensor) { |
| 67 | Node* ret; |
| 68 | TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Const") |
| 69 | .Attr("dtype", tensor.dtype()) |
| 70 | .Attr("value", tensor) |
| 71 | .Finalize(g, &ret)); |
| 72 | return ret; |
| 73 | } |
| 74 | |
| 75 | Node* Constant(Graph* g, const Tensor& tensor, const string& name) { |
| 76 | Node* ret; |
no test coverage detected