| 106 | } |
| 107 | |
| 108 | Node* MakeWrite(const Scope& scope, Output value_to_write, const string& id) { |
| 109 | Output var_handle = ops::VarHandleOp(scope.WithOpName("Var_" + id), DT_FLOAT, |
| 110 | TensorShape({})); |
| 111 | ops::AssignVariableOp assign_op(scope.WithOpName("Assignee_" + id), |
| 112 | var_handle, value_to_write); |
| 113 | return assign_op.operation.node(); |
| 114 | } |
| 115 | |
| 116 | Node* MakeWrite(const Scope& scope, const string& id) { |
| 117 | return MakeWrite( |
no test coverage detected