Skip to content

Commit acc2c96

Browse files
committed
print num iter
1 parent 3566d40 commit acc2c96

File tree

3 files changed

+1
-0
lines changed

3 files changed

+1
-0
lines changed

examples/logo_inverse_problem/logo_inverse_problem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def loss_function(theta, rho_target):
8080
t0 = time.time()
8181
sol = opt.run(theta, rho_target)
8282
print("Inverse-problem solve time (s): ", time.time() - t0)
83+
print("number of iterations: ", sol.state.iter_num)
8384
theta = jnp.mod(sol.params, 2.0 * jnp.pi) - jnp.pi
8485
print("Mean theta:", jnp.mean(theta))
8586

6 Bytes
Loading
637 Bytes
Loading

0 commit comments

Comments
 (0)