Skip to content

OpInfos for: normal, bernoulli, multinomial#66358

Closed
zou3519 wants to merge 5 commits intogh/zou3519/386/basefrom
gh/zou3519/386/head
Closed

OpInfos for: normal, bernoulli, multinomial#66358
zou3519 wants to merge 5 commits intogh/zou3519/386/basefrom
gh/zou3519/386/head

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Oct 9, 2021

Stack from ghstack:

Test Plan:

  • run tests

Differential Revision: D31551695

Test Plan:
- run tests

[ghstack-poisoned]
@pytorch-probot
Copy link

pytorch-probot bot commented Oct 9, 2021

CI Flow Status

⚛️ CI Flow

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

Workflows Labels (bold enabled) Status
Triggered Workflows
linux-bionic-py3.6-clang9 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/noarch, ciflow/xla ✅ triggered
linux-docs ciflow/all, ciflow/cpu, ciflow/default, ciflow/docs, ciflow/linux ✅ triggered
linux-vulkan-bionic-py3.6-clang9 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/vulkan ✅ triggered
linux-xenial-cuda11.3-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/default, ciflow/linux ✅ triggered
linux-xenial-py3-clang5-mobile-build ciflow/all, ciflow/default, ciflow/linux, ciflow/mobile ✅ triggered
linux-xenial-py3-clang5-mobile-custom-build-static ciflow/all, ciflow/default, ciflow/linux, ciflow/mobile ✅ triggered
linux-xenial-py3.6-clang7-asan ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/sanitizers ✅ triggered
linux-xenial-py3.6-clang7-onnx ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/onnx ✅ triggered
linux-xenial-py3.6-gcc5.4 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux ✅ triggered
linux-xenial-py3.6-gcc7 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux ✅ triggered
linux-xenial-py3.6-gcc7-bazel-test ciflow/all, ciflow/bazel, ciflow/cpu, ciflow/default, ciflow/linux ✅ triggered
pytorch-linux-xenial-py3-clang5-android-ndk-r19c-gradle-custom-build-single ciflow/all, ciflow/android, ciflow/cpu, ciflow/default, ciflow/linux ✅ 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 ✅ triggered
win-vs2019-cpu-py3 ciflow/all, ciflow/cpu, ciflow/default, ciflow/win ✅ triggered
win-vs2019-cuda11.3-py3 ciflow/all, ciflow/cuda, ciflow/default, ciflow/win ✅ triggered
Skipped Workflows
caffe2-linux-xenial-py3.6-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux 🚫 skipped
docker-builds ciflow/all 🚫 skipped
ios-12-5-1-arm64 ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
ios-12-5-1-arm64-coreml ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
ios-12-5-1-arm64-custom-ops ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
ios-12-5-1-arm64-full-jit ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
ios-12-5-1-arm64-metal ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
ios-12-5-1-x86-64 ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
ios-12-5-1-x86-64-coreml ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
ios-12-5-1-x86-64-full-jit ciflow/all, ciflow/ios, ciflow/macos 🚫 skipped
libtorch-linux-xenial-cuda10.2-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux 🚫 skipped
libtorch-linux-xenial-cuda11.3-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux 🚫 skipped
linux-bionic-cuda10.2-py3.9-gcc7 ciflow/all, ciflow/cuda, ciflow/linux, ciflow/slow 🚫 skipped
linux-docs-push ciflow/all, ciflow/cpu, ciflow/linux, ciflow/scheduled 🚫 skipped
macos-10-15-py3-arm64 ciflow/all, ciflow/macos 🚫 skipped
macos-10-15-py3-lite-interpreter-x86-64 ciflow/all, ciflow/macos 🚫 skipped
macos-11-py3-x86-64 ciflow/all, ciflow/macos 🚫 skipped
parallelnative-linux-xenial-py3.6-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux 🚫 skipped
periodic-libtorch-linux-bionic-cuda11.5-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux, ciflow/scheduled 🚫 skipped
periodic-libtorch-linux-xenial-cuda11.1-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux, ciflow/scheduled 🚫 skipped
periodic-linux-bionic-cuda11.5-py3.6-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.6-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

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 Oct 9, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 09353f2 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


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.

zou3519 added a commit that referenced this pull request Oct 9, 2021
Test Plan:
- run tests

ghstack-source-id: 0e682e4
Pull Request resolved: #66358
@zou3519 zou3519 requested review from mruberry and pmeier and removed request for pmeier October 11, 2021 13:55
Test Plan:
- run tests

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Oct 11, 2021
Test Plan:
- run tests

ghstack-source-id: f3ab8f6
Pull Request resolved: #66358
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 11, 2021

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

]
return sample_inputs_normal_common(self, device, dtype, requires_grad, cases, **kwargs)

def sample_inputs_bernoulli(self, device, dtype, requires_grad, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

TODO: add different generators?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generators are difficult to toss into sample inputs because after performing the operation (e.g. torch.bernoulli(x, generator=generator)), the generator gets mutated in-place. This means that the "variant consistency" tests (among others) need special handling for generators. Furthermore, torch.manual_seed doesn't affect generators, so we can't use the "wrap the function with a torch.manual_seed" solution to overcome this.

I might decide to handle this in a followup (or file an issue for it), but I'll give it some more thought first

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Going to file an issue for generator support

skips=(
# AssertionError: JIT Test does not execute any logic
DecorateInfo(unittest.skip("Skipped!"), 'TestJit', 'test_variant_consistency_jit'),
# UserWarning not triggered : Resized a non-empty tensor but did not warn about it.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice comments for the skips

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! I left a few minor inline comments. I'm not sure what's up with the lint build failure, however.

@lezcano
Copy link
Collaborator

lezcano commented Dec 9, 2021

Is there anything blocking this PR? It'd be nice to have it landed to be able to test the stack in #69631

@zou3519
Copy link
Contributor Author

zou3519 commented Dec 9, 2021

@lezcano I can rebase and land this

Test Plan:
- run tests

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

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Dec 9, 2021
Test Plan:
- run tests

ghstack-source-id: 592fbe5
Pull Request resolved: #66358
@zou3519
Copy link
Contributor Author

zou3519 commented Dec 9, 2021

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

Test Plan:
- run tests

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

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Dec 13, 2021
Test Plan:
- run tests

ghstack-source-id: 592fbe5
Pull Request resolved: #66358
@zou3519
Copy link
Contributor Author

zou3519 commented Dec 13, 2021

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

Test Plan:
- run tests

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

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Dec 14, 2021
Test Plan:
- run tests

ghstack-source-id: 991290f
Pull Request resolved: #66358
@zou3519
Copy link
Contributor Author

zou3519 commented Dec 14, 2021

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

@facebook-github-bot facebook-github-bot deleted the gh/zou3519/386/head branch December 17, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants