Skip to content
Discussion options

You must be logged in to vote

Hi @salbert83 ,

Here is a working example demonstrating how to set up the optimizer and compute the gradients.
You can also have check out this developer guide.

map_size = np.array([600,600])
cell_size = np.array([5,5])

scene = load_scene()
scene.tx_array = PlanarArray(num_rows=1, num_cols=1, pattern="tr38901", polarization="V")
tx = Transmitter(name="tx", position=[0,0,5], orientation=[0,0,0])
scene.add(tx)

# Adam optimizer
opt = mi.ad.Adam(lr=1e-2)

opt['tx.orientation'] = mi.Point3f(0,0,0)
tx.orientation = opt['tx.orientation']

solver = RadioMapSolver()

# Switch the computation of field loop to "evaluated" mode to
# enable gradient backpropagation through the loop
solver.loop_mode …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@faycalaa
Comment options

Answer selected by salbert83
@salbert83
Comment options

@nada-ak
Comment options

@faycalaa
Comment options

@nada-ak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants