guan404ming commented on code in PR #18429:
URL: https://github.com/apache/tvm/pull/18429#discussion_r2514765206
##########
python/tvm/relax/frontend/torch/exported_program_translator.py:
##########
@@ -1121,13 +1136,19 @@ def create_input_vars(
torch_shape = exported_program.state_dict[spec.target].shape
torch_dtype = exported_program.state_dict[spec.target].dtype
- # TODO(mshr-h): Support range constraints
- relax_shape = [
- torch_symbol_to_relax_var.setdefault(str(s),
tvm.tir.SizeVar(str(s), "int64"))
- if isinstance(s, torch.SymInt)
- else s
- for s in torch_shape
- ]
+ # Create TIR variables for symbolic dimensions
Review Comment:
Sorry about this, it seems like legacy change in #17898. Let me revert this.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]