Skip to content

Fix exceptions not being caught#1948

Merged
soumith merged 1 commit intopytorch:masterfrom
PPC64:add-fexceptions
Jul 5, 2017
Merged

Fix exceptions not being caught#1948
soumith merged 1 commit intopytorch:masterfrom
PPC64:add-fexceptions

Conversation

@brunoalr
Copy link

Adding -fexceptions to both torch and pytorch C/C++ builds fixes tests
not passing.

Related to #1309

Closes #1297

@brunoalr
Copy link
Author

I opened a new PR because I pushed with --force to my PR branch.

@brunoalr
Copy link
Author

brunoalr commented Jul 3, 2017

Rebasing and solving conflicts

@brunoalr
Copy link
Author

brunoalr commented Jul 3, 2017

@soumith can you ping your buildbot for this PR as well?

@soumith
Copy link
Collaborator

soumith commented Jul 3, 2017

@pytorchbot add to whitelist

@soumith soumith self-assigned this Jul 3, 2017
Copy link
Collaborator

@soumith soumith left a comment

Choose a reason for hiding this comment

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

I have a question (see inline).
From my expectation, the setup.py change is not needed, but can you test it on PPC64 and let me know?

The changes to build_all.sh look good.

setup.py Outdated

This comment was marked as off-topic.

@soumith soumith removed their assignment Jul 4, 2017

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@brunoalr
Copy link
Author

brunoalr commented Jul 5, 2017

@soumith @apaszke fixed! :)

Adding -fexceptions to both torch and pytorch C/C++ builds fixes tests
not passing.

Closes pytorch#1297
@soumith soumith merged commit b3589b0 into pytorch:master Jul 5, 2017
@soumith
Copy link
Collaborator

soumith commented Jul 5, 2017

Thanks Bruno!

houseroad added a commit to houseroad/pytorch that referenced this pull request Apr 19, 2019
…09c7db (pytorch#19454)

Summary:
Pull Request resolved: pytorch#19454

Previous import was ad7313470a9119d7e1afda7edf1d654497ee80ab

Included changes:
- **[83dd6265](onnx/onnx@83dd6265)**: Add NonMaxSuppression operator (pytorch#1703) <Hector Li>
- **[31ca5d6f](onnx/onnx@31ca5d6f)**: add node tests for quantized ops (pytorch#1944) <Ashwini Khade>
- **[e6076c1d](onnx/onnx@e6076c1d)**: Fix test stat coverage script (pytorch#1948) <Raymond Yang>
- **[ad036405](onnx/onnx@ad036405)**: Add IsInf to detect infinity values (pytorch#1884) <Wei-Sheng Chin>

Differential Revision: D15010015

fbshipit-source-id: 9778757752785fe3169ad2ac606b37299aa69da6
facebook-github-bot pushed a commit that referenced this pull request Apr 22, 2019
…09c7db (#19454)

Summary:
Pull Request resolved: #19454

Previous import was ad7313470a9119d7e1afda7edf1d654497ee80ab

Included changes:
- **[83dd6265](onnx/onnx@83dd6265)**: Add NonMaxSuppression operator (#1703) <Hector Li>
- **[31ca5d6f](onnx/onnx@31ca5d6f)**: add node tests for quantized ops (#1944) <Ashwini Khade>
- **[e6076c1d](onnx/onnx@e6076c1d)**: Fix test stat coverage script (#1948) <Raymond Yang>
- **[ad036405](onnx/onnx@ad036405)**: Add IsInf to detect infinity values (#1884) <Wei-Sheng Chin>

Reviewed By: benoitsteiner

Differential Revision: D15010015

fbshipit-source-id: 4b29de21de60f8e6a2db75309809a4e619c92532
zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
…09c7db (pytorch#19454)

Summary:
Pull Request resolved: pytorch#19454

Previous import was ad7313470a9119d7e1afda7edf1d654497ee80ab

Included changes:
- **[83dd6265](onnx/onnx@83dd6265)**: Add NonMaxSuppression operator (pytorch#1703) <Hector Li>
- **[31ca5d6f](onnx/onnx@31ca5d6f)**: add node tests for quantized ops (pytorch#1944) <Ashwini Khade>
- **[e6076c1d](onnx/onnx@e6076c1d)**: Fix test stat coverage script (pytorch#1948) <Raymond Yang>
- **[ad036405](onnx/onnx@ad036405)**: Add IsInf to detect infinity values (pytorch#1884) <Wei-Sheng Chin>

Reviewed By: benoitsteiner

Differential Revision: D15010015

fbshipit-source-id: 4b29de21de60f8e6a2db75309809a4e619c92532
amd-sriram pushed a commit to amd-sriram/pytorch that referenced this pull request Mar 26, 2025
… for MiopenBatchNormBackward (pytorch#1948)

Pytorch called `grad.contiguous()` before `miopen_batch_norm_backward`.
This led to redundant conversions from NHWC gradient to NCHW and back to
NHWC.
Solution based on `cudnn_batch_norm_backward` description in the same
`derivatives.yaml` file
Fixes SWDEV-520250
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.

Tests fail on ppc64le

4 participants