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

[Utilities] add fallbacks for scalar_type and vector_type #2603

Closed
wants to merge 2 commits into from

Conversation

odow
Copy link
Member

@odow odow commented Jan 6, 2025

#2198 broke DiffOpt because it adds a call to scalar_type:
#2601 (comment)

Ideally, we should have something that works always (but might be sub-optimal), and then DiffOpt can implement scalar_type if it wants better performance.

@odow odow mentioned this pull request Jan 6, 2025
12 tasks
@blegat
Copy link
Member

blegat commented Jan 6, 2025

Given how uncommon it is ti define a new vector function type, I'd rather have an explicit error than silently having Anys creeping in. Let's say that scalar_type is part of the API so this just exposed a bug in DiffOpt that we can easily fix by defining scalar_type in DiffOpt before we release MOI

@odow
Copy link
Member Author

odow commented Jan 6, 2025

Closing in favor of jump-dev/DiffOpt.jl#264

@odow odow closed this Jan 6, 2025
@odow odow deleted the od/scalar_type branch January 6, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants