AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

API: Separate cost function implementations from operator classes #243

Closed carterbox closed 1 year ago

carterbox commented 1 year ago

Purpose

Separate ptychography cost function implementations from the operator classes, so that they can be used independent of operator declaration. Also allows using CuPy fuse to reduce the number of kernel launches.

Approach

Separate out these functions into a new module with functional API. Keep them located in the operators module to prevent circular imports.

Pre-Merge Checklists

Submitter

Reviewer