(x)
| 396 | with op_callbacks.op_callback(no_return_callback): |
| 397 | @def_function.function |
| 398 | def log1p(x): |
| 399 | return math_ops.log(1.0 + x) |
| 400 | x = constant_op.constant(3.0) |
| 401 | y = log1p(x) |
| 402 | self.assertAllClose(y, np.log(4.0)) |
no test coverage detected