Skip to content

Conversation

@bddppq
Copy link
Contributor

@bddppq bddppq commented May 18, 2018

ONNX Sum does elementwise sum of all inputs, which is not PyTorch's sum

#7650



def sum(g, self, dim=None, keepdim=None):
if dim is None and keepdim is None:

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

LGTM

@houseroad
Copy link
Member

Update expect files in onnx-fb-universe?

@bddppq
Copy link
Contributor Author

bddppq commented May 19, 2018

@houseroad good point

@bddppq
Copy link
Contributor Author

bddppq commented May 21, 2018

@pytorchbot retest this please

@bddppq
Copy link
Contributor Author

bddppq commented May 21, 2018

@houseroad Rather than updating the expect files in onnx-fb-unvierse, I have now fully migrated the CI jobs of running these tests to the PyTorch repo :-).

@houseroad
Copy link
Member

Awesome!

@bddppq bddppq merged commit 0a11018 into pytorch:master May 21, 2018
@bddppq bddppq deleted the fix-onnx-sum branch May 21, 2018 06:37
petrex pushed a commit to petrex/pytorch that referenced this pull request May 23, 2018
…e2_core_hip

* 'caffe2_core_hip' of github.com:petrex/pytorch: (40 commits)
  [auto] Update onnx to 52f7528 - add more shape inference tests (onnx/onnx#971) onnx/onnx@52f7528
  JIT cleanup (pytorch#7631)
  fix to build sleef when using cmake 3.11.1 (pytorch#7679)
  Fix typo in document (pytorch#7725)
  [auto] Update onnx to 6f4b1b1 - Tests for Gemm operator (onnx/onnx#885) onnx/onnx@6f4b1b1
  [auto] Update onnx to c6c6aad - Enhance the 1-element broadcast case (onnx/onnx#902) onnx/onnx@c6c6aad
  serialization for torch.device (pytorch#7713)
  Fix compile flags for MSVC (pytorch#7703)
  Fix exporting Sum to onnx (pytorch#7685)
  Renanme ZFNet to ZFNet512 (pytorch#7723)
  Implement __reduce__ for torch.dtype (pytorch#7699)
  Remove unnecessary include in vec256_float.h (pytorch#7711)
  Update from facebook (pytorch#7696)
  fix for cuda 9.2 builds (pytorch#7709)
  make BatchSampler subclass of Sampler, and expose (pytorch#7707)
  Dont emit warning for ABI incompatibility when PyTorch was built from source (pytorch#7681)
  remove index from python bindings (fixes: pytorch#7639) (pytorch#7690)
  Update _torch_docs.py (pytorch#7700)
  Fix the wrong usage of environment variables detection in cmake
  Changes from D7881937 and D7963936 plus an edit (pytorch#7605)
  ...
weiyangfb pushed a commit to weiyangfb/pytorch that referenced this pull request Jun 11, 2018
* Fix exporting Sum to onnx

* extend fix to prod and mean

* update expect file
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.

3 participants