8000 Generalize noncontiguous tests to several outputs by lezcano · Pull Request #67996 · pytorch/pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Generalize noncontiguous tests to several outputs #67996

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 61 commits into from

Conversation

This is necessary for most matrix decompositions in `linalg`.

[ghstack-poisoned]
@pytorch-probot
Copy link
pytorch-probot bot commented Nov 8, 2021
CI Flow Status

⚛️ CI Flow

Ruleset - Version: v1
Ruleset - File: https://github.com/pytorch/pytorch/blob/63247e527135c6bff7379d58666c048e3d7e2a11/.github/generated-ciflow-ruleset.json
PR ciflow labels: ciflow/default

Workflows Labels (bold enabled) Status
Triggered Workflows
linux-bionic-py3.7-clang9 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/noarch, 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
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
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-binary-conda ciflow/binaries, ciflow/binaries/conda 🚫 skipped
linux-binary-libtorch-cxx11-abi ciflow/binaries, ciflow/binaries/libtorch 🚫 skipped
linux-binary-libtorch-pre-cxx11 ciflow/binaries, ciflow/binaries/libtorch 🚫 skipped
linux-binary-manywheel ciflow/binaries, ciflow/binaries/wheel 🚫 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

You can add a comment to the PR and tag @pytorchbot with the following commands:
# ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun

# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow

For more information, please take a look at the CI Flow Wiki.

@facebook-github-bot
Copy link
Contributor
facebook-github-bot commented Nov 8, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 714d235 (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

🕵️ 1 new failure recognized by patterns

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

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

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

2022-01-27T20:26:00.9155166Z �[0;31m[ FAILED ] �[mAtenXlaTensorTest.TestNuclearNorm
2022-01-27T20:26:00.9142938Z �[0;32m[ RUN      ] �[mXlaUtilCacheTest.BasicTest
2022-01-27T20:26:00.9143269Z �[0;32m[       OK ] �[mXlaUtilCacheTest.BasicTest (0 ms)
2022-01-27T20:26:00.9143673Z �[0;32m[----------] �[m1 test from XlaUtilCacheTest (0 ms total)
2022-01-27T20:26:00.9143837Z 
2022-01-27T20:26:00.9144114Z �[0;32m[----------] �[mGlobal test environment tear-down
2022-01-27T20:26:00.9153426Z �[0;32m[==========] �[m618 tests from 8 test suites ran. (356166 ms total)
2022-01-27T20:26:00.9153772Z �[0;32m[  PASSED  ] �[m616 tests.
2022-01-27T20:26:00.9154053Z �[0;32m[  SKIPPED ] �[m1 test, listed below:
2022-01-27T20:26:00.9154496Z �[0;32m[  SKIPPED ] �[mAtenXlaTensorTest.TestGroupNormBackward
2022-01-27T20:26:00.9154870Z �[0;31m[  FAILED  ] �[m1 test, listed below:
2022-01-27T20:26:00.9155166Z �[0;31m[  FAILED  ] �[mAtenXlaTensorTest.TestNuclearNorm
2022-01-27T20:26:00.9155335Z 
2022-01-27T20:26:00.9155612Z  1 FAILED TEST
2022-01-27T20:26:01.0782344Z + cleanup
2022-01-27T20:26:01.0782757Z + retcode=1
2022-01-27T20:26:01.0783014Z + set +x
2022-01-27T20:26:01.0918689Z ##[error]Process completed with exit code 1.
2022-01-27T20:26:01.1031829Z ##[group]Run # Ensure the working directory gets chowned back to the current user
2022-01-27T20:26:01.1032197Z �[36;1m# Ensure the working directory gets chowned back to the current user�[0m
2022-01-27T20:26:01.1032524Z �[36;1mdocker run --rm -v "$(pwd)":/v -w /v "${ALPINE_IMAGE}" chown -R "$(id -u):$(id -g)" .�[0m
2022-01-27T20:26:01.1109156Z shell: /usr/bin/bash -e {0}

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.

@lezcano lezcano marked this pull request as draft November 8, 2021 14:36
@lezcano lezcano added the module: testing Issues related to the torch.testing module (not tests) label Nov 8, 2021
This is necessary for most matrix decompositions in `linalg`.

[ghstack-poisoned]
@lezcano lezcano added the module: tests Issues related to tests (not the torch.testing module) label Nov 11, 2021
@lezcano lezcano requested a review from mruberry November 11, 2021 16:35
@lezcano lezcano marked this pull request as ready for review November 11, 2021 16:36
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
if zero_dim:
t = t.unsqueeze(0)

# Handle conj bit. repeat_interleave resolves the conj, which is a bit annoying.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I don't see any reason why we need to resolve conjugation or negation for repeat_interleave. We should register the repeat_interleave as fallthrough for both Conjugate and Negative dispatch key and simply unset the conj/neg bit for self before the computation and then reset it. repeats is guaranteed to be an int tensor so we don't have to worry about it.

Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth making this change in this PR so that you don't have to add special conj/neg handling

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
Copy link
Collaborator
@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Cool!

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

[ghstack-poisoned]
@lezcano
Copy link
Collaborator Author
lezcano commented Jan 25, 2022

Rebased @mruberry

@mruberry
Copy link
Collaborator

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Differential Revision: [D33774418](https://our.internmc.facebook.com/intern/diff/D33774418)

[ghstack-poisoned]
@mruberry
Copy link
Collaborator

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Differential Revision: [D33774418](https://our.internmc.facebook.com/intern/diff/D33774418)

[ghstack-poisoned]
@mruberry
Copy link
Collaborator

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Differential Revision: [D33774418](https://our.internmc.facebook.com/intern/diff/D33774418)

[ghstack-poisoned]
@mruberry
Copy link
Collaborator

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Jan 27, 2022
Summary:
Pull Request resolved: #67996

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D33774418

Pulled By: mruberry

fbshipit-source-id: 576f2dda9d484808b4acf0621514c0ffe26834e6
alexhagiopol pushed a commit that referenced this pull request Jan 28, 2022
Summary:
Pull Request resolved: #67996

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D33774418

Pulled By: mruberry

fbshipit-source-id: 576f2dda9d484808b4acf0621514c0ffe26834e6
(cherry picked from commit fb07c50)
@facebook-github-bot facebook-github-bot deleted the gh/Lezcano/29/head branch January 31, 2022 15:16
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 3, 2022
Summary:
Pull Request resolved: pytorch/pytorch#67996

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D33774418

Pulled By: mruberry

fbshipit-source-id: 576f2dda9d484808b4acf0621514c0ffe26834e6
(cherry picked from commit fb07c50)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 3, 2022
Summary:
Pull Request resolved: pytorch/pytorch#67996

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D33774418

Pulled By: mruberry

fbshipit-source-id: 576f2dda9d484808b4acf0621514c0ffe26834e6
(cherry picked from commit fb07c50)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 9, 2022
Summary:
Pull Request resolved: pytorch/pytorch#67996

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D33774418

Pulled By: mruberry

fbshipit-source-id: 576f2dda9d484808b4acf0621514c0ffe26834e6
(cherry picked from commit fb07c50)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 9, 2022
Summary:
Pull Request resolved: pytorch/pytorch#67996

This is necessary for most matrix decompositions in `linalg`.

cc mruberry

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D33774418

Pulled By: mruberry

fbshipit-source-id: 576f2dda9d484808b4acf0621514c0ffe26834e6
(cherry picked from commit fb07c50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed module: testing Issues related to the torch.testing module (not tests) module: tests Issues related to tests (not the torch.testing module) open source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0