Lu Fang
a6eec0c60f
Upgrade onnx submodule to 85546f8c44e627f8ff1181725d03cc49f675e44f ( #66427 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66427
Update the onnx submodule, so https://github.com/pytorch/pytorch/pull/66140 can land.
Test Plan: ci
Reviewed By: ezyang
Differential Revision: D31544610
fbshipit-source-id: 94831ef531bbd654a6aeb744cd53a38155848079
2021-10-12 09:46:08 -07:00
BowenBao
e6c39a521b
[ONNX] Update submodule to 1.10.1 ( #63716 ) ( #64576 )
...
Summary:
Stack from [ghstack](https://github.com/ezyang/ghstack ):
* **https://github.com/pytorch/pytorch/issues/64576 [ONNX] Update submodule to 1.10.1 (https://github.com/pytorch/pytorch/issues/63716 )**
* [ONNX] Update IR version to 7
* [ONNX] update submodule to 1.10.1
* Disable some tests in caffe2 that fail b/c caffe2 doesn't support the
new ops.
* Update Bazel file.
* Update expect files for new ONNX IR version
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64576
Reviewed By: jansel
Differential Revision: D31006896
Pulled By: msaroufim
fbshipit-source-id: f3bf97709f23a5a2cd49c708e7363231f2c1961a
2021-09-16 22:29:54 -07:00
neginraoof
599f5058cf
[ONNX] Update ONNX to rel-1.9 ( #55889 ) ( #57080 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57080
ONNX optimizer is removed in ONNX 1.9
This PR removes ONNX optimizer from a C++ code path and uses `try-except` block in Python to keep it compatible with both ONNX-1.8 and 1.9.
Test Plan: Imported from OSS
Reviewed By: heitorschueroff
Differential Revision: D28467330
Pulled By: malfet
fbshipit-source-id: 5e4669dd0537648898e593f9e253da18d6dc7568
Co-authored-by: neginraoof <neginmr@utexas.edu>
Co-authored-by: Nikita Shulga <nshulga@fb.com>
2021-06-02 08:27:17 -07:00
Sam Estep
5bcbbf5373
Lint trailing newlines ( #54737 )
...
Summary:
*Context:* https://github.com/pytorch/pytorch/issues/53406 added a lint for trailing whitespace at the ends of lines. However, in order to pass FB-internal lints, that PR also had to normalize the trailing newlines in four of the files it touched. This PR adds an OSS lint to normalize trailing newlines.
The changes to the following files (made in 54847d0adb9be71be4979cead3d9d4c02160e4cd) are the only manually-written parts of this PR:
- `.github/workflows/lint.yml`
- `mypy-strict.ini`
- `tools/README.md`
- `tools/test/test_trailing_newlines.py`
- `tools/trailing_newlines.py`
I would have liked to make this just a shell one-liner like the other three similar lints, but nothing I could find quite fit the bill. Specifically, all the answers I tried from the following Stack Overflow questions were far too slow (at least a minute and a half to run on this entire repository):
- [How to detect file ends in newline?](https://stackoverflow.com/q/38746 )
- [How do I find files that do not end with a newline/linefeed?](https://stackoverflow.com/q/4631068 )
- [How to list all files in the Git index without newline at end of file](https://stackoverflow.com/q/27624800 )
- [Linux - check if there is an empty line at the end of a file [duplicate]](https://stackoverflow.com/q/34943632 )
- [git ensure newline at end of each file](https://stackoverflow.com/q/57770972 )
To avoid giving false positives during the few days after this PR is merged, we should probably only merge it after https://github.com/pytorch/pytorch/issues/54967 .
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54737
Test Plan:
Running the shell script from the "Ensure correct trailing newlines" step in the `quick-checks` job of `.github/workflows/lint.yml` should print no output and exit in a fraction of a second with a status of 0. That was not the case prior to this PR, as shown by this failing GHA workflow run on an earlier draft of this PR:
- https://github.com/pytorch/pytorch/runs/2197446987?check_suite_focus=true
In contrast, this run (after correcting the trailing newlines in this PR) succeeded:
- https://github.com/pytorch/pytorch/pull/54737/checks?check_run_id=2197553241
To unit-test `tools/trailing_newlines.py` itself (this is run as part of our "Test tools" GitHub Actions workflow):
```
python tools/test/test_trailing_newlines.py
```
Reviewed By: malfet
Differential Revision: D27409736
Pulled By: samestep
fbshipit-source-id: 46f565227046b39f68349bbd5633105b2d2e9b19
2021-03-30 13:09:52 -07:00
Sam Estep
8c798e0622
Forbid trailing whitespace ( #53406 )
...
Summary:
Context: https://github.com/pytorch/pytorch/pull/53299#discussion_r587882857
These are the only hand-written parts of this diff:
- the addition to `.github/workflows/lint.yml`
- the file endings changed in these four files (to appease FB-internal land-blocking lints):
- `GLOSSARY.md`
- `aten/src/ATen/core/op_registration/README.md`
- `scripts/README.md`
- `torch/csrc/jit/codegen/fuser/README.md`
The rest was generated by running this command (on macOS):
```
git grep -I -l ' $' -- . ':(exclude)**/contrib/**' ':(exclude)third_party' | xargs gsed -i 's/ *$//'
```
I looked over the auto-generated changes and didn't see anything that looked problematic.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53406
Test Plan:
This run (after adding the lint but before removing existing trailing spaces) failed:
- https://github.com/pytorch/pytorch/runs/2043032377
This run (on the tip of this PR) succeeded:
- https://github.com/pytorch/pytorch/runs/2043296348
Reviewed By: walterddr, seemethere
Differential Revision: D26856620
Pulled By: samestep
fbshipit-source-id: 3f0de7f7c2e4b0f1c089eac9b5085a58dd7e0d97
2021-03-05 17:22:55 -08:00
Richard Barnes
9945fd7253
Drop unused imports from caffe2/python ( #49980 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49980
From
```
./python/libcst/libcst codemod remove_unused_imports.RemoveUnusedImportsWithGlean --no-format caffe2/
```
Test Plan: Standard sandcastle tests
Reviewed By: xush6528
Differential Revision: D25727359
fbshipit-source-id: c4f60005b10546423dc093d31d46deb418352286
2021-01-05 13:17:46 -08:00
skyline75489
46b83212d1
Remove unused six code for Python 2/3 compatibility ( #48077 )
...
Summary:
This is basically a reborn version of https://github.com/pytorch/pytorch/issues/45254 .
Ref: https://github.com/pytorch/pytorch/issues/42919
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48077
Reviewed By: ngimel
Differential Revision: D25687042
Pulled By: bugra
fbshipit-source-id: 05f20a6f3c5212f73d0b1505b493b720e6cf74e5
2020-12-22 18:07:08 -08:00
shubhambhokare1
bdf360f9f2
[ONNX] Update onnx submodule ( #47366 )
...
Summary:
Update onnx submodule to 1.8 release
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47366
Reviewed By: hl475
Differential Revision: D24968733
Pulled By: houseroad
fbshipit-source-id: 2f0a3436ab3c9380ed8ff0887a483743c1209721
2020-11-30 00:05:46 -08:00
Bugra Akyildiz
27c7158166
Remove __future__ imports for legacy Python2 supports ( #45033 )
...
Summary:
There is a module called `2to3` which you can target for future specifically to remove these, the directory of `caffe2` has the most redundant imports:
```2to3 -f future -w caffe2```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45033
Reviewed By: seemethere
Differential Revision: D23808648
Pulled By: bugra
fbshipit-source-id: 38971900f0fe43ab44a9168e57f2307580d36a38
2020-09-23 17:57:02 -07:00
Lu Fang
15ad9dd30f
[ONNX] Bump up ONNX submodule to a82c6a7010e2e332d8f74ad5b0c726fd47c85376 ( #39372 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39372
we only bump the submodule in oss to unblock some works
Test Plan: ci
Reviewed By: hl475
Differential Revision: D21830800
fbshipit-source-id: fb4a716992efcd71926f7bba24a7c24422c17e38
2020-06-02 21:08:14 -07:00
Lu Fang
90a8cdfdbf
Automatic update of fbcode/onnx to eae3eb8c61cf5ad27cc9a416dbdc5274982385a6 ( #39089 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39089
Previous import was 79a7e0df7e86e0f32e7a05f563b24a566540c18b
Included changes:
- **[eae3eb8c](https://github.com/onnx/onnx/commit/eae3eb8c )**: Use cmake GNUInstallDirs (#2661 ) <Gustavo Alvarez>
- **[106821e9](https://github.com/onnx/onnx/commit/106821e9 )**: Update sequence test case so input is not scalar and splits are specified (#2675 ) <Scott McKay>
- **[e094e101](https://github.com/onnx/onnx/commit/e094e101 )**: Remove unnecessary copies and std::move (#2684 ) <Changming Sun>
- **[71145275](https://github.com/onnx/onnx/commit/71145275 )**: Update Batchnorm test (#2674 ) <Lara Haidar>
- **[da13be2d](https://github.com/onnx/onnx/commit/da13be2d )**: Rename OPTIONAL to OPTIONAL_VALUE (#2682 ) <Changming Sun>
- **[2987fa06](https://github.com/onnx/onnx/commit/2987fa06 )**: Adding CI for ONNX Debug mode (Linux, OSX) (#2651 ) <Vinitra Swamy>
- **[46fe392d](https://github.com/onnx/onnx/commit/46fe392d )**: Update Pow input types in Opset 12 (#2666 ) <Lara Haidar>
- **[ac1caf3b](https://github.com/onnx/onnx/commit/ac1caf3b )**: Change type of label tensor to int32/int64 in SoftmaxCrossEntropyLoss spec. (#2667 ) <M. Zeeshan Siddiqui>
- **[c2fefcbf](https://github.com/onnx/onnx/commit/c2fefcbf )**: [Training] SG with Momentum Optimizer (#1959 ) <Wei-Sheng Chin>
- **[8d15705e](https://github.com/onnx/onnx/commit/8d15705e )**: [Training] Add Adagrad optimizer operator (#1955 ) <Wei-Sheng Chin>
- **[94b01cdd](https://github.com/onnx/onnx/commit/94b01cdd )**: Suppress a warning in unsqueeze (#2637 ) <Hong Xu>
- **[0582d526](https://github.com/onnx/onnx/commit/0582d526 )**: Fix Greater/LessOrEqual function definition (#2645 ) <Takeshi Watanabe>
- **[b852d819](https://github.com/onnx/onnx/commit/b852d819 )**: Increment version number to 1.7.0 (#2639 ) <Chin Huang>
- **[ff4bb553](https://github.com/onnx/onnx/commit/ff4bb553 )**: Regenerate Min test data (#2644 ) <Takeshi Watanabe>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D21750299
fbshipit-source-id: c33ec1b1e0dc65d0187e78db96d749f9037aae9c
2020-05-27 18:55:48 -07:00
Natalia Gimelshein
93d87a16eb
Revert D21493165: Automatic update of fbcode/onnx to 20b3e10e6c3a9cdab90d2bb864d1c36d3e3651cd
...
Test Plan: revert-hammer
Differential Revision:
D21493165
Original commit changeset: 6863b289bfbf
fbshipit-source-id: 47b530c8ffceb3673a86b6cf0c064fe6af0eb72d
2020-05-26 21:35:29 -07:00
Lu Fang
51274b501a
Automatic update of fbcode/onnx to 20b3e10e6c3a9cdab90d2bb864d1c36d3e3651cd ( #38203 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38203
Previous import was 79a7e0df7e86e0f32e7a05f563b24a566540c18b
Included changes:
- **[20b3e10e](https://github.com/onnx/onnx/commit/20b3e10e )**: Add 'ignore_index' input in the spec for SoftmaxCrossEntropyLoss and NLLLoss. (#2680 ) <M. Zeeshan Siddiqui>
- **[eae3eb8c](https://github.com/onnx/onnx/commit/eae3eb8c )**: Use cmake GNUInstallDirs (#2661 ) <Gustavo Alvarez>
- **[106821e9](https://github.com/onnx/onnx/commit/106821e9 )**: Update sequence test case so input is not scalar and splits are specified (#2675 ) <Scott McKay>
- **[e094e101](https://github.com/onnx/onnx/commit/e094e101 )**: Remove unnecessary copies and std::move (#2684 ) <Changming Sun>
- **[71145275](https://github.com/onnx/onnx/commit/71145275 )**: Update Batchnorm test (#2674 ) <Lara Haidar>
- **[da13be2d](https://github.com/onnx/onnx/commit/da13be2d )**: Rename OPTIONAL to OPTIONAL_VALUE (#2682 ) <Changming Sun>
- **[2987fa06](https://github.com/onnx/onnx/commit/2987fa06 )**: Adding CI for ONNX Debug mode (Linux, OSX) (#2651 ) <Vinitra Swamy>
- **[46fe392d](https://github.com/onnx/onnx/commit/46fe392d )**: Update Pow input types in Opset 12 (#2666 ) <Lara Haidar>
- **[ac1caf3b](https://github.com/onnx/onnx/commit/ac1caf3b )**: Change type of label tensor to int32/int64 in SoftmaxCrossEntropyLoss spec. (#2667 ) <M. Zeeshan Siddiqui>
- **[c2fefcbf](https://github.com/onnx/onnx/commit/c2fefcbf )**: [Training] SG with Momentum Optimizer (#1959 ) <Wei-Sheng Chin>
- **[8d15705e](https://github.com/onnx/onnx/commit/8d15705e )**: [Training] Add Adagrad optimizer operator (#1955 ) <Wei-Sheng Chin>
- **[94b01cdd](https://github.com/onnx/onnx/commit/94b01cdd )**: Suppress a warning in unsqueeze (#2637 ) <Hong Xu>
- **[0582d526](https://github.com/onnx/onnx/commit/0582d526 )**: Fix Greater/LessOrEqual function definition (#2645 ) <Takeshi Watanabe>
- **[b852d819](https://github.com/onnx/onnx/commit/b852d819 )**: Increment version number to 1.7.0 (#2639 ) <Chin Huang>
- **[ff4bb553](https://github.com/onnx/onnx/commit/ff4bb553 )**: Regenerate Min test data (#2644 ) <Takeshi Watanabe>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D21493165
fbshipit-source-id: 6863b289bfbf4235e36f0e2456ce44c776aaf164
2020-05-26 20:12:36 -07:00
Lu Fang
8181711637
Automatic update of fbcode/onnx to 79a7e0df7e86e0f32e7a05f563b24a566540c18b ( #38106 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38106
Previous import was 807c62cf7e4c96ce49040bcf073b7e4a054f28a5
Included changes:
- **[79a7e0df](https://github.com/onnx/onnx/commit/79a7e0df )**: Fix copy paste error of Min op test case (#2640 ) <Takeshi Watanabe>
- **[4cd2538d](https://github.com/onnx/onnx/commit/4cd2538d )**: Add a release pipeline for Windows python packages (#2632 ) <Changming Sun>
- **[e8b33a5a](https://github.com/onnx/onnx/commit/e8b33a5a )**: Adding UnfoldToDepth op [1.7 Release] (#2616 ) <Negin Raoof>
- **[c2a8d525](https://github.com/onnx/onnx/commit/c2a8d525 )**: update docs (#2627 ) <Ksenija Stanojevic>
- **[22752354](https://github.com/onnx/onnx/commit/22752354 )**: Generate tests for MeanSquareDistance and SoftmaxCrossEntropyLoss (#2623 ) <Jonny Shipton>
- **[602bd622](https://github.com/onnx/onnx/commit/602bd622 )**: Add section about external tensor data to IR.md (#2323 ) <Jonny Shipton>
- **[165c3f3b](https://github.com/onnx/onnx/commit/165c3f3b )**: Add integer support to Clip (#2532 ) <Jonny Shipton>
- **[a5fabf87](https://github.com/onnx/onnx/commit/a5fabf87 )**: Add operators LessOrEqual and GreaterOrEqual (as functions) (#2606 ) <Jeremy Cochoy>
- **[f1dcdafc](https://github.com/onnx/onnx/commit/f1dcdafc )**: Fix input document of quantized operators (#2117 ) <Takeshi Watanabe>
- **[43af9b69](https://github.com/onnx/onnx/commit/43af9b69 )**: Add reference impl for sequence ops (#2380 ) <Bowen Bao>
- **[aa50aa12](https://github.com/onnx/onnx/commit/aa50aa12 )**: Print value case of TypeProto more friendly (#2422 ) <Takeshi Watanabe>
- **[2e67bfc3](https://github.com/onnx/onnx/commit/2e67bfc3 )**: Fix issue #2436 (#2447 ) <daquexian>
- **[d27ffc6b](https://github.com/onnx/onnx/commit/d27ffc6b )**: Add support for integer tensors to Min and Max (#2608 ) <Jonny Shipton>
- **[5cc668af](https://github.com/onnx/onnx/commit/5cc668af )**: Update IR.md to describe training extension. (#2615 ) <G. Ramalingam>
- **[8c5bf9d4](https://github.com/onnx/onnx/commit/8c5bf9d4 )**: Generate node backend tests for celu operator (#2607 ) <Jonny Shipton>
- **[7b65287e](https://github.com/onnx/onnx/commit/7b65287e )**: Change dtype of dd_da in gradient test to float32 (#2620 ) <Shinichiro Hamaji>
- **[e91739f2](https://github.com/onnx/onnx/commit/e91739f2 )**: Introduce SoftmaxCrossentropy as a loss function (#2573 ) <Ksenija Stanojevic>
- **[b008ed3a](https://github.com/onnx/onnx/commit/b008ed3a )**: Support gathernd with batch_dim mode (#2585 ) <wezuo>
- **[d2fe4f22](https://github.com/onnx/onnx/commit/d2fe4f22 )**: Introduce MeanSquaredError as Loss Function (#2570 ) <Ksenija Stanojevic>
- **[10b812a6](https://github.com/onnx/onnx/commit/10b812a6 )**: Add support for default attributes within FunctionExpandHelper (#2588 ) <Ewa Tusień>
- **[3368834c](https://github.com/onnx/onnx/commit/3368834c )**: adding version update content. (#2609 ) <Ke Zhang>
- **[8873cb02](https://github.com/onnx/onnx/commit/8873cb02 )**: Adding Inverse Op (#2578 ) <Negin Raoof>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D21471424
fbshipit-source-id: 5009a5f9558458a0aba56b2a9e8fffc3895a9e02
2020-05-08 21:47:11 -07:00
Lu Fang
3cade9cdd4
Automatic update of fbcode/onnx to 807c62cf7e4c96ce49040bcf073b7e4a054f28a5 ( #37983 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37983
Previous import was 9fdae4c68960a2d44cd1cc871c74a6a9d469fa1f
Included changes:
- **[807c62cf](https://github.com/onnx/onnx/commit/807c62cf )**: Training Proposal: Spec Changes and Gradient Operator (#2314 ) <Wei-Sheng Chin>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D21441188
fbshipit-source-id: 88b5be5bd479b59bdb45525f5dfe61d787151cdd
2020-05-07 20:07:31 -07:00
Nikita Shulga
952e0f00a4
Skip c2_ref_tests on network failures ( #37972 )
...
Summary:
Skip the tests if network is unaccessible and model can not be downloaded
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37972
Differential Revision: D21441996
Pulled By: malfet
fbshipit-source-id: 5ce59764584974aee9195572338ada1fa0351a75
2020-05-06 22:19:28 -07:00
Lu Fang
1aedc2c5b9
Skip c2 ref onnx model tests ( #37591 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37591
skip the tests since gluster is gone.
Test Plan: ci
Reviewed By: ezyang
Differential Revision: D21330359
fbshipit-source-id: a4e158fb72eddb08ba49fcfa9541569a150f8481
2020-04-30 14:32:47 -07:00
Edward Yang
d5f8c8f3ba
Revert D20121169: [pytorch][PR] ONNX Export Support for CrossEntropyLoss
...
Test Plan: revert-hammer
Differential Revision:
D20121169
Original commit changeset: 7b56617e8c60
fbshipit-source-id: d7f302d1e54f3c978c3be0a0ad1ee600790a5b27
2020-03-12 20:30:54 -07:00
Ksenija Stanojevic
944ea4c334
ONNX Export Support for CrossEntropyLoss ( #33767 )
...
Summary:
Add ONNX export support for torch.nn.CrossEntropyLoss.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33767
Reviewed By: hl475
Differential Revision: D20121169
Pulled By: houseroad
fbshipit-source-id: 7b56617e8c60617b922949fc8b4ecc626eedf7ed
2020-03-12 11:46:58 -07:00
Lu Fang
e5c7b7b8b5
Automatic update of fbcode/onnx to 04a29addfd5b912812addb8dea5f8763fbfaad01 ( #33328 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33328
Previous import was 8b3f7e2e7a0f2aba0e629e23d89f07c7fc0e6a5e
Included changes:
- **[04a29add](https://github.com/onnx/onnx/commit/04a29add )**: Use // instead of # (#2598 ) <Lu Fang>
- **[f8e140a9](https://github.com/onnx/onnx/commit/f8e140a9 )**: Kezhan/function update (#2596 ) <Ke Zhang>
- **[6185faae](https://github.com/onnx/onnx/commit/6185faae )**: fix the attribute types section in IR.md (#2590 ) <Ke Zhang>
- **[f254647a](https://github.com/onnx/onnx/commit/f254647a )**: Allow Constant operator to promote scalar and list to tensors. (#2592 ) <Jeremy Cochoy>
- **[f12ec799](https://github.com/onnx/onnx/commit/f12ec799 )**: Add NegativeLogLikelihood(NllLoss) op (#2551 ) <liqunfu>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D19897554
fbshipit-source-id: d8efb5c5ac8f9d71727de33c67af681ed8ec8123
2020-02-13 21:03:17 -08:00
Lu Fang
674dca0831
Automatic update of fbcode/onnx to 8b3f7e2e7a0f2aba0e629e23d89f07c7fc0e6a5e ( #33075 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33075
Previous import was 65020daafa9183c769938b4512ce543fd5740f8f
Included changes:
- **[8b3f7e2e](https://github.com/onnx/onnx/commit/8b3f7e2e )**: Update Dropout and BatchNorm to be Training Friendly (#2568 ) <Lara Haidar>
- **[61f0bbc5](https://github.com/onnx/onnx/commit/61f0bbc5 )**: Fix a bug in ScatterND shape inference (#2577 ) <Bowen Bao>
- **[05bce9cf](https://github.com/onnx/onnx/commit/05bce9cf )**: add utility function to make reference attribute whose name is not the same as the attribute it refers. (#2583 ) <Ke Zhang>
- **[71181c83](https://github.com/onnx/onnx/commit/71181c83 )**: Clarify spec for constant of shape with dim_n = 0 (#2567 ) <Negin Raoof>
- **[eadba733](https://github.com/onnx/onnx/commit/eadba733 )**: Update sigs.md with link to calendar page (#2579 ) <Prasanth Pulavarthi>
- **[08562f8e](https://github.com/onnx/onnx/commit/08562f8e )**: Update working-groups.md (#2580 ) <Prasanth Pulavarthi>
- **[0e718913](https://github.com/onnx/onnx/commit/0e718913 )**: Fix Slice op's shape inference logic (#2526 ) <Hariharan Seshadri>
- **[12111410](https://github.com/onnx/onnx/commit/12111410 )**: Add missing spaces to Random*Like doc (#2572 ) <Takeshi Watanabe>
- **[7e6e61d6](https://github.com/onnx/onnx/commit/7e6e61d6 )**: Contributing: fix typos (#2571 ) <Maher Jendoubi>
- **[bbd604ef](https://github.com/onnx/onnx/commit/bbd604ef )**: Add Einsum op (#2504 ) <Negin Raoof>
- **[fd3ab73a](https://github.com/onnx/onnx/commit/fd3ab73a )**: Clarify split supports zero length splits (#2544 ) <Negin Raoof>
- **[6dd73774](https://github.com/onnx/onnx/commit/6dd73774 )**: Fix circleci build and drop unsupported Windows builds (#2565 ) <Wei-Sheng Chin>
- **[b3d201a2](https://github.com/onnx/onnx/commit/b3d201a2 )**: Fix the formula of intermediate zero calculation for DynamicQuantizeLinear (#2556 ) <Yufeng Li>
- **[3613eb25](https://github.com/onnx/onnx/commit/3613eb25 )**: Add wording to clarify. (#2555 ) <Dwayne Robinson>
- **[dfa4384c](https://github.com/onnx/onnx/commit/dfa4384c )**: Fix shape inference for Split with split attribute (#2328 ) <Shinichiro Hamaji>
- **[684fc1bc](https://github.com/onnx/onnx/commit/684fc1bc )**: Keep symbolic dims in Concat with a single input (#2418 ) <Shinichiro Hamaji>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D19784487
fbshipit-source-id: 421cdc3394faeff0168853f4ff065fc599ca3967
2020-02-07 02:18:57 -08:00
Lu Fang
f6f1e0aef5
Automatic update of fbcode/onnx to 65020daafa9183c769938b4512ce543fd5740f8f ( #32125 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32125
Previous import was 57ebc587fcf3913b4be93653b0dd58c686447298
Included changes:
- **[65020daa](https://github.com/onnx/onnx/commit/65020daa )**: better error message for undefined inputs (#2540 ) <Yuxin Wu>
- **[8afff0e9](https://github.com/onnx/onnx/commit/8afff0e9 )**: bump ORT version (#2538 ) <Lu Fang>
- **[3d9ca57e](https://github.com/onnx/onnx/commit/3d9ca57e )**: fix name of directory (#2537 ) <Prasanth Pulavarthi>
- **[df8fa2c9](https://github.com/onnx/onnx/commit/df8fa2c9 )**: Repository guidelines (#2539 ) <Prasanth Pulavarthi>
- **[49cc2f02](https://github.com/onnx/onnx/commit/49cc2f02 )**: Update CircleCI job to use Python3.6 (#2527 ) <bddppq>
- **[25ff79a4](https://github.com/onnx/onnx/commit/25ff79a4 )**: Fix wrong model version, it's not 12 (the onnx_opset_version()), not 11 (the opset version of the latest stable), but 10 (#2478 ) <daquexian>
- **[7cebaed5](https://github.com/onnx/onnx/commit/7cebaed5 )**: Fix Windows py3.5 CI (#2529 ) <bddppq>
- **[eddae00e](https://github.com/onnx/onnx/commit/eddae00e )**: Correct the order of arguments of InferShapes (#2500 ) <Shinichiro Hamaji>
- **[41b5afe6](https://github.com/onnx/onnx/commit/41b5afe6 )**: Include <ostream> in common/status.h (#2519 ) <Casey Carter>
- **[423f1977](https://github.com/onnx/onnx/commit/423f1977 )**: add 8 bit support to maxpool op (#2510 ) <Ashwini Khade>
- **[78593c2f](https://github.com/onnx/onnx/commit/78593c2f )**: add 8 bit support to reducemin and reducemax ops (#2516 ) <Ashwini Khade>
Test Plan: cont build
Reviewed By: benoitsteiner
Differential Revision: D19380034
fbshipit-source-id: ddce8450864a611773b2a32e2f0254c9bb6b6906
2020-01-14 15:21:37 -08:00
Lu Fang
c34ef1aa2e
Automatic update of fbcode/onnx to c08a7b76cf7c1555ae37186f12be4d62b2c39b3b ( #30619 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30619
Previous import was fea8568cac61a482ed208748fdc0e1a8e47f62f5
Included changes:
- **[c08a7b76](https://github.com/onnx/onnx/commit/c08a7b76 )**: doc: fix some typos at ONNXIFI (#2473 ) <Yorkie Liu>
- **[4be12d46](https://github.com/onnx/onnx/commit/4be12d46 )**: remove workshop update since it is done (#2460 ) <Prasanth Pulavarthi>
- **[86107d1b](https://github.com/onnx/onnx/commit/86107d1b )**: Updated with correct URL to LICENSE (#2468 ) <Ryan Loney>
- **[9bf6fbb6](https://github.com/onnx/onnx/commit/9bf6fbb6 )**: Update Argmin/Argmax (#2461 ) <Lara Haidar>
- **[748d81b8](https://github.com/onnx/onnx/commit/748d81b8 )**: Fix windows conda build (#2452 ) <Ashwini Khade>
- **[a32db1c5](https://github.com/onnx/onnx/commit/a32db1c5 )**: Delete duplicate word in comment (#2439 ) <Haibo Hao>
- **[e108da9a](https://github.com/onnx/onnx/commit/e108da9a )**: Fix bug in function body verifier (#2390 ) <G. Ramalingam>
- **[c3d3ef82](https://github.com/onnx/onnx/commit/c3d3ef82 )**: docs: fix typo in IR.md (#2441 ) <Elliot Waite>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D18766132
fbshipit-source-id: 13c04f21399579acb87a8f9fac2e4c329b0720b8
2019-12-10 10:15:08 -08:00
Lu Fang
d6ee58494f
Automatic update of fbcode/onnx to 23bb6ea1a71f08e200114a153f48bd7adb66d486 ( #26441 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26441
Previous import was 1316afc9f972f81340faa05763e2898f38bcc3b0
Included changes:
- **[23bb6ea1](https://github.com/onnx/onnx/commit/23bb6ea1 )**: Gemm optional bias (#2330 ) <James Allingham>
- **[1ac1f219](https://github.com/onnx/onnx/commit/1ac1f219 )**: Changes for AIX platform (#1913 ) <kavanabhat>
- **[13b026f5](https://github.com/onnx/onnx/commit/13b026f5 )**: Updated test cases for reshape (#2127 ) <James Allingham>
- **[97fcfe30](https://github.com/onnx/onnx/commit/97fcfe30 )**: Replace is by == (#2326 ) <G. Ramalingam>
- **[3b5601e6](https://github.com/onnx/onnx/commit/3b5601e6 )**: Updated docs for strides and dilations attributes (#2291 ) <James Allingham>
- **[d0c697b1](https://github.com/onnx/onnx/commit/d0c697b1 )**: Revamped test cases for Gemm (#2060 ) <James Allingham>
- **[a3955c3c](https://github.com/onnx/onnx/commit/a3955c3c )**: Add more shape inference tests for Logical operators to improve coverage (#2133 ) <Hariharan Seshadri>
- **[e2e12d97](https://github.com/onnx/onnx/commit/e2e12d97 )**: Change incorrect use of ValueError to TypeError (#2304 ) <prcvih>
- **[1f4b5f8c](https://github.com/onnx/onnx/commit/1f4b5f8c )**: Support dynamic 'pads' and 'value' in Pad operator (#2031 ) <Hariharan Seshadri>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D17466717
fbshipit-source-id: 0f89a7a5a821d2c693492c99b4bebd5966e21d9f
2019-09-24 05:38:52 -07:00
Lu Fang
bebc3d6aad
Automatic update of fbcode/onnx to 1316afc9f972f81340faa05763e2898f38bcc3b0 ( #26309 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26309
Previous import was 95252c2adec185e305e34486c6756ece9aa8f57f
Included changes:
- **[1316afc9](https://github.com/onnx/onnx/commit/1316afc9 )**: Update IR doc to clarify initializers are permitted as node inputs (#2320 ) <G. Ramalingam>
- **[5e920d0c](https://github.com/onnx/onnx/commit/5e920d0c )**: Avoid uses of special chars (#2315 ) <Wei-Sheng Chin>
- **[2fa08b0f](https://github.com/onnx/onnx/commit/2fa08b0f )**: Regenerate ONNX proto and add release date to ver 6 IR (#2316 ) <Wei-Sheng Chin>
- **[adf9c7a3](https://github.com/onnx/onnx/commit/adf9c7a3 )**: Add description of default type about y_zero_point (#2110 ) <Takeshi Watanabe>
- **[ee7072c7](https://github.com/onnx/onnx/commit/ee7072c7 )**: Support make_attribute empty string (#2129 ) <shjwudp>
- **[f913b6e7](https://github.com/onnx/onnx/commit/f913b6e7 )**: More unsqueeze tests (#2200 ) <James Allingham>
- **[57b51937](https://github.com/onnx/onnx/commit/57b51937 )**: Fix resize shape inference issue in opset10 (#2294 ) <Bowen Bao>
- **[d7595f34](https://github.com/onnx/onnx/commit/d7595f34 )**: Sequence related ops (#2249 ) <Bowen Bao>
- **[599f3da9](https://github.com/onnx/onnx/commit/599f3da9 )**: Add helper function update_inputs_outputs_dims to tools (#2148 ) <Bowen Bao>
- **[3e6382bc](https://github.com/onnx/onnx/commit/3e6382bc )**: Update documentation about required input output types (#2310 ) <G. Ramalingam>
- **[0c765d9b](https://github.com/onnx/onnx/commit/0c765d9b )**: Shape inference for NMS (#2269 ) <Hariharan Seshadri>
- **[89266710](https://github.com/onnx/onnx/commit/89266710 )**: Fix extra collect_snippets warning (#2277 ) (#2307 ) <Lutz Roeder>
Test Plan: ci
Reviewed By: hl475
Differential Revision: D17403954
fbshipit-source-id: 78a9c3ecf5aa7f7a0ba8ea30286eab61ee903772
2019-09-17 06:46:59 -07:00
Lu Fang
7e4ac8b851
Automatic update of fbcode/onnx to 7988d8360b11e6003560076e9b1d4aa426db3244 ( #25959 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25959
Previous import was 28ca699b69b5a31892619defca2391044a9a6052
Included changes:
- **[7988d836](https://github.com/onnx/onnx/commit/7988d836 )**: Supporting negative axes for all existing onnx ops (#2281 ) <Negin Raoof>
- **[5ca0a09e](https://github.com/onnx/onnx/commit/5ca0a09e )**: Update managingexperimentalops.md (#1981 ) <Joseph Spisak>
- **[bc0495c1](https://github.com/onnx/onnx/commit/bc0495c1 )**: Fix link to community docs in readme (#2261 ) <Prasanth Pulavarthi>
- **[2fdb3ef6](https://github.com/onnx/onnx/commit/2fdb3ef6 )**: move map and sequence types to onnx domain, (#2244 ) <Ke Zhang>
- **[568b65aa](https://github.com/onnx/onnx/commit/568b65aa )**: Improve compatiblity with proto3 and enable reading attributes (#2288 ) <Dmitri Smirnov>
- **[1f350f2c](https://github.com/onnx/onnx/commit/1f350f2c )**: Remove type info for loop variadic input in Loop op used to compose the Range op (#2287 ) <Hariharan Seshadri>
- **[eb139446](https://github.com/onnx/onnx/commit/eb139446 )**: Add Foundation WG to working-groups.md (#2276 ) <Ryan Loney>
- **[4eabc4b3](https://github.com/onnx/onnx/commit/4eabc4b3 )**: Fix testdata model for CumSum. Add exclusive attribute. (#2271 ) <jignparm>
- **[1a62afdb](https://github.com/onnx/onnx/commit/1a62afdb )**: Support GatherND operator in ONNX (#2106 ) <Hariharan Seshadri>
- **[0e330e9d](https://github.com/onnx/onnx/commit/0e330e9d )**: Support ScatterND operator in ONNX (#2220 ) <Bowen Bao>
- **[733f7a6a](https://github.com/onnx/onnx/commit/733f7a6a )**: Add Det to ONNX (#2233 ) <Bowen Bao>
- **[52187738](https://github.com/onnx/onnx/commit/52187738 )**: Update the description of nearest_mode of resize op (#2257 ) <daquexian>
- **[64b4b686](https://github.com/onnx/onnx/commit/64b4b686 )**: Adding sparse tensor to ONNX (#2019 ) <G. Ramalingam>
- **[c8a8b7cc](https://github.com/onnx/onnx/commit/c8a8b7cc )**: Support Range operator in ONNX (#2242 ) <Hariharan Seshadri>
- **[44b0d6d5](https://github.com/onnx/onnx/commit/44b0d6d5 )**: Update resize op (#2057 ) <daquexian>
- **[7d907964](https://github.com/onnx/onnx/commit/7d907964 )**: Add function to fuse dynamic quantization graph into 1 node (#2187 ) <Ashwini Khade>
- **[36f8e6d9](https://github.com/onnx/onnx/commit/36f8e6d9 )**: Update logo_request.md (#2231 ) <Prasanth Pulavarthi>
- **[4eb737c8](https://github.com/onnx/onnx/commit/4eb737c8 )**: Update Clip in opset 11 to support min/max as inputs instead of attributes (#2096 ) <Bowen Bao>
- **[a25e1388](https://github.com/onnx/onnx/commit/a25e1388 )**: Fix segfault in tile shape inference (#2221 ) <daquexian>
- **[2dc273c7](https://github.com/onnx/onnx/commit/2dc273c7 )**: update onehot shape inference to reflect the spec for depth input (#2224 ) <Ashwini Khade>
- **[665211c1](https://github.com/onnx/onnx/commit/665211c1 )**: Add GatherElements Op and Rename ScatterElements (#2143 ) <Lara Haidar>
- **[3ba2e31a](https://github.com/onnx/onnx/commit/3ba2e31a )**: Unique (#2141 ) <liqunfu>
- **[5a5588ad](https://github.com/onnx/onnx/commit/5a5588ad )**: Clarify dimension variable scoping (#2211 ) <G. Ramalingam>
- **[fabe39d5](https://github.com/onnx/onnx/commit/fabe39d5 )**: Liqun/topk sort (#2126 ) <liqunfu>
- **[453aa644](https://github.com/onnx/onnx/commit/453aa644 )**: Update document for NMS (#2193 ) <Hector Li>
- **[34e28ec2](https://github.com/onnx/onnx/commit/34e28ec2 )**: Handle negative 'axis' value in Split type and shape inferencing (#2177 ) <Scott McKay>
- **[28ec4583](https://github.com/onnx/onnx/commit/28ec4583 )**: depth to space shuffle order (#2163 ) <Negin Raoof>
- **[98f72629](https://github.com/onnx/onnx/commit/98f72629 )**: minor updates to fix links in readme (#2189 ) <Prasanth Pulavarthi>
- **[321d1467](https://github.com/onnx/onnx/commit/321d1467 )**: Add check to disallow squeezing input axes which are not 1 (#2204 ) <Ashwini Khade>
- **[573f0dc9](https://github.com/onnx/onnx/commit/573f0dc9 )**: fix a bug in fun shape inference (#2188 ) <Tang, Cheng>
- **[36dc7110](https://github.com/onnx/onnx/commit/36dc7110 )**: Clarify ambiguity in gather spec regarding indices expectation (#2202 ) <Ashwini Khade>
- **[a2449673](https://github.com/onnx/onnx/commit/a2449673 )**: Fix some minor issues in IR.md and Versioning.md (#2108 ) <edgchen1>
- **[349aff69](https://github.com/onnx/onnx/commit/349aff69 )**: Skip install typing package for python >=3.5 (#2199 ) <bddppq>
Test Plan: ci
Reviewed By: bddppq, benoitsteiner
Differential Revision: D17296390
fbshipit-source-id: 9f9f5ce85d9694128008d756c2ea393bd4e0cb71
2019-09-12 12:15:03 -07:00
neginraoof
3574d9ff70
updated pixel_shuffle in opset 11 to use depthToSpace
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23739
Differential Revision: D16800355
Pulled By: bddppq
fbshipit-source-id: 1502c5b7ec1495286bad17b6ffa359cf995f78fb
2019-08-15 11:37:44 -07:00
Lu Fang
796a39ba85
Automatic update of fbcode/onnx to 707064980b9825b8705b9d1c9aad34d8b022d5dd ( #22981 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22981
Previous import was 806aa863020fa180e57f576cb032ec44ce8ddcca
Included changes:
- **[70706498](https://github.com/onnx/onnx/commit/70706498 )**: TensorProto::INT8 & INT16 were missed here (#2164 ) <ZINEKS>
- **[8218a4ea](https://github.com/onnx/onnx/commit/8218a4ea )**: Fix LabelEncoder's shape inference (#2170 ) <Wei-Sheng Chin>
- **[0f1a9a1c](https://github.com/onnx/onnx/commit/0f1a9a1c )**: Fixing a unit test in Cumsum Operator (#2157 ) <Jeff Saremi>
- **[2c03cff0](https://github.com/onnx/onnx/commit/2c03cff0 )**: [New Operator] CumSum (#2030 ) <Jeff Saremi>
- **[220b8300](https://github.com/onnx/onnx/commit/220b8300 )**: Fix globalpool output shape (#2147 ) <daquexian>
Reviewed By: benoitsteiner
Differential Revision: D16341736
fbshipit-source-id: 7e7a2684d8c821991231bfd6558f9f6cb4fb05fb
2019-07-17 14:05:14 -07:00
hexiaoting
34536e207a
Fix: convert Onnx DynamicSlice operator with 4 inputs to caffe2 fa… ( #20846 )
...
Summary:
I reported an issue [https://github.com/pytorch/pytorch/issues/20743 ](url)
and make this pull request for it
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20846
Reviewed By: zrphercule
Differential Revision: D15569135
Pulled By: houseroad
fbshipit-source-id: 96a2c818ef666a7d79b96decfa347d7154b34d5c
2019-06-19 00:09:15 -07:00
Lu Fang
c2a08d339b
Automatic update of fbcode/onnx to dd599b05f424eb161a31f3e059566a33310dbe5e ( #21641 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21641
Previous import was 5160f3ac3380302224998f1c95e111cd961c4bc5
Included changes:
- **[dd599b05](https://github.com/onnx/onnx/commit/dd599b05 )**: Fix type s/depracted/deprecated/ (#2092 ) <Takeshi Watanabe>
- **[abb1702a](https://github.com/onnx/onnx/commit/abb1702a )**: Add shape inference for Tile op (#2076 ) <Hariharan Seshadri>
- **[67638d9c](https://github.com/onnx/onnx/commit/67638d9c )**: [New Operator] Round (#2053 ) <Jeff Saremi>
- **[584e4477](https://github.com/onnx/onnx/commit/584e4477 )**: Add dilations support in ConvTranspose shape inference and update docs (#2068 ) <daquexian>
Reviewed By: zrphercule
Differential Revision: D15762382
fbshipit-source-id: 590f25fb733e1565eb90fcdeb797b0ba34e2d2c3
2019-06-11 16:54:47 -07:00
Lu Fang
07ac00d21a
Automatic update of fbcode/onnx to 9005291283e943f1a91da5f0acf218bc4e8eb2ca ( #21057 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21057
Previous import was cc2333a3f929caca7223b98699237f19388dd585
Included changes:
- **[90052912](https://github.com/onnx/onnx/commit/90052912 )**: Fix wrong condition and add --user in update_doc.sh (#2050 ) <daquexian>
- **[a4f44a20](https://github.com/onnx/onnx/commit/a4f44a20 )**: Add bit-shift operators for supporting hashing (#1931 ) <Wei-Sheng Chin>
- **[0098752c](https://github.com/onnx/onnx/commit/0098752c )**: Add shape inference logic for Expand op (#2041 ) <Hariharan Seshadri>
- **[fbe8addb](https://github.com/onnx/onnx/commit/fbe8addb )**: update qops tests (#2040 ) <Ashwini Khade>
- **[874fb37c](https://github.com/onnx/onnx/commit/874fb37c )**: Fix torchvision installation (#2054 ) <bddppq>
- **[1f5f6582](https://github.com/onnx/onnx/commit/1f5f6582 )**: Fix bug that kernel_shape rather than effective_kernel_shape is used in dilated conv (#2043 ) <daquexian>
- **[38b6c44e](https://github.com/onnx/onnx/commit/38b6c44e )**: Changes done internally at Facebook (#2035 ) <Lu Fang>
- **[5c51f0db](https://github.com/onnx/onnx/commit/5c51f0db )**: Explicitly specify type of integers in the input tensor. (#2034 ) <Dmitri Smirnov>
Reviewed By: benoitsteiner
Differential Revision: D15534241
fbshipit-source-id: 8d2b78a986e5b7fbeb248f2d7b80c1a07230654e
2019-05-30 17:33:18 -07:00
Junjie Bai
8defcbfcf4
Enable caffe2 softmax tests with ROCm 2.4 ( #20280 )
...
Summary:
cc xw285cornell petrex
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20280
Reviewed By: xw285cornell
Differential Revision: D15262695
Pulled By: bddppq
fbshipit-source-id: d72490ff599cdab0331230bc9b12075085386319
2019-05-08 13:29:11 -07:00
Lu Fang
5025d1d5e4
Automatic update of fbcode/onnx to 27d4b617e7097cda7d0d4c45ff2b09d248f33179 ( #19718 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19718
Previous import was 0e8d2bc5e51455c70ef790b9f65aa632ed9bc8a7
Included changes:
- **[27d4b617](https://github.com/onnx/onnx/commit/27d4b617 )**: Adding RoIAlign operator (#1869 ) <Sam Pepose>
- **[70c9026c](https://github.com/onnx/onnx/commit/70c9026c )**: add ReverseSequence op (#1927 ) <Guoliang Hua>
- **[ed2db02a](https://github.com/onnx/onnx/commit/ed2db02a )**: README.md: Update badge style for build status (#1942 ) <Yulong Wang>
- **[e36d3b54](https://github.com/onnx/onnx/commit/e36d3b54 )**: Enable python 3.7 in CI for Windows (#1943 ) <Raymond Yang>
Differential Revision: D15077516
fbshipit-source-id: c8c6935381ff5a96ab9a4ee519685814f4ea6e59
2019-04-25 10:54:15 -07:00
Lu Fang
5a796d15be
Automatic update of fbcode/onnx to 0e8d2bc5e51455c70ef790b9f65aa632ed9bc8a7 ( #19568 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19568
Previous import was 83dd62659fc07d5b7fa93b5d1c1879f93509c7db
Included changes:
- **[0e8d2bc5](https://github.com/onnx/onnx/commit/0e8d2bc5 )**: [Minor need to be in 1.5]Fix an issue in NMS test data which introduce wrong shape. (#1953 ) <Hector Li>
- **[9346dd5d](https://github.com/onnx/onnx/commit/9346dd5d )**: adding modulus operator (#1874 ) <Jeff Saremi>
- **[414dbc73](https://github.com/onnx/onnx/commit/414dbc73 )**: Fix shape inference for slice (#1950 ) <Hariharan Seshadri>
- **[6fb0775d](https://github.com/onnx/onnx/commit/6fb0775d )**: Fix shape inference for ConstantOfShape op (#1951 ) <Ashwini Khade>
Reviewed By: bddppq, zrphercule, benoitsteiner
Differential Revision: D15033070
fbshipit-source-id: f7eb90b142cbdc9bf1600cfd33e5a8df709045fb
2019-04-22 17:36:36 -07:00
Michael Antonov
7655b857f7
Add debug logic to c2_ref_test and its helpers ( #19359 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19359
Even with file IO exception handling, some of the sandcastle c2_ref_tests are still failing in length-check assert, as can be seen here:
https://our.intern.facebook.com/intern/test/844424932589974?ref_report_id=0
This is an attempt to add printing logic to debug what's going on.
Reviewed By: dzhulgakov
Differential Revision: D14966274
fbshipit-source-id: adce6d4780d664c5ef59f9341b6133b0d09324cb
2019-04-22 12:08:55 -07:00
Lu Fang
e714429bf4
Automatic update of fbcode/onnx to 83dd62659fc07d5b7fa93b5d1c1879f93509c7db ( #19454 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19454
Previous import was ad7313470a9119d7e1afda7edf1d654497ee80ab
Included changes:
- **[83dd6265](https://github.com/onnx/onnx/commit/83dd6265 )**: Add NonMaxSuppression operator (#1703 ) <Hector Li>
- **[31ca5d6f](https://github.com/onnx/onnx/commit/31ca5d6f )**: add node tests for quantized ops (#1944 ) <Ashwini Khade>
- **[e6076c1d](https://github.com/onnx/onnx/commit/e6076c1d )**: Fix test stat coverage script (#1948 ) <Raymond Yang>
- **[ad036405](https://github.com/onnx/onnx/commit/ad036405 )**: Add IsInf to detect infinity values (#1884 ) <Wei-Sheng Chin>
Reviewed By: benoitsteiner
Differential Revision: D15010015
fbshipit-source-id: 4b29de21de60f8e6a2db75309809a4e619c92532
2019-04-22 10:46:08 -07:00
Lu Fang
a5a1c9a171
Automatic update of fbcode/onnx to fb1a80692c1ab0bd27b1072f2e7bffacba336777 ( #18585 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18585
Previous import was b29e78a4efb8e5d8995f576bbf19a846807829b6
Included changes:
- **[fb1a8069](https://github.com/onnx/onnx/commit/fb1a8069 )**: Fix wrongly handled attribute in MVN and test generating scripts (#1877 ) <Raymond Yang>
- **[b22041c3](https://github.com/onnx/onnx/commit/b22041c3 )**: Add dilation attribute to MaxPool (#1864 ) <karljang>
Reviewed By: zrphercule, benoitsteiner
Differential Revision: D14668623
fbshipit-source-id: fa7f44b1ecc949d8dd654939d20b1e93db98b1d2
2019-03-28 23:47:10 -07:00
bddppq
1989716ae5
Resubmit PR-18512: Improved onnx export for 3 onnx ops ( #18571 )
...
Summary:
Fix ROCm CI failure
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18571
Differential Revision: D14669323
Pulled By: bddppq
fbshipit-source-id: 022afe5c20e680295c9cfdfe1ec14650305955a8
2019-03-28 18:12:49 -07:00
Junjie Bai
77280b11e3
Revert D14635130: Improved onnx export for 3 onnx ops.
...
Differential Revision:
D14635130
Original commit changeset: d54a2b6e2950
fbshipit-source-id: f624e2befdde245cb88435a95508b2a8e6b12e61
2019-03-28 10:26:34 -07:00
Benoit Steiner
eee760dbd3
Improved onnx export for 3 onnx ops. ( #18512 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18512
Ceil and Floor have been supported since version 6 of ONNX: export them using the native onnx ops instead of an Aten op.
Similarly, support for the Where op has been added in version 9, so we don't need to wrap these op in an Aten op.
Reviewed By: houseroad
Differential Revision: D14635130
fbshipit-source-id: d54a2b6e295074a6214b5939b21051a6735c9958
2019-03-28 08:55:21 -07:00
Min Ni
c3e3c5cc39
Skip tests if C2/ONNX models cannot be read ( #18494 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18494
Today we have some C2 end2end test run requiring reading model data from external filesystem (for example, Gluster and AWS). This could be a source for flaky test when the external filesystems are not reachable during the tests.
In this diff, we add try/catch logic around where we download models and open model files from external system. In case such attempts fails, we will catch the excption and let the unittest skip the current test instead of failure.
I also refactor the code a little bit by removing some duplicated logic on downloading and build the c2 model data. It has been duplicated in two classes and a few functions...
Reviewed By: yinghai
Differential Revision: D14442241
fbshipit-source-id: da8bf56c8d096efa34ca2070de5cd10a18aad70c
2019-03-27 11:21:44 -07:00
Lu Fang
afc7574aed
Automatic update of fbcode/onnx to c05f2ae412daf8fd64136ca354b97ccf73e0ea6c ( #18285 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18285
Previous import was 96c58ceeacf0f2b73d752e413e4fd78787a12da3
Included changes:
- **[c05f2ae4](https://github.com/onnx/onnx/commit/c05f2ae4 )**: update both core and ml docs (#1879 ) <Lu Fang>
- **[f895279b](https://github.com/onnx/onnx/commit/f895279b )**: fix the problems introduced in previous PRs in operator registration (#1878 ) <Lu Fang>
- **[f6f80657](https://github.com/onnx/onnx/commit/f6f80657 )**: Skip the schema check on ops in non-standard domain (#1876 ) <Lu Fang>
- **[8c8be722](https://github.com/onnx/onnx/commit/8c8be722 )**: Introduce Function Body Helper (#1868 ) <Sherlock>
- **[b605eafb](https://github.com/onnx/onnx/commit/b605eafb )**: Support down sampling for Upsample with scales < 1. (#1773 ) <Ke Zhang>
- **[47f7aa71](https://github.com/onnx/onnx/commit/47f7aa71 )**: Remove scaledtanh (#1866 ) <Ashwini Khade>
- **[4dfc56de](https://github.com/onnx/onnx/commit/4dfc56de )**: Add Ceil support for Max and Average Pooling (#1860 ) <Lara Haidar>
- **[552a8efc](https://github.com/onnx/onnx/commit/552a8efc )**: Add testcase generator for functions (#1862 ) <Raymond Yang>
- **[fdb978a5](https://github.com/onnx/onnx/commit/fdb978a5 )**: Promote Thresholded Relu Op (#1856 ) <Ashwini Khade>
- **[ce332628](https://github.com/onnx/onnx/commit/ce332628 )**: Update Slice with dynamic input & optional input steps (#1836 ) <Bowen Bao>
- **[3a9a8787](https://github.com/onnx/onnx/commit/3a9a8787 )**: Merge function into opschema (#1834 ) <Raymond Yang>
- **[3dbf8fe9](https://github.com/onnx/onnx/commit/3dbf8fe9 )**: Handle string comparision represented as np.objects (#1851 ) <Dmitri Smirnov>
- **[3b0d3bb2](https://github.com/onnx/onnx/commit/3b0d3bb2 )**: remove global variable in header file (#1850 ) <Lu Fang>
- **[1cca8733](https://github.com/onnx/onnx/commit/1cca8733 )**: bump the version for drop out - fix the issue that the version was not bumped when changing its type constraint declaration. (#1848 ) <Ke Zhang>
- **[1ec81bc6](https://github.com/onnx/onnx/commit/1ec81bc6 )**: Change TopK operator to allow dynamic 'k' (#1829 ) <Hariharan Seshadri>
- **[a89a4a16](https://github.com/onnx/onnx/commit/a89a4a16 )**: Remove exp op: Affine, ImageScaler,ParametricSoftplus, Crop. (#1832 ) <Ke Zhang>
Reviewed By: yinghai
Differential Revision: D14566202
fbshipit-source-id: b1e5912ae6887e2865fc628363071e2b9938dfa4
2019-03-22 00:13:42 -07:00
Lu Fang
29c27d7b99
Automatic update of fbcode/onnx to e18bb41d255a23daf368ffd62a2645db55db4c72 ( #17460 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17460
Previous import was 4c091e048ca42682d63ccd3c1811560bc12b732d
Included changes:
- **[e18bb41](https://github.com/onnx/onnx/commit/e18bb41 )**: Infer shape of the second output of Dropout op (#1822 ) <Shinichiro Hamaji>
- **[cb544d0](https://github.com/onnx/onnx/commit/cb544d0 )**: Clarify dtype of Dropout's mask output (#1826 ) <Shinichiro Hamaji>
- **[b60f693](https://github.com/onnx/onnx/commit/b60f693 )**: Fix shape inference when auto_pad is notset (#1824 ) <Li-Wen Chang>
- **[80346bd](https://github.com/onnx/onnx/commit/80346bd )**: update test datat (#1825 ) <Rui Zhu>
- **[b37fc6d](https://github.com/onnx/onnx/commit/b37fc6d )**: Add stringnormalizer operator to ONNX (#1745 ) <Dmitri Smirnov>
Reviewed By: zrphercule
Differential Revision: D14206264
fbshipit-source-id: 0575fa3374ff2b93b2ecee9989cfa4793c599117
2019-02-25 11:09:08 -08:00
Tongliang Liao
65ecef1509
Export ElementwiseLinear to ONNX (Mul + Add). ( #17411 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17411
Reshape-based approach to support dynamic shape.
The first Reshape flatten inner dimensions and the second one recover the actual shape.
No Shape/Reshape will be generated unless necessary.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/16716
Reviewed By: zrphercule
Differential Revision: D14094532
Pulled By: houseroad
fbshipit-source-id: bad6a1fbf5963ef3dd034ef4bf440f5a5d6980bc
2019-02-25 08:11:13 -08:00
Junjie Bai
bf16a6bc3c
Skip onnx logsoftmax tests in rocm ( #17170 )
...
Summary:
similar to softmax there are issues of getting nan randomly
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17170
Differential Revision: D14110515
Pulled By: bddppq
fbshipit-source-id: 5c97661184d45a02122fd69d35a839fdf4520c8c
2019-02-16 18:06:04 -08:00
Tongliang Liao
a670824fee
Support FC (Caffe2) -> Gemm (ONNX) with variable input shape. ( #16184 )
...
Summary:
For >2D input, previously the code uses static shape captured during tracing and reshape before/after `Gemm`.
Now we add `-1` to the first `Reshape`, and uses `Shape(X) => Slice(outer) => Concat(with -1 for inner) => Reshape` for the second.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16184
Differential Revision: D14070754
Pulled By: ezyang
fbshipit-source-id: 86c69e9b254945b3406c07e122e57a00dfeba3df
2019-02-13 17:12:34 -08:00
Tongliang Liao
491f2d4cb8
Support conversion from Caffe2 MergeDim to ONNX Reshape + Squeeze. ( #16189 )
...
Summary:
`MergeDim` can be done by `Reshape([1, -1, 0, 0, ...]) + Squeeze`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16189
Differential Revision: D14070676
Pulled By: ezyang
fbshipit-source-id: 28d7e9b35cc2c1dcbd4afb3fbdf7383e219b1777
2019-02-13 15:53:38 -08:00
Tongliang Liao
0eee56fff7
Export ReduceMean/ReduceFrontMean/ReduceBackMean (Caffe2) to ReduceMean (ONNX). ( #16727 )
...
Summary:
The second input (`lengths`) is not supported.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16727
Differential Revision: D14054105
Pulled By: houseroad
fbshipit-source-id: 36b8d00460f9623696439e1bd2a6bc60b7bb263c
2019-02-12 13:35:32 -08:00
Wanchao Liang
ac00e85e36
Remove undefined tensor in jit script ( #16379 )
...
Summary:
This PR is a follow up of #15460 , it did the following things:
* remove the undefined tensor semantic in jit script/tracing mode
* change ATen/JIT schema for at::index and other index related ops with `Tensor?[]` to align with what at::index is really doing and to adopt `optional[tensor]` in JIT
* change python_print to correctly print the exported script
* register both TensorList and ListOfOptionalTensor in JIT ATen ops to support both
* Backward compatibility for `torch.jit.annotate(Tensor, None)`
List of follow ups:
* remove the undefined tensor semantic in jit autograd, autodiff and grad_of
* remove prim::Undefined fully
For easy reviews, please turn on `hide white space changes` in diff settings.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16379
Differential Revision: D13855677
Pulled By: wanchaol
fbshipit-source-id: 0e21c14d7de250c62731227c81bfbfb7b7da20ab
2019-02-07 11:02:14 -08:00
Lu Fang
719134f3c3
Automatic update of fbcode/onnx to 15c33c945851907411619f599900c3852108e7e3 ( #16493 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16493
Previous import was dc75285d4a1cff9618400164dfdb26c5a1bab70a
Included changes:
- **[15c33c9](https://github.com/onnx/onnx/commit/15c33c9 )**: Add ppc64le build (#1768 ) <Chin Huang>
- **[198f840](https://github.com/onnx/onnx/commit/198f840 )**: Update Broadcasting.md (#1769 ) <Verma-Rajat>
- **[60ac95f](https://github.com/onnx/onnx/commit/60ac95f )**: Merge back from release 1.4.1 (#1767 ) <Raymond Yang>
- **[a683372](https://github.com/onnx/onnx/commit/a683372 )**: Bump up version number for v1.4.0 (#1761 ) (#1763 ) <Raymond Yang>
- **[dbf3581](https://github.com/onnx/onnx/commit/dbf3581 )**: Add TfIdfVectorizer operator to ONNX (#1721 ) <Dmitri Smirnov>
Reviewed By: zrphercule
Differential Revision: D13858840
fbshipit-source-id: 1d00f63f265cc6deed965b92ed00c44f547ff03e
2019-01-29 13:48:49 -08:00