(x, y)
| 226 | x_out = [] |
| 227 | |
| 228 | def f(x, y): |
| 229 | x_in.append(x) |
| 230 | xx = cond_v2.cond_v2( |
| 231 | math_ops.less(1, 2), |
| 232 | lambda: x + 1, |
| 233 | lambda: x + 2, |
| 234 | ) |
| 235 | x_out.append(xx) |
| 236 | return xx, 2 * y |
| 237 | |
| 238 | f_wrapped = wrap_function.wrap_function( |
| 239 | f, [tensor_spec.TensorSpec((), dtypes.float32)] * 2) |
no test coverage detected