8000 [caffe2] Remove IValue include from operator.h by peterbell10 · Pull Request #67094 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[caffe2] Remove IValue include from operator.h #67094

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

Conversation

peterbell10
Copy link
Collaborator
@peterbell10 peterbell10 commented Oct 22, 2021

Stack from ghstack (oldest at bottom):

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

Differential Revision: D32289812

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt as often when developing PyTorch.

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

⚛️ CI Flow

Ruleset - Version: v1
Ruleset - File: https://github.com/pytorch/pytorch/blob/74ac88fcf57b8b5d5e651bbabe46718b7aece154/.github/generated-ciflow-ruleset.json
PR ciflow labels: ciflow/default,ciflow/cpu

Workflows Labels (bold enabled) Status
Triggered Workflows
caffe2-linux-xenial-py3.7-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux, ciflow/trunk ✅ triggered
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-docs ciflow/all, ciflow/cpu, ciflow/default, ciflow/docs, ciflow/linux, ciflow/trunk ✅ triggered
linux-docs-push ciflow/all, ciflow/cpu, ciflow/linux, ciflow/scheduled ✅ 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
parallelnative-linux-xenial-py3.7-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux, ciflow/trunk ✅ triggered
pytorch-linux-xenial-py3-clang5-android-ndk-r19c-build ciflow/all, ciflow/android, ciflow/cpu, 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
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-bionic-rocm4.5-py3.7 ciflow/all, ciflow/linux, ciflow/rocm, ciflow/trunk 🚫 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
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

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 22, 2021

🔗 Helpful links

❌ 1 New Failures

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

Expand to see more
  • 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 pull / linux-docs / build-docs (cpp) (1/1)

Step: "Build cpp docs" (full log | diagnosis details | 🔁 rerun)

2022-07-27T18:48:08.0607685Z ##[error]Process completed with exit code 137.
2022-07-27T18:43:08.9242205Z �[01mwriting output... �[39;49;00m[ 90%] �[32mapi/structc10_1_1_device .. api/structtorch_1_1enumtype_1_1k_leaky_re_l_u�[39;49;00m
2022-07-27T18:43:20.4771800Z �[01mwriting output... �[39;49;00m[ 92%] �[32mapi/structtorch_1_1enumtype_1_1k_linear .. api/structtorch_1_1nn_1_1_l_p_pool_options�[39;49;00m
2022-07-27T18:43:41.2691174Z �[01mwriting output... �[39;49;00m[ 93%] �[32mapi/structtorch_1_1nn_1_1_l_s_t_m_cell_options .. api/structtorch_1_1optim_1_1_adagrad_param_state�[39;49;00m
2022-07-27T18:43:48.7932364Z �[01mwriting output... �[39;49;00m[ 95%] �[32mapi/structtorch_1_1optim_1_1_adam_options .. api/typedef_namespacetorch_1_1nn_1_1functional_1aa18646e3cd361617311b0c1d1743aa78�[39;49;00m
2022-07-27T18:44:04.3720099Z �[01mwriting output... �[39;49;00m[ 96%] �[32mapi/typedef_namespacetorch_1_1nn_1_1functional_1aa48749206082752b5b908930d701962d .. api/unabridged_orphan�[39;49;00m
2022-07-27T18:44:10.0952382Z �[01mwriting output... �[39;49;00m[ 98%] �[32mapi/unionat_1_1native_1_1_constant .. installing�[39;49;00m
2022-07-27T18:44:10.4232669Z �[01mwriting output... �[39;49;00m[100%] �[32mlibrary .. notes/versioning�[39;49;00m
2022-07-27T18:44:10.4233159Z 
2022-07-27T18:44:10.4312351Z �[01mwaiting for workers...�[39;49;00m
2022-07-27T18:48:08.0021378Z /home/ec2-user/actions-runner/_work/_temp/f944bd60-5748-45b4-bea5-de90b0084b86.sh: line 27: 25232 Killed                  docker exec -t "${container_name}" bash -c "sudo chown -R jenkins . && pip install dist/*.whl && ./.circleci/scripts/${DOCS_TYPE}_doc_push_script.sh"
2022-07-27T18:48:08.0607685Z ##[error]Process completed with exit code 137.
2022-07-27T18:48:08.0977056Z Prepare all required actions
2022-07-27T18:48:08.1042003Z ##[group]Run ./.github/actions/chown-workspace
2022-07-27T18:48:08.1042446Z ##[endgroup]
2022-07-27T18:48:08.1068462Z ##[group]Run docker run --rm -v "$(pwd)":/v -w /v "${ALPINE_IMAGE}" chown -R "$(id -u):$(id -g)" .
2022-07-27T18:48:08.1069043Z �[36;1mdocker run --rm -v "$(pwd)":/v -w /v "${ALPINE_IMAGE}" chown -R "$(id -u):$(id -g)" .�[0m
2022-07-27T18:48:08.2054745Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2022-07-27T18:48:08.2055193Z env:
2022-07-27T18:48:08.2055667Z   ALPINE_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine
2022-07-27T18:48:08.2056143Z ##[endgroup]
2022-07-27T18:48:08.7467782Z Unable to find image '308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine:latest' locally

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.

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt as often when developing PyTorch.

[ghstack-poisoned]
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt as often when developing PyTorch.

[ghstack-poisoned]
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt as often when developing PyTorch.

[ghstack-poisoned]
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

[ghstack-poisoned]
@peterbell10 peterbell10 marked this pull request as ready for review October 25, 2021 13:14
@peterbell10 peterbell10 requested review from ezyang and dagitses and removed request for ezyang October 25, 2021 13:15
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

[ghstack-poisoned]
@dagitses
Copy link
Collaborator
dagitses commented Nov 9, 2021

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

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
@peterbell10
Copy link
Collaborator Author

@dagitses PTAL

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
@dagitses
Copy link
Collaborator

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

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
…m operator.h"

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
@github-actions
Copy link
Contributor
github-actions bot commented Jun 7, 2022

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.

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
@github-actions
8000
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
linux-foundation-easycla bot commented Oct 4, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
@pytorch-bot
Copy link
pytorch-bot bot commented Oct 10, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/67094

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 02def0c:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@peterbell10 peterbell10 added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 10, 2022
@dagitses
Copy link
Collaborator

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

ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Rebased gh/peterbell10/189/orig onto refs/remotes/origin/viable/strict because #67096 was rebased, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/67094)

@peterbell10 peterbell10 added the topic: not user facing topic category label Nov 15, 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 github-actions bot added the Stale label Jan 14, 2023
peterbell10 added a commit to peterbell10/pytorch that referenced this pull request Jan 23, 2023
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

ghstack-source-id: dc1c8c2
Pull Request resolved: pytorch#67094
ivalue.h includes Tensor.h, so creating a compilation barrier between
operator.h and ivalue.h means non-exported caffe2 ops don't need to be
rebuilt when developing PyTorch.

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

[ghstack-poisoned]
@peterbell10 peterbell10 requested a review from kit1980 January 24, 2023 11:44
@peterbell10 peterbell10 closed this Mar 4, 2024
@github-actions github-actions bot deleted the gh/peterbell10/187/head branch April 4, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request cla signed no-stale open source topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0