MLResearchAtOSRAM / tmm_fast

tmm_fast is a lightweight package to speed up optical planar multilayer thin-film device computation. Developed by Alexander Luce (@Nerrror) in cooperation with Heribert Wankerl (@HarryTheBird).
MIT License
53 stars 22 forks source link

input datatype for inc_vec_tmm_disp_lstack #21

Closed pwilliam123 closed 6 months ago

pwilliam123 commented 1 year ago

inc_vec_tmm_disp_lstack must take torch data type as the input. numpy input result in the error message below:

AttributeError: 'numpy.ndarray' object has no attribute 'requires_grad'

Nerrror commented 6 months ago

fixed with recent commit 3e31a62 on develop. Will merge this into main soon