From 1dc5c8d6c66daefa5e7e5a935ec3ec8d228730c5 Mon Sep 17 00:00:00 2001 From: Eduardo Patrocinio Date: Fri, 28 Nov 2025 21:12:54 -0500 Subject: [PATCH] Remove scipy from torch_compile_tutorial dependencies 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 --- intermediate_source/torch_compile_tutorial.py | 1 - 1 file changed, 1 deletion(-) diff --git a/intermediate_source/torch_compile_tutorial.py b/intermediate_source/torch_compile_tutorial.py index 343ad3b21b0..51420887745 100644 --- a/intermediate_source/torch_compile_tutorial.py +++ b/intermediate_source/torch_compile_tutorial.py @@ -38,7 +38,6 @@ # # - ``torch >= 2.0`` # - ``numpy`` -# - ``scipy`` # # **System requirements** # - A C++ compiler, such as ``g++``