Skip to content

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Sep 10, 2021

The returned pointer, if present, could never be nullptr, so there is no reason to wrap it in an optional rather than just using the nullptr state. The repeated calls to kernels_.at() were not getting optimized away, so just use the perfectly good iterator find() already gave us.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Sep 10, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 033d071 (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.8-gcc9-coverage / test (default, 1, 2, linux.2xlarge) (1/1)

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

2021-09-17T01:19:59.5583302Z CONTINUE_THROUGH_ERROR: false
2021-09-17T01:19:59.5578689Z   ALPINE_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine
2021-09-17T01:19:59.5579255Z   PR_LABELS: [
  "cla signed"
]
2021-09-17T01:19:59.5580205Z   DOCKER_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-bionic-py3.8-gcc9:74e757e8b0cf750d2f91db6aa4c29640abce32ea
2021-09-17T01:19:59.5581391Z   JOB_BASE_NAME: linux-bionic-py3.8-gcc9-coverage-test
2021-09-17T01:19:59.5581960Z   TEST_CONFIG: default
2021-09-17T01:19:59.5582262Z   SHARD_NUMBER: 1
2021-09-17T01:19:59.5582561Z   NUM_TEST_SHARDS: 2
2021-09-17T01:19:59.5582906Z   PYTORCH_IGNORE_DISABLED_ISSUES: 
2021-09-17T01:19:59.5583302Z   CONTINUE_THROUGH_ERROR: false
2021-09-17T01:19:59.5583619Z   SHM_SIZE: 1g
2021-09-17T01:19:59.5583898Z   PR_NUMBER: 64838
2021-09-17T01:19:59.5584192Z ##[endgroup]
2021-09-17T01:20:12.9935148Z Processing ./dist/torch-1.10.0a0+git1c8dd85-cp38-cp38-linux_x86_64.whl
2021-09-17T01:20:13.0191870Z Requirement already satisfied: typing-extensions in /opt/conda/lib/python3.8/site-packages (from torch==1.10.0a0+git1c8dd85) (3.10.0.2)
2021-09-17T01:20:13.2638087Z Installing collected packages: torch
2021-09-17T01:20:19.6754677Z Successfully installed torch-1.10.0a0+git1c8dd85
2021-09-17T01:20:19.7500245Z ++++ dirname .jenkins/pytorch/common.sh
2021-09-17T01:20:19.7507156Z +++ cd .jenkins/pytorch
2021-09-17T01:20:19.7507980Z +++ pwd -P

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

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

Click here to manually regenerate this comment.

The returned pointer, if present, could never be nullptr, so there is no reason to wrap it in an optional rather than just using the nullptr state. The repeated calls to kernels_.at() were not getting optimized away, so just use the perfectly good iterator find() already gave us.

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

[ghstack-poisoned]
The returned pointer, if present, could never be nullptr, so there is no reason to wrap it in an optional rather than just using the nullptr state. The repeated calls to kernels_.at() were not getting optimized away, so just use the perfectly good iterator find() already gave us.

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

[ghstack-poisoned]
The returned pointer, if present, could never be nullptr, so there is no reason to wrap it in an optional rather than just using the nullptr state. The repeated calls to kernels_.at() were not getting optimized away, so just use the perfectly good iterator find() already gave us.

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

[ghstack-poisoned]
The returned pointer, if present, could never be nullptr, so there is no reason to wrap it in an optional rather than just using the nullptr state. The repeated calls to kernels_.at() were not getting optimized away, so just use the perfectly good iterator find() already gave us.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 35084ee.

@facebook-github-bot facebook-github-bot deleted the gh/swolchok/307/head branch September 21, 2021 14: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.

2 participants