(output, new_output)
| 234 | copy_cond = time >= sequence_length |
| 235 | |
| 236 | def _copy_one_through(output, new_output): |
| 237 | # TensorArray and scalar get passed through. |
| 238 | if isinstance(output, tensor_array_ops.TensorArray): |
| 239 | return new_output |
| 240 | if output.shape.rank == 0: |
| 241 | return new_output |
| 242 | # Otherwise propagate the old or the new value. |
| 243 | with ops.colocate_with(new_output): |
| 244 | return array_ops.where(copy_cond, output, new_output) |
| 245 | |
| 246 | def _copy_some_through(flat_new_output, flat_new_state): |
| 247 | # Use broadcasting select to determine which values should get |
no test coverage detected