Will Feng
57eab22c6a
Use c10::variant-based enums for F::grid_sample
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29535
Test Plan: Imported from OSS
Differential Revision: D18432273
Pulled By: yf225
fbshipit-source-id: 11476f0431a9b544dfb62bc7a89bab84399f9b83
2019-11-12 16:05:26 -08:00
Will Feng
e33b4b6761
Use c10::variant-based enums for Reduction
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/27942
Test Plan: Imported from OSS
Differential Revision: D18202857
Pulled By: yf225
fbshipit-source-id: 0303ce2508e3b7665c6a91ae270a7d0ef0e45900
2019-10-29 14:15:48 -07:00
jon-tow
52dd587123
C++ API parity: Upsample ( #28413 )
...
Summary:
Adds `interpolate` functional and `Upsample` module support for the C++ API.
**Issue**: https://github.com/pytorch/pytorch/issues/25883
**Reviewer**: yf225
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28413
Differential Revision: D18165014
Pulled By: yf225
fbshipit-source-id: ecae2f432a301b1f4afa7c038b2d104cbad139f2
2019-10-28 21:34:44 -07:00
Will Feng
d04973beda
Use c10::variant-based enums for EmbeddingBag mode ( #28330 )
...
Summary:
This PR is BC-breaking in the following way:
Previous, we require the use of `std::string` to specify the mode for `EmbeddingBag`. After this PR, we use variant-based enums such as `torch::kSum` / `torch::kMean` / `torch::kMax` to specify the mode for `EmbeddingBag`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28330
Differential Revision: D18127116
Pulled By: yf225
fbshipit-source-id: 15cd86c764777f4d399587be92cda15b6ce8524b
2019-10-24 17:47:42 -07:00
Will Feng
079b3cc02c
Add C++ nn::functional pad
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26601
Test Plan: Imported from OSS
Differential Revision: D17517468
Pulled By: yf225
fbshipit-source-id: 9ee8b93b88a60f91f2ae78c242f9eaa246b3293c
2019-10-21 22:20:38 -07:00
Will Feng
aad5071206
Use torch::variant for enums in C++ API
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26837
Test Plan: Imported from OSS
Differential Revision: D17579438
Pulled By: yf225
fbshipit-source-id: 9ac59df28a317fdb3be2cc02c65962ad99117127
2019-10-16 22:40:57 -07:00