We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47f3ac3 + 55e4c46 commit 18c842aCopy full SHA for 18c842a
1 file changed
benchmarks/user/benchmark.py
@@ -66,7 +66,7 @@ def run_op(solver, operator, **options):
66
dm = solver.model.dm
67
# Because sometime dm is zero, artificially add a non zero slice
68
if dm.data.min() == 0 and dm.data.max() == 0:
69
- dm.data[..., np.min([25, dm.shape[-1]//4])] = .1
+ dm.data[..., np.min([25, dm.shape_global[-1]//4])] = .1
70
return op(dm, **options)
71
elif operator == "jacobian_adjoint":
72
# I think we want the forward + gradient call, need to merge retvals
0 commit comments