Skip to content

[Reland] Add py-3.10 config#82329

Closed
malfet wants to merge 3 commits intomasterfrom
malfet/readd-py310-config
Closed

[Reland] Add py-3.10 config#82329
malfet wants to merge 3 commits intomasterfrom
malfet/readd-py310-config

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Jul 27, 2022

This is a re-land of #81372 and #81233 with the exception that it does not force the range-checks on older Python runtime versions and as such should not affect the internal workloads, which were the reason for revert, see #81372 (comment)

malfet added 3 commits July 27, 2022 09:32
Thus avoiding `TypeError: 'float' object cannot be interpreted as an integer` when trying to create integer tensor from floating point values

Use `c10::checked_convert` to detect overflows during tensor construction from scalars. Modify sparse_csr test that violated this rule

Fixes #69319

Tested in #81233

Pull Request resolved: #81372
Approved by: https://github.com/ezyang, https://github.com/ngimel

(cherry picked from commit 69d7334)
Second attempt of landing the change after #66530

Skip nan hashes comparison validation in `jit/test_hash.py`, as it behaves differently in 3.10 vs other pythons
Skip tensor_fx assert tests
Skip initializing uint8 tensors from negative values in `TestScript.test_torch_tensor_as_tensor`

Final step in closing #66424

Pull Request resolved: #81233
Approved by: https://github.com/seemethere

(cherry picked from commit 7ccf693)
@malfet malfet requested review from a team and jeffdaily as code owners July 27, 2022 16:58
@facebook-github-bot facebook-github-bot added cla signed oncall: jit Add this issue/PR to JIT oncall triage queue labels Jul 27, 2022
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Jul 27, 2022

@pytorchbot merge -f "[OTHER] This is just a reland"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Copy Markdown
Contributor

Hey @malfet.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Jul 28, 2022
Summary:
This is a re-land of #81372 and #81233 with the exception that it does not force the range-checks on older Python runtime versions and as such should not affect the internal workloads, which were the reason for revert, see #81372 (comment)

- [Py3.10] Allow floats to be imported as Long (#81372)
- [CI] Move CUDA-11.6 to Python-3.10 configuration (#81233)
- Don't do anything about range checks for pre-py3.10

Pull Request resolved: #82329
Approved by: https://github.com/kit1980

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/d80fe49de09399e77a384bd9573c7bb69887dd20

Reviewed By: osalpekar

Differential Revision: D38234293

Pulled By: malfet

fbshipit-source-id: 3f7ffe729ab2a3ef692bc95f5398dfdf395b2397
@github-actions github-actions bot deleted the malfet/readd-py310-config branch February 18, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants