Skip to content

Conversation

@guan404ming
Copy link
Member

Why

PyTorch uses int_oo (IntInfinity) for unbounded constraints, which would make our current implemenation crash

How

  • Update the type hint for create_input_vars to allow for optional upper bounds.
  • Modify the logic to handle unbounded constraints by setting upper bounds to None when applicable.
  • Add a new test case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant