Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/point cloud apply cost fn #93

Merged
merged 4 commits into from
Jul 1, 2022

Conversation

michalk8
Copy link
Collaborator

@michalk8 michalk8 commented Jul 1, 2022

Follow-up of #91

Removes the lax.cond from PointCloud (also from LRCGeometry as a fallback) and fixes the check that required fn to be affine (should've really been linear).
Also fixes not using the efficient apply in case PointCloud has sqeucl cost and no elementwise fn was specified.

@michalk8 michalk8 requested a review from marcocuturi July 1, 2022 10:47
@michalk8 michalk8 self-assigned this Jul 1, 2022
@michalk8 michalk8 added enhancement New feature or request bug Something isn't working labels Jul 1, 2022
Copy link
Contributor

@marcocuturi marcocuturi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Michal, LGTM

@michalk8 michalk8 merged commit 42890aa into ott-jax:main Jul 1, 2022
@michalk8 michalk8 deleted the fix/point-cloud-apply-cost-fn branch July 1, 2022 14:07
michalk8 added a commit that referenced this pull request Jun 27, 2024
* Fix not using efficient apply in sqeucl case

* Remove bwd compatible lax.cond in LRCGeometry

* Fix requiring affine fn instead of linear

* Fix function inversion check when tracing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants