| 1575 | } |
| 1576 | |
| 1577 | Node* tensor_const_node(Graph* g, Tensor& t, const string& name, |
| 1578 | const string& device_name) { |
| 1579 | Node* ret; |
| 1580 | TF_CHECK_OK(NodeBuilder(g->NewName(name), "Const") |
| 1581 | .Device(device_name) |
| 1582 | .Attr("dtype", DT_INT32) |
| 1583 | .Attr("value", t) |
| 1584 | .Finalize(g, &ret)); |
| 1585 | ret->set_assigned_device_name(device_name); |
| 1586 | return ret; |
| 1587 | } |
| 1588 | |
| 1589 | typedef std::vector<Node*> node_list; |
| 1590 | node_list DuplicateNode(Node* n, Graph* dest, int32 duplicate_num) { |
no test coverage detected