LightRidge Python API (lr.utils)#

(under construction)#

Author: Cunxi Yu (ycunxi@github)

import lightridge as lr

lr.utils.forward_func_visualization():#

visulize forward prop of the diffraction neural system

lr.utils.get_phase():#

co-design dumping phase to hardware interface or 3D printer

lr.utils.intensity_func():#

co-design pre-processing .. code-block:: default

lr.utils.phase_func():#

co-design pre-processing .. code-block:: default

lr.utils.data_to_cplex(torch.nn.Module):#

Pre-processing input tensor into complex domain