tidy3d.plugins.adjoint.web.run#
- class run[source]#
- Bases: - Submits a - JaxSimulationto server, starts running, monitors progress, downloads, and loads results as a- JaxSimulationDataobject. Can be included within a function that will have- jax.gradapplied.- Parameters:
- simulation ( - JaxSimulation) β Simulation to upload to server.
- task_name (str) β Name of task. 
- path (str = "simulation_data.hdf5") β Path to download results file (.hdf5), including filename. 
- folder_name (str = "default") β Name of folder to store task on web UI. 
- callback_url (str = None) β Http PUT url to receive simulation finish event. The body content is a json file with fields - {'id', 'status', 'name', 'workUnit', 'solverVersion'}.
- verbose (bool = True) β If True, will print progressbars and status, otherwise, will run silently. 
 
- Returns:
- Object containing solver results for the supplied - JaxSimulation.
- Return type:
 - Inherited Common Usage - bwd(folder_name, path, callback_url, verbose, res, sim_data_vjp)#
- Run backward pass and return simulation storing vjp of the objective w.r.t. the sim. 
 - fun(task_name, folder_name='default', path='simulation_data.hdf5', callback_url=None, verbose=True)#
- Submits a - JaxSimulationto server, starts running, monitors progress, downloads, and loads results as a- JaxSimulationDataobject. Can be included within a function that will have- jax.gradapplied.- Parameters:
- simulation ( - JaxSimulation) β Simulation to upload to server.
- task_name (str) β Name of task. 
- path (str = "simulation_data.hdf5") β Path to download results file (.hdf5), including filename. 
- folder_name (str = "default") β Name of folder to store task on web UI. 
- callback_url (str = None) β Http PUT url to receive simulation finish event. The body content is a json file with fields - {'id', 'status', 'name', 'workUnit', 'solverVersion'}.
- verbose (bool = True) β If True, will print progressbars and status, otherwise, will run silently. 
 
- Returns:
- Object containing solver results for the supplied - JaxSimulation.
- Return type:
 
 - fwd(task_name, folder_name, path, callback_url, verbose)#
- Run forward pass and stash extra objects for the backwards pass. 
 - nondiff_argnums = (1, 2, 3, 4, 5)#
 - optimize_remat = False#
 - symbolic_zeros = False#