tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Remove scipy from torch_compile_tutorial dependencies

Open patrocinio opened this issue 1 month ago • 1 comments

scipy is not used in the tutorial and causes compatibility issues with torch.compile, resulting in InternalTorchDynamoError when users try to follow the tutorial.

The error occurs because scipy's internal implementation is not compatible with torch.compile's tracing mechanism, causing: AttributeError: 'str' object has no attribute 'IF_NEEDED'

Fixes issue #3551

Description

Checklist

  • [ ] The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • [ ] Only one issue is addressed in this pull request
  • [ ] Labels from the issue that this PR is fixing are added to this pull request
  • [ ] No unnecessary issues are included into this pull request.

patrocinio avatar Nov 29 '25 02:11 patrocinio