8000 stft: move towards always returning complex by peterbell10 · Pull Request #72882 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

stft: move towards always returning complex #72882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

peterbell10
Copy link
Collaborator
@peterbell10 peterbell10 commented Feb 15, 2022

Stack from ghstack (oldest at bottom):

For stft this makes all cases where return_complex default to
False into an error and adds a warning when return_complex=False
is passed explicitly.

For istft this raises an error if the input is not a complex tensor.

For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

[ghstack-poisoned]
@pytorch-bot
Copy link
pytorch-bot bot commented Feb 15, 2022
CI Flow Status

⚛️ CI Flow

Ruleset - Version: v1
Ruleset - File: https://github.com/pytorch/pytorch/blob/708445eed0d114db340c486409f0d774c946f70d/.github/generated-ciflow-ruleset.json
PR ciflow labels: ciflow/default
Add ciflow labels to this PR to trigger more builds:

Workflows Labels (bold enabled) Status
Triggered Workflows
linux-binary-conda ciflow/binaries, ciflow/binaries_conda, ciflow/default ✅ triggered
linux-binary-libtorch-cxx11-abi ciflow/binaries, ciflow/binaries_libtorch, ciflow/default ✅ triggered
linux-binary-libtorch-pre-cxx11 ciflow/binaries, ciflow/binaries_libtorch, ciflow/default ✅ triggered
linux-binary-manywheel ciflow/binaries, ciflow/binaries_wheel, ciflow/default ✅ triggered
linux-bionic-py3.7-clang9 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/noarch, ciflow/trunk, ciflow/xla ✅ triggered
linux-bionic-rocm4.5-py3.7 ciflow/all, ciflow/default, ciflow/linux, ciflow/rocm, ciflow/trunk ✅ triggered
linux-docs ciflow/all, ciflow/cpu, ciflow/default, ciflow/docs, ciflow/linux, ciflow/trunk ✅ triggered
linux-vulkan-bionic-py3.7-clang9 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/trunk, ciflow/vulkan ✅ triggered
linux-xenial-cuda11.3-py3.7-gcc7 ciflow/all, ciflow/cuda, ciflow/default, ciflow/linux, ciflow/trunk ✅ triggered
linux-xenial-cuda11.3-py3.7-gcc7-bazel-test ciflow/all, ciflow/bazel, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/trunk ✅ triggered
linux-xenial-py3-clang5-mobile-build ciflow/all, ciflow/default, ciflow/linux, ciflow/mobile, ciflow/trunk ✅ triggered
linux-xenial-py3-clang5-mobile-custom-build-static ciflow/all, ciflow/default, ciflow/linux, ciflow/mobile, ciflow/trunk ✅ triggered
linux-xenial-py3.7-clang7-asan ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/sanitizers, ciflow/trunk ✅ triggered
linux-xenial-py3.7-clang7-onnx ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/onnx, ciflow/trunk ✅ triggered
linux-xenial-py3.7-gcc5.4 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/trunk ✅ triggered
linux-xenial-py3.7-gcc7 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/trunk ✅ triggered
linux-xenial-py3.7-gcc7-no-ops ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/trunk ✅ triggered
macos-arm64-binary-conda ciflow/binaries, ciflow/binaries_conda, ciflow/default ✅ triggered
macos-arm64-binary-wheel ciflow/binaries, ciflow/binaries_wheel, ciflow/default ✅ triggered
macos-binary-conda ciflow/binaries, ciflow/binaries_conda, ciflow/default ✅ triggered
macos-binary-libtorch-cxx11-abi ciflow/binaries, ciflow/binaries_libtorch, ciflow/default ✅ triggered
macos-binary-libtorch-pre-cxx11 ciflow/binaries, ciflow/binaries_libtorch, ciflow/default ✅ triggered
macos-binary-wheel ciflow/binaries, ciflow/binaries_wheel, ciflow/default ✅ triggered
pytorch-linux-xenial-py3-clang5-android-ndk-r19c-gradle-custom-build-single ciflow/all, ciflow/android, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/trunk ✅ triggered
pytorch-linux-xenial-py3-clang5-android-ndk-r19c-gradle-custom-build-single-full-jit ciflow/all, ciflow/android, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/trunk ✅ triggered
win-vs2019-cpu-py3 ciflow/all, ciflow/cpu, ciflow/default, ciflow/trunk, ciflow/win ✅ triggered
win-vs2019-cuda11.3-py3 ciflow/all, ciflow/cuda, ciflow/default, ciflow/trunk, ciflow/win ✅ triggered
windows-binary-libtorch-cxx11-abi ciflow/binaries, ciflow/binaries_libtorch, ciflow/default ✅ triggered
windows-binary-libtorch-pre-cxx11 ciflow/binaries, ciflow/binaries_libtorch, ciflow/default ✅ triggered
windows-binary-wheel ciflow/binaries, ciflow/binaries_wheel, ciflow/default ✅ triggered
Skipped Workflows
caffe2-linux-xenial-py3.7-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux, ciflow/trunk 🚫 skipped
docker-builds ciflow/all, ciflow/trunk 🚫 skipped
ios-12-5-1-arm64 ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
ios-12-5-1-arm64-coreml ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
ios-12-5-1-arm64-custom-ops ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
ios-12-5-1-arm64-full-jit ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
ios-12-5-1-arm64-metal ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
ios-12-5-1-x86-64 ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
ios-12-5-1-x86-64-coreml ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
ios-12-5-1-x86-64-full-jit ciflow/all, ciflow/ios, ciflow/macos, ciflow/trunk 🚫 skipped
libtorch-linux-xenial-cuda10.2-py3.7-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux, ciflow/trunk 🚫 skipped
libtorch-linux-xenial-cuda11.3-py3.7-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux, ciflow/trunk 🚫 skipped
linux-bionic-cuda10.2-py3.9-gcc7 ciflow/all, ciflow/cuda, ciflow/linux, ciflow/slow, ciflow/trunk 🚫 skipped
linux-docs-push ciflow/all, ciflow/cpu, ciflow/linux, ciflow/scheduled 🚫 skipped
linux-xenial-cuda11.3-py3.7-gcc7-no-ops ciflow/all, ciflow/cuda, ciflow/linux, ciflow/trunk 🚫 skipped
macos-10-15-py3-arm64 ciflow/all, ciflow/macos, ciflow/trunk 🚫 skipped
macos-10-15-py3-lite-interpreter-x86-64 ciflow/all, ciflow/macos, ciflow/trunk 🚫 skipped
macos-11-py3-x86-64 ciflow/all, ciflow/macos, ciflow/trunk 🚫 skipped
parallelnative-linux-xenial-py3.7-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux, ciflow/trunk 🚫 skipped
periodic-libtorch-linux-bionic-cuda11.5-py3.7-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux, ciflow/scheduled 🚫 skipped
periodic-libtorch-linux-xenial-cuda11.1-py3.7-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux, ciflow/scheduled 🚫 skipped
periodic-linux-bionic-cuda11.5-py3.7-gcc7 ciflow/all, ciflow/cuda, ciflow/linux, ciflow/scheduled 🚫 skipped
periodic-linux-xenial-cuda10.2-py3-gcc7-slow-gradcheck ciflow/all, ciflow/cuda, ciflow/linux, ciflow/scheduled, ciflow/slow, ciflow/slow-gradcheck 🚫 skipped
periodic-linux-xenial-cuda11.1-py3.7-gcc7-debug ciflow/all, ciflow/cuda, ciflow/linux, ciflow/scheduled 🚫 skipped
periodic-win-vs2019-cuda11.1-py3 ciflow/all, ciflow/cuda, ciflow/scheduled, ciflow/win 🚫 skipped
periodic-win-vs2019-cuda11.5-py3 ciflow/all, ciflow/cuda, ciflow/scheduled, ciflow/win 🚫 skipped
pytorch-linux-xenial-py3-clang5-android-ndk-r19c-build ciflow/all, ciflow/android, ciflow/cpu, ciflow/linux, ciflow/trunk 🚫 skipped

