Skip to content

make keepdim backcompat warnings emit in autograd as well#2157

Merged
soumith merged 3 commits intomasterfrom
keepdimwarn
Jul 20, 2017
Merged

make keepdim backcompat warnings emit in autograd as well#2157
soumith merged 3 commits intomasterfrom
keepdimwarn

Conversation

@soumith
Copy link
Collaborator

@soumith soumith commented Jul 20, 2017

keepdim backward compatibility warnings were silent in the context of Variable. Fixed this.
cc: @gchanan for review.

@soumith soumith requested a review from gchanan July 20, 2017 05:28
@soumith soumith merged commit 09abaa2 into master Jul 20, 2017
@soumith soumith deleted the keepdimwarn branch July 20, 2017 05:48
keepdim_check(torch.min)
keepdim_check(torch.mode)
keepdim_check(torch.median)
keepdim_check(torch.kthvalue)

This comment was marked as off-topic.

mean_expanded = mean.expand_as(self)
zero_centered = self.sub(mean_expanded)
var = zero_centered.mul(zero_centered).sum(dim, keepdim)
var = zero_centered.mul(zero_centered).sum(dim, keepdim=keepdim_)

This comment was marked as off-topic.

houseroad added a commit to houseroad/pytorch that referenced this pull request Jul 17, 2019
…22d5dd

Summary:
Previous import was 806aa863020fa180e57f576cb032ec44ce8ddcca

Included changes:
- **[70706498](onnx/onnx@70706498)**: TensorProto::INT8 & INT16 were missed here (pytorch#2164) <ZINEKS>
- **[8218a4ea](onnx/onnx@8218a4ea)**: Fix LabelEncoder's shape inference (pytorch#2170) <Wei-Sheng Chin>
- **[0f1a9a1c](onnx/onnx@0f1a9a1c)**: Fixing a unit test in Cumsum Operator (pytorch#2157) <Jeff Saremi>
- **[2c03cff0](onnx/onnx@2c03cff0)**: [New Operator] CumSum (pytorch#2030) <Jeff Saremi>
- **[220b8300](onnx/onnx@220b8300)**: Fix globalpool output shape (pytorch#2147) <daquexian>

Differential Revision: D16341736

fbshipit-source-id: fcd136f20eadfd3a78ae2cd928a4d6eb7c709f4c
facebook-github-bot pushed a commit that referenced this pull request Jul 17, 2019
…22d5dd (#22981)

Summary:
Pull Request resolved: #22981

Previous import was 806aa863020fa180e57f576cb032ec44ce8ddcca

Included changes:
- **[70706498](onnx/onnx@70706498)**: TensorProto::INT8 & INT16 were missed here (#2164) <ZINEKS>
- **[8218a4ea](onnx/onnx@8218a4ea)**: Fix LabelEncoder's shape inference (#2170) <Wei-Sheng Chin>
- **[0f1a9a1c](onnx/onnx@0f1a9a1c)**: Fixing a unit test in Cumsum Operator (#2157) <Jeff Saremi>
- **[2c03cff0](onnx/onnx@2c03cff0)**: [New Operator] CumSum (#2030) <Jeff Saremi>
- **[220b8300](onnx/onnx@220b8300)**: Fix globalpool output shape (#2147) <daquexian>

Reviewed By: benoitsteiner

Differential Revision: D16341736

fbshipit-source-id: 7e7a2684d8c821991231bfd6558f9f6cb4fb05fb
xwang233 pushed a commit to xwang233/pytorch that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants