-
Notifications
You must be signed in to change notification settings - Fork 518
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
Semantics of torch.symbolic_int
min_value
#3938
Comments
Thanks Jakub and sorry you wasted time on this. We should also dig up the torch docs which describe the rationale that drives interpretation of the min_val and include it for posterity. I have read it but don't have it directly at hand. But I'm sure you won't be the last one to get confused by this (since the definition is confusing). |
Thanks for raising this @kuhar, and thanks for looping me in @stellaraccident . This was a bit of a transient state within TorchDynamo's design for dynamic shapes where, for a while, This doc (written by PT devs) sheds more light on the issue, but doesn't necessarily prescribe any concrete solution. From what I recall, this was subsequently fixed in later PT releases with other robust mechanisms which allow This seems like an intermediate state that you're in and should resolve to an all positive range (0, INT_MAX) in more recent PT releases. I'm happy to add some breadcrumbs in the ops's documentation for posterity. LMK if you have a alternate proposal.
(src) |
+1 |
Based on the lowering in IREE:
it seems that
min_val = 2
has a non-obvious interpretation of simply being positive https://github.com/iree-org/iree/blob/26b24f2da8a26b8c17d3d9bb9836090e405d7709/compiler/plugins/input/Torch/InputConversion/BindSymbolicShapes.cpp#L108-L112 .Could we clarify this in the op documentation here
torch-mlir/include/torch-mlir/Dialect/Torch/IR/TorchOps.td
Lines 1354 to 1357 in 38a0a5a
min_val
an enum that spells out how to interpret the constants?The text was updated successfully, but these errors were encountered: