You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "akaashrp (via GitHub)" <gi...@apache.org> on 2026/08/13 04:07:08 UTC

[PR] [Fix][Relax][Torch] Preserve derived exported input dimensions [tvm]

akaashrp opened a new pull request, #20128:
URL: https://github.com/apache/tvm/pull/20128

   PyTorch exported programs may describe input dimensions using expressions derived from other symbolic dimensions, such as `2 * n`. The importer previously recognized these expressions but replaced them with independent TIR variables when constructing the Relax function signature. This discarded the relationship between the dimensions.
   
   This PR:
   - Preserves derived TIR expressions when constructing input tensor shapes
   - Records range constraints only for direct symbolic variables
   - Accepts input shape and dtype metadata from either `tensor_meta` or placeholder value metadata
   - Reports an explicit error when input shape or dtype metadata is unavailable


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][Relax][Torch] Preserve derived exported input dimensions [tvm]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20128:
URL: https://github.com/apache/tvm/pull/20128#issuecomment-5299783825

   Failed to re-run CI in https://github.com/apache/tvm/actions/runs/31856248731
   
   <details>
   
   ```
   Traceback (most recent call last):
     File "/home/runner/work/tvm/tvm/ci/scripts/github/github_tvmbot.py", line 588, in comment_failure
       raise item
     File "/home/runner/work/tvm/tvm/ci/scripts/github/github_tvmbot.py", line 694, in run
       pr.rerun_jenkins_ci()
     File "/home/runner/work/tvm/tvm/ci/scripts/github/github_tvmbot.py", line 547, in rerun_jenkins_ci
       post(url, auth=("tvm-bot", TVM_BOT_JENKINS_TOKEN))
     File "/home/runner/work/tvm/tvm/ci/scripts/jenkins/git_utils.py", line 54, in post
       with request.urlopen(req, data) as response:
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen
       return opener.open(url, data, timeout)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.12/urllib/request.py", line 521, in open
       response = meth(req, response)
                  ^^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response
       response = self.parent.error(
                  ^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.12/urllib/request.py", line 559, in error
       return self._call_chain(*args)
              ^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
       result = func(*args)
                ^^^^^^^^^^^
     File "/usr/lib/python3.12/urllib/request.py", line 639, in http_error_default
       raise HTTPError(req.full_url, code, msg, hdrs, fp)
   urllib.error.HTTPError: HTTP Error 504: Gateway Time-out
   
   ```
   
   with response
   
   ```
   <html>
   <head><title>504 Gateway Time-out</title></head>
   <body>
   <center><h1>504 Gateway Time-out</h1></center>
   </body>
   </html>
   
   ```
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][Relax][Torch] Preserve derived exported input dimensions [tvm]

Posted by "akaashrp (via GitHub)" <gi...@apache.org>.
akaashrp closed pull request #20128: [Fix][Relax][Torch] Preserve derived exported input dimensions
URL: https://github.com/apache/tvm/pull/20128


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][Relax][Torch] Preserve derived exported input dimensions [tvm]

Posted by "akaashrp (via GitHub)" <gi...@apache.org>.
akaashrp commented on PR #20128:
URL: https://github.com/apache/tvm/pull/20128#issuecomment-5299781422

   @tvm-bot rerun


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][Relax][Torch] Preserve derived exported input dimensions [tvm]

Posted by "tlopex (via GitHub)" <gi...@apache.org>.
tlopex merged PR #20128:
URL: https://github.com/apache/tvm/pull/20128


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org