@facebook-github-bot
Copy link
Contributor
facebook-github-bot commented Feb 15, 2022

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 4e08615 (more details on the Dr. CI page):


  • 12/12 failures introduced in this PR

🕵️ 12 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages

See GitHub Actions build pull / linux-xenial-cuda11.3-py3.7-gcc7 / test (default, 1, 2, linux.4xlarge.nvidia.gpu) (1/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:58:48.4583939Z RuntimeError: test_jit failed!
2022-04-12T14:58:47.7772396Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_with.TestWith-20220412145544.xml
2022-04-12T14:58:47.7781580Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_data_parallel.TestDataParallel-20220412145544.xml
2022-04-12T14:58:47.7798249Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412145544.xml
2022-04-12T14:58:47.7810068Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_optimize_for_mobile_preserve_debug_info.TestOptimizeForMobilePreserveDebugInfo-20220412145544.xml
2022-04-12T14:58:47.7834673Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412145544.xml
2022-04-12T14:58:48.4576824Z Traceback (most recent call last):
2022-04-12T14:58:48.4577621Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:58:48.4579575Z     main()
2022-04-12T14:58:48.4580086Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:58:48.4583404Z     raise RuntimeError(err_message)
2022-04-12T14:58:48.4583939Z RuntimeError: test_jit failed!
2022-04-12T14:58:48.9509586Z + cleanup
2022-04-12T14:58:48.9510160Z + retcode=1
2022-04-12T14:58:48.9510594Z + set +x
2022-04-12T14:58:48.9567638Z ##[error]Process completed with exit code 1.
2022-04-12T14:58:48.9623336Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:58:48.9623722Z with:
2022-04-12T14:58:48.9624274Z   github-token: ***
2022-04-12T14:58:48.9624519Z env:
2022-04-12T14:58:48.9624743Z   IN_CI: 1
2022-04-12T14:58:48.9624953Z   IS_GHA: 1

See GitHub Actions build pull / win-vs2019-cuda11.3-py3 / test (default, 2, 2, windows.8xlarge.nvidia.gpu) (2/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T17:05:56.8511410Z RuntimeError: test_jit failed!
2022-04-12T17:05:55.3063007Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412170230.xml
2022-04-12T17:05:55.3064252Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_backend_nnapi.TestNnapiBackend-20220412170230.xml
2022-04-12T17:05:55.3065493Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412170230.xml
2022-04-12T17:05:55.3066718Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_torchbind.TestTorchbind-20220412170230.xml
2022-04-12T17:05:56.2771372Z Could not load symbol cublasGetSmCountTarget from cublas64_11.dll. Error code 127
2022-04-12T17:05:56.8509494Z Traceback (most recent call last):
2022-04-12T17:05:56.8509973Z   File "run_test.py", line 1056, in <module>
2022-04-12T17:05:56.8510227Z     main()
2022-04-12T17:05:56.8510532Z   File "run_test.py", line 1034, in main
2022-04-12T17:05:56.8511108Z     raise RuntimeError(err_message)
2022-04-12T17:05:56.8511410Z RuntimeError: test_jit failed!
2022-04-12T17:05:57.3256638Z 
2022-04-12T17:05:57.3257320Z (base) C:\actions-runner\_work\pytorch\pytorch\test>popd
2022-04-12T17:05:57.3264473Z 
2022-04-12T17:05:57.3264944Z (base) C:\actions-runner\_work\pytorch\pytorch>if ERRORLEVEL 1 exit /b 1 
2022-04-12T17:05:57.3300264Z + cleanup
2022-04-12T17:05:57.3301064Z + retcode=1
2022-04-12T17:05:57.3301384Z + set +x
2022-04-12T17:05:57.3350436Z ##[error]Process completed with exit code 1.
2022-04-12T17:05:57.3595466Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T17:05:57.3595836Z with:

See GitHub Actions build pull / linux-xenial-py3.7-gcc5.4 / test (jit_legacy, 1, 1, linux.2xlarge) (3/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:14:17.4425552Z RuntimeError: test_jit_legacy failed!
2022-04-12T14:14:17.1591816Z Generated XML report: test-reports/python-unittest/test_jit_legacy/TEST-jit.test_warn.TestWarn-20220412141229.xml
2022-04-12T14:14:17.1598385Z Generated XML report: test-reports/python-unittest/test_jit_legacy/TEST-jit.test_with.TestWith-20220412141229.xml
2022-04-12T14:14:17.1604848Z Generated XML report: test-reports/python-unittest/test_jit_legacy/TEST-jit.test_data_parallel.TestDataParallel-20220412141229.xml
2022-04-12T14:14:17.1616837Z Generated XML report: test-reports/python-unittest/test_jit_legacy/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412141229.xml
2022-04-12T14:14:17.1626467Z Generated XML report: test-reports/python-unittest/test_jit_legacy/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412141229.xml
2022-04-12T14:14:17.4419993Z Traceback (most recent call last):
2022-04-12T14:14:17.4420405Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:14:17.4422668Z     main()
2022-04-12T14:14:17.4423004Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:14:17.4424983Z     raise RuntimeError(err_message)
2022-04-12T14:14:17.4425552Z RuntimeError: test_jit_legacy failed!
2022-04-12T14:14:17.6522591Z + cleanup
2022-04-12T14:14:17.6522966Z + retcode=1
2022-04-12T14:14:17.6523232Z + set +x
2022-04-12T14:14:17.6567590Z ##[error]Process completed with exit code 1.
2022-04-12T14:14:17.6613975Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:14:17.6614229Z with:
2022-04-12T14:14:17.6614665Z   github-token: ***
2022-04-12T14:14:17.6614849Z env:
2022-04-12T14:14:17.6614997Z   IN_CI: 1
2022-04-12T14:14:17.6615169Z   IS_GHA: 1

See GitHub Actions build pull / linux-bionic-rocm5.0-py3.7 / test (default, 2, 2, linux.rocm.gpu) (4/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:44:35.7629771Z RuntimeError: test_jit failed!
2022-04-12T14:44:32.6035917Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_backends.TestBackendsWithCompiler-20220412144142.xml
2022-04-12T14:44:32.6045562Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_cuda.TestCUDA-20220412144142.xml
2022-04-12T14:44:32.6055221Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_data_parallel.TestDataParallel-20220412144142.xml
2022-04-12T14:44:32.6070747Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412144142.xml
2022-04-12T14:44:32.6092146Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412144142.xml
2022-04-12T14:44:35.7613880Z Traceback (most recent call last):
2022-04-12T14:44:35.7614690Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:44:35.7620635Z     main()
2022-04-12T14:44:35.7621371Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:44:35.7628586Z     raise RuntimeError(err_message)
2022-04-12T14:44:35.7629771Z RuntimeError: test_jit failed!
2022-04-12T14:44:37.4014586Z 
2022-04-12T14:44:37.4015945Z real	14m42.885s
2022-04-12T14:44:37.4016686Z user	20m3.845s
2022-04-12T14:44:37.4017425Z sys	3m57.573s
2022-04-12T14:44:37.4018144Z + cleanup
2022-04-12T14:44:37.4018730Z + retcode=1
2022-04-12T14:44:37.4019267Z + set +x
2022-04-12T14:44:37.4137306Z ##[error]Process completed with exit code 1.
2022-04-12T14:44:37.4238747Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:44:37.4239317Z with:

See GitHub Actions build pull / win-vs2019-cuda11.3-py3 / test (force_on_cpu, 1, 1, windows.4xlarge) (5/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T15:34:14.7492040Z RuntimeError: test_jit failed!
2022-04-12T15:34:14.3586154Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_ignore_context_manager.TestIgnoreContextManager-20220412153205.xml
2022-04-12T15:34:14.3586687Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412153205.xml
2022-04-12T15:34:14.3587171Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_backend_nnapi.TestNnapiBackend-20220412153205.xml
2022-04-12T15:34:14.3587687Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412153205.xml
2022-04-12T15:34:14.3588160Z Generated XML report: test-reports\dist-gloo\test_jit\TEST-jit.test_torchbind.TestTorchbind-20220412153205.xml
2022-04-12T15:34:14.7490831Z Traceback (most recent call last):
2022-04-12T15:34:14.7491198Z   File "run_test.py", line 1056, in <module>
2022-04-12T15:34:14.7491388Z     main()
2022-04-12T15:34:14.7491601Z   File "run_test.py", line 1034, in main
2022-04-12T15:34:14.7491833Z     raise RuntimeError(err_message)
2022-04-12T15:34:14.7492040Z RuntimeError: test_jit failed!
2022-04-12T15:34:15.0592003Z 
2022-04-12T15:34:15.0592544Z (base) C:\actions-runner\_work\pytorch\pytorch\test>popd
2022-04-12T15:34:15.0596759Z 
2022-04-12T15:34:15.0597301Z (base) C:\actions-runner\_work\pytorch\pytorch>if ERRORLEVEL 1 exit /b 1 
2022-04-12T15:34:15.0624706Z + cleanup
2022-04-12T15:34:15.0624942Z + retcode=1
2022-04-12T15:34:15.0625329Z + set +x
2022-04-12T15:34:15.0669169Z ##[error]Process completed with exit code 1.
2022-04-12T15:34:15.1143091Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T15:34:15.1143380Z with:

See GitHub Actions build pull / linux-xenial-py3.7-gcc7 / test (default, 2, 2, linux.2xlarge) (6/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:21:51.7278274Z RuntimeError: test_jit failed!
2022-04-12T14:21:51.3537941Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_with.TestWith-20220412141944.xml
2022-04-12T14:21:51.3544317Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_data_parallel.TestDataParallel-20220412141944.xml
2022-04-12T14:21:51.3556102Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412141944.xml
2022-04-12T14:21:51.3564476Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_optimize_for_mobile_preserve_debug_info.TestOptimizeForMobilePreserveDebugInfo-20220412141944.xml
2022-04-12T14:21:51.3574495Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412141944.xml
2022-04-12T14:21:51.7271268Z Traceback (most recent call last):
2022-04-12T14:21:51.7271844Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:21:51.7274886Z     main()
2022-04-12T14:21:51.7275270Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:21:51.7277878Z     raise RuntimeError(err_message)
2022-04-12T14:21:51.7278274Z RuntimeError: test_jit failed!
2022-04-12T14:21:51.9772482Z + cleanup
2022-04-12T14:21:51.9772687Z + retcode=1
2022-04-12T14:21:51.9772858Z + set +x
2022-04-12T14:21:51.9816977
8000
Z ##[error]Process completed with exit code 1.
2022-04-12T14:21:51.9933971Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:21:51.9934240Z with:
2022-04-12T14:21:51.9934673Z   github-token: ***
2022-04-12T14:21:51.9934852Z env:
2022-04-12T14:21:51.9935002Z   IN_CI: 1
2022-04-12T14:21:51.9935174Z   IS_GHA: 1

See GitHub Actions build pull / linux-bionic-py3.7-clang9 / test (noarch, 1, 1, linux.2xlarge) (7/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:25:49.6447122Z RuntimeError: test_jit failed!
2022-04-12T14:25:49.2937348Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_warn.TestWarn-20220412142347.xml
2022-04-12T14:25:49.2944749Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_with.TestWith-20220412142347.xml
2022-04-12T14:25:49.2950778Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_data_parallel.TestDataParallel-20220412142347.xml
2022-04-12T14:25:49.2962346Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412142347.xml
2022-04-12T14:25:49.2971837Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412142347.xml
2022-04-12T14:25:49.6440845Z Traceback (most recent call last):
2022-04-12T14:25:49.6441324Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:25:49.6444215Z     main()
2022-04-12T14:25:49.6444820Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:25:49.6446758Z     raise RuntimeError(err_message)
2022-04-12T14:25:49.6447122Z RuntimeError: test_jit failed!
2022-04-12T14:25:49.8675140Z 
2022-04-12T14:25:49.8675744Z real	11m11.458s
2022-04-12T14:25:49.8676118Z user	21m18.903s
2022-04-12T14:25:49.8676413Z sys	1m56.912s
2022-04-12T14:25:49.8676679Z + cleanup
2022-04-12T14:25:49.8676848Z + retcode=1
2022-04-12T14:25:49.8677013Z + set +x
2022-04-12T14:25:49.8719653Z ##[error]Process completed with exit code 1.
2022-04-12T14:25:49.8809881Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:25:49.8810144Z with:

See GitHub Actions build pull / win-vs2019-cpu-py3 / test (default, 2, 2, windows.4xlarge) (8/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T15:00:30.3772326Z RuntimeError: test_jit failed!
2022-04-12T15:00:30.0271239Z Generated XML report: test-reports\python-unittest\test_jit\TEST-jit.test_ignore_context_manager.TestIgnoreContextManager-20220412145825.xml
2022-04-12T15:00:30.0271854Z Generated XML report: test-reports\python-unittest\test_jit\TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412145825.xml
2022-04-12T15:00:30.0272381Z Generated XML report: test-reports\python-unittest\test_jit\TEST-jit.test_backend_nnapi.TestNnapiBackend-20220412145825.xml
2022-04-12T15:00:30.0272904Z Generated XML report: test-reports\python-unittest\test_jit\TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412145825.xml
2022-04-12T15:00:30.0273405Z Generated XML report: test-reports\python-unittest\test_jit\TEST-jit.test_torchbind.TestTorchbind-20220412145825.xml
2022-04-12T15:00:30.3771025Z Traceback (most recent call last):
2022-04-12T15:00:30.3771401Z   File "run_test.py", line 1056, in <module>
2022-04-12T15:00:30.3771607Z     main()
2022-04-12T15:00:30.3771842Z   File "run_test.py", line 1034, in main
2022-04-12T15:00:30.3772089Z     raise RuntimeError(err_message)
2022-04-12T15:00:30.3772326Z RuntimeError: test_jit failed!
2022-04-12T15:00:30.6294584Z 
2022-04-12T15:00:30.6295222Z (base) C:\actions-runner\_work\pytorch\pytorch\test>popd
2022-04-12T15:00:30.6299263Z 
2022-04-12T15:00:30.6299474Z (base) C:\actions-runner\_work\pytorch\pytorch>if ERRORLEVEL 1 exit /b 1 
2022-04-12T15:00:30.6325179Z + cleanup
2022-04-12T15:00:30.6325382Z + retcode=1
2022-04-12T15:00:30.6325537Z + set +x
2022-04-12T15:00:30.6367251Z ##[error]Process completed with exit code 1.
2022-04-12T15:00:30.6732669Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T15:00:30.6732958Z with:

See GitHub Actions build pull / linux-xenial-py3.7-gcc5.4 / test (default, 2, 2, linux.2xlarge) (9/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:18:25.4921003Z RuntimeError: test_jit failed!
2022-04-12T14:18:25.1626628Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_warn.TestWarn-20220412141626.xml
2022-04-12T14:18:25.1633033Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_with.TestWith-20220412141626.xml
2022-04-12T14:18:25.1639636Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_data_parallel.TestDataParallel-20220412141626.xml
2022-04-12T14:18:25.1651314Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412141626.xml
2022-04-12T14:18:25.1660950Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412141626.xml
2022-04-12T14:18:25.4916012Z Traceback (most recent call last):
2022-04-12T14:18:25.4916332Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:18:25.4918253Z     main()
2022-04-12T14:18:25.4918472Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:18:25.4920742Z     raise RuntimeError(err_message)
2022-04-12T14:18:25.4921003Z RuntimeError: test_jit failed!
2022-04-12T14:18:25.6999811Z + cleanup
2022-04-12T14:18:25.7000136Z + retcode=1
2022-04-12T14:18:25.7000358Z + set +x
2022-04-12T14:18:25.7042235Z ##[error]Process completed with exit code 1.
2022-04-12T14:18:25.7086448Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:18:25.7086697Z with:
2022-04-12T14:18:25.7087096Z   github-token: ***
2022-04-12T14:18:25.7087267Z env:
2022-04-12T14:18:25.7087419Z   IN_CI: 1
2022-04-12T14:18:25.7087564Z   IS_GHA: 1

See GitHub Actions build pull / win-vs2019-cuda11.3-py3 / test (default, 1, 2, windows.8xlarge.nvidia.gpu) (10/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T17:26:25.8559268Z RuntimeError: test_jit_legacy failed!
2022-04-12T17:26:24.3451349Z Generated XML report: test-reports\python-unittest\test_jit_legacy\TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412172253.xml
2022-04-12T17:26:24.3451986Z Generated XML report: test-reports\python-unittest\test_jit_legacy\TEST-jit.test_backend_nnapi.TestNnapiBackend-20220412172253.xml
2022-04-12T17:26:24.3452649Z Generated XML report: test-reports\python-unittest\test_jit_legacy\TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412172253.xml
2022-04-12T17:26:24.3453299Z Generated XML report: test-reports\python-unittest\test_jit_legacy\TEST-jit.test_torchbind.TestTorchbind-20220412172253.xml
2022-04-12T17:26:25.2598864Z Could not load symbol cublasGetSmCountTarget from cublas64_11.dll. Error code 127
2022-04-12T17:26:25.8557667Z Traceback (most recent call last):
2022-04-12T17:26:25.8558126Z   File "run_test.py", line 1056, in <module>
2022-04-12T17:26:25.8558384Z     main()
2022-04-12T17:26:25.8558672Z   File "run_test.py", line 1034, in main
2022-04-12T17:26:25.8558980Z     raise RuntimeError(err_message)
2022-04-12T17:26:25.8559268Z RuntimeError: test_jit_legacy failed!
2022-04-12T17:26:26.2259064Z + cleanup
2022-04-12T17:26:26.2259482Z + retcode=1
2022-04-12T17:26:26.2259799Z + set +x
2022-04-12T17:26:26.2308212Z ##[error]Process completed with exit code 1.
2022-04-12T17:26:26.2569946Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T17:26:26.2570317Z with:
2022-04-12T17:26:26.2571070Z   github-token: ***
2022-04-12T17:26:26.2571307Z env:
2022-04-12T17:26:26.2571480Z   IN_CI: 1
2022-04-12T17:26:26.2572271Z   IS_GHA: 1

See GitHub Actions build pull / linux-bionic-py3.7-clang9 / test (default, 2, 2, linux.2xlarge) (11/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:34:16.3834501Z RuntimeError: test_jit failed!
2022-04-12T14:34:16.0270590Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_warn.TestWarn-20220412143213.xml
2022-04-12T14:34:16.0278237Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_with.TestWith-20220412143213.xml
2022-04-12T14:34:16.0285660Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_data_parallel.TestDataParallel-20220412143213.xml
2022-04-12T14:34:16.0298472Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412143213.xml
2022-04-12T14:34:16.0309382Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412143213.xml
2022-04-12T14:34:16.3828773Z Traceback (most recent call last):
2022-04-12T14:34:16.3829246Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:34:16.3831313Z     main()
2022-04-12T14:34:16.3831542Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:34:16.3834051Z     raise RuntimeError(err_message)
2022-04-12T14:34:16.3834501Z RuntimeError: test_jit failed!
2022-04-12T14:34:16.6261397Z 
2022-04-12T14:34:16.6261780Z real	19m56.872s
2022-04-12T14:34:16.6262203Z user	43m16.234s
2022-04-12T14:34:16.6262540Z sys	2m49.982s
2022-04-12T14:34:16.6262804Z + cleanup
2022-04-12T14:34:16.6263034Z + retcode=1
2022-04-12T14:34:16.6263252Z + set +x
2022-04-12T14:34:16.6305063Z ##[error]Process completed with exit code 1.
2022-04-12T14:34:16.6432705Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:34:16.6432973Z with:

See GitHub Actions build pull / linux-xenial-py3.7-clang7-asan / test (default, 2, 3, linux.2xlarge) (12/12)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-04-12T14:27:48.0807778Z RuntimeError: test_jit failed!
2022-04-12T14:27:47.3509828Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_legacy_upgraders.TestLegacyUpgraders-20220412141828.xml
2022-04-12T14:27:47.3516911Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_freezing.TestMKLDNNReinplacing-20220412141828.xml
2022-04-12T14:27:47.3549281Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_backend_nnapi.TestNnapiBackend-20220412141828.xml
2022-04-12T14:27:47.3558904Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_optimize_for_mobile_preserve_debug_info.TestOptimizeForMobilePreserveDebugInfo-20220412141828.xml
2022-04-12T14:27:47.3570229Z Generated XML report: test-reports/python-unittest/test_jit/TEST-jit.test_save_load.TestSaveLoadFlatbuffer-20220412141828.xml
2022-04-12T14:27:48.0799239Z Traceback (most recent call last):
2022-04-12T14:27:48.0799526Z   File "test/run_test.py", line 1056, in <module>
2022-04-12T14:27:48.0803578Z     main()
2022-04-12T14:27:48.0803783Z   File "test/run_test.py", line 1034, in main
2022-04-12T14:27:48.0807544Z     raise RuntimeError(err_message)
2022-04-12T14:27:48.0807778Z RuntimeError: test_jit failed!
2022-04-12T14:27:48.5220407Z + cleanup
2022-04-12T14:27:48.5220636Z + retcode=1
2022-04-12T14:27:48.5220822Z + set +x
2022-04-12T14:27:48.5266325Z ##[error]Process completed with exit code 1.
2022-04-12T14:27:48.5361058Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-04-12T14:27:48.5361324Z with:
2022-04-12T14:27:48.5361758Z   github-token: ***
2022-04-12T14:27:48.5361939Z env:
2022-04-12T14:27:48.5362088Z   IN_CI: 1
2022-04-12T14:27:48.5362260Z   IS_GHA: 1

This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

peterbell10 added a commit that referenced this pull request Feb 15, 2022
For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

ghstack-source-id: f7adf86
Pull Request resolved: #72882
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Feb 15, 2022
For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Feb 16, 2022
For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

ghstack-source-id: eb7feb6
Pull Request resolved: #72882
For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Feb 16, 2022
For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

ghstack-source-id: 2b5efb8
Pull Request resolved: #72882
length=length, return_complex=return_complex)
)SCRIPT"},
{"stft_0_10", R"SCRIPT(
def stft_0_10(self: Tensor, n_fft: int, hop_length: Optional[int]=None, win_length: Optional[int]=None,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting a major issue with these upgraders. stft and istft have python definitions in torch/functional.py that wrap the ATen operators. So the TorchScript models use prim::CallFunction instead of aten::stft and the upgrader is never called.

cc @anjali411 @mruberry

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why these functions have to be defined in python? can we move it to C++? It seems like they just handle torch function or call into torch.{stft/istft} otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suo @eellison what's the guidance here for writing upgraders for functions defined in python?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tugsbayasgalan should know what to do

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#71993 removes the istft python wrapper but is blocked by a JIT bug (#71994). stft depends on torch.nn.functional.pad which is implemented in python.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently iterate over all nodes in the graph and replace the aten operators with upgraders when necessary. I am wondering if we can be little smarter in that pass that would dig deeper when we encounter prim::CallFunction. I am not sure how feasible that is @eellison @gmagogsfm. Alternatively, fixing the bug @anjali411 mentioned to unblock the moving to C++ might be the way to go. What do you guys think?

…lex"

For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

[ghstack-poisoned]
peterbell10 added a commit that referenced this pull request Apr 12, 2022
For `stft` this makes all cases where `return_complex` default to
`False` into an error and adds a warning when `return_complex=False`
is passed explicitly.

For `istft` this raises an error if the input is not a complex tensor.

ghstack-source-id: 9459360
Pull Request resolved: #72882
@anjali411
Copy link
Contributor

@peterbell10 please let me know when this PR is ready for review

@peterbell10
Copy link
Collaborator Author
peterbell10 commented Apr 12, 2022

Sure thing. The actual code shouldn't need changed much, but I'm still waiting on #73434 which is blocked by an FC period that ends this week.

@anjali411 anjali411 added the module: bc-breaking Related to a BC-breaking change label Apr 21, 2022
@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@facebook-github-bot
Copy link
Contributor

/easycla

As part of the transition to the PyTorch Foundation, this project now requires contributions be covered under the new CLA. See #85559 for additional details.

This comment will trigger a new check of this PR. If you are already covered, you will simply see a new "EasyCLA" check that passes. If you are not covered, a bot will leave a new comment with a link to sign.

@linux-foundation-easycla
Copy link

CLA Not Signed

@anjali411
Copy link
Contributor

@peterbell10 we should merge this PR right?

@peterbell10
Copy link
Collaborator Author

I should have said, the deprecations have been re-submitted as #86724 and #86628 which have been merged.

@facebook-github-bot facebook-github-bot deleted the gh/peterbell10/273/head branch June 8, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed module: bc-breaking Related to a BC-breaking change oncall: jit Add this issue/PR to JIT oncall triage queue open source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0