Skip to content

Commit bb23c70

Browse files
momchil-flexyaugenst-flex
authored andcommitted
fix: disable local subpixel in autograd postprocess
1 parent 82098db commit bb23c70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tidy3d/web/api/autograd/backward.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from tidy3d.components.autograd.constants import ADJOINT_FREQ_CHUNK_SIZE
1111
from tidy3d.components.autograd.derivative_utils import DerivativeInfo
1212
from tidy3d.exceptions import AdjointError
13+
from tidy3d.packaging import disable_local_subpixel
1314

1415
from .utils import E_to_D, get_derivative_maps
1516

@@ -98,6 +99,7 @@ def _slice_field_data(
9899
return {k: v.sel(f=freqs) for k, v in field_data.items()}
99100

100101

102+
@disable_local_subpixel
101103
def postprocess_adj(
102104
sim_data_adj: td.SimulationData,
103105
sim_data_orig: td.SimulationData,

0 commit comments

Comments
 (0)