mshr-h commented on code in PR #18524:
URL: https://github.com/apache/tvm/pull/18524#discussion_r2572979945
##########
tests/python/relax/test_frontend_from_exported_program.py:
##########
@@ -62,7 +62,9 @@ def verify_model_numerically(torch_model, example_args,
rtol=1e-7, atol=1e-7):
with torch.no_grad():
pytorch_output = torch_model(*example_args)
- exported_program = export(torch_model, args=example_args)
+ # Use strict=False to handle ops like scaled_dot_product_attention that
may have
+ # internal non-exportable operations
+ exported_program = export(torch_model, args=example_args, strict=False)
Review Comment:
SDPA should be exportable.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]